From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] master c4151eb: Improve the optional translation of quotes Date: Mon, 22 Jun 2015 22:36:49 -0700 Organization: UCLA Computer Science Department Message-ID: <5588F071.7030501@cs.ucla.edu> 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> 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 1435037842 22685 80.91.229.3 (23 Jun 2015 05:37:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 23 Jun 2015 05:37:22 +0000 (UTC) To: Dmitry Gutov , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 23 07:37:13 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 1Z7GtU-00038G-7D for ged-emacs-devel@m.gmane.org; Tue, 23 Jun 2015 07:37:12 +0200 Original-Received: from localhost ([::1]:43337 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7GtT-0004xl-II for ged-emacs-devel@m.gmane.org; Tue, 23 Jun 2015 01:37:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51496) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7GtE-0004xX-LW for emacs-devel@gnu.org; Tue, 23 Jun 2015 01:36:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z7GtB-0001xA-EH for emacs-devel@gnu.org; Tue, 23 Jun 2015 01:36:56 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:40804) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7GtB-0001wx-8J for emacs-devel@gnu.org; Tue, 23 Jun 2015 01:36:53 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 518791601EA; Mon, 22 Jun 2015 22:36:50 -0700 (PDT) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id DIpMJMy8zb2W; Mon, 22 Jun 2015 22:36:49 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id A181516083C; Mon, 22 Jun 2015 22:36:49 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id hihN_snK9RTY; Mon, 22 Jun 2015 22:36:49 -0700 (PDT) Original-Received: from [192.168.1.9] (pool-100-32-155-148.lsanca.fios.verizon.net [100.32.155.148]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 827391601EA; Mon, 22 Jun 2015 22:36:49 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 In-Reply-To: <55882522.3030305@yandex.ru> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 131.179.128.68 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:187402 Archived-At: Dmitry Gutov wrote: > We need some output-independent markup that will eventually translate into > whatever presentation we choose. 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. > Please recall the suggestion to do everything via font-lock. It would also allow > us to use some different quoting mechanism other than \\=, which Stefan > complained about. Of course. Font-lock is pretty much independent of the quoting mechanism that docstrings use. 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.