From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: elementary: how to display a ' in a docstring Date: Sat, 7 May 2016 14:32:37 -0700 Organization: UCLA Computer Science Department Message-ID: <572E5EF5.5030801@cs.ucla.edu> References: <87h9e9ychf.fsf@mat.ucm.es> <572E4EC1.1030108@cs.ucla.edu> <87vb2pwqb2.fsf@mat.ucm.es> <572E5595.9060008@cs.ucla.edu> <87inypwp88.fsf@mat.ucm.es> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1462656793 19452 80.91.229.3 (7 May 2016 21:33:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 7 May 2016 21:33:13 +0000 (UTC) Cc: emacs-devel@gnu.org To: Uwe Brauer Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 07 23:33:06 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1az9qQ-000356-R6 for ged-emacs-devel@m.gmane.org; Sat, 07 May 2016 23:33:02 +0200 Original-Received: from localhost ([::1]:35168 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1az9qQ-0007eM-4J for ged-emacs-devel@m.gmane.org; Sat, 07 May 2016 17:33:02 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40441) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1az9qK-0007TS-Px for emacs-devel@gnu.org; Sat, 07 May 2016 17:32:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1az9qE-0002k1-Os for emacs-devel@gnu.org; Sat, 07 May 2016 17:32:55 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:51363) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1az9qE-0002jx-II for emacs-devel@gnu.org; Sat, 07 May 2016 17:32:50 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 060611611FB; Sat, 7 May 2016 14:32:45 -0700 (PDT) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id SrQfGBvWuvWF; Sat, 7 May 2016 14:32:39 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 77C181611FC; Sat, 7 May 2016 14:32:39 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id WuWffTx9PKfq; Sat, 7 May 2016 14:32:39 -0700 (PDT) Original-Received: from [192.168.1.9] (unknown [100.32.155.148]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 551541611FB; Sat, 7 May 2016 14:32:39 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 In-Reply-To: <87inypwp88.fsf@mat.ucm.es> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 131.179.128.68 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:203685 Archived-At: Uwe Brauer wrote: > Ok but you complained, or seemed to complained that it is not good > style. So what is the recommended setting in the case I mentioned? If the suggested value is the singleton list ("{rev}"), then (setq vc-hg-symbolic-revision-styles '("{rev}")) is a Lisp expression that sets= the variable to the suggested value. As that is the expression you already mentioned, your code should be OK already. My quibble was with the doc string you suggested. In a doc string general= ly the simplest way to discuss a cons value like ("{rev}") is to write the value without quoting it. In the rare cases where this is unclear, you can quot= e the value the same way you would quote a symbol or any other piece of Lisp co= de in a doc string, namely by surrounding it with ` and '.