all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bad C-j behavior in Emacs-Lisp mode
@ 2008-03-30 16:05 Drew Adams
  0 siblings, 0 replies; only message in thread
From: Drew Adams @ 2008-03-30 16:05 UTC (permalink / raw)
  To: bug-gnu-emacs

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'
 





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-03-30 16:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-30 16:05 bad C-j behavior in Emacs-Lisp mode Drew Adams

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.