[Top][All Lists]
[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:54:39 +0300 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux) |
>> 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:
>
> My gut reaction is "Oh, no. Not Yet Another *ML". It's not very
> constructive, but gut reactions ain't fair or constructive -- sorry for
> that :-(
>
> (maybe those angle brackets just hurt my tummy too much ;)
Don't be afraid of using markup languages. Such languages provide a good
common denominator that allows creating packages that will process doc
strings in different ways, e.g. writing a package producing a printed
reference manual from doc strings (especially useful for packages that
don't have a separate Info manual).
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"
Compare this with:
"mumble <emph>toto</emph> titi"
You can argue that this can be written as:
"mumble \\,(docstring-emph \"toto\") titi"
but it has too many toothpicks.
--
Juri Linkov
http://www.jurta.org/emacs/
- RE: display-completion-list should not strip text properties, Drew Adams, 2007/09/01
- Re: display-completion-list should not strip text properties, Richard Stallman, 2007/09/04
- RE: display-completion-list should not strip text properties, Drew Adams, 2007/09/04
- RE: display-completion-list should not strip text properties, Davis Herring, 2007/09/04
- Re: display-completion-list should not strip text properties, Richard Stallman, 2007/09/05
- RE: display-completion-list should not strip text properties, Drew Adams, 2007/09/05
- Re: display-completion-list should not strip text properties, Richard Stallman, 2007/09/06
- RE: display-completion-list should not strip text properties, Drew Adams, 2007/09/06
- Re: display-completion-list should not strip text properties, Edward O'Connor, 2007/09/06