From: Eric Lilja <mindcooler@gmail.com>
To: emacs-devel@gnu.org
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 [thread overview]
Message-ID: <f104l7$fa9$1@sea.gmane.org> (raw)
In-Reply-To: <m1Hhrh5-0027M2C@rattlesnake.com>
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.
next prev parent reply other threads:[~2007-04-28 18:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-28 17:16 GNU Emacs 22.0.99.1 (i386-mingw-nt5.1.2600) of 2007-04-24: cua-mode interfers with comment-region Eric Lilja
2007-04-28 18:30 ` Robert J. Chassell
2007-04-28 18:43 ` Eric Lilja [this message]
2007-04-30 0:29 ` Stefan Monnier
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='f104l7$fa9$1@sea.gmane.org' \
--to=mindcooler@gmail.com \
--cc=emacs-devel@gnu.org \
/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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).