diff options
author | Mattias EngdegÄrd <mattiase@acm.org> | 2022-07-17 19:05:03 +0200 |
---|---|---|
committer | Mattias EngdegÄrd <mattiase@acm.org> | 2022-07-18 12:49:29 +0200 |
commit | 5ad8f3e5709a3823371ea6aa039b5e7e50feca1f (patch) | |
tree | 96673038a2d4499755be7c31bed4c82c9784b1d8 /lisp/emacs-lisp/backquote.el | |
parent | 2d97fe271039358d24a779e5468a313ffcf6059a (diff) | |
download | emacs-5ad8f3e5709a3823371ea6aa039b5e7e50feca1f.tar.gz emacs-5ad8f3e5709a3823371ea6aa039b5e7e50feca1f.tar.bz2 emacs-5ad8f3e5709a3823371ea6aa039b5e7e50feca1f.zip |
Use `take` where clearly safe to do so (bug#56521)
* lisp/emacs-lisp/seq.el (seq-take):
* lisp/auth-source.el (auth-source-secrets-search)
(auth-source-plstore-search):
* lisp/gnus/message.el (message-insert-formatted-citation-line):
* lisp/net/dbus.el (dbus-unregister-object):
* lisp/replace.el (occur-context-lines):
* test/src/print-tests.el (print-circular): Replace hand-written loop
or `butlast` call with `take` for clarity, performance and validation.
We have the equivalence
(take N LIST) = (butlast LIST (- (length LIST) N)).
Diffstat (limited to 'lisp/emacs-lisp/backquote.el')
0 files changed, 0 insertions, 0 deletions