From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/9233 Path: main.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.gnus.general Subject: Re: Red Gnus 0.74: Undo menu in *Group* buffer Date: 17 Dec 1996 20:06:38 +0100 Sender: larsi@proletcult.slip.ifi.uio.no Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1035149288 17229 80.91.224.250 (20 Oct 2002 21:28:08 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 21:28:08 +0000 (UTC) Return-Path: Original-Received: from ifi.uio.no (0@ifi.uio.no [129.240.64.2]) by deanna.miranova.com (8.8.4/8.8.4) with SMTP id LAA28084 for ; Tue, 17 Dec 1996 11:23:32 -0800 Original-Received: from proletcult.slip.ifi.uio.no (larsi@ppp12.larris.ifi.uio.no [129.240.68.112]) by ifi.uio.no with ESMTP (8.6.11/ifi2.4) id for ; Tue, 17 Dec 1996 20:06:49 +0100 Original-Received: (from larsi@localhost) by proletcult.slip.ifi.uio.no (8.8.2/8.8.2) id UAA06271; Tue, 17 Dec 1996 20:06:47 +0100 Original-To: ding@ifi.uio.no In-Reply-To: Per Abrahamsen's message of 17 Dec 1996 11:00:21 +0100 Original-Lines: 30 X-Mailer: Red Gnus v0.76/Emacs 19.34 X-Face: &w!^oO~dS|}-P0~ge{$c!h\ writes: > Lars Magne Ingebrigtsen writes: > > > Because it's something that can (theoretically) be switched on in all > > buffers. > > Why would you want to switch it off? Is it something that the user is > likely to switch on and off through a session? No, but it's something that the user might want to switch off in some buffers in some hook. > I.e. if it takes resources, wouldn't a `gnus-use-undo' meta variable > be more appropriate. This isn't (in principle) a Gnus-specific thing, so it seems cleaner to use a minor mode. I think. > > That would be possible, but it would be nicer not to "hard-code" this. > > What's the magic incantation to insert a menu bar entry into some > > menu? I seem to be having some problems groking the menu code... > > It is `define-key-after' in Emacs and `add-menu-button' in XEmacs. Ok, I'll have gnus-undo do that instead. -- (domestic pets only, the antidote for overdose, milk.) larsi@ifi.uio.no * Lars Ingebrigtsen