GNU bug report logs -
#101
bad C-j behavior in Emacs-Lisp mode
Previous Next
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.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 101 in the body.
You can then email your comments to 101 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#101
; Package
emacs
.
Full text and
rfc822 format available.
Acknowledgement sent to
"Drew Adams" <drew.adams <at> oracle.com>
:
New bug report received and forwarded. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
Full text and
rfc822 format available.
Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):
emacs -Q
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'.
This is what happens (with the cursor at |):
(if (string= foo "a")
(bar m)
;| Comment
This behavior would be better:
(if (string= foo "a")
(bar m)
| ; Comment
It doesn't make sense for the cursor to move from outside to
inside the comment.
In GNU Emacs 22.1.1 (i386-mingw-nt5.1.2600)
of 2007-06-02 on RELEASE
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4) --cflags -Ic:/gnuwin32/include'
Information forwarded to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#101
; Package
emacs
.
Full text and
rfc822 format available.
Acknowledgement sent to
Chong Yidong <cyd <at> stupidchicken.com>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
Full text and
rfc822 format available.
Message #10 received at 101 <at> emacsbugs.donarmstrong.com (full text, mbox):
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.
Tags added: wontfix
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> emacsbugs.donarmstrong.com
.
(Tue, 01 Jul 2008 00:20:03 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
101 <at> debbugs.gnu.org and "Drew Adams" <drew.adams <at> oracle.com>
Request was from
Lars Magne Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Sat, 16 Jul 2011 21:20:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 14 Aug 2011 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 13 years and 313 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.