GNU bug report logs - #12267
24.2; sh-indent-comment bad default

Previous Next

Package: emacs;

Reported by: Leo <sdl.web <at> gmail.com>

Date: Fri, 24 Aug 2012 03:39:02 UTC

Severity: normal

Found in version 24.2

Done: Leo <sdl.web <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 12267 in the body.
You can then email your comments to 12267 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#12267; Package emacs. (Fri, 24 Aug 2012 03:39:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Leo <sdl.web <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 24 Aug 2012 03:39:02 GMT) Full text and rfc822 format available.

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

From: Leo <sdl.web <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.2; sh-indent-comment bad default
Date: Fri, 24 Aug 2012 11:37:25 +0800
--------------------------------
#!/bin/bash

function x() {
  #
    abc='a'
}
--------------------------------

Put the snippet in a sh-mode buffer and try indenting the comment line
(line 4). The default prohibits indenting any comment lines which
contradicts behaviour in all other modes. Thus I propose changing the
default value of sh-indent-comment to t to be consistent with other
modes.

I no one objects I will make the change in next days.

Leo




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12267; Package emacs. (Fri, 24 Aug 2012 15:35:01 GMT) Full text and rfc822 format available.

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

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Leo <sdl.web <at> gmail.com>
Cc: 12267 <at> debbugs.gnu.org
Subject: Re: bug#12267: 24.2; sh-indent-comment bad default
Date: Fri, 24 Aug 2012 11:34:12 -0400
BTW, have you tried (setq sh-use-smie t)?


        Stefan




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12267; Package emacs. (Sat, 25 Aug 2012 01:35:01 GMT) Full text and rfc822 format available.

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

From: Leo <sdl.web <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#12267: 24.2; sh-indent-comment bad default
Date: Sat, 25 Aug 2012 09:33:53 +0800
On 2012-08-24 23:34 +0800, Stefan Monnier wrote:
> BTW, have you tried (setq sh-use-smie t)?

Not yet because I am stuck with 24.2.

Leo





Reply sent to Leo <sdl.web <at> gmail.com>:
You have taken responsibility. (Mon, 27 Aug 2012 10:56:01 GMT) Full text and rfc822 format available.

Notification sent to Leo <sdl.web <at> gmail.com>:
bug acknowledged by developer. (Mon, 27 Aug 2012 10:56:01 GMT) Full text and rfc822 format available.

Message #16 received at 12267-done <at> debbugs.gnu.org (full text, mbox):

From: Leo <sdl.web <at> gmail.com>
To: 12267-done <at> debbugs.gnu.org
Subject: Re: bug#12267: 24.2; sh-indent-comment bad default
Date: Mon, 27 Aug 2012 18:54:00 +0800
Fixed in emacs-24




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 24 Sep 2012 11:24:04 GMT) Full text and rfc822 format available.

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

Previous Next


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