[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Add some aliases for re-related functions

From: Stefan Monnier
Subject: Re: Add some aliases for re-related functions
Date: Sat, 02 May 2020 18:41:04 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> On 1991-07-25, Jim Blandy introduced the alias `search-forward-regexp'
> for `re-search-forward'.

Oh, right, I hate that alias.

> Why?  Lost in the mists of time.  Possibly for the same reasons people
> are advancing now - make all the search functions begin with "search-"
> for supposed easier searching (of their names).

Could be.  I always assumed it was meant for M-x use (i.e. for
non-programmer users) rather than for use in Elisp code.

> Or `delete-backward-char' and its alias `backward-delete-char'.  We have,
> respectively, 5 and 36 uses.  To me, this is just confusion, whatever the
> original reason was for these aliases.

I can also come up with bad examples.  I don't think it makes it
undesirable to add aliases.  Rather it argues for making sure you don't
forget to mark one of the two as obsolete.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]