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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 14237 in the body.
You can then email your comments to 14237 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#14237; Package emacs. (Sun, 21 Apr 2013 06:51:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Erik Charlebois <erikcharlebois <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 21 Apr 2013 06:51:06 GMT) Full text and rfc822 format available.

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)]

Reply sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
You have taken responsibility. (Mon, 22 Apr 2013 14:17:02 GMT) Full text and rfc822 format available.

Notification sent to Erik Charlebois <erikcharlebois <at> gmail.com>:
bug acknowledged by developer. (Mon, 22 Apr 2013 14:17:03 GMT) Full text and rfc822 format available.

Message #10 received at 14237-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Erik Charlebois <erikcharlebois <at> gmail.com>
Cc: 14237-done <at> debbugs.gnu.org
Subject: Re: bug#14237: [PATCH] Fix syntax-propertize-multiline bug
Date: Mon, 22 Apr 2013 10:11:50 -0400
> -  (when (get-text-property end 'font-lock-multiline)
> +  (when (get-text-property end 'syntax-multiline)

Duh!  Yes, thank you very much for catching this.
Installed in the `emacs-24' branch.  And sorry for the copy&paste error.


        Stefan




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 21 May 2013 11:24:04 GMT) Full text and rfc822 format available.

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

Previous Next


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