* GNU Emacs 22.0.99.1 (i386-mingw-nt5.1.2600) of 2007-04-24: cua-mode interfers with comment-region
@ 2007-04-28 17:16 Eric Lilja
2007-04-28 18:30 ` Robert J. Chassell
2007-04-30 0:29 ` Stefan Monnier
0 siblings, 2 replies; 4+ messages in thread
From: Eric Lilja @ 2007-04-28 17:16 UTC (permalink / raw)
To: emacs-devel
Hello! Don't know if this is a bug or if this is supposed to happen, but
here it goes...
I'm using the Emacs' version mentioned in the subject.
Say I do:
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
If I try this again, but just before performing comment-region, I enable
cua-mode: M-x cua-mode, what happens after I perform comment-region is
that the minibuffer (correct name?) displays C-c- as if only the first
C-c was registered if I type C-c again the region is commented out. So
put it short, with cua-mode enabled I have to type C-c three times in a
CC-mode buffer to comment out the selected region.
I have no routine in filing bug reports, so please be gentle. I must
also admit I have little clue actually what cua-mode does, but I was
told to enable it for nxhtml.
- Eric
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: GNU Emacs 22.0.99.1 (i386-mingw-nt5.1.2600) of 2007-04-24: cua-mode interfers with comment-region
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
2007-04-30 0:29 ` Stefan Monnier
1 sibling, 1 reply; 4+ messages in thread
From: Robert J. Chassell @ 2007-04-28 18:30 UTC (permalink / raw)
To: emacs-devel, Eric Lilja
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: GNU Emacs 22.0.99.1 (i386-mingw-nt5.1.2600) of 2007-04-24: cua-mode interfers with comment-region
2007-04-28 18:30 ` Robert J. Chassell
@ 2007-04-28 18:43 ` Eric Lilja
0 siblings, 0 replies; 4+ messages in thread
From: Eric Lilja @ 2007-04-28 18:43 UTC (permalink / raw)
To: emacs-devel
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: GNU Emacs 22.0.99.1 (i386-mingw-nt5.1.2600) of 2007-04-24: cua-mode interfers with comment-region
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-30 0:29 ` Stefan Monnier
1 sibling, 0 replies; 4+ messages in thread
From: Stefan Monnier @ 2007-04-30 0:29 UTC (permalink / raw)
To: Eric Lilja; +Cc: emacs-devel
> comment-region with C-c C-c, the selection is instantly commented out
If you use transient-mark-mode, I recommend you use M-; instead of C-c C-c,
since it's supported in every mode (and it avoids the C-c issue you have
with cua-mode).
> I have no routine in filing bug reports, so please be gentle. I must also
> admit I have little clue actually what cua-mode does, but I was told to
> enable it for nxhtml.
IMNSHO No mode (such as nxhtml) should require (or even recommend) cua-mode.
If nxhtml does that, I'd report it as a bug.
Stefan
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-04-30 0:29 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2007-04-30 0:29 ` Stefan Monnier
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.