From unknown Sat Jun 21 02:48:43 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#16439 <16439@debbugs.gnu.org> To: bug#16439 <16439@debbugs.gnu.org> Subject: Status: [feature request] Highlighting of strings within Info buffers Reply-To: bug#16439 <16439@debbugs.gnu.org> Date: Sat, 21 Jun 2025 09:48:43 +0000 retitle 16439 [feature request] Highlighting of strings within Info buffers reassign 16439 emacs submitter 16439 "Sebastien Vauban" severity 16439 wishlist tag 16439 wontfix thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 14 05:17:36 2014 Received: (at submit) by debbugs.gnu.org; 14 Jan 2014 10:17:36 +0000 Received: from localhost ([127.0.0.1]:49742 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W313v-0007zO-EV for submit@debbugs.gnu.org; Tue, 14 Jan 2014 05:17:35 -0500 Received: from eggs.gnu.org ([208.118.235.92]:39819) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W313t-0007zG-0a for submit@debbugs.gnu.org; Tue, 14 Jan 2014 05:17:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W313n-0002tG-BW for submit@debbugs.gnu.org; Tue, 14 Jan 2014 05:17:32 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:45864) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W313n-0002tA-1q for submit@debbugs.gnu.org; Tue, 14 Jan 2014 05:17:27 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41486) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W313i-00070a-5a for bug-gnu-emacs@gnu.org; Tue, 14 Jan 2014 05:17:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W313d-0002kN-CB for bug-gnu-emacs@gnu.org; Tue, 14 Jan 2014 05:17:22 -0500 Received: from dd5e0353a.access.telenet.be ([213.224.53.58]:44433 helo=mail.missioncriticalit.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W313d-0002k8-5X for bug-gnu-emacs@gnu.org; Tue, 14 Jan 2014 05:17:17 -0500 Received: from MUNDANEUM.i-did-not-set--mail-host-address--so-tickle-me (unknown [10.10.10.51]) by mail.missioncriticalit.com (Postfix) with ESMTPS id 58E2A500A6B for ; Tue, 14 Jan 2014 11:19:57 +0100 (CET) From: "Sebastien Vauban" To: bug-gnu-emacs@gnu.org Subject: [feature request] Highlighting of strings within Info buffers Organization: Sebastien Vauban X-Url: Under construction... X-Archive: encrypt Date: Tue, 14 Jan 2014 11:15:47 +0100 Message-ID: <86lhyic1ik.fsf@somewhere.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.3 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.3 (----) Hello, As an occasional reader of the Emacs Info files, I find that these are much more readable when the strings are highlighted: we directly see a couple of variables we should customize, or a couple of functions which we have to call. I do use Info+ to obtain http://screencast.com/t/p62ccMRqmjM: --8<---------------cut here---------------start------------->8--- (require 'info+) ;; show breadcrumbs in the header line (setq Info-breadcrumbs-in-header-flag t) ;; don't show breadcrumbs in the mode line (setq Info-breadcrumbs-in-mode-line-mode nil) --8<---------------cut here---------------end--------------->8--- But it'd be nice if the highlighting was in Emacs by default, to serve all users who don't have such a customization. Best regards, Seb -- Sebastien Vauban From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 14 09:35:00 2014 Received: (at submit) by debbugs.gnu.org; 14 Jan 2014 14:35:00 +0000 Received: from localhost ([127.0.0.1]:49856 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W3551-00087I-Hm for submit@debbugs.gnu.org; Tue, 14 Jan 2014 09:35:00 -0500 Received: from eggs.gnu.org ([208.118.235.92]:37896) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W354x-000879-Qr for submit@debbugs.gnu.org; Tue, 14 Jan 2014 09:34:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W354r-0004C4-QW for submit@debbugs.gnu.org; Tue, 14 Jan 2014 09:34:55 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:49400) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W354r-0004C0-Na for submit@debbugs.gnu.org; Tue, 14 Jan 2014 09:34:49 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39534) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W354m-0007pa-Fv for bug-gnu-emacs@gnu.org; Tue, 14 Jan 2014 09:34:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W354h-00049X-9R for bug-gnu-emacs@gnu.org; Tue, 14 Jan 2014 09:34:44 -0500 Received: from ptmx.org ([178.63.28.110]:39360) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W354h-00049Q-30 for bug-gnu-emacs@gnu.org; Tue, 14 Jan 2014 09:34:39 -0500 Received: from localhost (localhost [127.0.0.1]) by ptmx.org (Postfix) with ESMTP id D2AB024DE6; Tue, 14 Jan 2014 15:34:36 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at ptmx.org Received: from ptmx.org ([127.0.0.1]) by localhost (ptmx.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id I7HxSDPcn3iE; Tue, 14 Jan 2014 15:34:35 +0100 (CET) Received: from descartes.localnet (chello080108246092.7.14.vie.surfer.at [80.108.246.92]) by ptmx.org (Postfix) with ESMTPSA id 6C9BA2287E; Tue, 14 Jan 2014 15:34:35 +0100 (CET) From: =?ISO-8859-1?Q?R=FCdiger?= Sonderfeld To: bug-gnu-emacs@gnu.org Subject: Re: bug#16439: [feature request] Highlighting of strings within Info buffers Date: Tue, 14 Jan 2014 15:34:29 +0100 Message-ID: <1394187.cuqsIWxxGs@descartes> User-Agent: KMail/4.11.3 (Linux/3.11.0-14-generic; KDE/4.11.3; x86_64; ; ) In-Reply-To: <86lhyic1ik.fsf@somewhere.org> References: <86lhyic1ik.fsf@somewhere.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit Cc: Sebastien Vauban , 16439@debbugs.gnu.org, Drew Adams X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Hello, that feature looks very useful to me. I've just seen that info+ is dev= eloped=20 by Drew Adams (I took the liberty to CC him). Maybe he is willing to m= ove=20 info+ to GNU ELPA for now and after the feature freeze we could conside= r=20 moving it or parts of it to Info mode. http://www.emacswiki.org/emacs/info+.el Regards, R=C3=BCdiger On Tuesday 14 January 2014 11:15:47 Sebastien Vauban wrote: > Hello, >=20 > As an occasional reader of the Emacs Info files, I find that these ar= e > much more readable when the strings are highlighted: we directly see > a couple of variables we should customize, or a couple of functions > which we have to call. >=20 > I do use Info+ to obtain http://screencast.com/t/p62ccMRqmjM: >=20 > --8<---------------cut here---------------start------------->8--- > (require 'info+) >=20 > ;; show breadcrumbs in the header line > (setq Info-breadcrumbs-in-header-flag t) >=20 > ;; don't show breadcrumbs in the mode line > (setq Info-breadcrumbs-in-mode-line-mode nil) > --8<---------------cut here---------------end--------------->8--- >=20 > But it'd be nice if the highlighting was in Emacs by default, to serv= e > all users who don't have such a customization. >=20 > Best regards, > Seb From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 14 15:06:05 2014 Received: (at 16439) by debbugs.gnu.org; 14 Jan 2014 20:06:05 +0000 Received: from localhost ([127.0.0.1]:50681 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W3AFQ-0003gr-8b for submit@debbugs.gnu.org; Tue, 14 Jan 2014 15:06:04 -0500 Received: from userp1040.oracle.com ([156.151.31.81]:16585) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W3AFO-0003gj-7s for 16439@debbugs.gnu.org; Tue, 14 Jan 2014 15:06:03 -0500 Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s0EK5sOP017238 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 14 Jan 2014 20:05:55 GMT Received: from aserz7021.oracle.com (aserz7021.oracle.com [141.146.126.230]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s0EK5rJq007559 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 14 Jan 2014 20:05:54 GMT Received: from abhmp0005.oracle.com (abhmp0005.oracle.com [141.146.116.11]) by aserz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s0EK5rf4008140; Tue, 14 Jan 2014 20:05:53 GMT MIME-Version: 1.0 Message-ID: <27136a64-176c-4312-a2aa-c86e81091a76@default> Date: Tue, 14 Jan 2014 12:05:52 -0800 (PST) From: Drew Adams To: =?utf-8?B?UsO8ZGlnZXIgU29uZGVyZmVsZA==?= , bug-gnu-emacs@gnu.org Subject: RE: bug#16439: [feature request] Highlighting of strings within Info buffers References: <86lhyic1ik.fsf@somewhere.org> <1394187.cuqsIWxxGs@descartes> In-Reply-To: <1394187.cuqsIWxxGs@descartes> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6680.5000 (x86)] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-Spam-Score: -2.4 (--) X-Debbugs-Envelope-To: 16439 Cc: Sebastien Vauban , 16439@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) > that feature looks very useful to me. I've just seen that info+ is > developed by Drew Adams (I took the liberty to CC him). Maybe he is > willing to move info+ to GNU ELPA for now and after the feature freeze > we could consider moving it or parts of it to Info mode. > http://www.emacswiki.org/emacs/info+.el I have offered to GNU Emacs any or all of the info+.el code in the past - more than once. I offered the `...' and "..." highlighting as a patch a decade ago. I detailed tests on the existing manuals (Emacs and Elisp), showing which tiny minority of nodes were problematic for such highlighting because of unmatching " etc. The offer for GNU Emacs still stands, of course. But so far the response has been, "Sorry, not interested". Wrt GNU ELPA, it is not clear to me how to get code accepted and submitted there. I will not be using BZR or GIT etc. (This code, like almost all of my code, is available at MELPA, however.) I could also submit a patch again for just the `...' etc. highlighting, as an email attachment. But again, so far the answer from Emacs Dev has been no. From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 20 04:20:17 2014 Received: (at 16439) by debbugs.gnu.org; 20 Jan 2014 09:20:17 +0000 Received: from localhost ([127.0.0.1]:57573 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W5B1k-0001nH-VC for submit@debbugs.gnu.org; Mon, 20 Jan 2014 04:20:17 -0500 Received: from [69.163.184.122] (port=47153 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W5B1j-0001nA-6X for 16439@debbugs.gnu.org; Mon, 20 Jan 2014 04:20:16 -0500 Received: from localhost.jurta.org (ps18281.dreamhostps.com [69.163.184.122]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 1D5E1335BF11C5; Mon, 20 Jan 2014 01:20:13 -0800 (PST) From: Juri Linkov To: Drew Adams Subject: Re: bug#16439: [feature request] Highlighting of strings within Info buffers Organization: JURTA References: <86lhyic1ik.fsf@somewhere.org> <1394187.cuqsIWxxGs@descartes> <27136a64-176c-4312-a2aa-c86e81091a76@default> Date: Mon, 20 Jan 2014 11:18:20 +0200 In-Reply-To: <27136a64-176c-4312-a2aa-c86e81091a76@default> (Drew Adams's message of "Tue, 14 Jan 2014 12:05:52 -0800 (PST)") Message-ID: <874n4z3tb7.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: >> that feature looks very useful to me. I've just seen that info+ is >> developed by Drew Adams (I took the liberty to CC him). Maybe he is >> willing to move info+ to GNU ELPA for now and after the feature freeze >> we could consider moving it or parts of it to Info mode. >> http://www.emacswiki.org/emacs/info+.el > > I offered the `...' and "..." highlighting as a patch a decade ago. [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS X-Debbugs-Envelope-To: 16439 Cc: ruediger@c-plusplus.de, 16439@debbugs.gnu.org, sva-news@mygooglest.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: >> that feature looks very useful to me. I've just seen that info+ is >> developed by Drew Adams (I took the liberty to CC him). Maybe he is >> willing to move info+ to GNU ELPA for now and after the feature freeze >> we could consider moving it or parts of it to Info mode. >> http://www.emacswiki.org/emacs/info+.el > > I offered the `...' and "..." highlighting as a patch a decade ago. [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS >> that feature looks very useful to me. I've just seen that info+ is >> developed by Drew Adams (I took the liberty to CC him). Maybe he is >> willing to move info+ to GNU ELPA for now and after the feature freeze >> we could consider moving it or parts of it to Info mode. >> http://www.emacswiki.org/emacs/info+.el > > I offered the `...' and "..." highlighting as a patch a decade ago. The problem is how to highlight strings only in code samples because in other places highlighting "..." makes no sense. Look for example in the node (info "(emacs) Package Keywords"): Most optional features in Emacs are grouped into "packages". Should "packages" be highlighted as a string. Of course not. There is no additional emphasis on quotations in books. From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 20 09:10:32 2014 Received: (at 16439) by debbugs.gnu.org; 20 Jan 2014 14:10:32 +0000 Received: from localhost ([127.0.0.1]:57947 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W5FYd-0002Td-U3 for submit@debbugs.gnu.org; Mon, 20 Jan 2014 09:10:32 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:20300) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W5FYb-0002TU-Ih for 16439@debbugs.gnu.org; Mon, 20 Jan 2014 09:10:30 -0500 Received: from 69-165-163-162.dsl.teksavvy.com (HELO pastel.home) ([69.165.163.162]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 20 Jan 2014 09:10:28 -0500 Received: by pastel.home (Postfix, from userid 20848) id 9523A60094; Mon, 20 Jan 2014 09:10:28 -0500 (EST) From: Stefan Monnier To: Juri Linkov Subject: Re: bug#16439: [feature request] Highlighting of strings within Info buffers Message-ID: References: <86lhyic1ik.fsf@somewhere.org> <1394187.cuqsIWxxGs@descartes> <27136a64-176c-4312-a2aa-c86e81091a76@default> <874n4z3tb7.fsf@mail.jurta.org> Date: Mon, 20 Jan 2014 09:10:28 -0500 In-Reply-To: <874n4z3tb7.fsf@mail.jurta.org> (Juri Linkov's message of "Mon, 20 Jan 2014 11:18:20 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 16439 Cc: ruediger@c-plusplus.de, 16439@debbugs.gnu.org, sva-news@mygooglest.com, Drew Adams X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) > The problem is how to highlight strings only in code samples > because in other places highlighting "..." makes no sense. > Look for example in the node (info "(emacs) Package Keywords"): > Most optional features in Emacs are grouped into "packages". > Should "packages" be highlighted as a string. Of course not. > There is no additional emphasis on quotations in books. Indeed. The "right answer" is to move away from the Info format and rely on something more structured that we could render in a much more pretty way, using bold, italics, and friends. In the mean time, I use the patch below. Stefan --- lisp/info.el 2014-01-17 20:33:22 +0000 +++ lisp/info.el 2014-01-17 22:51:46 +0000 @@ -4193,5 +4192,12 @@ st) "Syntax table used in `Info-mode'.") =20 +(defface Info-quoted + '((t :family "courier")) + "Face used for quoted elements.") + +(defvar Info-mode-font-lock-keywords + '(("=E2=80=98\\([^=E2=80=99]*\\)=E2=80=99" (1 'Info-quoted)))) + ;; Autoload cookie needed by desktop.el ;;;###autoload @@ -4296,1 +4291,2 @@ + (setq-local font-lock-defaults '(Info-mode-font-lock-keywords t t)) (Info-set-mode-line) From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 20 10:17:49 2014 Received: (at 16439) by debbugs.gnu.org; 20 Jan 2014 15:17:49 +0000 Received: from localhost ([127.0.0.1]:58449 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W5Gbg-0004KK-Vs for submit@debbugs.gnu.org; Mon, 20 Jan 2014 10:17:48 -0500 Received: from mtaout23.012.net.il ([80.179.55.175]:62438) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W5Gbc-0004K6-FW for 16439@debbugs.gnu.org; Mon, 20 Jan 2014 10:17:42 -0500 Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0MZP00I00H2DWB00@a-mtaout23.012.net.il> for 16439@debbugs.gnu.org; Mon, 20 Jan 2014 17:17:38 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MZP00IZZH5ETH20@a-mtaout23.012.net.il>; Mon, 20 Jan 2014 17:17:38 +0200 (IST) Date: Mon, 20 Jan 2014 17:17:46 +0200 From: Eli Zaretskii Subject: Re: bug#16439: [feature request] Highlighting of strings within Info buffers In-reply-to: <874n4z3tb7.fsf@mail.jurta.org> X-012-Sender: halo1@inter.net.il To: Juri Linkov Message-id: <83ioteisx1.fsf@gnu.org> References: <86lhyic1ik.fsf@somewhere.org> <1394187.cuqsIWxxGs@descartes> <27136a64-176c-4312-a2aa-c86e81091a76@default> <874n4z3tb7.fsf@mail.jurta.org> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 16439 Cc: ruediger@c-plusplus.de, 16439@debbugs.gnu.org, sva-news@mygooglest.com, drew.adams@oracle.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > From: Juri Linkov > Date: Mon, 20 Jan 2014 11:18:20 +0200 > Cc: ruediger@c-plusplus.de, 16439@debbugs.gnu.org, sva-news@mygooglest.com > > > I offered the `...' and "..." highlighting as a patch a decade ago. > > The problem is how to highlight strings only in code samples > because in other places highlighting "..." makes no sense. > Look for example in the node (info "(emacs) Package Keywords"): > > Most optional features in Emacs are grouped into "packages". > > Should "packages" be highlighted as a string. Of course not. Why not? This particular example is produced from @dfn in Texinfo, which should emphasize its argument. In the printed version "packages" is typeset in slanted typeface (and without the quotes). > There is no additional emphasis on quotations in books. But we are not talking about books, are we? We are talking about Info manuals, which are mostly documentation of software. From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 20 13:06:24 2014 Received: (at 16439) by debbugs.gnu.org; 20 Jan 2014 18:06:24 +0000 Received: from localhost ([127.0.0.1]:58620 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W5JEu-0002R3-1a for submit@debbugs.gnu.org; Mon, 20 Jan 2014 13:06:24 -0500 Received: from aserp1040.oracle.com ([141.146.126.69]:29387) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W5JEs-0002Qo-Bs for 16439@debbugs.gnu.org; Mon, 20 Jan 2014 13:06:23 -0500 Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s0KI6GJE029485 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 20 Jan 2014 18:06:17 GMT Received: from aserz7021.oracle.com (aserz7021.oracle.com [141.146.126.230]) by ucsinet22.oracle.com (8.14.5+Sun/8.14.5) with ESMTP id s0KI6D8p012249 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 20 Jan 2014 18:06:14 GMT Received: from abhmp0007.oracle.com (abhmp0007.oracle.com [141.146.116.13]) by aserz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s0KI6D6T020147; Mon, 20 Jan 2014 18:06:13 GMT MIME-Version: 1.0 Message-ID: Date: Mon, 20 Jan 2014 10:06:13 -0800 (PST) From: Drew Adams To: Juri Linkov Subject: RE: bug#16439: [feature request] Highlighting of strings within Info buffers References: <86lhyic1ik.fsf@somewhere.org> <1394187.cuqsIWxxGs@descartes> <27136a64-176c-4312-a2aa-c86e81091a76@default> <874n4z3tb7.fsf@mail.jurta.org> In-Reply-To: <874n4z3tb7.fsf@mail.jurta.org> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6680.5000 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Source-IP: ucsinet22.oracle.com [156.151.31.94] X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 16439 Cc: ruediger@c-plusplus.de, 16439@debbugs.gnu.org, sva-news@mygooglest.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.9 (--) > The problem is how to highlight strings only in code samples > because in other places highlighting "..." makes no sense. > Look for example in the node (info "(emacs) Package Keywords"): >=20 > Most optional features in Emacs are grouped into "packages". >=20 > Should "packages" be highlighted as a string. Of course not. > There is no additional emphasis on quotations in books. 1. That is not "the problem", IMO. When I proposed this feature, long ago, the complaints (against even providing it optionally, via a user option) were that the highlighting is not foolproof, in that there are some cases where ` or " is not matched (e.g., ?"). For that, I tested each node of the Emacs and Elisp manuals (at the time), and I showed that that problem is very rare. And making the highlighting optional and togglable, deals quite well with that rarity - just hit a key in any of the very few nodes where the highlighting is problematic, to get rid of it. Or turn the option off in your init file if you really prefer what Emacs does now (no such highlighting). 2. Wrt the "problem" you bring up now - Sorry, I don't agree. I've used this feature for decades now, and I can assure you that it is very helpful to have all "..." highlighted. Just my opinion, obviously. It is also possible to separate the control over highlighting of `...' and "...", e.g., by either having different user options or giving the option more possible values. I have not done that in `info+.el', as I have not see the need for it. (However, I do have separate options for `...' and "...", on the one hand, and <...>, on the other.) 3. More importantly, I'm hoping that Emacs will at some point (soon) move to supporting different quoting methods for semantically different constructs, as was discussed in this bug thread: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D16292. I did not bring this up in that thread, because it had already been decided what to do in the immediate, but there are some very different uses of "..." in the Elisp and Emacs manuals. And here I am with you to some extent: "..." to represent a string is different in meaning from "..." to represent, say, the introduction of a glossary term (in-place term definition), which is yet again different from actual quotation (citation), such as the FSF's Back-Cover Text. Strings should be represented using straight " quotes, as is done currently. Actual quotations (citations) should be represented using curly double-quotes. And glossary terms should be represented using either curly double-quotes or another typographical convention (bold or italic is often used for this, but it could also be a different color or other convention). If we do ever represent these different things in different ways, instead of the single "..." notation, then your problem will disappear. 4. During the one or two days that curly single-quotes were actually used in Emacs, during the discussion of bug #16292, I adjusted `info+.el' to DTRT for that, and it worked very well. Unfortunately, the builds for that did not also affect double-quotes, so there was no test for that. But taking care of that in `info+.el' would be trivial also. I'm not knowledgable about TexInfo etc., but I would guess that the changes to support different appearances for what are now handled as "..." would also be straightforward. That is, I would expect that "..." as strings or as term definitions might already be handled differently at the TexInfo level, and are just being mapped to the same Info representation, "...". Just a guess. I see no obstacle to providing helpful highlighting to Emacs such as is provided by `info+.el', except the will of Emacs Dev. FWIW, `info+.el' also highlights <...> (controlled by a separate user option). Thus keys represented using this syntax are highlighted the same as other keys. 5. Note, BTW, that there is no real difference between "..." and `...' wrt "the problem" you cite. Look at the `Top' node of the Emacs manual, for example, and you will see this: This is the `GNU Emacs Manual', updated for That use of `...' is semantically different from its use in `forward-char' or `C-x 4 f' or `.emacs'. From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 21 03:01:11 2014 Received: (at 16439) by debbugs.gnu.org; 21 Jan 2014 08:01:12 +0000 Received: from localhost ([127.0.0.1]:58954 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W5WGl-0002Pg-AR for submit@debbugs.gnu.org; Tue, 21 Jan 2014 03:01:11 -0500 Received: from [69.163.184.122] (port=41551 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W5WGi-0002PP-FE for 16439@debbugs.gnu.org; Tue, 21 Jan 2014 03:01:09 -0500 Received: from localhost.jurta.org (ps18281.dreamhostps.com [69.163.184.122]) by ps18281.dreamhostps.com (Postfix) with ESMTP id CB796301D1E7DA; Tue, 21 Jan 2014 00:01:06 -0800 (PST) From: Juri Linkov To: Eli Zaretskii Subject: Re: bug#16439: [feature request] Highlighting of strings within Info buffers Organization: JURTA References: <86lhyic1ik.fsf@somewhere.org> <1394187.cuqsIWxxGs@descartes> <27136a64-176c-4312-a2aa-c86e81091a76@default> <874n4z3tb7.fsf@mail.jurta.org> <83ioteisx1.fsf@gnu.org> Date: Tue, 21 Jan 2014 09:54:39 +0200 In-Reply-To: <83ioteisx1.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 20 Jan 2014 17:17:46 +0200") Message-ID: <8738khzs5c.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: >> Most optional features in Emacs are grouped into "packages". >> >> Should "packages" be highlighted as a string. Of course not. > > Why not? This particular example is produced from @dfn in Texinfo, > which should emphasize its argument. In the printed version > "packages" is typeset in slanted typeface (and without the quotes). [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS X-Debbugs-Envelope-To: 16439 Cc: ruediger@c-plusplus.de, 16439@debbugs.gnu.org, sva-news@mygooglest.com, drew.adams@oracle.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: >> Most optional features in Emacs are grouped into "packages". >> >> Should "packages" be highlighted as a string. Of course not. > > Why not? This particular example is produced from @dfn in Texinfo, > which should emphasize its argument. In the printed version > "packages" is typeset in slanted typeface (and without the quotes). [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS >> Most optional features in Emacs are grouped into "packages". >> >> Should "packages" be highlighted as a string. Of course not. > > Why not? This particular example is produced from @dfn in Texinfo, > which should emphasize its argument. In the printed version > "packages" is typeset in slanted typeface (and without the quotes). It makes sense to emphasize either 1) using quotes and no additional highlighting or 2) using italic without the quotes, but not both styles (italic and quotes) at the same time. >> There is no additional emphasis on quotations in books. > > But we are not talking about books, are we? We are talking about Info > manuals, which are mostly documentation of software. Ideally, the look of on-line documentation should not differ from the printed version. How this could be achieved is a difficult question. In the comments of http://esr.ibiblio.org/?p=5211 someone suggested using Markdown for Emacs documentation, but ESR strongly disagreed. Maybe using the natively supported Org format would be better. But actually I see no much need in replacing Texinfo as the source format. As for the output format, we could try to migrate in the direction of HTML. However, HTML has its own problems (no index, slow rendering, etc.) From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 21 10:53:40 2014 Received: (at 16439) by debbugs.gnu.org; 21 Jan 2014 15:53:40 +0000 Received: from localhost ([127.0.0.1]:59791 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W5ddz-0008R3-Pa for submit@debbugs.gnu.org; Tue, 21 Jan 2014 10:53:40 -0500 Received: from mtaout28.012.net.il ([80.179.55.184]:48479) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W5ddw-0008Qq-DS for 16439@debbugs.gnu.org; Tue, 21 Jan 2014 10:53:37 -0500 Received: from conversion-daemon.mtaout28.012.net.il by mtaout28.012.net.il (HyperSendmail v2007.08) id <0MZR00000DE4LC00@mtaout28.012.net.il> for 16439@debbugs.gnu.org; Tue, 21 Jan 2014 17:54:20 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout28.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MZR00PXNDIK2S10@mtaout28.012.net.il>; Tue, 21 Jan 2014 17:54:20 +0200 (IST) Date: Tue, 21 Jan 2014 17:53:20 +0200 From: Eli Zaretskii Subject: Re: bug#16439: [feature request] Highlighting of strings within Info buffers In-reply-to: <8738khzs5c.fsf@mail.jurta.org> X-012-Sender: halo1@inter.net.il To: Juri Linkov Message-id: <83eh41gwlr.fsf@gnu.org> References: <86lhyic1ik.fsf@somewhere.org> <1394187.cuqsIWxxGs@descartes> <27136a64-176c-4312-a2aa-c86e81091a76@default> <874n4z3tb7.fsf@mail.jurta.org> <83ioteisx1.fsf@gnu.org> <8738khzs5c.fsf@mail.jurta.org> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 16439 Cc: ruediger@c-plusplus.de, 16439@debbugs.gnu.org, sva-news@mygooglest.com, drew.adams@oracle.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > From: Juri Linkov > Cc: drew.adams@oracle.com, ruediger@c-plusplus.de, 16439@debbugs.gnu.org, sva-news@mygooglest.com > Date: Tue, 21 Jan 2014 09:54:39 +0200 > > >> Most optional features in Emacs are grouped into "packages". > >> > >> Should "packages" be highlighted as a string. Of course not. > > > > Why not? This particular example is produced from @dfn in Texinfo, > > which should emphasize its argument. In the printed version > > "packages" is typeset in slanted typeface (and without the quotes). > > It makes sense to emphasize either 1) using quotes and no additional > highlighting or 2) using italic without the quotes, but not both styles > (italic and quotes) at the same time. I agree, and didn't say anything to the contrary. I told about the slant typeface as an evidence that what came out of @dfn should be emphasized in some way. > >> There is no additional emphasis on quotations in books. > > > > But we are not talking about books, are we? We are talking about Info > > manuals, which are mostly documentation of software. > > Ideally, the look of on-line documentation should not differ from > the printed version. We are not talking about ideals. > But actually I see no much need in replacing Texinfo as the source format. > As for the output format, we could try to migrate in the direction of HTML. > However, HTML has its own problems (no index, slow rendering, etc.) Indeed, and I wasn't asking to switch. This was only about emphasizing quoted strings in Info manuals. From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 22 03:10:27 2014 Received: (at 16439) by debbugs.gnu.org; 22 Jan 2014 08:10:28 +0000 Received: from localhost ([127.0.0.1]:60195 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W5stG-0002Ys-Hf for submit@debbugs.gnu.org; Wed, 22 Jan 2014 03:10:27 -0500 Received: from [69.163.184.122] (port=47853 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W5stE-0002Ye-6S for 16439@debbugs.gnu.org; Wed, 22 Jan 2014 03:10:24 -0500 Received: from localhost.jurta.org (ps18281.dreamhostps.com [69.163.184.122]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 03DB433EA0EC82; Wed, 22 Jan 2014 00:10:21 -0800 (PST) From: Juri Linkov To: Eli Zaretskii Subject: Re: bug#16439: [feature request] Highlighting of strings within Info buffers Organization: JURTA References: <86lhyic1ik.fsf@somewhere.org> <1394187.cuqsIWxxGs@descartes> <27136a64-176c-4312-a2aa-c86e81091a76@default> <874n4z3tb7.fsf@mail.jurta.org> <83ioteisx1.fsf@gnu.org> <8738khzs5c.fsf@mail.jurta.org> <83eh41gwlr.fsf@gnu.org> Date: Wed, 22 Jan 2014 10:09:19 +0200 In-Reply-To: <83eh41gwlr.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 21 Jan 2014 17:53:20 +0200") Message-ID: <87r480zbdc.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: > I agree, and didn't say anything to the contrary. I told about the > slant typeface as an evidence that what came out of @dfn should be > emphasized in some way. I don't understand the difference between using @dfn and double quotes, e.g. why in the source of the chapter "The Organization of the Screen": [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS X-Debbugs-Envelope-To: 16439 Cc: ruediger@c-plusplus.de, 16439@debbugs.gnu.org, sva-news@mygooglest.com, drew.adams@oracle.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: > I agree, and didn't say anything to the contrary. I told about the > slant typeface as an evidence that what came out of @dfn should be > emphasized in some way. I don't understand the difference between using @dfn and double quotes, e.g. why in the source of the chapter "The Organization of the Screen": [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS > I agree, and didn't say anything to the contrary. I told about the > slant typeface as an evidence that what came out of @dfn should be > emphasized in some way. I don't understand the difference between using @dfn and double quotes, e.g. why in the source of the chapter "The Organization of the Screen": The main area of the frame, below the tool bar (if one exists) and above the echo area, is called @dfn{the window}. Henceforth in this manual, we will use the word ``window'' in this sense. the different styles are used for @dfn{the window} and ``window''? But if both were written in the Info output using DOUBLE QUOTATION MARK as “window”, then in the Info browser we could emphasize such terms using the slant typeface and put invisible properties on quote characters. Then if code blocks such as e.g. in @code{("/foo" "/bar" @dots{})} were written using simple quotation marks e.g. ("/foo" "/bar" …) then it would make sense to highlight quoted strings in Info in code samples using `font-lock-string-face'. This problem doesn't exist in HTML output that keeps all different source styles unambiguous, e.g.:

