unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Dave Sumsky <xsumsky@fi.muni.cz>
Subject: How to set shortcut for uncomment-region?!?
Date: Wed, 8 Jan 2003 15:08:31 GMT	[thread overview]
Message-ID: <H8EHw9.E1B@news.muni.cz> (raw)

Hi,
I'm using GNU Emacs version 21.2.1 and  I have a problem with  shortcut
for uncomment-region function in c++-mode, in my .emacs file I have:

;; shorcut for comment region
(global-unset-key "\C-c\C-c")
(global-set-key  "\C-c\C-c" 'comment-region)

;; shortcut for uncomment region
(global-unset-key "\C-c\C-u")
(global-set-key "\C-c\C-u" 'uncomment-region)


Now, what is going wrong. Shortcut for comment region is working fine,
but for uncomment region isn't. When I edit a C/C++ source file, I'm in
c++-mode, and then when I try to uncomment a commented region with 
shortcut \C-c\C-u,
I receive this message in echo area: No containing preprocessor conditional

So, could you help me with it? Does anybody know how to do correctly
what I want?
Thanks for any suggestions, Dave

             reply	other threads:[~2003-01-08 15:08 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-08 15:08 Dave Sumsky [this message]
2003-01-08 15:18 ` How to set shortcut for uncomment-region?!? Galen Boyer
2003-01-08 17:11   ` Dave Sumsky
2003-01-08 17:34     ` Galen Boyer
2003-01-08 18:49       ` Henrik Enberg
2003-01-08 19:16         ` Galen Boyer
2003-01-13 20:06 ` Dave Sumsky
2003-01-14 10:48   ` Kester Clegg
2003-01-14 12:47     ` Thomas Traub
  -- strict thread matches above, loose matches on Subject: below --
2003-01-08 17:57 Moore, Mathew L

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=H8EHw9.E1B@news.muni.cz \
    --to=xsumsky@fi.muni.cz \
    /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).