GNU bug report logs - #16041
24.3.50; Comment causes different indentation with SMIE

Previous Next

Package: emacs;

Reported by: Ivan Andrus <darthandrus <at> gmail.com>

Date: Tue, 3 Dec 2013 16:13:02 UTC

Severity: normal

Found in version 24.3.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: Ivan Andrus <darthandrus <at> gmail.com>
Cc: 16041 <at> debbugs.gnu.org
Subject: bug#16041: 24.3.50; Comment causes different indentation with SMIE
Date: Wed, 11 Dec 2013 11:01:06 -0500
> I am creating a major mode using SMIE for indentation.  The following
> should indent the same, but they don't:

Indeed, that was a bug in smie.el.
I installed the patch below which should fix it,


        Stefan


--- lisp/emacs-lisp/smie.el	2013-11-04 20:45:36 +0000
+++ lisp/emacs-lisp/smie.el	2013-12-11 15:56:47 +0000
@@ -1165,7 +1165,7 @@
 		    (forward-char 1))
                (skip-chars-forward " \t")
                (or (eolp)
-                   (and (looking-at comment-start-skip)
+                   (and ;; (looking-at comment-start-skip)
                         (forward-comment (point-max))))
                (point))))))
 





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

Previous Next


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