[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#16041: 24.3.50; Comment causes different indentation with SMIE
From: |
Ivan Andrus |
Subject: |
bug#16041: 24.3.50; Comment causes different indentation with SMIE |
Date: |
Thu, 12 Dec 2013 18:43:53 -0700 |
That fixes the problem for me. Thanks!
-Ivan
On Dec 11, 2013, at 9:01 AM, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
>> 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))))))
>
>