* what is the convention for `info' and `Info'?
@ 2011-06-10 19:16 Drew Adams
2011-06-14 20:42 ` Drew Adams
2011-06-14 22:00 ` Juri Linkov
0 siblings, 2 replies; 7+ messages in thread
From: Drew Adams @ 2011-06-10 19:16 UTC (permalink / raw)
To: emacs-devel
Library info.el has a mix of vars, faces, and functions with names that begin
with `info' or `Info'. What is the convention here - when to use one or the
other? There doesn't seem to be any rhyme or (non-hysterical) reason.
There are internal vars and user options that use `Info'. All defvars except
`info-tool-bar-map' use `Info' (53/54). All defcustoms use `Info'. But all
deffaces (which are also for user customization) use `info'.
There are commands that use `info' and commands that use `Info'. Perhaps the
intended difference here is commands within *info* and commands to be used
anywhere (?). Similarly, there are non-interactive functions that use one or
the other.
This cannot, AFAICT, be helpful to users (or to maintainers, for that matter).
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: what is the convention for `info' and `Info'?
2011-06-10 19:16 what is the convention for `info' and `Info'? Drew Adams
@ 2011-06-14 20:42 ` Drew Adams
2011-06-14 21:57 ` Stephen J. Turnbull
2011-06-14 22:00 ` Juri Linkov
1 sibling, 1 reply; 7+ messages in thread
From: Drew Adams @ 2011-06-14 20:42 UTC (permalink / raw)
To: emacs-devel
Resending - no response. Can one of the maintainers speak to this? What is the
intention/design/convention?
> Library info.el has a mix of vars, faces, and functions with
> names that begin with `info' or `Info'. What is the convention
> here - when to use one or the other? There doesn't seem to be
> any rhyme or (non-hysterical) reason.
>
> There are internal vars and user options that use `Info'.
> All defvars except `info-tool-bar-map' use `Info' (53/54).
> All defcustoms use `Info'. But all
> deffaces (which are also for user customization) use `info'.
>
> There are commands that use `info' and commands that use
> `Info'. Perhaps the intended difference here is commands
> within *info* and commands to be used anywhere (?).
> Similarly, there are non-interactive functions that use one or
> the other.
>
> This cannot, AFAICT, be helpful to users (or to maintainers,
> for that matter).
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: what is the convention for `info' and `Info'?
2011-06-14 20:42 ` Drew Adams
@ 2011-06-14 21:57 ` Stephen J. Turnbull
2011-06-14 22:18 ` PJ Weisberg
0 siblings, 1 reply; 7+ messages in thread
From: Stephen J. Turnbull @ 2011-06-14 21:57 UTC (permalink / raw)
To: Drew Adams; +Cc: emacs-devel
Drew Adams writes:
> Resending - no response. Can one of the maintainers speak to this? What is the
> intention/design/convention?
>
> > Library info.el has a mix of vars, faces, and functions with
> > names that begin with `info' or `Info'. What is the convention
> > here - when to use one or the other? There doesn't seem to be
> > any rhyme or (non-hysterical) reason.
Dunno about rhyme, but somewhere in space-time there is a comment to
the effect that use of the usual prefix capitalized reduces the number
of completions you have to deal with. Thus commands that are bound to
a key sequence and unlikely to be used with M-x have the prefix
capitalized.
Whether this consideration is still relevant I have no opinion, except
that the only Info command I use with M-x is Info-goto-node (which is
quite useful as an @ref in code, too). But there was a reason at one
time.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: what is the convention for `info' and `Info'?
2011-06-10 19:16 what is the convention for `info' and `Info'? Drew Adams
2011-06-14 20:42 ` Drew Adams
@ 2011-06-14 22:00 ` Juri Linkov
2011-06-15 23:36 ` Richard Stallman
1 sibling, 1 reply; 7+ messages in thread
From: Juri Linkov @ 2011-06-14 22:00 UTC (permalink / raw)
To: Drew Adams; +Cc: emacs-devel
> There are commands that use `info' and commands that use `Info'. Perhaps the
> intended difference here is commands within *info* and commands to be used
> anywhere (?).
I don't know what was intended by the original authors of info.el,
but I see the same pattern: `Info-' for commands within *info*
and `info-' for commands used anywhere.
> This cannot, AFAICT, be helpful to users (or to maintainers, for that matter).
It would be less helpful to users to rename them now to follow
another convention.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: what is the convention for `info' and `Info'?
2011-06-14 21:57 ` Stephen J. Turnbull
@ 2011-06-14 22:18 ` PJ Weisberg
2011-06-14 23:20 ` Stephen J. Turnbull
0 siblings, 1 reply; 7+ messages in thread
From: PJ Weisberg @ 2011-06-14 22:18 UTC (permalink / raw)
To: Stephen J. Turnbull; +Cc: Drew Adams, emacs-devel
On Tue, Jun 14, 2011 at 2:57 PM, Stephen J. Turnbull <stephen@xemacs.org> wrote:
> Dunno about rhyme, but somewhere in space-time there is a comment to
> the effect that use of the usual prefix capitalized reduces the number
> of completions you have to deal with. Thus commands that are bound to
> a key sequence and unlikely to be used with M-x have the prefix
> capitalized.
s/reduces the number of completions you have to deal with/makes some
of the functions harder to find if you don't know they're there/
-PJ
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: what is the convention for `info' and `Info'?
2011-06-14 22:18 ` PJ Weisberg
@ 2011-06-14 23:20 ` Stephen J. Turnbull
0 siblings, 0 replies; 7+ messages in thread
From: Stephen J. Turnbull @ 2011-06-14 23:20 UTC (permalink / raw)
To: PJ Weisberg; +Cc: Drew Adams, emacs-devel
PJ Weisberg writes:
> On Tue, Jun 14, 2011 at 2:57 PM, Stephen J. Turnbull <stephen@xemacs.org> wrote:
>
> > Dunno about rhyme, but somewhere in space-time there is a comment to
> > the effect that use of the usual prefix capitalized reduces the number
> > of completions you have to deal with. Thus commands that are bound to
> > a key sequence and unlikely to be used with M-x have the prefix
> > capitalized.
>
> s/reduces the number of completions you have to deal with/makes some
> of the functions harder to find if you don't know they're there/
Not even the Emacs developers are perverse enough to consider that a
reason *for* doing something.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: what is the convention for `info' and `Info'?
2011-06-14 22:00 ` Juri Linkov
@ 2011-06-15 23:36 ` Richard Stallman
0 siblings, 0 replies; 7+ messages in thread
From: Richard Stallman @ 2011-06-15 23:36 UTC (permalink / raw)
To: Juri Linkov; +Cc: drew.adams, emacs-devel
I don't know what was intended by the original authors of info.el,
but I see the same pattern: `Info-' for commands within *info*
and `info-' for commands used anywhere.
I think the idea was so that the `Info-' commands would not get in the
way of completion when you type `info-'.
--
Dr Richard Stallman
President, Free Software Foundation
51 Franklin St
Boston MA 02110
USA
www.fsf.org, www.gnu.org
Skype: No way! That's nonfree (freedom-denying) software.
Use free telephony http://directory.fsf.org/category/tel/
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2011-06-15 23:36 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-10 19:16 what is the convention for `info' and `Info'? Drew Adams
2011-06-14 20:42 ` Drew Adams
2011-06-14 21:57 ` Stephen J. Turnbull
2011-06-14 22:18 ` PJ Weisberg
2011-06-14 23:20 ` Stephen J. Turnbull
2011-06-14 22:00 ` Juri Linkov
2011-06-15 23:36 ` Richard Stallman
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).