From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#20385: [PATCH] Support curved quotes in doc strings Date: Thu, 14 May 2015 13:49:42 +0300 Message-ID: <55547DC6.3090509@yandex.ru> 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> <5554155E.70000@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1431600631 357 80.91.229.3 (14 May 2015 10:50:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 May 2015 10:50:31 +0000 (UTC) To: Paul Eggert , 20385@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 14 12:50:20 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 1YsqiX-0004YM-5X for geb-bug-gnu-emacs@m.gmane.org; Thu, 14 May 2015 12:50:17 +0200 Original-Received: from localhost ([::1]:53732 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YsqiW-0005iw-P2 for geb-bug-gnu-emacs@m.gmane.org; Thu, 14 May 2015 06:50:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56780) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YsqiP-0005gf-5c for bug-gnu-emacs@gnu.org; Thu, 14 May 2015 06:50:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YsqiL-0004qq-1M for bug-gnu-emacs@gnu.org; Thu, 14 May 2015 06:50:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34501) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YsqiK-0004pC-Ux for bug-gnu-emacs@gnu.org; Thu, 14 May 2015 06:50:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YsqiJ-0004BT-Nr for bug-gnu-emacs@gnu.org; Thu, 14 May 2015 06:50:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 May 2015 10:50: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.143160059416061 (code B ref 20385); Thu, 14 May 2015 10:50:03 +0000 Original-Received: (at 20385) by debbugs.gnu.org; 14 May 2015 10:49:54 +0000 Original-Received: from localhost ([127.0.0.1]:44476 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YsqiA-0004Az-5k for submit@debbugs.gnu.org; Thu, 14 May 2015 06:49:54 -0400 Original-Received: from mail-wg0-f51.google.com ([74.125.82.51]:36251) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ysqi7-0004Af-TE for 20385@debbugs.gnu.org; Thu, 14 May 2015 06:49:52 -0400 Original-Received: by wgbhc8 with SMTP id hc8so37391812wgb.3 for <20385@debbugs.gnu.org>; Thu, 14 May 2015 03:49:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=Isv220cgUpajXXcTwETN2R+rLCdLjjAshs5jnd55ayY=; b=F+ynV8pdQVAyYbOx7Fe6RrFyezRdYtYEGjKJF92YI53b5st4DKRVS4aMYBIrltGKRX F6ukPbNhils0+qaCCg6ThZdVXMkdqPC0PJ79+KykON5ZSEvTBooEk5hvgVar+PmDwB7N Z+NCQj4JE8o7GYhmOmPS9uN8Kdh2UuHMJ7+2yR0frIiGBErl18Q2ORD510Pnz/n9QG9g 0ZfcbjwKgex4Yuo+dHCe7PdGtTHRScqVur/OwifkT0wqwfNuVdsJLAfusaMyXqBiEM15 OIHAQU7Kqs7hWgwewJWL8RBvQRtFLyhcrF7+n2DUGA7B2+BpUiUB+rTEYwP1/KwDR/HD DV/Q== X-Received: by 10.194.185.107 with SMTP id fb11mr6976378wjc.9.1431600586137; Thu, 14 May 2015 03:49:46 -0700 (PDT) Original-Received: from [192.168.1.2] ([82.102.93.54]) by mx.google.com with ESMTPSA id fm8sm12648180wib.9.2015.05.14.03.49.45 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 May 2015 03:49:45 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0 In-Reply-To: <5554155E.70000@cs.ucla.edu> 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:102770 Archived-At: On 05/14/2015 06:24 AM, Paul Eggert wrote: > 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. The other GNU packages have transitioned to using the straight apostrophes though, didn't they? > 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. The diagnostic messages can be treated differently (use fancy quotes, since we know this text will appear to the user as-is), or whatever code outputs diagnostics could convert the ASCII quotes to the fancy ones on-the-fly. > The patch proposed in Bug#20545 largely addresses this problem. > Contributors can use the same keypresses as before. If your > contributors type this: Ah, sorry, that's better. I was under the impression, from a related discussion, that we'll need to type something like `C-x 8 ''. > 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". Thank you. Indeed, that is it. As a Russian speaker, though, I'm not going to turn it off.