* lowercase aliases for Info-* commands?
@ 2017-11-20 14:01 Robert Pluim
2017-11-20 14:13 ` Kaushal Modi
` (3 more replies)
0 siblings, 4 replies; 13+ messages in thread
From: Robert Pluim @ 2017-11-20 14:01 UTC (permalink / raw)
To: emacs-devel
Hi,
Info mode defines a large number of interactive commands starting with
"Info" rather than info, which always causes me to miss them until I
remember the capital I. Would a patch creating lowercase aliases be
acceptable?
ObDamnTheTorpedoes: or rename them all, and create obsolete aliases
using the old spelling?
Thanks
Robert
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: lowercase aliases for Info-* commands?
2017-11-20 14:01 lowercase aliases for Info-* commands? Robert Pluim
@ 2017-11-20 14:13 ` Kaushal Modi
2017-11-20 16:06 ` Drew Adams
2017-11-20 17:25 ` Eli Zaretskii
` (2 subsequent siblings)
3 siblings, 1 reply; 13+ messages in thread
From: Kaushal Modi @ 2017-11-20 14:13 UTC (permalink / raw)
To: Robert Pluim; +Cc: Emacs developers
[-- Attachment #1: Type: text/plain, Size: 230 bytes --]
On Mon, Nov 20, 2017, 9:02 AM Robert Pluim <rpluim@gmail.com> wrote:
>
> ObDamnTheTorpedoes: or rename them all, and create obsolete aliases
> using the old spelling?
>
I'd love that too, +1 for consistency.
> --
Kaushal Modi
[-- Attachment #2: Type: text/html, Size: 734 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread
* RE: lowercase aliases for Info-* commands?
2017-11-20 14:13 ` Kaushal Modi
@ 2017-11-20 16:06 ` Drew Adams
0 siblings, 0 replies; 13+ messages in thread
From: Drew Adams @ 2017-11-20 16:06 UTC (permalink / raw)
To: Kaushal Modi, Robert Pluim; +Cc: Emacs developers
>> ObDamnTheTorpedoes: or rename them all, and create
>> obsolete aliases using the old spelling?
>
> I'd love that too, +1 for consistency.
I believe it was by design, to easily distinguish the
main user-used things (command, options) when using
completion - IOW, to filter out noise.
That doesn't mean there couldn't be a redesign. But
I don't see why we would obsolete the original names.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: lowercase aliases for Info-* commands?
2017-11-20 14:01 lowercase aliases for Info-* commands? Robert Pluim
2017-11-20 14:13 ` Kaushal Modi
@ 2017-11-20 17:25 ` Eli Zaretskii
2017-11-20 18:02 ` Robert Pluim
2017-11-20 18:12 ` Stefan Monnier
2017-11-20 21:50 ` Richard Stallman
3 siblings, 1 reply; 13+ messages in thread
From: Eli Zaretskii @ 2017-11-20 17:25 UTC (permalink / raw)
To: Robert Pluim; +Cc: emacs-devel
> From: Robert Pluim <rpluim@gmail.com>
> Date: Mon, 20 Nov 2017 15:01:52 +0100
>
> Info mode defines a large number of interactive commands starting with
> "Info" rather than info, which always causes me to miss them until I
> remember the capital I. Would a patch creating lowercase aliases be
> acceptable?
That would be a strange thing to do, I think. We never did that in
any other case.
Why cannot you make these aliases in your customizations?
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: lowercase aliases for Info-* commands?
2017-11-20 17:25 ` Eli Zaretskii
@ 2017-11-20 18:02 ` Robert Pluim
2017-11-20 18:29 ` Eli Zaretskii
0 siblings, 1 reply; 13+ messages in thread
From: Robert Pluim @ 2017-11-20 18:02 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: emacs-devel
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Robert Pluim <rpluim@gmail.com>
>> Date: Mon, 20 Nov 2017 15:01:52 +0100
>>
>> Info mode defines a large number of interactive commands starting with
>> "Info" rather than info, which always causes me to miss them until I
>> remember the capital I. Would a patch creating lowercase aliases be
>> acceptable?
>
> That would be a strange thing to do, I think. We never did that in
> any other case.
>
> Why cannot you make these aliases in your customizations?
I can always do that. I just find it somewhat un-regular that the
commands for info all start with 'I', hence my desire to fix it.
Robert
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: lowercase aliases for Info-* commands?
2017-11-20 14:01 lowercase aliases for Info-* commands? Robert Pluim
2017-11-20 14:13 ` Kaushal Modi
2017-11-20 17:25 ` Eli Zaretskii
@ 2017-11-20 18:12 ` Stefan Monnier
2017-11-20 21:50 ` Richard Stallman
3 siblings, 0 replies; 13+ messages in thread
From: Stefan Monnier @ 2017-11-20 18:12 UTC (permalink / raw)
To: emacs-devel
> Info mode defines a large number of interactive commands starting with
> "Info" rather than info, which always causes me to miss them until I
> remember the capital I. Would a patch creating lowercase aliases be
> acceptable?
As explained by Drew, info.el uses the convention that "normal" commands
start with "info-" and keeps "Info-" for those commands which are
unlikely to be used via `M-x`.
I think there was a similar idea with variables, tho I don't offhand see
what's the specific purpose (maybe for M-x set-variable ?).
So I don't think we should do such a blind renaming. But OTOH, renaming
a few specific commands might make sense, if there's a good case for
using them from M-x.
Stefan
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: lowercase aliases for Info-* commands?
2017-11-20 18:02 ` Robert Pluim
@ 2017-11-20 18:29 ` Eli Zaretskii
2017-11-20 19:01 ` Stefan Monnier
0 siblings, 1 reply; 13+ messages in thread
From: Eli Zaretskii @ 2017-11-20 18:29 UTC (permalink / raw)
To: Robert Pluim; +Cc: emacs-devel
> From: Robert Pluim <rpluim@gmail.com>
> Cc: emacs-devel@gnu.org
> Date: Mon, 20 Nov 2017 19:02:12 +0100
>
> > Why cannot you make these aliases in your customizations?
>
> I can always do that. I just find it somewhat un-regular that the
> commands for info all start with 'I', hence my desire to fix it.
It may be irregular, but it's there for a very long time, and AFAIR no
one complained about that. So I see no reason to put in Emacs
something that is your personal preference.
(E.g., I find function names like foo->bar also irregular -- this is
Lisp, not C -- but that's just my personal stylistic preference, so I
keep it to myself.)
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: lowercase aliases for Info-* commands?
2017-11-20 18:29 ` Eli Zaretskii
@ 2017-11-20 19:01 ` Stefan Monnier
0 siblings, 0 replies; 13+ messages in thread
From: Stefan Monnier @ 2017-11-20 19:01 UTC (permalink / raw)
To: emacs-devel
> (E.g., I find function names like foo->bar also irregular -- this is
> Lisp, not C -- but that's just my personal stylistic preference, so I
> keep it to myself.)
Not sure which foo->bar you're referring to, but I plead guilty to using
such names. I just want to clarify that I didn't take them from C but
from Scheme,
Stefan
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: lowercase aliases for Info-* commands?
2017-11-20 14:01 lowercase aliases for Info-* commands? Robert Pluim
` (2 preceding siblings ...)
2017-11-20 18:12 ` Stefan Monnier
@ 2017-11-20 21:50 ` Richard Stallman
2017-11-21 9:34 ` Robert Pluim
3 siblings, 1 reply; 13+ messages in thread
From: Richard Stallman @ 2017-11-20 21:50 UTC (permalink / raw)
To: Robert Pluim; +Cc: emacs-devel
[[[ To any NSA and FBI agents reading my email: please consider ]]]
[[[ whether defending the US Constitution against all enemies, ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]
> Info mode defines a large number of interactive commands starting with
> "Info" rather than info, which always causes me to miss them until I
> remember the capital I. Would a patch creating lowercase aliases be
> acceptable?
The reason for this prefix distinction is to make completion of info-
commands work better -- because the Info- commands do not get in the
way. The idea is that the Info- commands will rarely be entered in
M-x because they are bound to keys.
We can change this if it will help users, but how and why would it help them?
What is the scenario in which you type their names?
--
Dr Richard Stallman
President, Free Software Foundation (https://gnu.org, https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)
Skype: No way! See https://stallman.org/skype.html.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: lowercase aliases for Info-* commands?
2017-11-20 21:50 ` Richard Stallman
@ 2017-11-21 9:34 ` Robert Pluim
2017-11-21 13:11 ` Stefan Monnier
0 siblings, 1 reply; 13+ messages in thread
From: Robert Pluim @ 2017-11-21 9:34 UTC (permalink / raw)
To: Richard Stallman; +Cc: emacs-devel
Richard Stallman <rms@gnu.org> writes:
> [[[ To any NSA and FBI agents reading my email: please consider ]]]
> [[[ whether defending the US Constitution against all enemies, ]]]
> [[[ foreign or domestic, requires you to follow Snowden's example. ]]]
>
> > Info mode defines a large number of interactive commands starting with
> > "Info" rather than info, which always causes me to miss them until I
> > remember the capital I. Would a patch creating lowercase aliases be
> > acceptable?
>
> The reason for this prefix distinction is to make completion of info-
> commands work better -- because the Info- commands do not get in the
> way. The idea is that the Info- commands will rarely be entered in
> M-x because they are bound to keys.
>
OK
> We can change this if it will help users, but how and why would it help them?
>
> What is the scenario in which you type their names?
I was looking for the Info command to follow an info link. In this
particular case, using the mouse would have worked, but I prefer
knowing what's going on behind the scene.
Anyway, seems like I'm almost alone in this. defalias in .emacs it is
Robert
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: lowercase aliases for Info-* commands?
2017-11-21 9:34 ` Robert Pluim
@ 2017-11-21 13:11 ` Stefan Monnier
2017-11-21 13:18 ` Robert Pluim
0 siblings, 1 reply; 13+ messages in thread
From: Stefan Monnier @ 2017-11-21 13:11 UTC (permalink / raw)
To: emacs-devel
> I was looking for the Info command to follow an info link. In this
> particular case, using the mouse would have worked, but I prefer
> knowing what's going on behind the scene.
Which command was it?
> Anyway, seems like I'm almost alone in this. defalias in .emacs it is
As I said, which command uses Info- and which command uses info- is
a judgment call. Maybe we can revise this judgment for the command(s)
you use from M-x.
Stefan
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: lowercase aliases for Info-* commands?
2017-11-21 13:11 ` Stefan Monnier
@ 2017-11-21 13:18 ` Robert Pluim
2017-11-21 19:06 ` Stefan Monnier
0 siblings, 1 reply; 13+ messages in thread
From: Robert Pluim @ 2017-11-21 13:18 UTC (permalink / raw)
To: Stefan Monnier; +Cc: emacs-devel
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> I was looking for the Info command to follow an info link. In this
>> particular case, using the mouse would have worked, but I prefer
>> knowing what's going on behind the scene.
>
> Which command was it?
>
Info-goto-node, which I found after an entertaining chase through
several different parts of gnus
>> Anyway, seems like I'm almost alone in this. defalias in .emacs it is
>
> As I said, which command uses Info- and which command uses info- is
> a judgment call. Maybe we can revise this judgment for the command(s)
> you use from M-x.
I doubt it's worth it just for this one command
Robert
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: lowercase aliases for Info-* commands?
2017-11-21 13:18 ` Robert Pluim
@ 2017-11-21 19:06 ` Stefan Monnier
0 siblings, 0 replies; 13+ messages in thread
From: Stefan Monnier @ 2017-11-21 19:06 UTC (permalink / raw)
To: Robert Pluim; +Cc: emacs-devel
>>> I was looking for the Info command to follow an info link. In this
>>> particular case, using the mouse would have worked, but I prefer
>>> knowing what's going on behind the scene.
>> Which command was it?
> Info-goto-node, which I found after an entertaining chase through
> several different parts of gnus
I see. It's not considered "worthy of M-x" because it's bound to `g`.
Some people prefer using M-x to avoid having to remember keyboard
shortcuts, tho, so maybe we should make it available with a "info-"
prefix, indeed.
Stefan
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2017-11-21 19:06 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-20 14:01 lowercase aliases for Info-* commands? Robert Pluim
2017-11-20 14:13 ` Kaushal Modi
2017-11-20 16:06 ` Drew Adams
2017-11-20 17:25 ` Eli Zaretskii
2017-11-20 18:02 ` Robert Pluim
2017-11-20 18:29 ` Eli Zaretskii
2017-11-20 19:01 ` Stefan Monnier
2017-11-20 18:12 ` Stefan Monnier
2017-11-20 21:50 ` Richard Stallman
2017-11-21 9:34 ` Robert Pluim
2017-11-21 13:11 ` Stefan Monnier
2017-11-21 13:18 ` Robert Pluim
2017-11-21 19:06 ` Stefan Monnier
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).