[Top][All Lists]

[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:52:37 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2

Uwe Brauer wrote:

> Are you saying that the setting
> (setq  vc-hg-symbolic-revision-styles '("{rev}"))
> Is incorrect?

No, because that setq form is a Lisp expression, and in Lisp the expression 'V
yields the value V, which means that the form sets the variable
vc-hg-symbolic-revision-styles to the value ("{rev}").

Quoting works for any value in Lisp code. Although there are common special
cases (e.g., integers) where the single-quote is not needed, in Lisp a
single-quote is the easiest way to quote an arbitrary value.

reply via email to

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