unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: JS <d44sf@44ada.com>
Subject: Re: How to change keys for uncomment (C-u C-c C-c)?
Date: Fri, 22 Apr 2005 10:22:55 +0200	[thread overview]
Message-ID: <d4ac5t$9he$1@news.net.uni-c.dk> (raw)
In-Reply-To: 87acnrrik8.fsf@robotron.ath.cx

David Hansen wrote:

> On Thu, 21 Apr 2005 21:55:27 +0200 JS wrote:
> 
>> I have just tried C-h k M-; and it gives me:
>>
>>
>> M-, runs the command tags-loop-continue
> 
> [...]
> 
>> On my keyboard I get ";" by pressing Shift-,
>>
>> If I try to press M-shift-,  nothing happens.
> 
> And with C-h k before "M-shift-," (Holding down Alt *and* shift
> and then ",")?
> 
> Anyway, that's probably not a convenient key binding. You may as
> well try:
> 
>         (global-set-key "\M-," 'comment-region)
> 
> or get an US Keyboard ;)
> 
> David

When I do C-h k followed by "M-shift-," I get this:


M-; runs the command comment-dwim
   which is an interactive compiled Lisp function in `newcomment'.
(comment-dwim ARG)

Call the comment command you want (Do What I Mean).
If the region is active and `transient-mark-mode' is on, call
  `comment-region' (unless it only consists of comments, in which
  case it calls `uncomment-region').
Else, if the current line is empty, insert a comment and indent it.
Else if a prefix ARG is specified, call `comment-kill'.
Else, call `comment-indent'.


So I guess it should work. I have some commented text that I select with the
mouse. The I press "M-Shift-," but nothing happens.

I have then changed the value for transistent-mark-mode to "on" and now it
seems to work, but now everything gets painted in yellow when I use
-space...but I guess it ok.

  parent reply	other threads:[~2005-04-22  8:22 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-21 15:03 How to change keys for uncomment (C-u C-c C-c)? JS
2005-04-21 15:30 ` David Hansen
2005-04-21 18:45   ` JS
2005-04-21 19:01     ` David Hansen
2005-04-21 19:17       ` JS
2005-04-21 19:26         ` David Hansen
2005-04-21 19:55           ` JS
2005-04-21 20:17             ` David Hansen
2005-04-21 20:35               ` David Hansen
2005-04-22  8:34                 ` JS
2005-04-22 14:48                   ` Mathias Dahl
2005-04-22  8:22               ` JS [this message]
2005-04-21 15:58 ` Kevin Rodgers
     [not found] ` <mailman.2427.1114099287.2895.help-gnu-emacs@gnu.org>
2005-04-21 18:51   ` JS
2005-04-21 20:09     ` rgb
2005-04-21 20:32     ` Kevin Rodgers
2005-04-22 14:53     ` Mathias Dahl
2005-04-22 18:07       ` Alan Mackenzie

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to='d4ac5t$9he$1@news.net.uni-c.dk' \
    --to=d44sf@44ada.com \
    /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.
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).