all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug in comment-region
@ 2004-06-09 13:36 Werner LEMBERG
  2004-06-09 14:01 ` Karl Chen
  0 siblings, 1 reply; 9+ messages in thread
From: Werner LEMBERG @ 2004-06-09 13:36 UTC (permalink / raw)



[CVS 2004-05-30]

Assume this:

  foo

  bar

After calling comment-region I get this:

  ;; foo

  ;; bar

(the actual comment prefix doesn't matter).

The doc string of comment-region says this:

  Comment or uncomment each line in the region.
                       ^^^^^^^^^
This is not how command-region currently works.  I really would like
to have this:

  ;; foo
  ;;
  ;; bar

In case the current behaviour is intentional, please change the
prefix arg to make the function work on all lines.

Or even better, make comment-region work as advertised:

  . A normal call comments all lines of a region.

  . A call prefixed with C-u comments only non-empty lines.  I
    strongly suggest to abandon the current behaviour of the C-u
    prefix (i.e., uncommenting a region), given that we have a
    separate `uncomment-region' function.


      Werner

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2004-06-10  9:11 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-09 13:36 bug in comment-region Werner LEMBERG
2004-06-09 14:01 ` Karl Chen
2004-06-09 14:08   ` Werner LEMBERG
2004-06-09 14:14     ` David Kastrup
2004-06-09 14:42       ` Werner LEMBERG
2004-06-09 21:09     ` Miles Bader
2004-06-09 23:06       ` Werner LEMBERG
2004-06-10  1:36         ` Miles Bader
2004-06-10  9:11         ` Karl Chen

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.