From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: display-completion-list should not strip text properties Date: Tue, 04 Sep 2007 07:59:04 +0200 Message-ID: <85d4wzkm3b.fsf@lola.goethe.zz> References: <877in93z6c.fsf@jurta.org> <87wsv71esh.fsf@jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1188885569 30517 80.91.229.12 (4 Sep 2007 05:59:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 4 Sep 2007 05:59:29 +0000 (UTC) Cc: emacs-devel@gnu.org, rms@gnu.org, drew.adams@oracle.com, bojohan+news@dd.chalmers.se To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 04 07:59:28 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 1ISRRZ-0003gw-Ig for ged-emacs-devel@m.gmane.org; Tue, 04 Sep 2007 07:59:21 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ISRRX-0003Wn-Tn for ged-emacs-devel@m.gmane.org; Tue, 04 Sep 2007 01:59:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ISRRS-0003Uo-6L for emacs-devel@gnu.org; Tue, 04 Sep 2007 01:59:14 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ISRRR-0003U0-FA for emacs-devel@gnu.org; Tue, 04 Sep 2007 01:59:13 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ISRRR-0003Tw-7I for emacs-devel@gnu.org; Tue, 04 Sep 2007 01:59:13 -0400 Original-Received: from mail-in-02.arcor-online.net ([151.189.21.42]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1ISRRM-00057g-EH; Tue, 04 Sep 2007 01:59:08 -0400 Original-Received: from mail-in-10-z2.arcor-online.net (mail-in-10-z2.arcor-online.net [151.189.8.27]) by mail-in-02.arcor-online.net (Postfix) with ESMTP id 3E7BA32E90B; Tue, 4 Sep 2007 07:59:07 +0200 (CEST) Original-Received: from mail-in-09.arcor-online.net (mail-in-09.arcor-online.net [151.189.21.49]) by mail-in-10-z2.arcor-online.net (Postfix) with ESMTP id 2C26123D338; Tue, 4 Sep 2007 07:59:07 +0200 (CEST) Original-Received: from lola.goethe.zz (dslb-084-061-020-113.pools.arcor-ip.net [84.61.20.113]) by mail-in-09.arcor-online.net (Postfix) with ESMTP id 022FE3425E2; Tue, 4 Sep 2007 07:59:06 +0200 (CEST) Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 66E0B1C0039C; Tue, 4 Sep 2007 07:59:04 +0200 (CEST) In-Reply-To: <87wsv71esh.fsf@jurta.org> (Juri Linkov's message of "Tue\, 04 Sep 2007 02\:48\:28 +0300") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-Virus-Scanned: ClamAV 0.91.2/4142/Tue Sep 4 05:26:06 2007 on mail-in-09.arcor-online.net X-Virus-Status: Clean X-Detected-Kernel: Linux 2.4-2.6 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:77720 Archived-At: Juri Linkov writes: >> Or using \, like in the query-replace string to eval part of the >> replacement string: >> >> (defun foo () >> "mumble \\,(propertize "toto" 'face 'highlight) titi" >> whatever) >> >> That is a clean feature. > > I proposed only a new syntax for this feature, but now after > thinking more about the whole idea, I see that this feature is too > ad-hoc. Allowing to eval arbitrary expressions while printing the > doc string in the Help buffer is too fragile approach. There is no > guarantee that after all interacting evaluations there will a > readable result in the Help buffer. Well, there never is such a guarantee to start with. (defun foo () "5sji [3q98y5ew9pnthy45wp9tvnhy45pnt5uvpwmthuvqptnhbewptb|" whatever) also has no readable result in the help buffer. > I think a better approach is to use a markup language in doc strings, > be it XHTML or even TexinfoML. Then using a style sheet it can be > formatted nicely in the Help buffer. Example of a doc string: > > (defun foo () > "To create a file, just visit it with C-x C-f. > See also find-file-literally." > ) That requires a whole new subsystem separate of Emacs and a rationale to call it for every string display. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum