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 01:33:19 +0300 Message-ID: <5553D12F.7000809@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> 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 1431556466 31112 80.91.229.3 (13 May 2015 22:34:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 May 2015 22:34:26 +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 00:34: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 1YsfEB-0003FE-Uo for geb-bug-gnu-emacs@m.gmane.org; Thu, 14 May 2015 00:34:12 +0200 Original-Received: from localhost ([::1]:51728 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YsfEB-0003id-9L for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 May 2015 18:34:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56561) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YsfE7-0003iY-9z for bug-gnu-emacs@gnu.org; Wed, 13 May 2015 18:34:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YsfE3-0004go-9c for bug-gnu-emacs@gnu.org; Wed, 13 May 2015 18:34:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34205) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YsfE3-0004gY-50 for bug-gnu-emacs@gnu.org; Wed, 13 May 2015 18:34:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YsfE2-0002Dp-En for bug-gnu-emacs@gnu.org; Wed, 13 May 2015 18:34:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 May 2015 22:34:02 +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.14315564118452 (code B ref 20385); Wed, 13 May 2015 22:34:02 +0000 Original-Received: (at 20385) by debbugs.gnu.org; 13 May 2015 22:33:31 +0000 Original-Received: from localhost ([127.0.0.1]:44180 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YsfDW-0002CC-38 for submit@debbugs.gnu.org; Wed, 13 May 2015 18:33:30 -0400 Original-Received: from mail-wg0-f47.google.com ([74.125.82.47]:35097) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YsfDU-0002Bq-Ea for 20385@debbugs.gnu.org; Wed, 13 May 2015 18:33:28 -0400 Original-Received: by wgnd10 with SMTP id d10so55068018wgn.2 for <20385@debbugs.gnu.org>; Wed, 13 May 2015 15:33:22 -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=poZLSrJ2XdFtqKJ/tfe8+Rhyfp23asxH8NjLssD8pPM=; b=OMNAML+IFrkPxu4VwbOX0mDVteXZ4WZtBlY22++EUwhygTBTHv5BaUg459RMObfv6i 5KI+6IMsfh7OhyNI+PlKUQ/Ixa1+e8BKzMl9ZBg12tORL5trCaVvcHUvPRBlxkkzplzx kfbV6k4Niux2TgRv+wQ2jkvlESlPxVai3S9JvuPix5QjK9kWy3ZY+wq42f19fGVF/6BG OUKRjyd7L+Wr1K4DimNzGMfOq9vQnmKO+eRcS79Gk+82v+y/d4GGTtvkTBAK4M7QK61S vk+AZrwWNpqH75rsncUWsowjFn8Oa+UdQofJaZxWPAujTBgNN0ICgNXJbO0V4mosxK/f sUYw== X-Received: by 10.180.84.168 with SMTP id a8mr2961689wiz.40.1431556402582; Wed, 13 May 2015 15:33:22 -0700 (PDT) Original-Received: from [192.168.1.2] ([82.102.93.54]) by mx.google.com with ESMTPSA id js3sm35073026wjc.5.2015.05.13.15.33.21 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 May 2015 15:33:22 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0 In-Reply-To: <555369FD.30701@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:102755 Archived-At: On 05/13/2015 06:13 PM, Paul Eggert wrote: > ‘again’? Emacs has been using asymmetric quotes in doc strings > forever. I mean that the suggestion was voiced but never sufficiently addressed. > Or are you referring to the original Bug#20385 proposal of > straight apostrophes? Stefan wasn't sure he liked that idea, and > preferred curved quotes. I'd be happy either way, myself; the point is > that those grave accents have got to go. The suggestion to use font-lock was Stefan's as well. > That's been proposed, but nobody has taken the time to do it. Plus, > it'd be One More Thing; it's simpler if doc strings are plain strings > and are not little subsets of Markdown or whatever. That's trivial, if there's agreement to do it. 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. Also, will going from `...' to '...' be beneficial enough, provided font-lock displays both as curly single quotes? The downsides to this are obvious (changing habits, re-training contributors). "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. > It looks OK when I use Thunderbird 31.6.0 in Ubuntu 15.04 in an American > English locale (first attachment). It's not a thing of beauty, > admittedly, but it's legible enough. It looks much nicer under emacs > -Q, which is what counts (second attachment). That's not a question of aesthetics. 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).