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>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#14336: closed (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 message dated Mon, 06 May 2013 16:21:46 +0800
with message-id <m1vc6w34dh.fsf <at> gmail.com>
and subject line Re: bug#14336: 24.3; Octave failed to fontify 'str' if ' is at line-beginning
has caused the debbugs.gnu.org bug report #14336,
regarding 24.3; Octave failed to fontify 'str' if ' is at line-beginning
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> 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: 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))
 


[Message part 3 (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.


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.