GNU bug report logs - #14237
[PATCH] Fix syntax-propertize-multiline bug

Previous Next

Package: emacs;

Reported by: Erik Charlebois <erikcharlebois <at> gmail.com>

Date: Sun, 21 Apr 2013 06:51:02 UTC

Severity: normal

Tags: patch

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Erik Charlebois <erikcharlebois <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: [PATCH] Fix syntax-propertize-multiline bug
Date: Sun, 21 Apr 2013 02:38:00 -0400
[Message part 1 (text/plain, inline)]
Description

At least, I think it's a bug. I ran into this while adding support for
C++11 raw strings to cc-mode.

syntax-propertize-multiline seeks backward for the first position without a
'syntax-multiline text property, but searches forward for
'font-lock-multiline. For a span of text marked 'syntax-multiline, the new
end returned from syntax-propertize-multiline will not be the end of the
multiline text.


Changelog

2013-04-21  Erik Charlebois  <erikcharlebois <at> gmail.com>

* emacs-lisp/syntax.el (syntax-propertize-multiline):
Use 'syntax-multiline text property instead of 'font-lock-multiline.
[Message part 2 (text/html, inline)]
[syntax-multiline.txt (text/plain, attachment)]

This bug report was last modified 12 years and 87 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.