Received: (at 28091) by debbugs.gnu.org; 20 Aug 2017 21:16:47 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Aug 20 17:16:47 2017 Received: from localhost ([127.0.0.1]:47019 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1djXaR-0002ZK-2H for submit <at> debbugs.gnu.org; Sun, 20 Aug 2017 17:16:47 -0400 Received: from eggs.gnu.org ([208.118.235.92]:51579) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <arash@HIDDEN>) id 1djXaP-0002Z7-4g for 28091 <at> debbugs.gnu.org; Sun, 20 Aug 2017 17:16:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <arash@HIDDEN>) id 1djXaG-0004uy-Pj for 28091 <at> debbugs.gnu.org; Sun, 20 Aug 2017 17:16:39 -0400 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,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:44707) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <arash@HIDDEN>) id 1djXaG-0004uh-MO; Sun, 20 Aug 2017 17:16:36 -0400 Received: from p5b326ad9.dip0.t-ipconnect.de ([91.50.106.217]:58065 helo=MUTANT) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from <arash@HIDDEN>) id 1djXaG-000637-6Q; Sun, 20 Aug 2017 17:16:36 -0400 From: Arash Esbati <arash@HIDDEN> To: Ilya Zakharevich <nospam-abuse@HIDDEN> Subject: Re: bug#28091: 11.90.0; [PATCH] Fontification of ``this", and interaction with 'composition References: <20170815001021.qi6cwo67tl2evtmj@HIDDEN> Date: Sun, 20 Aug 2017 23:15:04 +0200 In-Reply-To: <20170815001021.qi6cwo67tl2evtmj@HIDDEN> (Ilya Zakharevich's message of "Mon, 14 Aug 2017 17:10:21 -0700") Message-ID: <86shgmkkkn.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 28091 Cc: 28091 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -5.0 (-----) Ilya Zakharevich <nospam-abuse@HIDDEN> writes: > a) The highlighting of ``this" is wrong (does not stop at the > finishing quote). Hi Ilya, thanks for looking into this and the patch. For the first part, I have tendencies to keep the current state as " will give you different results depending on font encoding, example: --8<---------------cut here---------------start------------->8--- \documentclass{article} \usepackage[OT1,T1]{fontenc} \usepackage[utf8]{inputenc} \setlength{\parindent}{0pt} \begin{document} The highlighting of ``this" is wrong \\ The highlighting of ``this'' is wrong and \fontencoding{OT1}\selectfont The highlighting of ``this" is wrong \\ The highlighting of ``this'' is wrong \end{document} --8<---------------cut here---------------end--------------->8--- Run this file with pdflatex: With T1 encoding, " in .tex file gives " in your output file. '' results in =E2=80=9D. So to be on the safe side, I t= hink '' is the way to go for Right Double Quotation Mark. > b) Handling of super/subscripts is not compatible with 'composition; > e.g., with > latex-pretty-symbols.el > or https://stackoverflow.com/questions/22937393/emacs-lisp-prettify-sy= mbols-mode-for-latex?rq=3D1 > > The patch is appended. I don't use this feature so I can't tell. Others? Best, Arash
bug-auctex@HIDDEN
:bug#28091
; Package auctex
.
Full text available.Received: (at submit) by debbugs.gnu.org; 15 Aug 2017 00:10:49 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Aug 14 20:10:49 2017 Received: from localhost ([127.0.0.1]:37519 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1dhPRZ-00027O-CE for submit <at> debbugs.gnu.org; Mon, 14 Aug 2017 20:10:49 -0400 Received: from eggs.gnu.org ([208.118.235.92]:51076) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <nospam-abuse@HIDDEN>) id 1dhPRY-00027H-C0 for submit <at> debbugs.gnu.org; Mon, 14 Aug 2017 20:10:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <nospam-abuse@HIDDEN>) id 1dhPRR-0004SZ-Ne for submit <at> debbugs.gnu.org; Mon, 14 Aug 2017 20:10:43 -0400 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,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:48800) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <nospam-abuse@HIDDEN>) id 1dhPRR-0004SI-Ij for submit <at> debbugs.gnu.org; Mon, 14 Aug 2017 20:10:41 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42029) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <nospam-abuse@HIDDEN>) id 1dhPRN-0003lE-R0 for bug-auctex@HIDDEN; Mon, 14 Aug 2017 20:10:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <nospam-abuse@HIDDEN>) id 1dhPRK-0004FK-H0 for bug-auctex@HIDDEN; Mon, 14 Aug 2017 20:10:37 -0400 Received: from nm17-vm1.bullet.mail.bf1.yahoo.com ([98.139.213.55]:53426) by eggs.gnu.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from <nospam-abuse@HIDDEN>) id 1dhPRK-0003wt-AT for bug-auctex@HIDDEN; Mon, 14 Aug 2017 20:10:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1502755823; bh=c8w7JjvTN32wvCfNpPcytdbmOxyQEKIlxdaCn//m79Q=; h=Date:From:To:Subject:From:Subject; b=pWaYgk2/66WZzDo2GIHYgxtKTM7d0OYKov66C7pXbIr07dW+NqCys4nIvOUAXI1Ph3TJoPlO8/sF/unYWPU8NCYp/usx9a4vjTPI5uGK0ec4cUN5Y73iOkDbhxHgsYb7KQ0du3NK166sMT4AaafiAA//51fcINX7ttEaQm3P/hXwmN0ATgI9sjni58iLyjg/ZOOEJjWFkwFGZ8D9Z0oUBTtx1ZoaQM54/C/faHtGv5IiKINio+QfHlFlXi8AguRSl2ytDtb7+kHjwSjvBU/yMBucp9caP+Y4CGb8xIJiHcQmfIOr9jqmJ9II0rP0CHd3knussepMAQMMnH4ZEE205w== Received: from [98.139.215.141] by nm17.bullet.mail.bf1.yahoo.com with NNFMP; 15 Aug 2017 00:10:23 -0000 Received: from [68.142.230.64] by tm12.bullet.mail.bf1.yahoo.com with NNFMP; 15 Aug 2017 00:10:23 -0000 Received: from [127.0.0.1] by smtp221.mail.bf1.yahoo.com with NNFMP; 15 Aug 2017 00:10:23 -0000 X-Yahoo-Newman-Id: 108123.27323.bm@HIDDEN X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: BnUJUXkVM1lPoMYed.86xCVzr3t.r0Jh4jKPBFLku4UW0.a IOaQFgbNbfUe_9G73szlJmTxMyAxX4JcLh88YbVGz0BbppZVgfAKeUgjJTRy OOkT_G3jMY7NwChNit5cQBSGYbkTMDYF2fBsSSDM4Fd0O0A2GKX_IYI6t_vr J1DUYKhkSzKMQ6fIBdgumH3r.l5TgnIpdtznGcu7lInzMGIN71HEeSqUgTgp Cm7r0riFh9FHw5rA0tCk2P8M96ZAP3tHtSZ5vBwHV55PLNUMiID3HOrmQM4L 89M8x.vgDdBrqp78a8_3g9x.wsRYPUfustGJU6d0Tfmy2yy7zrDnQM44maLk fSlB58xkLkNx.LuJtnS_Qei8oYNcp.kf3gclVN4HNpzUH85_LNxYOX.wptNo km89K7yIef48BjnKF9ipB2qZ7jpV6G34cG1ZVzUTwHeVkT3WWVoKZK4F1oPk NTNBQxbc9RTIZNhDm0wHR0RZf49AzpA0sOaF_qjhtjEnBCWKxxmwUrYbvb_A FCD8UxdFcSzMa4SuUzzqVaOq5bRw3mdXmigFbrE2j.X22702Omh8zMveG3fv _Dy8PKaOmZZZeK4Ikh1o07SRCn83l9Y.qgNQR1H4o14hXPCI- X-Yahoo-SMTP: oLSY3dWswBBqoBVzCkLl_RIsw6heKMxu8wpEbARv1SU- Date: Mon, 14 Aug 2017 17:10:21 -0700 From: Ilya Zakharevich <nospam-abuse@HIDDEN> To: bug-auctex@HIDDEN Subject: 11.90.0; [PATCH] Fontification of ``this", and interaction with 'composition Message-ID: <20170815001021.qi6cwo67tl2evtmj@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: NeoMutt/20170113 (1.7.2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -5.0 (-----) a) The highlighting of ``this" is wrong (does not stop at the finishing quote). b) Handling of super/subscripts is not compatible with 'composition; e.g., with latex-pretty-symbols.el or https://stackoverflow.com/questions/22937393/emacs-lisp-prettify-symbols-mode-for-latex?rq=1 The patch is appended. Enjoy, Ilya Emacs : GNU Emacs 25.1.1 (i686-w64-mingw32) of 2016-09-17 Package: 11.90.0 current state: ============== (setq AUCTeX-date "2017-01-11" window-system 'w32 LaTeX-version "2e" TeX-style-path '("~/.emacs.d/auctex" "c:/Users/Vera/AppData/Roaming/.emacs.d/elpa/auctex-11.90.0/style" "c:/Users/Vera/AppData/Roaming/.emacs.d/auctex/auto" "c:/Users/Vera/AppData/Roaming/.emacs.d/auctex/style" "auto" "style") TeX-auto-save nil TeX-parse-self nil TeX-master t TeX-command-list '(("TeX" "%(PDF)%(tex) %(file-line-error) %(extraopts) %`%S%(PDFout)%(mode)%' %t" TeX-run-TeX nil (plain-tex-mode ams-tex-mode texinfo-mode) :help "Run plain TeX") ("LaTeX" "%`%l%(mode)%' %t" TeX-run-TeX nil (latex-mode doctex-mode) :help "Run LaTeX") ("Makeinfo" "makeinfo %(extraopts) %t" TeX-run-compile nil (texinfo-mode) :help "Run Makeinfo with Info output") ("Makeinfo HTML" "makeinfo %(extraopts) --html %t" TeX-run-compile nil (texinfo-mode) :help "Run Makeinfo with HTML output") ("AmSTeX" "amstex %(PDFout) %(extraopts) %`%S%(mode)%' %t" TeX-run-TeX nil (ams-tex-mode) :help "Run AMSTeX") ("ConTeXt" "%(cntxcom) --once --texutil %(extraopts) %(execopts)%t" TeX-run-TeX nil (context-mode) :help "Run ConTeXt once") ("ConTeXt Full" "%(cntxcom) %(extraopts) %(execopts)%t" TeX-run-TeX nil (context-mode) :help "Run ConTeXt until completion") ("BibTeX" "bibtex %s" TeX-run-BibTeX nil t :help "Run BibTeX") ("Biber" "biber %s" TeX-run-Biber nil t :help "Run Biber") ("View" "%V" TeX-run-discard-or-function t t :help "Run Viewer") ("Print" "%p" TeX-run-command t t :help "Print the file") ("Queue" "%q" TeX-run-background nil t :help "View the printer queue" :visible TeX-queue-command) ("File" "%(o?)dvips %d -o %f " TeX-run-dvips t t :help "Generate PostScript file") ("Dvips" "%(o?)dvips %d -o %f " TeX-run-dvips nil t :help "Convert DVI file to PostScript") ("Dvipdfmx" "dvipdfmx %d" TeX-run-dvipdfmx nil t :help "Convert DVI file to PDF with dvipdfmx") ("Ps2pdf" "ps2pdf %f" TeX-run-ps2pdf nil t :help "Convert PostScript file to PDF") ("Index" "makeindex %s" TeX-run-index nil t :help "Run makeindex to create index file") ("Xindy" "texindy %s" TeX-run-command nil t :help "Run xindy to create index file") ("Check" "lacheck %s" TeX-run-compile nil (latex-mode) :help "Check LaTeX file for correctness") ("ChkTeX" "chktex -v6 %s" TeX-run-compile nil (latex-mode) :help "Check LaTeX file for common mistakes") ("Spell" "(TeX-ispell-document \"\")" TeX-run-function nil t :help "Spell-check the document") ("Clean" "TeX-clean" TeX-run-function nil t :help "Delete generated intermediate files") ("Clean All" "(TeX-clean t)" TeX-run-function nil t :help "Delete generated intermediate and output files") ("Other" "" TeX-run-command t t :help "Run an arbitrary command") ) ) --- font-latex.el-pre 2017-01-25 16:22:26.647520000 -0800 +++ font-latex.el 2017-08-13 21:54:42.256744000 -0700 @@ -1895,6 +1895,8 @@ set to french, and >>german<< (and 8-bit (nest-count 0) (point-of-surrender (+ beg font-latex-multiline-boundary))) ;; Find closing quote taking nested quotes into account. + (if (equal closing-quote "''") + (setq closing-quote "''\\|\"")) (while (progn (re-search-forward (concat opening-quote "\\|" closing-quote) @@ -1957,7 +1959,8 @@ END marks boundaries for searching for q "Match subscript and superscript patterns up to LIMIT." (when (and font-latex-fontify-script (re-search-forward "[_^] *\\([^\n\\{}]\\|\ -\\\\\\([a-zA-Z@]+\\|[^ \t\n]\\)\\|\\({\\)\\)" limit t)) +\\\\\\([a-zA-Z@]+\\|[^ \t\n]\\)\\|\\({\\)\\)" limit t) + (not (get-text-property (match-beginning 0) 'composition))) (if (and (not (memq font-latex-fontify-script '(multi-level invisible))) (font-latex-faces-present-p '(font-latex-subscript-face font-latex-superscript-face))) @@ -1981,6 +1984,7 @@ END marks boundaries for searching for q (defun font-latex-match-script-chars (limit) "Match subscript and superscript chars up to LIMIT." (and (re-search-forward "[^_^]\\([_^]\\)" limit t) + (not (get-text-property (match-beginning 1) 'composition)) (let ((pos (match-beginning 1))) (and (font-latex-faces-present-p 'font-latex-math-face pos) (not (font-latex-faces-present-p '(font-lock-constant-face
Ilya Zakharevich <nospam-abuse@HIDDEN>
:bug-auctex@HIDDEN
.
Full text available.bug-auctex@HIDDEN
:bug#28091
; Package auctex
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.