From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: bojohan+news@dd.chalmers.se (Johan =?utf-8?Q?Bockg=C3=A5rd?=) Newsgroups: gmane.emacs.devel Subject: Re: display-completion-list should not strip text properties Date: Tue, 04 Sep 2007 12:56:56 +0200 Message-ID: References: <877in93z6c.fsf@jurta.org> <87wsv71esh.fsf@jurta.org> <20070904084911.GA10705@www.trapp.net> <87abs2wyao.fsf@jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1188903477 17857 80.91.229.12 (4 Sep 2007 10:57:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 4 Sep 2007 10:57:57 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 04 12:57:57 2007 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 1ISW6U-0006Ab-3i for ged-emacs-devel@m.gmane.org; Tue, 04 Sep 2007 12:57:54 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ISW6S-0006BZ-Fr for ged-emacs-devel@m.gmane.org; Tue, 04 Sep 2007 06:57:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ISW6J-00066g-04 for emacs-devel@gnu.org; Tue, 04 Sep 2007 06:57:43 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ISW6F-000649-Mn for emacs-devel@gnu.org; Tue, 04 Sep 2007 06:57:41 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ISW6F-00063i-BN for emacs-devel@gnu.org; Tue, 04 Sep 2007 06:57:39 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1ISW6E-0005CW-Pp for emacs-devel@gnu.org; Tue, 04 Sep 2007 06:57:39 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1ISW67-0001V8-Or for emacs-devel@gnu.org; Tue, 04 Sep 2007 12:57:31 +0200 Original-Received: from gamma02.me.chalmers.se ([129.16.50.72]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 04 Sep 2007 12:57:31 +0200 Original-Received: from bojohan+news by gamma02.me.chalmers.se with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 04 Sep 2007 12:57:31 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 28 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: gamma02.me.chalmers.se Mail-Copies-To: never User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux) Cancel-Lock: sha1:57u+QSQlnPB1dN3Xyk2bIQzbuB4= X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) 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:77737 Archived-At: Juri Linkov writes: > Using Lisp expressions inside the doc strings has other drawbacks: writing > expressions inside strings is poorly supported. Just think that really > every quote should be escaped with \: > > "mumble \\,(propertize \"toto\" 'face 'highlight) titi" There are other self-evaluating Lisp objects besides strings, so the following idea occurred to me (defun foo () ;; (Optional) doc string for old emacsen. "mumble toto titi" ;; (Optional) doc vector for new emacsen, ["mumble " (propertize "toto" 'face 'highlight) " titi"] ;; ...or like this, [html "mumble toto titi"] ;; ...or this, [texi "mumble @emph{toto} titi"] ;; etc. BODY...) :) -- Johan Bockgård