emacs-devel
[Top][All Lists]
Advanced

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

Re: elementary: how to display a ' in a docstring


From: Paul Eggert
Subject: Re: elementary: how to display a ' in a docstring
Date: Sat, 7 May 2016 13:23:29 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2

Uwe Brauer wrote:
> "Please set `vc-hg-symbolic-revision-styles' to '(\"{rev}\"))), please note 
> the `''."

To get the effect you asked for, quote the apostrophes like this: "Please set
`vc-hg-symbolic-revision-styles' to \\='(\"{rev}\"))), please note the `\\=''."
See the text-quoting-style documentation in the Elisp manual.

By the way, the effect you asked for is not the recommended style in Emacs
documentation strings. When discussing a Lisp value, the usual style is to give
the value instead of Lisp code that would evaluate to the value. The
abovementioned doc string could be reworded to something like "Please set
`vc-hg-symbolic-revision-styles' to the list (\"{rev}\")."



reply via email to

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