* argument names for define-obsolete-*-alias
@ 2005-06-12 23:30 Juanma Barranquero
2005-06-13 0:43 ` Nick Roberts
2005-06-13 23:38 ` Richard Stallman
0 siblings, 2 replies; 14+ messages in thread
From: Juanma Barranquero @ 2005-06-12 23:30 UTC (permalink / raw)
Is everybody happy with the names of the `make-obsolete*' and
`define-obsolete-*-alias' arguments?
The alias being created is called FUNCTION or VARIABLE, and the symbol
(or definition) being aliased, NEW. Now, I understand the rationale:
NEW because it is the new, shinier name.
However, and even knowing as I know that all defining functions and
macros get the defined symbol as first argument, today I tried to use
`define-obsolete-variable-name' and on first reading of the docstring
I just put the arguments reversed. From the Emacs history POV, NEW is
indeed newer; from the use case of define-obsolete*, however, NEW is
"old" because it already exists.
Wouldn't be better to use OBSOLETE and CURRENT (or MODERN), or ALIAS
and ORIGINAL, or some other pair that best defines the relationship
between the arguments?
--
/L/e/k/t/u
^ permalink raw reply [flat|nested] 14+ messages in thread
* argument names for define-obsolete-*-alias
2005-06-12 23:30 argument names for define-obsolete-*-alias Juanma Barranquero
@ 2005-06-13 0:43 ` Nick Roberts
2005-06-13 1:00 ` Juanma Barranquero
2005-06-13 23:38 ` Richard Stallman
2005-06-13 23:38 ` Richard Stallman
1 sibling, 2 replies; 14+ messages in thread
From: Nick Roberts @ 2005-06-13 0:43 UTC (permalink / raw)
Cc: emacs-devel
> Is everybody happy with the names of the `make-obsolete*' and
> `define-obsolete-*-alias' arguments?
>
> The alias being created is called FUNCTION or VARIABLE, and the symbol
> (or definition) being aliased, NEW. Now, I understand the rationale:
> NEW because it is the new, shinier name.
>
> However, and even knowing as I know that all defining functions and
> macros get the defined symbol as first argument, today I tried to use
> `define-obsolete-variable-name' and on first reading of the docstring
> I just put the arguments reversed. From the Emacs history POV, NEW is
> indeed newer; from the use case of define-obsolete*, however, NEW is
> "old" because it already exists.
NEW is an argument, not part of the function name, so I wouldn't expect
it to create a new symbol. These functions/macros are also defined in
XEmacs with similar argument names which makes it clearer that they
really do the same thing.
> Wouldn't be better to use OBSOLETE and CURRENT (or MODERN), or ALIAS
> and ORIGINAL, or some other pair that best defines the relationship
> between the arguments?
I think these are confusing. OBSOLETE and CURRENT would only be
obsolete and current _after_ the function/macro has been evaluated.
Maybe FROM and TO would work.
On a related note, I find the arguments for defvaralias and defalias more
confusing than those for define-obsolete-*-alias.
Nick
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: argument names for define-obsolete-*-alias
2005-06-13 0:43 ` Nick Roberts
@ 2005-06-13 1:00 ` Juanma Barranquero
2005-06-13 17:37 ` Daniel Brockman
2005-06-13 23:38 ` Richard Stallman
1 sibling, 1 reply; 14+ messages in thread
From: Juanma Barranquero @ 2005-06-13 1:00 UTC (permalink / raw)
On 6/13/05, Nick Roberts <nickrob@snap.net.nz> wrote:
> NEW is an argument, not part of the function name, so I wouldn't expect
> it to create a new symbol.
I don't understand this.
> These functions/macros are also defined in
> XEmacs with similar argument names which makes it clearer that they
> really do the same thing.
In which way being the same on XEmacs makes it clearer what they mean? :-)
> I think these are confusing. OBSOLETE and CURRENT would only be
> obsolete and current _after_ the function/macro has been evaluated.
> Maybe FROM and TO would work.
Whatever works.
> On a related note, I find the arguments for defvaralias and defalias more
> confusing than those for define-obsolete-*-alias.
For me is just the opposite.
--
/L/e/k/t/u
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: argument names for define-obsolete-*-alias
2005-06-13 1:00 ` Juanma Barranquero
@ 2005-06-13 17:37 ` Daniel Brockman
0 siblings, 0 replies; 14+ messages in thread
From: Daniel Brockman @ 2005-06-13 17:37 UTC (permalink / raw)
I just thought I'd chip in and say that I fully agree with Juanma; the
current names are really confusing. I think almost any other pair of
symbols would be an improvement.
--
Daniel Brockman <daniel@brockman.se>
``Why fix an old bug if you can write three new ones
in the same time?'' --- David Kastrup
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: argument names for define-obsolete-*-alias
2005-06-12 23:30 argument names for define-obsolete-*-alias Juanma Barranquero
2005-06-13 0:43 ` Nick Roberts
@ 2005-06-13 23:38 ` Richard Stallman
2005-06-14 0:16 ` Juanma Barranquero
1 sibling, 1 reply; 14+ messages in thread
From: Richard Stallman @ 2005-06-13 23:38 UTC (permalink / raw)
Cc: emacs-devel
Is everybody happy with the names of the `make-obsolete*' and
`define-obsolete-*-alias' arguments?
The alias being created is called FUNCTION or VARIABLE, and the symbol
(or definition) being aliased, NEW. Now, I understand the rationale:
NEW because it is the new, shinier name.
I can see how this could be confusing. I suggest using names
OLD-OBSOLETE-NAME and CURRENT-RECOMMENDED-NAME.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: argument names for define-obsolete-*-alias
2005-06-13 0:43 ` Nick Roberts
2005-06-13 1:00 ` Juanma Barranquero
@ 2005-06-13 23:38 ` Richard Stallman
1 sibling, 0 replies; 14+ messages in thread
From: Richard Stallman @ 2005-06-13 23:38 UTC (permalink / raw)
Cc: lekktu, emacs-devel
On a related note, I find the arguments for defvaralias and defalias more
confusing than those for define-obsolete-*-alias.
defalias seems clear to me, but defvaralias is unclear. For
defvaralias, I suggest the names NEW-ALIAS and BASE-VARIABLE.
If using similar names in defalias would make it clearer to some people,
we could change that too--it costs little to change this.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: argument names for define-obsolete-*-alias
2005-06-13 23:38 ` Richard Stallman
@ 2005-06-14 0:16 ` Juanma Barranquero
2005-06-14 7:27 ` David Kastrup
0 siblings, 1 reply; 14+ messages in thread
From: Juanma Barranquero @ 2005-06-14 0:16 UTC (permalink / raw)
> I can see how this could be confusing. I suggest using names
> OLD-OBSOLETE-NAME and CURRENT-RECOMMENDED-NAME.
I like these, but they are a bit too long for docstrings, etc.
Wouldn't just OBSOLETE-NAME and RECOMMENDED-NAME (or CURRENT-NAME)
suffice?
--
/L/e/k/t/u
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: argument names for define-obsolete-*-alias
2005-06-14 0:16 ` Juanma Barranquero
@ 2005-06-14 7:27 ` David Kastrup
2005-06-14 9:08 ` Juanma Barranquero
2005-06-15 14:46 ` Richard Stallman
0 siblings, 2 replies; 14+ messages in thread
From: David Kastrup @ 2005-06-14 7:27 UTC (permalink / raw)
Cc: emacs-devel
Juanma Barranquero <lekktu@gmail.com> writes:
>> I can see how this could be confusing. I suggest using names
>> OLD-OBSOLETE-NAME and CURRENT-RECOMMENDED-NAME.
>
> I like these, but they are a bit too long for docstrings, etc.
> Wouldn't just OBSOLETE-NAME and RECOMMENDED-NAME (or CURRENT-NAME)
> suffice?
How about just OBSOLETE and CURRENT?
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: argument names for define-obsolete-*-alias
2005-06-14 7:27 ` David Kastrup
@ 2005-06-14 9:08 ` Juanma Barranquero
2005-06-14 9:16 ` David Kastrup
2005-06-15 14:46 ` Richard Stallman
1 sibling, 1 reply; 14+ messages in thread
From: Juanma Barranquero @ 2005-06-14 9:08 UTC (permalink / raw)
Cc: emacs-devel
> How about just OBSOLETE and CURRENT?
That was my first suggestion...
--
/L/e/k/t/u
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: argument names for define-obsolete-*-alias
2005-06-14 9:08 ` Juanma Barranquero
@ 2005-06-14 9:16 ` David Kastrup
0 siblings, 0 replies; 14+ messages in thread
From: David Kastrup @ 2005-06-14 9:16 UTC (permalink / raw)
Cc: emacs-devel
Juanma Barranquero <lekktu@gmail.com> writes:
>> How about just OBSOLETE and CURRENT?
>
> That was my first suggestion...
Well, IMHO the more complicated proposals don't provide noticeable
improvement.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: argument names for define-obsolete-*-alias
2005-06-14 7:27 ` David Kastrup
2005-06-14 9:08 ` Juanma Barranquero
@ 2005-06-15 14:46 ` Richard Stallman
2005-06-15 14:57 ` Juanma Barranquero
1 sibling, 1 reply; 14+ messages in thread
From: Richard Stallman @ 2005-06-15 14:46 UTC (permalink / raw)
Cc: lekktu, emacs-devel
> I like these, but they are a bit too long for docstrings, etc.
> Wouldn't just OBSOLETE-NAME and RECOMMENDED-NAME (or CURRENT-NAME)
> suffice?
How about just OBSOLETE and CURRENT?
That is more cryptic--good enough to remind people, but why not
add the extra 5 chars to make it clearer?
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: argument names for define-obsolete-*-alias
2005-06-15 14:46 ` Richard Stallman
@ 2005-06-15 14:57 ` Juanma Barranquero
2005-06-15 21:13 ` Nick Roberts
0 siblings, 1 reply; 14+ messages in thread
From: Juanma Barranquero @ 2005-06-15 14:57 UTC (permalink / raw)
Cc: emacs-devel
> That is more cryptic--good enough to remind people, but why not
> add the extra 5 chars to make it clearer?
I installed it yesterday with OBSOLETE-NAME and CURRENT-NAME.
--
/L/e/k/t/u
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: argument names for define-obsolete-*-alias
2005-06-15 14:57 ` Juanma Barranquero
@ 2005-06-15 21:13 ` Nick Roberts
2005-06-15 23:20 ` Juanma Barranquero
0 siblings, 1 reply; 14+ messages in thread
From: Nick Roberts @ 2005-06-15 21:13 UTC (permalink / raw)
Cc: rms, emacs-devel
> > That is more cryptic--good enough to remind people, but why not
> > add the extra 5 chars to make it clearer?
>
> I installed it yesterday with OBSOLETE-NAME and CURRENT-NAME.
Please could you also change the entries in the lisp reference manual to use
the same argument names.
Nick
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: argument names for define-obsolete-*-alias
2005-06-15 21:13 ` Nick Roberts
@ 2005-06-15 23:20 ` Juanma Barranquero
0 siblings, 0 replies; 14+ messages in thread
From: Juanma Barranquero @ 2005-06-15 23:20 UTC (permalink / raw)
Cc: rms, emacs-devel
On 6/15/05, Nick Roberts <nickrob@snap.net.nz> wrote:
> Please could you also change the entries in the lisp reference manual to use
> the same argument names.
Done.
--
/L/e/k/t/u
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2005-06-15 23:20 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-12 23:30 argument names for define-obsolete-*-alias Juanma Barranquero
2005-06-13 0:43 ` Nick Roberts
2005-06-13 1:00 ` Juanma Barranquero
2005-06-13 17:37 ` Daniel Brockman
2005-06-13 23:38 ` Richard Stallman
2005-06-13 23:38 ` Richard Stallman
2005-06-14 0:16 ` Juanma Barranquero
2005-06-14 7:27 ` David Kastrup
2005-06-14 9:08 ` Juanma Barranquero
2005-06-14 9:16 ` David Kastrup
2005-06-15 14:46 ` Richard Stallman
2005-06-15 14:57 ` Juanma Barranquero
2005-06-15 21:13 ` Nick Roberts
2005-06-15 23:20 ` Juanma Barranquero
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).