From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] master c4151eb: Improve the optional translation of quotes Date: Tue, 23 Jun 2015 13:55:41 +0300 Message-ID: <55893B2D.40506@yandex.ru> References: <20150619073901.5856.32718@vcs.savannah.gnu.org> <55870BD2.6040706@yandex.ru> <558716E9.30903@cs.ucla.edu> <55871721.5060709@yandex.ru> <55871883.7080600@cs.ucla.edu> <55871E96.2020506@yandex.ru> <558722C0.5040702@cs.ucla.edu> <55874E55.4020501@yandex.ru> <5587B029.5000503@cs.ucla.edu> <55882522.3030305@yandex.ru> <5588F071.7030501@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 1435057006 30878 80.91.229.3 (23 Jun 2015 10:56:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 23 Jun 2015 10:56:46 +0000 (UTC) To: Paul Eggert , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 23 12:56:32 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 1Z7Ls8-00033Y-QH for ged-emacs-devel@m.gmane.org; Tue, 23 Jun 2015 12:56:08 +0200 Original-Received: from localhost ([::1]:44523 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7Ls3-0005Am-BQ for ged-emacs-devel@m.gmane.org; Tue, 23 Jun 2015 06:56:03 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58972) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7Lrz-0005AW-Ns for emacs-devel@gnu.org; Tue, 23 Jun 2015 06:56:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z7Lru-0001Vk-VJ for emacs-devel@gnu.org; Tue, 23 Jun 2015 06:55:59 -0400 Original-Received: from mail-wi0-x233.google.com ([2a00:1450:400c:c05::233]:36955) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7Lru-0001PD-IR for emacs-devel@gnu.org; Tue, 23 Jun 2015 06:55:54 -0400 Original-Received: by wicgi11 with SMTP id gi11so12757693wic.0 for ; Tue, 23 Jun 2015 03:55:44 -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=2zwYNqxsaqZRHTE0dcXZRvMD+hsVWAFyNh8IE3dBpYA=; b=EVkyEoX5+OFrwsuddhFUhThX+TkHiL/TT5R5lKfJFclv4t2UtMGNrwim/jR361p7gZ 6IoQUmyrU+sFwNpnTTQNbFFT9lOUpB0Ksr3gdnIFN+9Rl5RdU4OOxdLeypAJsXUh2Pg/ wofCDoIPQ0lTL9I7R0BfxnqgsZQiwQHf535TZmx5Zy5d9O5vgcj5XzJB956e5SeVrfrd UYiyx1JNKk04XCX559SZfAMu3Fn24zKXXEkuq4SAkiup/WVi0zJx7lHyTRLEL1q6RNnT 2pUNrZ9Cj1r204MJAyCcyama7A6jTyT4lgQsn9dpp7WSmffWEfkMZpaXwx45u4U0IjA3 IhsA== X-Received: by 10.180.9.7 with SMTP id v7mr2337209wia.60.1435056944689; Tue, 23 Jun 2015 03:55:44 -0700 (PDT) Original-Received: from [192.168.1.2] ([82.102.93.54]) by mx.google.com with ESMTPSA id ha4sm21375861wib.0.2015.06.23.03.55.43 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Jun 2015 03:55:44 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0 In-Reply-To: <5588F071.7030501@cs.ucla.edu> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::233 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:187405 Archived-At: On 06/23/2015 08:36 AM, Paul Eggert wrote: > Yes, and we have that now. The simplest way to use it is to use the > same curved quotes in input as in output, but we can add more complex > ways as needed. It may look easiest, but I wouldn't call it "simplest". It would be better to have a clear separation between the input and output. If you don't like the `' quotes so much, why not borrow a quoting method from some other popular markup language, like tildes from org? For the other options, see "fixed width text" in http://hyperpolyglot.org/lightweight-markup. > Of course. Font-lock is pretty much independent of the quoting > mechanism that docstrings use. That's not true. For better results, font-lock will need to handle the escaping and quote conversion. Otherwise, it won't know whether a given character was escaped in the docstring, or was present there verbatim. > For example, if we decide to support > only backslash escapes to quote in docstrings (yuck!), we could get that > to work with font-lock; or if we decide to support only curved quotes to > quote in docstrings (too aggressive, if you ask me), we could get that > to work with font-lock too. > > When I tried font-lock mode in this area I came away baffled (see > Bug#20385 Message#289, and Bug#20613), so I don't know how well it'd > really work in practice for this problem. It is a poorly documented > area, unfortunately. I gave you a recipe for a fix in http://debbugs.gnu.org/cgi/bugreport.cgi?bug=20385#292, and it worked fine for me locally. (I thought I've also sent a patch, but apparently not). So if you had trouble applying that, maybe you should've asked for the proper patch instead of rushing the other way.