bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#16041: 24.3.50; Comment causes different indentation with SMIE


From: Stefan Monnier
Subject: bug#16041: 24.3.50; Comment causes different indentation with SMIE
Date: Wed, 11 Dec 2013 11:01:06 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

> 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))))))
 






reply via email to

[Prev in Thread] Current Thread [Next in Thread]