* C-x SPC : rectangle-mark-mode or gud-break?
@ 2013-12-19 19:48 Michael Welsh Duggan
2013-12-19 21:41 ` Drew Adams
2014-01-15 18:33 ` Stefan Monnier
0 siblings, 2 replies; 14+ messages in thread
From: Michael Welsh Duggan @ 2013-12-19 19:48 UTC (permalink / raw)
To: emacs-devel
I know I am opening up a can of worms here, but I am going to argue that
`C-x SPC' be changed back to `gud-break'. I've tried using the current
system for a couple of weeks now, and my fingers still automatically go
to `C-x SPC' instead of `C-x C-a C-b'.
I must admit to wondering why more people on this list aren't
experiencing this as well. Do people not run gdb from within Emacs? Do
they tend to use the toolbar to set breakpoints? I'm don't get very
upset when new features are turned on by default in new versions of
Emacs, but I find myself annoyed when long-lived keybindings that I use
frequently are overwritten by functionality that (at least in my case)
is much less common. Emacs is a programmers' editor, isn't it?
Now, please note that I do know how to rebind keys, and have re-bound
`C-x SPC' in my .emacs to that which I expect. And my frustration with
this new rebinding isn't directed at anyone in particular. It's just
frustration. (And I have a co-worker who I know is going to go
ballistic once he types `C-x SPC' in the next version of Emacs and the
unexpected happens.)
If `C-x SPC' remains as `rectangle-mark-mode', please make sure that it
gets mentioned in the NEWS such that a search for some combination of
"gud", "gdb", and "breakpoint" will find the change, along with the `C-x
C-a C-b' binding. Also please make sure the documentation for
`gud-break' in the "Commands of GUD" node of the manual gets updated.
(Currently it doesn't even mention the `C-x C-a C-b' binding.)
--
Michael Welsh Duggan
(md5i@md5i.com)
^ permalink raw reply [flat|nested] 14+ messages in thread
* RE: C-x SPC : rectangle-mark-mode or gud-break?
2013-12-19 19:48 C-x SPC : rectangle-mark-mode or gud-break? Michael Welsh Duggan
@ 2013-12-19 21:41 ` Drew Adams
2013-12-20 0:12 ` Michael Welsh Duggan
2014-01-15 18:33 ` Stefan Monnier
1 sibling, 1 reply; 14+ messages in thread
From: Drew Adams @ 2013-12-19 21:41 UTC (permalink / raw)
To: Michael Welsh Duggan, emacs-devel
> I know I am opening up a can of worms here, but I am going to argue that
> `C-x SPC' be changed back to `gud-break'.
1. `gud-break' should never have been given a global binding on prefix
`C-x'. It is fine for it to have a binding on `gud-key-prefix', i.e.,
`C-x C-a'. Why does it need a global binding? And if it really does,
for some reason, why sacrifice such an important global prefix key as
`C-x' for it?
2. `C-x SPC' should never have been given as a global key binding to
`rectangle-mark-mode'.
`C-x SPC' should be left UNbound. If and when a library or Emacs itself
binds `C-x SPC', there should be good reasons for that. Other things
being equal, if bound, `C-x SPC' should be used as a prefix key, letting
users take advantage of `C-x SPC SPC SPC...' for a repeatable command.
There is no good reason (none) to bind `C-x SPC' to `rectangle-mark-mode'
in the global map. That command should have been put on prefix key
`C-x r', like the other rectangle commands. `C-x' is far too precious
to waste on this.
AFAICT, not one argument was ever given in favor of binding `C-x SPC'
to `rectangle-mark-mode'. The only real support for it was this
non-argument from Eli: "`C-x SPC' is available", followed by "Why is
everybody ignoring the `C-x SPC' suggestion?"
And all objections to this binding, including the reasons given
against, were simply ignored. The only replies to the objections were
messages in support of the objections - also ignored.
http://lists.gnu.org/archive/html/emacs-devel/2013-11/msg00046.html
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: C-x SPC : rectangle-mark-mode or gud-break?
2013-12-19 21:41 ` Drew Adams
@ 2013-12-20 0:12 ` Michael Welsh Duggan
2013-12-20 1:56 ` Drew Adams
0 siblings, 1 reply; 14+ messages in thread
From: Michael Welsh Duggan @ 2013-12-20 0:12 UTC (permalink / raw)
To: Drew Adams; +Cc: Michael Welsh Duggan, emacs-devel
Drew Adams <drew.adams@oracle.com> writes:
>> I know I am opening up a can of worms here, but I am going to argue that
>> `C-x SPC' be changed back to `gud-break'.
>
> 1. `gud-break' should never have been given a global binding on prefix
> `C-x'. It is fine for it to have a binding on `gud-key-prefix', i.e.,
> `C-x C-a'. Why does it need a global binding? And if it really does,
> for some reason, why sacrifice such an important global prefix key as
> `C-x' for it?
Nothing other than the fact that the keybinding has been around since at
least Emacs 18.58 (the first version I regularly used). It's had a lot
of time for people to get used to it.
--
Michael Welsh Duggan
(md5i@md5i.com)
^ permalink raw reply [flat|nested] 14+ messages in thread
* RE: C-x SPC : rectangle-mark-mode or gud-break?
2013-12-20 0:12 ` Michael Welsh Duggan
@ 2013-12-20 1:56 ` Drew Adams
2013-12-20 2:34 ` Stephen J. Turnbull
0 siblings, 1 reply; 14+ messages in thread
From: Drew Adams @ 2013-12-20 1:56 UTC (permalink / raw)
To: Michael Welsh Duggan; +Cc: emacs-devel
> >> I know I am opening up a can of worms here, but I am going to argue that
> >> `C-x SPC' be changed back to `gud-break'.
> >
> > 1. `gud-break' should never have been given a global binding on prefix
> > `C-x'. It is fine for it to have a binding on `gud-key-prefix', i.e.,
> > `C-x C-a'. Why does it need a global binding? And if it really does,
> > for some reason, why sacrifice such an important global prefix key as
> > `C-x' for it?
>
> Nothing other than the fact that the keybinding has been around since at
> least Emacs 18.58 (the first version I regularly used).
Not all bad decisions are recent. ;-)
More seriously, whether or not it might have made some sense to spend
a global keymap key on this in the 1980s, it does not make sense to do
that now, IMO. What's wrong with using `gud-key-prefix' as the prefix
key for this?
> It's had a lot of time for people to get used to it.
And?
^ permalink raw reply [flat|nested] 14+ messages in thread
* RE: C-x SPC : rectangle-mark-mode or gud-break?
2013-12-20 1:56 ` Drew Adams
@ 2013-12-20 2:34 ` Stephen J. Turnbull
2013-12-20 3:35 ` Drew Adams
0 siblings, 1 reply; 14+ messages in thread
From: Stephen J. Turnbull @ 2013-12-20 2:34 UTC (permalink / raw)
To: Drew Adams; +Cc: Michael Welsh Duggan, emacs-devel
Drew Adams writes:
> > It's had a lot of time for people to get used to it.
>
> And?
History matters, Drew. AFAIK you don't prefer the current binding to
a rectangle function, but want the key sequence left for future use.
"Reserved for future use" is not really on the table here, given a
twenty-year history for one of the bindings. Not everybody is going
to upgrade to the latest and greatest Emacs (eg, about 50% each of two
different corporate samples I've seen, both over 200 users, used
Emacsen released more than 5 years before the dates of the surveys),
but they do sometimes share others' Emacsen.
At least in my experience debugging sessions are more likely to end up
"hands on" than coding sessions; this is a binding that matters.
^ permalink raw reply [flat|nested] 14+ messages in thread
* RE: C-x SPC : rectangle-mark-mode or gud-break?
2013-12-20 2:34 ` Stephen J. Turnbull
@ 2013-12-20 3:35 ` Drew Adams
2013-12-20 5:07 ` Stephen J. Turnbull
0 siblings, 1 reply; 14+ messages in thread
From: Drew Adams @ 2013-12-20 3:35 UTC (permalink / raw)
To: Stephen J. Turnbull; +Cc: Michael Welsh Duggan, emacs-devel
> > > It's had a lot of time for people to get used to it.
> > And?
>
> History matters, Drew.
Pretty vague platitude. So does chocolate matter.
Emacs Dev can decide whatever it wants for `C-x SPC'.
> AFAIK you don't prefer the current binding to
> a rectangle function, but want the key sequence left for future use.
Too narrow.
What I suggested was to unbind it by default, for now. That means that
it would be open for libraries to use (and of course for users), and
it would be open for future default use by Emacs. NOT only the latter.
> "Reserved for future use" is not really on the table here, given a
> twenty-year history for one of the bindings.
(Not just for future use.)
And yes, that can be on the table if Emacs Dev wants it on the table.
Gud has its own prefix key. Why not use it for this command too?
> Not everybody is going to upgrade to the latest and greatest Emacs...,
> but they do sometimes share others' Emacsen.
Sure, I'm susceptible to that argument.
It is the reason, for instance, that I would prefer that we not swap
`C-j' and `RET': I use multiple Emacs versions everyday, and I prefer
to use those two keys the same way for each Emacs version. And thank
goodness there is an easy way to keep the traditional `C-j' and `RET'
behavior.
But that inconvenience for me and my muscle memory did not prevent
Emacs Dev from swapping the two keys. Same thing here.
Nothing prevents someone from binding `C-x SPC' to the same gud
command s?he has enjoyed since the 80s. Freeing up the key makes
sense for all users, libraries, and future default use by Emacs.
It is a handy key. What a shame to waste it on just setting a
gud breakpoint. That's all. There's no reason we cannot
reconsider this decades-old default global key binding.
But you are right that the other point here is also important:
put that rectangle command on the rectangle-commands prefix key.
Don't waste `C-x SPC' on it either.
^ permalink raw reply [flat|nested] 14+ messages in thread
* RE: C-x SPC : rectangle-mark-mode or gud-break?
2013-12-20 3:35 ` Drew Adams
@ 2013-12-20 5:07 ` Stephen J. Turnbull
0 siblings, 0 replies; 14+ messages in thread
From: Stephen J. Turnbull @ 2013-12-20 5:07 UTC (permalink / raw)
To: Drew Adams; +Cc: Michael Welsh Duggan, emacs-devel
Drew Adams writes:
> > History matters, Drew.
>
> Pretty vague platitude. So does chocolate matter.
Sure, and Richard wants a pony^Wwordprocessor. It's only vague here
to you; I'm sure everybody else reading my post understood exactly
what I meant.
> Emacs Dev can decide whatever it wants for `C-x SPC'.
Of course it can; what I (and M. Duggan) are suggesting is that it
*should* be reverted to unbound by core (or the rectangle library,
which also has a perfectly good prefix of C-x r and no history of
binding anything to C-x SPC), leaving it free for gud to bind (at
gud's risk if another good candidate for binding to C-x SPC should
appear in the future).
> > AFAIK you don't prefer the current binding to
> > a rectangle function, but want the key sequence left for future use.
>
> Too narrow.
>
> What I suggested was to unbind it by default, for now.
Well, in fact that's the way it is now (as of 24.3.1). It's just that
gud installs its binding in the global keymap when loaded.
> That's all. There's no reason we cannot reconsider this
> decades-old default global key binding.
We *are* reconsidering it. I'm just expressing my opinion that when
there's a 20-year history behind a particular binding, there's good
reason to decide to leave it in place. And that I see no similar
reason in favor of blocking it by using it for a rectangle command.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: C-x SPC : rectangle-mark-mode or gud-break?
2013-12-19 19:48 C-x SPC : rectangle-mark-mode or gud-break? Michael Welsh Duggan
2013-12-19 21:41 ` Drew Adams
@ 2014-01-15 18:33 ` Stefan Monnier
2014-01-15 18:46 ` Michael Welsh Duggan
1 sibling, 1 reply; 14+ messages in thread
From: Stefan Monnier @ 2014-01-15 18:33 UTC (permalink / raw)
To: Michael Welsh Duggan; +Cc: emacs-devel
> I know I am opening up a can of worms here, but I am going to argue that
> `C-x SPC' be changed back to `gud-break'.
Oddly enough there hasn't been the expected deluge of opinions.
Stefan
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: C-x SPC : rectangle-mark-mode or gud-break?
2014-01-15 18:33 ` Stefan Monnier
@ 2014-01-15 18:46 ` Michael Welsh Duggan
2014-01-15 23:45 ` Stefan Monnier
2014-01-17 12:45 ` Bastien
0 siblings, 2 replies; 14+ messages in thread
From: Michael Welsh Duggan @ 2014-01-15 18:46 UTC (permalink / raw)
To: Stefan Monnier; +Cc: Michael Welsh Duggan, emacs-devel
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> I know I am opening up a can of worms here, but I am going to argue that
>> `C-x SPC' be changed back to `gud-break'.
>
> Oddly enough there hasn't been the expected deluge of opinions.
It surprises me, too. My only guess is that people just don't use gdb
in emacs much, or they tend to use the mouse to set breakpoints. (I
highly doubt people are using `C-x C-a C-b'.) I guess I'll just have to
suggest rebinding it in gud-gdb-mode-hook to people who like it better
the way it was before.
I know that the documentation updates are still a work in progress, but
please make sure current references to `C-x SPC' in the manual are
changed to `C-x C-a C-b' respectively.
--
Michael Welsh Duggan
(md5i@md5i.com)
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2014-01-17 12:45 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-19 19:48 C-x SPC : rectangle-mark-mode or gud-break? Michael Welsh Duggan
2013-12-19 21:41 ` Drew Adams
2013-12-20 0:12 ` Michael Welsh Duggan
2013-12-20 1:56 ` Drew Adams
2013-12-20 2:34 ` Stephen J. Turnbull
2013-12-20 3:35 ` Drew Adams
2013-12-20 5:07 ` Stephen J. Turnbull
2014-01-15 18:33 ` Stefan Monnier
2014-01-15 18:46 ` Michael Welsh Duggan
2014-01-15 23:45 ` Stefan Monnier
2014-01-16 0:39 ` Michael Welsh Duggan
2014-01-16 4:14 ` Stefan Monnier
[not found] ` <CAM9Zgm0X=3PQYQvc6Pg6iDgRRKRs1bQ9wPU=gOP7xF9KdX40-w@mail.gmail.com>
[not found] ` <jwv61pkrri0.fsf-monnier+emacs@gnu.org>
2014-01-16 13:47 ` Bozhidar Batsov
2014-01-17 12:45 ` Bastien
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).