From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Dave Sumsky Newsgroups: gmane.emacs.help Subject: How to set shortcut for uncomment-region?!? Date: Wed, 8 Jan 2003 15:08:31 GMT Organization: unknown Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1042038934 20333 80.91.224.249 (8 Jan 2003 15:15:34 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 8 Jan 2003 15:15:34 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18WHvZ-0005Hp-00 for ; Wed, 08 Jan 2003 16:15:33 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18WHvX-0006w1-04 for gnu-help-gnu-emacs@m.gmane.org; Wed, 08 Jan 2003 10:15:31 -0500 Original-Newsgroups: gnu.emacs.help Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!syros.belnet.be!news.belnet.be!news-FFM2.ecrc.net!news.cesnet.cz!crax.cesnet.cz!news.vutbr.cz!news.muni.cz!news User-Agent: Mozilla/5.0 (X11; U; Linux i686; cs-CZ; rv:1.2) Gecko/20021203 X-Nntp-Posting-Host: wireless-209.fi.muni.cz X-Accept-Language: cs, en-us, en Original-Lines: 24 Original-Xref: shelby.stanford.edu gnu.emacs.help:108733 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:5262 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:5262 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