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


Message #11 received at 16041 <at> debbugs.gnu.org (full text, mbox):

From: Ivan Andrus <darthandrus <at> gmail.com>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 16041 <at> debbugs.gnu.org
Subject: Re: 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 <at> 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))))))
> 
> 





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

Previous Next


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