emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: display-completion-list should not strip text properties


From: Juri Linkov
Subject: Re: display-completion-list should not strip text properties
Date: Tue, 04 Sep 2007 12:52:32 +0300
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux)

> 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 meant that even well-intended authors (that don't write deliberately
unreadable or harmful expressions in doc strings) can write such
expressions that won't play nicely with the default logic of the Help
buffer formatting.  For instance, authors might use `fill-paragraph' to
fill a paragraph with a specific value of `fill-column' and `fill-prefix',
but the default logic will later refill it with the default settings,
possibly breaking the doc string horribly.

>> (defun foo ()
>>   "To create a file, just <emph>visit it</emph> with <kbd>C-x C-f</kbd>.
>> See also <xref>find-file-literally</xref>."
>> )
>
> That requires a whole new subsystem separate of Emacs and a rationale
> to call it for every string display.

Not separate of Emacs, but a package implemented in Emacs Lisp.

-- 
Juri Linkov
http://www.jurta.org/emacs/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]