The main area of the frame, below the tool bar (if one exists) and above the echo area, is called the window. Henceforth in this manual, we will use the word “window” in this sense. ("/foo" "/bar" …) where only strings in " inside makes sense to highlight using `font-lock-string-face'. From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 22 10:41:54 2014 Received: (at 16439) by debbugs.gnu.org; 22 Jan 2014 15:41:54 +0000 Received: from localhost ([127.0.0.1]:60792 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W5zwA-0007EB-58 for submit@debbugs.gnu.org; Wed, 22 Jan 2014 10:41:54 -0500 Received: from mtaout26.012.net.il ([80.179.55.182]:48897) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W5zw6-0007Dx-9a for 16439@debbugs.gnu.org; Wed, 22 Jan 2014 10:41:51 -0500 Received: from conversion-daemon.mtaout26.012.net.il by mtaout26.012.net.il (HyperSendmail v2007.08) id <0MZT00M007959R00@mtaout26.012.net.il> for 16439@debbugs.gnu.org; Wed, 22 Jan 2014 17:41:12 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout26.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MZT00G677KOD680@mtaout26.012.net.il>; Wed, 22 Jan 2014 17:41:12 +0200 (IST) Date: Wed, 22 Jan 2014 17:42:02 +0200 From: Eli Zaretskii Subject: Re: bug#16439: [feature request] Highlighting of strings within Info buffers In-reply-to: <87r480zbdc.fsf@mail.jurta.org> X-012-Sender: halo1@inter.net.il To: Juri Linkov Message-id: <83mwiof2gl.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8BIT References: <86lhyic1ik.fsf@somewhere.org> <1394187.cuqsIWxxGs@descartes> <27136a64-176c-4312-a2aa-c86e81091a76@default> <874n4z3tb7.fsf@mail.jurta.org> <83ioteisx1.fsf@gnu.org> <8738khzs5c.fsf@mail.jurta.org> <83eh41gwlr.fsf@gnu.org> <87r480zbdc.fsf@mail.jurta.org> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 16439 Cc: ruediger@c-plusplus.de, 16439@debbugs.gnu.org, sva-news@mygooglest.com, drew.adams@oracle.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > From: Juri Linkov > Cc: drew.adams@oracle.com, ruediger@c-plusplus.de, 16439@debbugs.gnu.org, sva-news@mygooglest.com > Date: Wed, 22 Jan 2014 10:09:19 +0200 > > > I agree, and didn't say anything to the contrary. I told about the > > slant typeface as an evidence that what came out of @dfn should be > > emphasized in some way. > > I don't understand the difference between using @dfn and double quotes, > e.g. why in the source of the chapter "The Organization of the Screen": > > The main area of the frame, below the tool bar (if one exists) and > above the echo area, is called @dfn{the window}. Henceforth in this > manual, we will use the word ``window'' in this sense. > > the different styles are used for @dfn{the window} and ``window''? The former is terminology, the latter is just a word. > But if both were written in the Info output using DOUBLE QUOTATION MARK > as “window”, then in the Info browser we could emphasize such terms > using the slant typeface and put invisible properties on quote characters. That should be OK, I think. > Then if code blocks such as e.g. in @code{("/foo" "/bar" @dots{})} > were written using simple quotation marks e.g. ("/foo" "/bar" …) > then it would make sense to highlight quoted strings in Info > in code samples using `font-lock-string-face'. That'd be OK as well, IMO. > This problem doesn't exist in HTML output that keeps all different source > styles unambiguous, e.g.: HTML is a markup language, Info is not. From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 18 10:03:25 2020 Received: (at 16439) by debbugs.gnu.org; 18 Sep 2020 14:03:25 +0000 Received: from localhost ([127.0.0.1]:43864 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJGyz-0000Pm-9k for submit@debbugs.gnu.org; Fri, 18 Sep 2020 10:03:25 -0400 Received: from quimby.gnus.org ([95.216.78.240]:54794) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJGyx-0000PN-E5 for 16439@debbugs.gnu.org; Fri, 18 Sep 2020 10:03:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Psrl4hrGgi7A/cGJIj7tT5rqsSKD41XDxOI3one0Gqo=; b=RPNQfYjHZv9BdXQekr1XJIcHAD uJlYrQwydrsF48kMMPviK9CsFpig35vp8R66UXv2SfHi7f7srmxM9Oe352nK/ukU06ve1VhxRrhN6 7YvbdnfgIV+0u3jTNujywLURlpT7VeCqzAbreTYbpbmDr8ZxMQvWosjwIXP5nfn3Wtr8=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kJGye-0006Zc-UB; Fri, 18 Sep 2020 16:03:09 +0200 From: Lars Ingebrigtsen To: Stefan Monnier Subject: Re: bug#16439: [feature request] Highlighting of strings within Info buffers References: <86lhyic1ik.fsf@somewhere.org> <1394187.cuqsIWxxGs@descartes> <27136a64-176c-4312-a2aa-c86e81091a76@default> <874n4z3tb7.fsf@mail.jurta.org> X-Now-Playing: Stina Nordenstam's _The World Is Saved_: "The End Of A Love Affair" Date: Fri, 18 Sep 2020 16:03:03 +0200 In-Reply-To: (Stefan Monnier's message of "Mon, 20 Jan 2014 09:10:28 -0500") Message-ID: <87a6xngp2g.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Stefan Monnier writes: >> The problem is how to highlight strings only in code samples >> because in other places highlighting "..." makes no sense. >> Look for example in the node (info "(emacs) Package Keywords"): >> Most [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 16439 Cc: Juri Linkov , ruediger@c-plusplus.de, sva-news@mygooglest.com, Drew Adams , 16439@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Stefan Monnier writes: >> The problem is how to highlight strings only in code samples >> because in other places highlighting "..." makes no sense. >> Look for example in the node (info "(emacs) Package Keywords"): >> Most optional features in Emacs are grouped into "packages". >> Should "packages" be highlighted as a string. Of course not. >> There is no additional emphasis on quotations in books. > > Indeed. The "right answer" is to move away from the Info format and > rely on something more structured that we could render in a much more > pretty way, using bold, italics, and friends. Yup. I don't think there's anything much that can be done here that won't break other examples, so I'm closing this bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 18 10:03:28 2020 Received: (at control) by debbugs.gnu.org; 18 Sep 2020 14:03:28 +0000 Received: from localhost ([127.0.0.1]:43866 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJGz2-0000Pw-JA for submit@debbugs.gnu.org; Fri, 18 Sep 2020 10:03:28 -0400 Received: from quimby.gnus.org ([95.216.78.240]:54800) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJGyy-0000PP-6Y for control@debbugs.gnu.org; Fri, 18 Sep 2020 10:03:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=LN9XNta26wZexWcHpW1fKtNVP5xlF7kA6YZC329EUfA=; b=Wz6YhY7cEStI/Kf4ehzztT9juw HwL9LXcMZUAJrCH5W8a46gnWREqZW8DwvZxJXwA2Hk0xrFF1aAn9Pz4wehFh1zcR7mIrJ7Tnyf+xq sy2xDqmizwkwi+XPlCEBuQNx5L1JTXd1FNuZbE3YaL3hbOYJvURlzW0pJWrIMR0YgyKA=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kJGyq-0006Zl-GN for control@debbugs.gnu.org; Fri, 18 Sep 2020 16:03:18 +0200 Date: Fri, 18 Sep 2020 16:03:15 +0200 Message-Id: <878sd7gp24.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #16439 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 16439 wontfix close 16439 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 16439 wontfix close 16439 quit From unknown Sat Jun 21 02:48:43 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 17 Oct 2020 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator