Gnus development mailing list
 help / color / mirror / Atom feed
From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann)
Cc: ding <ding@gnus.org>
Subject: Re: DSN [PATCH]
Date: Wed, 24 Apr 2002 13:31:53 +0200	[thread overview]
Message-ID: <vafelh5pc2e.fsf@INBOX.auto.gnus.tok.lucy.cs.uni-dortmund.de> (raw)
In-Reply-To: <m37kmy6txh.fsf_-_@washer.barillari.org> (Joseph Barillari's message of "Tue, 23 Apr 2002 16:28:42 -0400")

Joseph Barillari <jbarilla@princeton.edu> writes:

> I've attached the DSN patch w.r.t. the latest Gnus source in CVS,
> including documentation. How might I go about adding a control to
> quickly switch the option on or off at composition time, as Simon
> Josefsson suggested?

I guess the solution is to write some commands for each of the boolean
variables.  For the variable foo, it could be the command toggle-foo,
and it could toggle the variable if invoked normally, set it to true
if invoked with a positive prefix arg, and set it to false if invoked
with a nonpositive prefix arg.

This would be like the other toggle commands in Emacs.

But there is one more thing: you might wish to set the switch for the
current message only, or globally.  The implementation could be by
making the variable have a local value in the current buffer.  (But
then you need to make sure you're in the message buffer when you
access the variable.)

I'm not sure what should be the user interface for the buffer-local
versus global thing.  Could be two different commands.  Doing it via
the prefix arg appears to be difficult.  Hm.

There is the command toggle-global-lazy-font-lock-mode in Emacs 21.
Maybe this could be a guideline for the command names.

kai
-- 
Silence is foo!



  reply	other threads:[~2002-04-24 11:31 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-21 11:07 DSN Joseph Barillari
2002-04-21 13:16 ` DSN Simon Josefsson
2002-04-21 14:10   ` DSN Joseph Barillari
2002-04-23 20:28     ` DSN [PATCH] Joseph Barillari
2002-04-24 11:31       ` Kai Großjohann [this message]
2002-04-24 12:04         ` Matthieu Moy
2002-04-24 12:35           ` Joseph Barillari
2002-04-24 15:57             ` Simon Josefsson
     [not found]               ` <m38z7dawqy.fsf@washer.barillari.org>
2002-04-24 17:50                 ` Simon Josefsson
2002-04-24 19:50                   ` Joseph Barillari
2002-04-24 20:28                     ` Simon Josefsson
2002-04-24 20:40                       ` Joseph Barillari
2002-04-24 20:52                         ` Simon Josefsson
2002-04-24 21:07                           ` Joseph Barillari
2002-04-24 13:26           ` Simon Josefsson
2002-04-24 13:43             ` Joseph Barillari
2002-04-24 15:18           ` Kai Großjohann
2002-04-24 16:17             ` Joseph Barillari
2002-04-24  9:21 ` DSN Matthieu Moy

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=vafelh5pc2e.fsf@INBOX.auto.gnus.tok.lucy.cs.uni-dortmund.de \
    --to=kai.grossjohann@cs.uni-dortmund.de \
    --cc=ding@gnus.org \
    /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).