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: Fri, 15 May 2015 20:24:00 +0300 Message-ID: <55562BB0.2010605@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> <55547DC6.3090509@yandex.ru> <5555A4ED.8090500@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 1431710723 14349 80.91.229.3 (15 May 2015 17:25:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 15 May 2015 17:25:23 +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 Fri May 15 19:25:14 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 1YtJMH-0000Q4-4e for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 May 2015 19:25:13 +0200 Original-Received: from localhost ([::1]:60731 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YtJMG-0000Ie-F0 for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 May 2015 13:25:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40446) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YtJMB-0000DX-0N for bug-gnu-emacs@gnu.org; Fri, 15 May 2015 13:25:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YtJM6-0005Z8-Iw for bug-gnu-emacs@gnu.org; Fri, 15 May 2015 13:25:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36477) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YtJM6-0005Yq-GZ for bug-gnu-emacs@gnu.org; Fri, 15 May 2015 13:25:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YtJM6-0003v8-7V for bug-gnu-emacs@gnu.org; Fri, 15 May 2015 13:25: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: Fri, 15 May 2015 17:25: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.143171065215002 (code B ref 20385); Fri, 15 May 2015 17:25:02 +0000 Original-Received: (at 20385) by debbugs.gnu.org; 15 May 2015 17:24:12 +0000 Original-Received: from localhost ([127.0.0.1]:46452 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YtJLH-0003tt-H1 for submit@debbugs.gnu.org; Fri, 15 May 2015 13:24:11 -0400 Original-Received: from mail-wi0-f177.google.com ([209.85.212.177]:36747) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YtJLF-0003tg-9H for 20385@debbugs.gnu.org; Fri, 15 May 2015 13:24:09 -0400 Original-Received: by wizk4 with SMTP id k4so295869351wiz.1 for <20385@debbugs.gnu.org>; Fri, 15 May 2015 10:24:03 -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=S3Vll1sbUKHmjWXXhjjpRtgeL5lyKRGzQC9Ik/Piu1Q=; b=VeRoxvKoRRu+OjGtAJghiwWPu8ZPR8GQyvo8O/GJzH8OOFUNvFlpQdjrnsWd/Wp5o4 0OnTxMzir+AvxWVsxLfwtXepLiyU7ZabF0eZ3fqHr/Y+AT2LuLCn8yp+aZdAw63c7zmr o0YqAIvOMTp+Tz8gnk+aVEQwhA+NVHhIv9oDGpmPudsHfQR7QkisynHBF+xbn0qJoIOd O6funnpxOQtnmZeChIQcSTvmALd3W+x+Dtd9Gu8Op/m4rDOnjL5nK7O1uuCVO+LBWzJm Lvqyc/8BvsQiS//bBlkGx55HPItqNIUL9YyeTw/9GQgv3sGCMOz64Ov7QRidSlI9ovGl f26Q== X-Received: by 10.194.79.9 with SMTP id f9mr20606933wjx.20.1431710643678; Fri, 15 May 2015 10:24:03 -0700 (PDT) Original-Received: from [192.168.1.2] ([82.102.93.54]) by mx.google.com with ESMTPSA id k2sm3891456wix.4.2015.05.15.10.24.02 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 May 2015 10:24:03 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0 In-Reply-To: <5555A4ED.8090500@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:102836 Archived-At: On 05/15/2015 10:49 AM, Paul Eggert wrote: > No, in locales where UTF-8 is allowed these packages typically use > curved quotes. Here are GCC and coreutils in my (UTF-8) locale: On the other hand, you'll be able to dynamically determine which quotes to use, depending e.g. on the locale. > $ echo @ >t.c > $ gcc t.c > t.c:1:1: error: stray ‘@’ in program It still doesn't have the fancy quotes directly in the source code: they seem to be generated dynamically, similarly to the suggestion above: https://github.com/gcc-mirror/gcc/blob/06fa1266fac43778983b3925ad048748297db38c/gcc/c-family/c-lex.c#L526 > Sure, but that's more complicated as it'd mean two ways to generate > curved quotes. Neither of those should be particularly hard to implement. > Another way to put it: we'd still need an easy way for > users to type curved quotes in strings and once we have that (as per the > Bug#20545 patch) I don't see why we'd still need that, but the patch seems generally useful either way. > then why not prefer the same easy way to type curved > quotes in doc strings? Two reasons. Neither of them is big, but the improvement from the transition to different quoting method is not huge either. - Using unicode for markup is a complication (e.g. with certain mail clients, but some other instances might come up). - I don't like having two standards for quoting. And if quotes are agumented with font-lock, all the existing Elisp out there will be displayed with modern quotes automatically.