GNU bug report logs - #14336
24.3; Octave failed to fontify 'str' if ' is at line-beginning

Previous Next

Package: emacs;

Reported by: Leo Liu <sdl.web <at> gmail.com>

Date: Thu, 2 May 2013 21:19:01 UTC

Severity: normal

Found in version 24.3

Done: Leo Liu <sdl.web <at> gmail.com>

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 14336 in the body.
You can then email your comments to 14336 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#14336; Package emacs. (Thu, 02 May 2013 21:19:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Leo Liu <sdl.web <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 02 May 2013 21:19:02 GMT) Full text and rfc822 format available.

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

From: Leo Liu <sdl.web <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3; Octave failed to fontify 'str' if ' is at line-beginning
Date: Fri, 03 May 2013 05:17:29 +0800
As reported in this post:

http://article.gmane.org/gmane.comp.gnu.octave.general/48005

'abc'

is not fontified if ' is at line beginning.


I have installed the following fix:

diff --git a/lisp/progmodes/octave.el b/lisp/progmodes/octave.el
index a58fdefb..3c9efad9 100644
--- a/lisp/progmodes/octave.el
+++ b/lisp/progmodes/octave.el
@@ -131,7 +131,7 @@ (defun octave-syntax-propertize-function (start end)
   (octave-syntax-propertize-sqs end)
   (funcall (syntax-propertize-rules
             ;; Try to distinguish the string-quotes from the transpose-quotes.
-            ("[[({,; ]\\('\\)"
+            ("\\(?:^\\|[[({,; ]\\)\\('\\)"
              (1 (prog1 "\"'" (octave-syntax-propertize-sqs end)))))
            (point) end))
 




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14336; Package emacs. (Mon, 06 May 2013 07:47:02 GMT) Full text and rfc822 format available.

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

From: Glenn Morris <rgm <at> gnu.org>
To: Leo Liu <sdl.web <at> gmail.com>
Cc: 14336 <at> debbugs.gnu.org
Subject: Re: bug#14336: 24.3;
	Octave failed to fontify 'str' if ' is at line-beginning
Date: Mon, 06 May 2013 03:45:12 -0400
Leo Liu wrote:

> I have installed the following fix:

I guess you opened this to get a bug number to refer to, which is fine,
but why not also immediately close it?




Reply sent to Leo Liu <sdl.web <at> gmail.com>:
You have taken responsibility. (Mon, 06 May 2013 08:23:01 GMT) Full text and rfc822 format available.

Notification sent to Leo Liu <sdl.web <at> gmail.com>:
bug acknowledged by developer. (Mon, 06 May 2013 08:23:01 GMT) Full text and rfc822 format available.

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

From: Leo Liu <sdl.web <at> gmail.com>
To: 14336-done <at> debbugs.gnu.org
Subject: Re: bug#14336: 24.3;
	Octave failed to fontify 'str' if ' is at line-beginning
Date: Mon, 06 May 2013 16:21:46 +0800
Fixed in trunk.




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

This bug report was last modified 10 years and 339 days ago.

Previous Next


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