From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.devel Subject: Re: [drew.adams@oracle.com: RE: Customize doc strings and tagstrings do not respect \\<...> and \\[...]] Date: Wed, 08 Mar 2006 13:49:27 -0700 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1141851267 1236 80.91.229.2 (8 Mar 2006 20:54:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 8 Mar 2006 20:54:27 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 08 21:54:26 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FH5eF-00089U-9j for ged-emacs-devel@m.gmane.org; Wed, 08 Mar 2006 21:52:44 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FH5eE-0008FT-O8 for ged-emacs-devel@m.gmane.org; Wed, 08 Mar 2006 15:52:42 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FH5dx-0008B3-Li for emacs-devel@gnu.org; Wed, 08 Mar 2006 15:52:25 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FH5du-00082o-IS for emacs-devel@gnu.org; Wed, 08 Mar 2006 15:52:25 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FH5du-00082C-3T for emacs-devel@gnu.org; Wed, 08 Mar 2006 15:52:22 -0500 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FH5go-0005vn-NF for emacs-devel@gnu.org; Wed, 08 Mar 2006 15:55:22 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FH5cS-0007dT-AC for emacs-devel@gnu.org; Wed, 08 Mar 2006 21:50:52 +0100 Original-Received: from 207.167.42.60 ([207.167.42.60]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 08 Mar 2006 21:50:52 +0100 Original-Received: from ihs_4664 by 207.167.42.60 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 08 Mar 2006 21:50:52 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 39 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 207.167.42.60 User-Agent: Mozilla Thunderbird 0.9 (X11/20041105) X-Accept-Language: en-us, en In-Reply-To: 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:51382 Archived-At: Drew Adams wrote: > > (defcustom titi 'tata "OK" :type > > '(choice > > (const :tag "`\\\\[next-history-element]'." > > tata))) > > I see in Customize what I reported initially: > > \\[next-history-element] (one level of > > \ removed). > > Why do you think this is a bug? The tag contains exactly this text. > > What are you saying? > > The point (the bug) is that the tag text should implicitly have > `substitute-command-keys' applied to it. I made that clear in my initial > report. A :tag string should be treated, in this respect, the same way a doc > string is treated. That is an interesting idea. But there's nothing in the Emacs Lisp or Widget manuals to suggest that the current implementation is broken. > Use case: You have a choice between two values for an option. Each controls > the behavior of `next-history-element' in a different way. You want to be > able to use `\\\\[next-history-element]' in the :tag's > to refer to the command binding. You don't want to hard-code the binding in > the :tag string. `(choice (const :tag ,(substitute-command-keys "`\\\\[next-history-element]'.") tata))) -- Kevin Rodgers