GNU bug report logs -
#7077
24.0.50; mouse-drag-copy-region - name should say copy as kill
Previous Next
Reported by: "Drew Adams" <drew.adams <at> oracle.com>
Date: Mon, 20 Sep 2010 20:38:02 UTC
Severity: minor
Found in version 24.0.50
Done: Chong Yidong <cyd <at> stupidchicken.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 7077 in the body.
You can then email your comments to 7077 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7077
; Package
emacs
.
(Mon, 20 Sep 2010 20:38:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
"Drew Adams" <drew.adams <at> oracle.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Mon, 20 Sep 2010 20:38:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
emacs -Q
The name does not say anything about copying to the kill ring. The name
should, like `kill-ring-save' and `copy-region-as-kill', say that this
copies to the kill ring.
Suggestion: `mouse-drag-copy-region-as-kill' or
`mouse-drag-kill-ring-save'.
In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600)
of 2010-09-20 on 3249CTO
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (4.4) --no-opt --cflags
-Ic:/imagesupport/include'
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7077
; Package
emacs
.
(Sat, 02 Jul 2011 14:32:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 7077 <at> debbugs.gnu.org (full text, mbox):
"Drew Adams" <drew.adams <at> oracle.com> writes:
> The name does not say anything about copying to the kill ring. The name
> should, like `kill-ring-save' and `copy-region-as-kill', say that this
> copies to the kill ring.
>
> Suggestion: `mouse-drag-copy-region-as-kill' or
> `mouse-drag-kill-ring-save'.
I think that sounds reasonable, but, on the other hand, is it really
necessary for all these functions to mention "kill" in the function
name? It seems intuitive (to me) that `mouse-drag-copy-region' puts
stuff in the kill ring -- what else would it do?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7077
; Package
emacs
.
(Sat, 02 Jul 2011 15:47:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 7077 <at> debbugs.gnu.org (full text, mbox):
> > The name does not say anything about copying to the kill
> > ring. The name should, like `kill-ring-save' and
> > `copy-region-as-kill', say that this copies to the kill ring.
> >
> > Suggestion: `mouse-drag-copy-region-as-kill' or
> > `mouse-drag-kill-ring-save'.
>
> I think that sounds reasonable, but, on the other hand, is it really
> necessary for all these functions to mention "kill" in the function
> name? It seems intuitive (to me) that `mouse-drag-copy-region' puts
> stuff in the kill ring -- what else would it do?
1. "Copy" can mean a couple different things. One misunderstanding might be to
copy the region to another location in a buffer - a la copy + paste.
2. It's helpful for Emacs to be consistent and put important Emacs terms into
command names that involve them.
In particular, this makes it easy to find them using things like `apropos'.
This principle is at least as old as the Unix `apropos' command and similar. We
generally try to have Emacs commands that deal with buffer use `buffer' in the
name; those that deal with files use `file'; with yanking use `yank', etc.
It is not so obvious, especially to a newbie, that `mouse-drag-copy-region'
copies to the `kill-ring'. Especially now that there are multiple copy-target
thingies such as the clipboard, paste buffer, interprogram XYZ, etc. (I don't
know the correct names).
In the beginning Emacs had only the `kill-ring' for copying and pasting, but
even in that context it would be helpful for a command such as this to have a
name similar to `kill-ring-save' and `copy-region-as-kill', suggesting that it
copies to the kill ring.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7077
; Package
emacs
.
(Sun, 03 Jul 2011 14:03:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 7077 <at> debbugs.gnu.org (full text, mbox):
"Drew Adams" <drew.adams <at> oracle.com> writes:
>> I think that sounds reasonable, but, on the other hand, is it really
>> necessary for all these functions to mention "kill" in the function
>> name? It seems intuitive (to me) that `mouse-drag-copy-region' puts
>> stuff in the kill ring -- what else would it do?
>
> 1. "Copy" can mean a couple different things. One misunderstanding
> might be to copy the region to another location in a buffer - a la
> copy + paste.
>
> 2. It's helpful for Emacs to be consistent and put important Emacs
> terms into command names that involve them.
That's true, but I'm not sure that this consistency is worth renaming
user-visible customisation variables just to be that consistent.
I was confused -- I thought `mouse-drag-copy-region' was a function, but
it's a variable, which makes renaming even more of a problem, in my
opinion.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7077
; Package
emacs
.
(Sun, 03 Jul 2011 14:24:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 7077 <at> debbugs.gnu.org (full text, mbox):
> That's true, but I'm not sure that this consistency is worth renaming
> user-visible customisation variables just to be that consistent.
>
> I was confused -- I thought `mouse-drag-copy-region' was a
> function, but it's a variable, which makes renaming even more
> of a problem, in my opinion.
Option names are important, including for finding the options in the first
place. We have a mechanism for renaming: create an alias and declare the old
name deprecated/obsolete. Nothing new here.
The old name will anyway live on for a while (past experience shows that it will
be quite a while). But even just the existence of the alias (a better name)
will mean that users will more easily find and recognize this option for what it
is. That's regardless of the deprecation; the alias is the improvement.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7077
; Package
emacs
.
(Sun, 03 Jul 2011 18:39:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 7077 <at> debbugs.gnu.org (full text, mbox):
"Drew Adams" <drew.adams <at> oracle.com> writes:
> Option names are important, including for finding the options in the
> first place. We have a mechanism for renaming: create an alias and
> declare the old name deprecated/obsolete. Nothing new here.
The improvement is too marginal to justify a rename + obsolete
declaration.
bug closed, send any further explanations to
7077 <at> debbugs.gnu.org and "Drew Adams" <drew.adams <at> oracle.com>
Request was from
Chong Yidong <cyd <at> stupidchicken.com>
to
control <at> debbugs.gnu.org
.
(Sun, 03 Jul 2011 18:40:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 01 Aug 2011 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 13 years and 329 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.