From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/44374 Path: main.gmane.org!not-for-mail From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.gnus.general Subject: Re: DSN [PATCH] Date: Wed, 24 Apr 2002 13:31:53 +0200 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1019648009 2744 127.0.0.1 (24 Apr 2002 11:33:29 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 24 Apr 2002 11:33:29 +0000 (UTC) Cc: ding Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 170L1c-0000i8-00 for ; Wed, 24 Apr 2002 13:33:28 +0200 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 170L10-0002J2-00; Wed, 24 Apr 2002 06:32:50 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Wed, 24 Apr 2002 06:33:02 -0500 (CDT) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id GAA28795 for ; Wed, 24 Apr 2002 06:32:51 -0500 (CDT) Original-Received: (qmail 12203 invoked by alias); 24 Apr 2002 11:32:27 -0000 Original-Received: (qmail 12198 invoked from network); 24 Apr 2002 11:32:27 -0000 Original-Received: from waldorf.cs.uni-dortmund.de (129.217.4.42) by gnus.org with SMTP; 24 Apr 2002 11:32:27 -0000 Original-Received: from lothlorien.cs.uni-dortmund.de (lothlorien [129.217.19.67]) by waldorf.cs.uni-dortmund.de with ESMTP id g3OBVwb14929; Wed, 24 Apr 2002 13:31:58 +0200 (MES) Original-Received: from lucy.cs.uni-dortmund.de (lucy [129.217.19.80]) by lothlorien.cs.uni-dortmund.de id NAA02383; Wed, 24 Apr 2002 13:31:53 +0200 (MET DST) Original-Received: by lucy.cs.uni-dortmund.de (Postfix, from userid 6104) id 3A4E33AE7E; Wed, 24 Apr 2002 13:31:53 +0200 (CEST) Original-To: Joseph Barillari In-Reply-To: (Joseph Barillari's message of "Tue, 23 Apr 2002 16:28:42 -0400") Original-Lines: 31 User-Agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2.50 (i686-pc-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:44374 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:44374 Joseph Barillari 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!