* 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 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-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
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).