all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* RE: How to set shortcut for uncomment-region?!?
@ 2003-01-08 17:57 Moore, Mathew L
  0 siblings, 0 replies; 10+ messages in thread
From: Moore, Mathew L @ 2003-01-08 17:57 UTC (permalink / raw)


I thought M-; will comment-region/uncomment-region, as long as there is an
active region?  It does on mine, anyway, and I don't have anything special
set up for this in my .emacs.

Please let me know if this isn't the standard behavior.

--Matt

> -----Original Message-----
> From: Dave Sumsky [mailto:xsumsky@fi.muni.cz] 
> Sent: Wednesday, January 08, 2003 12:11
> To: help-gnu-emacs@gnu.org
> Subject: Re: How to set shortcut for uncomment-region?!?
> Importance: High
> 
> 
> Galen Boyer wrote:
> > Doesn't M-; do this for you, both commenting and uncommenting?
> No, I need to comment, uncomment region
> 
> _______________________________________________
> Help-gnu-emacs mailing list
> Help-gnu-emacs@gnu.org
> http://mail.gnu.org/mailman/listinfo/help-gnu-emacs
> 

^ permalink raw reply	[flat|nested] 10+ messages in thread
* How to set shortcut for uncomment-region?!?
@ 2003-01-08 15:08 Dave Sumsky
  2003-01-08 15:18 ` Galen Boyer
  2003-01-13 20:06 ` Dave Sumsky
  0 siblings, 2 replies; 10+ messages in thread
From: Dave Sumsky @ 2003-01-08 15:08 UTC (permalink / 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

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

end of thread, other threads:[~2003-01-14 12:47 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-08 17:57 How to set shortcut for uncomment-region?!? Moore, Mathew L
  -- strict thread matches above, loose matches on Subject: below --
2003-01-08 15:08 Dave Sumsky
2003-01-08 15:18 ` 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

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.