From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#20385: [PROPOSED PATCH] Support quoting 'like this' in doc strings Date: Thu, 23 Apr 2015 08:32:18 -0700 (PDT) Message-ID: <8188dbc3-0e10-4590-90ab-113798f27eda@default> References: <1429555155-4695-1-git-send-email-eggert@cs.ucla.edu> <5535974D.9050207@cs.ucla.edu> <5535C7F3.7020107@cs.ucla.edu> <83618p5y9w.fsf@gnu.org> <83vbgp49ve.fsf@gnu.org> <83pp6x45x5.fsf@gnu.org> <5536ACB3.9040707@yandex.ru> <83lhhk4phe.fsf@gnu.org> <87a8y0jmba.fsf@petton.fr> <6837d058-ba18-461b-8af6-2c4e6d767348@default> <55383081.4010106@cs.ucla.edu> <55389509.60100@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1429803212 21397 80.91.229.3 (23 Apr 2015 15:33:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 23 Apr 2015 15:33:32 +0000 (UTC) Cc: 20385@debbugs.gnu.org, Dmitry Gutov To: Paul Eggert , Nicolas Petton Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 23 17:33:19 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 1YlJ7s-0006GS-KT for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Apr 2015 17:33:16 +0200 Original-Received: from localhost ([::1]:40870 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YlJ7s-0003SD-0u for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Apr 2015 11:33:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46073) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YlJ7l-0003NS-49 for bug-gnu-emacs@gnu.org; Thu, 23 Apr 2015 11:33:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YlJ7f-0002Y5-5Q for bug-gnu-emacs@gnu.org; Thu, 23 Apr 2015 11:33:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48120) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YlJ7f-0002Y1-2i for bug-gnu-emacs@gnu.org; Thu, 23 Apr 2015 11:33:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YlJ7e-0007Eu-Eq for bug-gnu-emacs@gnu.org; Thu, 23 Apr 2015 11:33:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 23 Apr 2015 15:33: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.142980315527796 (code B ref 20385); Thu, 23 Apr 2015 15:33:02 +0000 Original-Received: (at 20385) by debbugs.gnu.org; 23 Apr 2015 15:32:35 +0000 Original-Received: from localhost ([127.0.0.1]:37896 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YlJ7D-0007EG-9t for submit@debbugs.gnu.org; Thu, 23 Apr 2015 11:32:35 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:21814) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YlJ7B-0007E3-7H for 20385@debbugs.gnu.org; Thu, 23 Apr 2015 11:32:33 -0400 Original-Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t3NFWKjJ027651 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 23 Apr 2015 15:32:20 GMT Original-Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserv0021.oracle.com (8.13.8/8.13.8) with ESMTP id t3NFWJYh019652 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Thu, 23 Apr 2015 15:32:19 GMT Original-Received: from abhmp0013.oracle.com (abhmp0013.oracle.com [141.146.116.19]) by userv0122.oracle.com (8.13.8/8.13.8) with ESMTP id t3NFWIrB006074; Thu, 23 Apr 2015 15:32:19 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6691.5000 (x86)] X-Source-IP: aserv0021.oracle.com [141.146.126.233] 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:101934 Archived-At: I said this, which is not clear: > If this were HTML or XML (or even JSON) then we would not be trying > to sacrifice one of the first two for the third. We would simply > adopt an unmistakable tag for code quoting. No doubt we do have a similarly unmistakable tag for code quoting, in TexInfo. That tag is transformed to `...' in Emacs Info. If it were transformed to =E2=80=98...=E2=80=99 instead then we would lose the distinction between= single-quoted ordinary text and quoted code. That's all. And of course in help (e.g. `C-h f') and in Emacs-Lisp comments and doc strings, there is no TexInfo representation. Users should be able to search for a code term foo and not also hit ordinary text occurrences of foo. That is approximately possible today. And it is simple today to (reasonably, if imperfectly) tell font-lock to highlight `...' occurrences (as it would be for =E2=80=98...= =E2=80=99). In some XML-based editors that provide a WSIWYG view, users can search specially for a given element (e.g. ) or one with a given attribute value, while remaining in WYSIWYG. But that is a separate search capability from regexp or simple text search in the same editors. In Emacs you can easily search for `...' occurrences and pretty much find what you are looking for.