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.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Leo Liu <sdl.web <at> gmail.com>
Subject: bug#14336: closed (Re: bug#14336: 24.3; Octave failed to fontify
 'str' if ' is at line-beginning)
Date: Mon, 06 May 2013 08:23:01 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#14336: 24.3; Octave failed to fontify 'str' if ' is at line-beginning

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 14336 <at> debbugs.gnu.org.

-- 
14336: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14336
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
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.

[Message part 3 (message/rfc822, inline)]
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))
 



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

Previous Next


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