From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Tweak to key-description for menu bindings (was Re: tweak to apropos-command display) Date: Mon, 28 Feb 2005 13:14:49 +0100 Message-ID: References: <1814.220.255.78.196.1108996512.squirrel@220.255.78.196> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1109594995 11629 80.91.229.2 (28 Feb 2005 12:49:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 28 Feb 2005 12:49:55 +0000 (UTC) Cc: Chong Yidong , rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 28 13:49:55 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D5kLH-00068V-MZ for ged-emacs-devel@m.gmane.org; Mon, 28 Feb 2005 13:49:44 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D5kdd-0005G2-IS for ged-emacs-devel@m.gmane.org; Mon, 28 Feb 2005 08:08:41 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D5k7w-0002La-If for emacs-devel@gnu.org; Mon, 28 Feb 2005 07:35:56 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D5k7t-0002Ix-G0 for emacs-devel@gnu.org; Mon, 28 Feb 2005 07:35:54 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D5k7r-0002CQ-R0 for emacs-devel@gnu.org; Mon, 28 Feb 2005 07:35:52 -0500 Original-Received: from [212.88.64.25] (helo=mail-relay.sonofon.dk) by monty-python.gnu.org with smtp (Exim 4.34) id 1D5jnS-0002dR-T4 for emacs-devel@gnu.org; Mon, 28 Feb 2005 07:14:47 -0500 Original-Received: (qmail 49666 invoked from network); 28 Feb 2005 12:14:46 -0000 Original-Received: from unknown (HELO kfs-l.imdomain.dk.cua.dk) (213.83.150.2) by 0 with SMTP; 28 Feb 2005 12:14:46 -0000 Original-To: David Kastrup In-Reply-To: (David Kastrup's message of "Tue, 22 Feb 2005 23:01:56 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org X-MailScanner-To: ged-emacs-devel@m.gmane.org Xref: main.gmane.org gmane.emacs.devel:33919 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:33919 David Kastrup writes: > storm@cua.dk (Kim F. Storm) writes: > >> It also improves handling of menu bar entries in two ways: >> >> 1) If menu-bar-mode is disabled, it doesn't mention menu bar bindings. >> >> 2) It pretty prints menu bar entries like this: >> e.g. "File Menu" rather than " " > > Uh, how is it an improvement to leave off the "New file" information > from the menu? I have been looking further into "menu binding pretty-printing", and I agree that my previous approach was too narrow-minded. I now have a solution where key-description produces a real human readable text for menu bindings. For example, (key-description [menu-bar file new-file]) now prints whereas with my patch to key-description, it will print File=>New File... Since this is implemented in key-description, it will show the new format in all contexts, e.g. for C-h a, C-h k, C-h w, etc. Another example: Old: New: Options=>Mule (Multilingual Environment)=>Set Coding Systems=>For Next Command Shall I install this? -- Kim F. Storm http://www.cua.dk