unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* bad comment indentation in Emacs Lisp
@ 2008-02-05 23:10 Drew Adams
  2008-02-10 18:42 ` Richard Stallman
  0 siblings, 1 reply; 10+ messages in thread
From: Drew Adams @ 2008-02-05 23:10 UTC (permalink / raw)
  To: emacs-pretest-bug

Put this in Emacs Lisp mode and use `C-M-q' at the beginning:
 
(let (;; foobar
      ;; toto
      (titi...)))
 
You get this:
 
(let ( ;; foobar
      ;; toto
      (titi...)))
 
However, if you just use TAB on each line, you don't get that.
 
To me, this is a bug.  `;;' comments should be aligned just as
TAB would align them, always.  `C-M-q' should be equivalent to
using both TAB and `M-;' on each line of the sexp.

Also, in a situation like the preceding, it is likely that you
want the two comments to line up.

In GNU Emacs 22.1.90.1 (i386-mingw-nt5.1.2600)
 of 2008-01-30 on PRETEST
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] 10+ messages in thread

end of thread, other threads:[~2008-02-11 13:34 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-05 23:10 bad comment indentation in Emacs Lisp Drew Adams
2008-02-10 18:42 ` Richard Stallman
2008-02-10 19:42   ` Stefan Monnier
2008-02-10 22:38     ` Drew Adams
2008-02-10 23:09       ` Stefan Monnier
2008-02-11  1:29         ` Drew Adams
2008-02-11  2:22           ` Stefan Monnier
2008-02-11  2:29             ` Drew Adams
2008-02-11  2:41             ` Miles Bader
2008-02-11 13:34     ` Richard Stallman

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).