all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Reiner Steib <reinersteib+gmane@imap.cc>
Subject: Re: comment-uncomment-line-or-region.el
Date: Tue, 19 Sep 2006 13:24:36 +0200	[thread overview]
Message-ID: <v9bqpcxfnv.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: eeoc28$j61$1@online.de

On Tue, Sep 19 2006, Andreas Roehler wrote:

> ;; Tries to be a quick commenting/uncommenting
> ;; facility, as it respects region - active-mark and
> ;; transient-mark-mode - but doesn't depend on them. If
> ;; on a line, wanting to comment or uncomment them,
> ;; you don't have to care if transient-mark-mode is on.

What's the advantage compared to (the do-what-I-mean behavior of)
`comment-region' [1]?  Especially when using the new temporary
transient mark mode commands in (to be) Emacs 22? [2]

[1]
,----[ `C-h k M-;' ]
| M-; runs the command comment-region
|    which is an interactive autoloaded Lisp function in `newcomment'.
| It is bound to M-;.
| (comment-region BEG END &optional ARG)
| 
| Comment or uncomment each line in the region.
| With just C-u prefix arg, uncomment each line in region BEG .. END.
| Numeric prefix ARG means use ARG comment characters.
| If ARG is negative, delete that many comment characters instead.
| By default, comments start at the left margin, are terminated on each line,
| even for syntax in which newline does not end the comment and blank lines
| do not get comments.  This can be changed with `comment-style'.
| 
| The strings used as comment starts are built from
| `comment-start' without trailing spaces and `comment-padding'.
`----

[2]
,----[ NEWS ]
| One method is to type C-SPC C-SPC; this enables Transient Mark mode
| and sets the mark at point.  The other method is to type C-u C-x C-x.
| This enables Transient Mark mode temporarily but does not alter the
| mark or the region.
| 
| After these commands, Transient Mark mode remains enabled until you
| deactivate the mark.  That typically happens when you type a command
| that alters the buffer, but you can also deactivate the mark by typing
| C-g.
`----

Bye, Reiner.
Crosspost & Followup-To: gnu.emacs.help
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/

       reply	other threads:[~2006-09-19 11:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <eeoc28$j61$1@online.de>
2006-09-19 11:24 ` Reiner Steib [this message]
2006-09-19 19:21   ` comment-uncomment-line-or-region.el Andreas Roehler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=v9bqpcxfnv.fsf@marauder.physik.uni-ulm.de \
    --to=reinersteib+gmane@imap.cc \
    --cc=Reiner.Steib@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.