1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

Add drop as alias for nthcdr

It's a common name for this function and symmetric with respect to
`take`.  It's also a lot less awkward to type and say.

* lisp/subr.el (drop): New alias.
* doc/lispref/lists.texi (List Elements): Document.  Mention the
equation tying `take` and `drop` together.
* etc/NEWS: Announce.
This commit is contained in:
Mattias Engdegård 2024-04-28 18:38:44 +02:00
parent 9b1e44c7fb
commit 8718a7c706
3 changed files with 10 additions and 0 deletions

View file

@ -2036,6 +2036,7 @@ instead; it will indirectly limit the specpdl stack size as well.")
;;;; Alternate names for functions - these are not being phased out.
(defalias 'drop #'nthcdr)
(defalias 'send-string #'process-send-string)
(defalias 'send-region #'process-send-region)
(defalias 'string= #'string-equal)