GNU bug report logs - #17345
24.4.50; some into clauses in cl-loop badly font-locked

Previous Next

Package: emacs;

Reported by: Thierry Volpiatto <thierry.volpiatto <at> gmail.com>

Date: Fri, 25 Apr 2014 06:59:02 UTC

Severity: minor

Found in version 24.4.50

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Thierry Volpiatto <thierry.volpiatto <at> gmail.com>
Cc: 17345 <at> debbugs.gnu.org
Subject: bug#17345: 24.4.50; some into clauses in cl-loop badly font-locked
Date: Thu, 01 May 2014 12:13:21 -0400
> Yes probably but the last paren before "into" should not be highlighted IMO.

Makes sense, indeed.  I installed the patch below which should do that.
Do you find it resolves this bug report satisfactorily?


        Stefan


=== modified file 'lisp/emacs-lisp/lisp-mode.el'
--- lisp/emacs-lisp/lisp-mode.el	2014-04-25 16:11:07 +0000
+++ lisp/emacs-lisp/lisp-mode.el	2014-05-01 16:11:59 +0000
@@ -163,8 +163,9 @@
         (let ((ppss (parse-partial-sexp (line-beginning-position)
                                         (line-end-position)
                                         -1)))
+          (skip-syntax-forward " )")
           (if (or (>= (car ppss) 0)
-                  (looking-at "[]) \t]*\\(;\\|$\\)"))
+                  (looking-at ";\\|$"))
               (progn
                 (forward-line 1)
                 (< (point) limit))





This bug report was last modified 11 years and 21 days ago.

Previous Next


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