Gnus development mailing list
 help / color / mirror / Atom feed
From: Michael Cook <cook@sightpath.com>
Subject: (make-variable-buffer-local 'gnus-treat-hide-citation)
Date: 25 Jul 1999 18:38:57 -0400	[thread overview]
Message-ID: <80so6c4any.fsf@lucy.sightpath.com> (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.


             reply	other threads:[~1999-07-25 22:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-07-25 22:38 Michael Cook [this message]
1999-08-27 21:59 ` Lars Magne Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=80so6c4any.fsf@lucy.sightpath.com \
    --to=cook@sightpath.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).