Gnus development mailing list
 help / color / mirror / Atom feed
* (make-variable-buffer-local 'gnus-treat-hide-citation)
@ 1999-07-25 22:38 Michael Cook
  1999-08-27 21:59 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Cook @ 1999-07-25 22:38 UTC (permalink / raw)


I want to tailor some gnus-treat-... settings in group-specific ways.

The obvious approach didn't work: using
`gnus-summary-customize-parameters' (M-C-g) I added a variable
`gnus-treat-hide-citation' with a value of nil:

Variables:
Set variables local to the group you are entering. [More]
[INS] [DEL] Variable: gnus-treat-hide-citation
            Value: nil
[INS]

It seems that the variable gets made buffer-local to the *Summary*
buffer, and it ends up having no effect in the *Article* buffer.

Somewhat disappointed, I cobbled together this awkward alternative:

(add-hook 'gnus-article-mode-hook 'my-gnus-article-mode-hooked)
(defun my-gnus-article-mode-hooked ()
  (and (string= "nnml:bulk.foo" gnus-newsgroup-name)
       (progn
	 (make-variable-buffer-local 'gnus-treat-hide-citation)
	 (setq gnus-treat-hide-citation nil))))

So, two questions:

1. Should the M-C-g way work?  And is the current behavior a bug?
2. Is the gnus-article-mode-hook solution the Right Way?  (Do
   users really have to revert to writing Elisp to do this trivial
   "customization"?)

M.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: (make-variable-buffer-local 'gnus-treat-hide-citation)
  1999-07-25 22:38 (make-variable-buffer-local 'gnus-treat-hide-citation) Michael Cook
@ 1999-08-27 21:59 ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Magne Ingebrigtsen @ 1999-08-27 21:59 UTC (permalink / raw)


Michael Cook <cook@sightpath.com> writes:

> 1. Should the M-C-g way work?  And is the current behavior a bug?

It's not a bug, but copying local vars over from the summary buffer to
the article buffer may be a good idea.  Perhaps.

> 2. Is the gnus-article-mode-hook solution the Right Way?

Uhm...  Well, it's the way I do it.  :-)

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-08-27 21:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-07-25 22:38 (make-variable-buffer-local 'gnus-treat-hide-citation) Michael Cook
1999-08-27 21:59 ` Lars Magne Ingebrigtsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).