From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: advertised-widget-backward Date: Sun, 16 Nov 2008 15:30:50 -0500 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1226867453 31241 80.91.229.12 (16 Nov 2008 20:30:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 16 Nov 2008 20:30:53 +0000 (UTC) Cc: Glenn Morris , emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 16 21:31:52 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L1oHb-0002c3-UV for ged-emacs-devel@m.gmane.org; Sun, 16 Nov 2008 21:31:48 +0100 Original-Received: from localhost ([127.0.0.1]:43259 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L1oGT-0002q3-K8 for ged-emacs-devel@m.gmane.org; Sun, 16 Nov 2008 15:30:37 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L1oGO-0002py-4H for emacs-devel@gnu.org; Sun, 16 Nov 2008 15:30:32 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L1oGM-0002pm-8q for emacs-devel@gnu.org; Sun, 16 Nov 2008 15:30:30 -0500 Original-Received: from [199.232.76.173] (port=48625 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L1oGM-0002pj-4G for emacs-devel@gnu.org; Sun, 16 Nov 2008 15:30:30 -0500 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]:18201 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L1oGJ-0001L9-LJ; Sun, 16 Nov 2008 15:30:27 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhIFAJYRIElMCrcy/2dsb2JhbACBbMsPgnmBFA X-IronPort-AV: E=Sophos;i="4.33,615,1220241600"; d="scan'208";a="29938985" Original-Received: from 76-10-183-50.dsl.teksavvy.com (HELO pastel.home) ([76.10.183.50]) by ironport2-out.teksavvy.com with ESMTP; 16 Nov 2008 15:30:22 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 35C2884E1; Sun, 16 Nov 2008 15:30:50 -0500 (EST) In-Reply-To: (Richard M. Stallman's message of "Sun, 16 Nov 2008 11:08:42 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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 Xref: news.gmane.org gmane.emacs.devel:105724 Archived-At: > I don't remember for certain, but it looks like the sort of thing I do > to control which key some help features will report for that command. > This is meant to be like C-x u (advertised-undo) and C-_ (undo). > If you put \\[advertised-undo] in a doc string, it is guaranteed > to come out as C-x u, not C-_. If they were both bound to `undo', > then either one might come out. Which reminds me: it's an OK hack to get this result, but it has some annoying side-effects: - C-h k C-/ will not show you that it's also bound to C-x u (even though C-x u is supposed to be the binding you advertise most). - C-h k C-x u will not show you alternative bindings such as C-/ which are usually a lot more convenient to use when available. - probably some others. I think we should try and introduce a better way to get this result. E.g. we could add an `advertized-binding' property to the command symbol and then let where-is use it (after checking that it's indeed bound to that command). Stefan