unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Mauro Aranda <maurooaranda@gmail.com>
To: 35202@debbugs.gnu.org
Subject: bug#35202: 27.0.50; Info-quoted false positives and false negatives
Date: Mon, 8 Apr 2019 20:30:19 -0300	[thread overview]
Message-ID: <CABczVwf_Axh_L58mM0spA4f=VRQtW=aVFsd8y-yQxhPYbKFEug@mail.gmail.com> (raw)
In-Reply-To: <CABczVwdQYh2D4WRhb9cdXXmOtoauDdncA0u77eK3SYfTpA+DFA@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 62 bytes --]

Tags: patch

Please, review this patch.

Best regards,
Mauro.

[-- Attachment #1.2: Type: text/html, Size: 181 bytes --]

[-- Attachment #2: 0001-Avoid-false-positives-and-false-negatives-of-Info-qu.patch --]
[-- Type: text/x-patch, Size: 985 bytes --]

From 97f666e21e8f2837369ac50efeb31ddb5e07c628 Mon Sep 17 00:00:00 2001
From: Mauro Aranda <maurooaranda@gmail.com>
Date: Mon, 8 Apr 2019 20:24:32 -0300
Subject: [PATCH] Avoid false positives and false negatives of Info-quoted face

* lisp/info.el (Info-mode-font-lock-keywords): Modify the regexp, for
matching single quotes of opening single quote and closing single
quote, and avoid matching text followed by a curly quote when it is
not quoting. (Bug#35202)
---
 lisp/info.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/info.el b/lisp/info.el
index f3b413a..268ecd8 100644
--- a/lisp/info.el
+++ b/lisp/info.el
@@ -4269,7 +4269,7 @@ Info-quoted
 ;; the former can be done much more reliably, i.e. without risking
 ;; false positives.
 (defvar Info-mode-font-lock-keywords
-  '(("‘\\([^’]*\\)’" (1 'Info-quoted))))
+  '(("‘\\([‘’]?\\|[^‘’]*\\)’" (1 'Info-quoted))))
 
 ;; Autoload cookie needed by desktop.el
 ;;;###autoload
-- 
2.7.4


  reply	other threads:[~2019-04-08 23:30 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-08 22:42 bug#35202: 27.0.50; Info-quoted false positives and false negatives Mauro Aranda
2019-04-08 23:30 ` Mauro Aranda [this message]
2019-04-09  6:18   ` Eli Zaretskii
2019-04-09 17:40     ` Mauro Aranda
2019-04-09 18:23       ` Eli Zaretskii
2019-04-11  0:19         ` Mauro Aranda
2019-04-13  8:30           ` Eli Zaretskii
2019-04-13 13:26             ` Mauro Aranda
2019-04-21 12:02               ` Eli Zaretskii
2019-04-21 14:17                 ` Mauro Aranda
2019-04-09 11:35   ` Noam Postavsky
2019-04-09 17:43     ` Mauro Aranda

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CABczVwf_Axh_L58mM0spA4f=VRQtW=aVFsd8y-yQxhPYbKFEug@mail.gmail.com' \
    --to=maurooaranda@gmail.com \
    --cc=35202@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).