GNU bug report logs - #101
bad C-j behavior in Emacs-Lisp mode

Previous Next

Package: emacs;

Reported by: "Drew Adams" <drew.adams <at> oracle.com>

Date: Sun, 30 Mar 2008 22:15:06 UTC

Severity: normal

Tags: wontfix

Done: Lars Magne Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Chong Yidong <cyd <at> stupidchicken.com>
To: "Drew Adams" <drew.adams <at> oracle.com>
Cc: 101 <at> debbugs.gnu.org
Subject: bug#101: bad C-j behavior in Emacs-Lisp mode
Date: Mon, 05 May 2008 23:05:10 -0400
Tags: wontfix

> In Emacs-Lisp mode, put cursor after (bar m) and hit C-j.
> 
> (if (string= foo "a")
>     (bar m) ; Comment
> 
> The cursor is put after the semicolon. It should be put before it,
> ready for you to type the second "then" clause of the `if'.

The behavior is correct, since C-j performs a newline followed by an
indent.  In Emacs Lisp mode, single-semicolon comments are indented to
comment-column, which as a default value of 40.




This bug report was last modified 13 years and 314 days ago.

Previous Next


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