From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#20385: [PATCH] Support curved quotes in doc strings Date: Wed, 13 May 2015 20:24:14 -0700 Organization: UCLA Computer Science Department Message-ID: <5554155E.70000@cs.ucla.edu> References: <1429555155-4695-1-git-send-email-eggert@cs.ucla.edu> <5552FDAC.4080004@cs.ucla.edu> <55534080.6010400@yandex.ru> <555369FD.30701@cs.ucla.edu> <5553D12F.7000809@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1431573925 21361 80.91.229.3 (14 May 2015 03:25:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 May 2015 03:25:25 +0000 (UTC) To: Dmitry Gutov , 20385@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 14 05:25:15 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1Ysjlp-0004H0-RG for geb-bug-gnu-emacs@m.gmane.org; Thu, 14 May 2015 05:25:13 +0200 Original-Received: from localhost ([::1]:52414 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ysjlp-0000qI-1x for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 May 2015 23:25:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35595) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ysjll-0000pY-7a for bug-gnu-emacs@gnu.org; Wed, 13 May 2015 23:25:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ysjlg-00049l-7W for bug-gnu-emacs@gnu.org; Wed, 13 May 2015 23:25:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34256) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ysjlg-00048s-0X for bug-gnu-emacs@gnu.org; Wed, 13 May 2015 23:25:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Ysjlf-0000ua-FA for bug-gnu-emacs@gnu.org; Wed, 13 May 2015 23:25:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 May 2015 03:25:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20385 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 20385-submit@debbugs.gnu.org id=B20385.14315738653380 (code B ref 20385); Thu, 14 May 2015 03:25:03 +0000 Original-Received: (at 20385) by debbugs.gnu.org; 14 May 2015 03:24:25 +0000 Original-Received: from localhost ([127.0.0.1]:44231 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ysjl3-0000sS-32 for submit@debbugs.gnu.org; Wed, 13 May 2015 23:24:25 -0400 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]:55256) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ysjl0-0000rw-LG for 20385@debbugs.gnu.org; Wed, 13 May 2015 23:24:23 -0400 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id D37A439E8015; Wed, 13 May 2015 20:24:15 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Original-Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LUFpg1w0ch+u; Wed, 13 May 2015 20:24:14 -0700 (PDT) Original-Received: from [192.168.1.9] (pool-100-32-155-148.lsanca.fios.verizon.net [100.32.155.148]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id B443939E8014; Wed, 13 May 2015 20:24:14 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 In-Reply-To: <5553D12F.7000809@yandex.ru> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:102758 Archived-At: Dmitry Gutov wrote: > I don't really understand the > motivation for the original proposal (to switch away from `...'), so it's not > clear to me if font-locking would satisfy it. The main motivation is that English text shouldn't use grave accent to quote. It looked good decades ago but the underlying encodings changed and now it is klunky and offputting. (It's not as bad as the 1950s syntax 16HTHIS IS A STRING but that's a low bar....) Yes, it was a GNU tradition for many years, but other GNU packages (GCC, coreutils, etc.) have largely shifted away from it and it's time Emacs made it more convenient to use the more-standard convention of curved quotes. I haven't tried font locking. As I understand it, though, font locking would address the problem only in doc strings. For example, it wouldn't address Emacs's diagnostic messages, which also need to get fixed. In contrast, the sorts of solutions I'm proposing should help support curved quotes nearly everywhere. > "Plain" unicode strings are not that plain, especially if it still takes 4 > keypresses to type the character, and I also need to explain to contributors how > to do that. The patch proposed in Bug#20545 largely addresses this problem. Contributors can use the same keypresses as before. If your contributors type this: The value may be `buffered', `retained', or `non-retained'. the following characters are put into their doc string: The value may be ‘buffered’, ‘retained’, or ‘non-retained’. They won't have to do anything special to get this behavior; just use the revised Emacs on its own source code. > For some reason still unclear to me (I have English locale and language set > everywhere I can see), it displays a group of cyrillic characters (тАШ) instead > of the fancy quotes. Which will complicate reading small patches somewhat (ones > I wouldn't open in an external program otherwise). I reproduced that problem in Thunderbird by visiting "View > Character Encoding > Auto-Detect" and selecting "Russian". To fix it, I selected "(off)" instead of "Russian".