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: text-quoting-style Date: Fri, 28 Aug 2015 10:48:10 -0700 Organization: UCLA Computer Science Department Message-ID: <55E09EDA.3080001@cs.ucla.edu> References: <83r3mn50rz.fsf@gnu.org> <20150828172501.GB4882@acm.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------050607080103090704070908" X-Trace: ger.gmane.org 1440784126 21404 80.91.229.3 (28 Aug 2015 17:48:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Aug 2015 17:48:46 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Alan Mackenzie , Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 28 19:48:37 2015 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 1ZVNlS-0000e8-8g for ged-emacs-devel@m.gmane.org; Fri, 28 Aug 2015 19:48:34 +0200 Original-Received: from localhost ([::1]:49252 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVNlR-0000aR-Cs for ged-emacs-devel@m.gmane.org; Fri, 28 Aug 2015 13:48:33 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43188) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVNlD-0000aG-0o for emacs-devel@gnu.org; Fri, 28 Aug 2015 13:48:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZVNlB-0006f2-Qw for emacs-devel@gnu.org; Fri, 28 Aug 2015 13:48:18 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:39735) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVNl7-0006dw-1J; Fri, 28 Aug 2015 13:48:13 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 9245B160F75; Fri, 28 Aug 2015 10:48:11 -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 RjPyHcksWQ1L; Fri, 28 Aug 2015 10:48:10 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 827FE160F83; Fri, 28 Aug 2015 10:48:10 -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 hNiQE4vAT3kf; Fri, 28 Aug 2015 10:48:10 -0700 (PDT) Original-Received: from [192.168.1.9] (pool-100-32-155-148.lsanca.fios.verizon.net [100.32.155.148]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 5C14B160F75; Fri, 28 Aug 2015 10:48:10 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 In-Reply-To: <20150828172501.GB4882@acm.fritz.box> 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.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:189280 Archived-At: This is a multi-part message in MIME format. --------------050607080103090704070908 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Alan Mackenzie wrote: > The reason for its existence still holds. Or is there some other > mechanism which achieves the same thing? I suggested the mechanism of setting the locale, which is needed anyway in an environment that can't display non-ASCII characters. That is, curved quote characters would still be transformed to grave accent and apostrophe in the *Help* buffers, which I think was your main goal; it's just that the text-quoting-style variable wouldn't be needed. Something like the attached change to the manual, say, with corresponding changes elsewhere. --------------050607080103090704070908 Content-Type: text/x-diff; name="doc.diff" Content-Disposition: attachment; filename="doc.diff" Content-Transfer-Encoding: quoted-printable diff --git a/doc/lispref/help.texi b/doc/lispref/help.texi index 44c09a2..fdd0a32 100644 --- a/doc/lispref/help.texi +++ b/doc/lispref/help.texi @@ -335,18 +335,17 @@ and @samp{\=3D\=3D} puts @samp{\=3D} into the outpu= t. @strong{Please note:} Each @samp{\} must be doubled when written in a string in Emacs Lisp. =20 -@defvar text-quoting-style @cindex curved quotes @cindex curly quotes -The value of this variable specifies the style used to generate text -quotes. If the variable's value is @code{curve}, the style is -@t{=E2=80=98like this=E2=80=99} with curved single quotes. If the value= is -@code{straight}, the style is @t{'like this'} with straight -apostrophes. If the value is @code{grave}, the style is @t{`like -this'} with grave accent and apostrophe. The default value @code{nil} -acts like @code{curve} if curved single quotes are displayable, and -like @code{grave} otherwise. -@end defvar +@cindex @env{LC_ALL} environment variable +Docstrings can represent directed single quotes with +either curved quotes (@t{=E2=80=98} and @t{=E2=80=99}) or with grave acc= ent and +apostrophe (@t{`} and @t{'}). These are transformed to curved single +quotes if displayable, and to grave accent and apostrophe otherwise. +Most modern displays can represent curved quotes with no trouble; for +the exceptions, you can run Emacs in a locale that matches your +display, e.g., by setting @env{LC_ALL} to @samp{C} in the environment. +@xref{Locales}. =20 @defun substitute-command-keys string This function scans @var{string} for the above special sequences and diff --git a/doc/lispref/strings.texi b/doc/lispref/strings.texi index 08e8e87..3705546 100644 --- a/doc/lispref/strings.texi +++ b/doc/lispref/strings.texi @@ -818,11 +818,12 @@ if any. @defun format-message string &rest objects @cindex curved quotes @cindex curly quotes -This function acts like @code{format}, except it also converts any -curved single quotes in @var{string} as per the value of -@code{text-quoting-style}, and treats grave accent (@t{`}) and -apostrophe (@t{'}) as if they were curved single quotes. @xref{Keys -in Documentation}. +This function acts like @code{format}, except it also replaces grave +accents and apostrophes (@t{`} and @t{'}) in @var{string} with curved +quotes (@t{=E2=80=98} and @t{=E2=80=99}) if curved quotes are displayabl= e, and +replaces curved quotes with grave accents and apostrophes if curved +quotes are not displayable. This extra replacement is similar to what +@code{substitute-command-keys} does. @xref{Keys in Documentation}. @end defun =20 @cindex @samp{%} in format @@ -923,8 +924,7 @@ specification is unusual in that it does not use a va= lue. For example, Any other format character results in an @samp{Invalid format operation} error. =20 - Here are several examples, which assume the typical -@code{text-quoting-style} settings: + Here are several examples, which assume curved quotes are displayable: =20 @example @group --------------050607080103090704070908--