From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Lilja Newsgroups: gmane.emacs.devel Subject: Re: GNU Emacs 22.0.99.1 (i386-mingw-nt5.1.2600) of 2007-04-24: cua-mode interfers with comment-region Date: Sat, 28 Apr 2007 20:43:54 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1177785896 16148 80.91.229.12 (28 Apr 2007 18:44:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 28 Apr 2007 18:44:56 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 28 20:44:54 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Hhrue-0004YG-CJ for ged-emacs-devel@m.gmane.org; Sat, 28 Apr 2007 20:44:52 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hhs0d-0001xc-Ay for ged-emacs-devel@m.gmane.org; Sat, 28 Apr 2007 14:51:03 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hhs09-0001X3-Ct for emacs-devel@gnu.org; Sat, 28 Apr 2007 14:50:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hhs07-0001UN-Md for emacs-devel@gnu.org; Sat, 28 Apr 2007 14:50:33 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hhs07-0001UD-FK for emacs-devel@gnu.org; Sat, 28 Apr 2007 14:50:31 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Hhru7-0005zZ-Nv for emacs-devel@gnu.org; Sat, 28 Apr 2007 14:44:19 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Hhrts-0005Rx-DM for emacs-devel@gnu.org; Sat, 28 Apr 2007 20:44:04 +0200 Original-Received: from cust.fiber-lan.vnet.lk.85.194.49.108.stunet.se ([85.194.49.108]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 28 Apr 2007 20:44:04 +0200 Original-Received: from mindcooler by cust.fiber-lan.vnet.lk.85.194.49.108.stunet.se with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 28 Apr 2007 20:44:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 39 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: cust.fiber-lan.vnet.lk.85.194.49.108.stunet.se User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) In-Reply-To: X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:70340 Archived-At: Robert J. Chassell wrote: > emacs -Q foo.cpp& > type, for example, #include, select it with the mouse then issue > comment-region with C-c C-c, the selection is instantly commented out > > Yes. `comment-region' sees the region that you selected, as it > should, and when you invoke it, comments that region out. > > (emacs)CUA Bindings says > > The command `M-x cua-mode' sets up key bindings that are > compatible with the Common User Access (CUA) system used in many > other applications. `C-x' means cut (kill), `C-c' copy, `C-v' > paste (yank), and `C-z' undo. Standard Emacs commands like `C-x > C-c' still work, because `C-x' and `C-c' only take effect when the > mark is active (and the region is highlighted). ... > > Following your instructions, the mark is active, so C-c should mean `copy'. > Info goes on to say > > To enter an Emacs command like `C-x C-f' while the mark is active, > use one of the following methods: either hold `Shift' together > with the prefix key, e.g. `S-C-x C-f', or quickly type the prefix > key twice, e.g. `C-x C-x C-f'. > > Both `S-C-c C-c' and `C-c C-c C-c' succeed in commenting the region. > > Hello! Don't know if this is a bug or if this is supposed to > happen ... > > `comment-region' is supposed to comment a region, so this is supposed > to happen. > Umm, yes, I realise that, my question was if it's expected to require the command C-c C-c C-c to perform it instead of C-c C-c after activating cua-mode, and it seems it is expected. Thanks for your reply.