From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Robert J. Chassell" 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 18:30:51 +0000 (UTC) Message-ID: References: Reply-To: bob@rattlesnake.com NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1177785071 13627 80.91.229.12 (28 Apr 2007 18:31:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 28 Apr 2007 18:31:11 +0000 (UTC) To: emacs-devel@gnu.org, Eric Lilja Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 28 20:31:07 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 1HhrhK-0007Jc-RQ for ged-emacs-devel@m.gmane.org; Sat, 28 Apr 2007 20:31:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HhrnJ-0003D8-Og for ged-emacs-devel@m.gmane.org; Sat, 28 Apr 2007 14:37:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HhrnG-0003CW-3V for emacs-devel@gnu.org; Sat, 28 Apr 2007 14:37:14 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HhrnD-0003CD-2B for emacs-devel@gnu.org; Sat, 28 Apr 2007 14:37:13 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HhrnC-0003CA-TL for emacs-devel@gnu.org; Sat, 28 Apr 2007 14:37:10 -0400 Original-Received: from cpe-69-205-32-54.nycap.res.rr.com ([69.205.32.54] helo=rattlesnake.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HhrhD-0004bM-98 for emacs-devel@gnu.org; Sat, 28 Apr 2007 14:30:59 -0400 Original-Received: by rattlesnake.com via sendmail from stdin id (Debian Smail3.2.0.115) Sat, 28 Apr 2007 18:30:51 +0000 (UTC) In-reply-to: (message from Eric Lilja on Sat, 28 Apr 2007 19:16:06 +0200) X-detected-kernel: Linux 2.4-2.6 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:70334 Archived-At: 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. -- Robert J. Chassell GnuPG Key ID: 004B4AC8 bob@rattlesnake.com bob@gnu.org http://www.rattlesnake.com http://www.teak.cc