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

From: Stefan Monnier <[email-masked]>
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))))))