Mattias Engdegård
5ad8f3e570
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)).
2022-07-18 12:49:29 +02:00
..
2022-07-14 11:56:56 +02:00
2022-03-08 18:51:18 -08:00
2022-07-07 19:34:30 +03:00
2022-07-14 11:56:56 +02:00
2022-07-16 18:23:09 +02:00
2022-02-20 17:42:21 +01:00
2022-03-08 18:51:18 -08:00
2022-05-30 15:52:02 +02:00
2022-07-08 15:13:21 +02:00
2022-01-31 15:26:06 +01:00
2022-07-17 17:35:49 +02:00
2022-05-07 20:18:51 +03:00
2022-07-02 15:06:24 +02:00
2022-07-14 12:13:31 +02:00
2022-06-03 11:23:30 +02:00
2022-07-18 12:49:29 +02:00
2022-07-11 13:19:48 +02:00
2022-04-22 16:17:22 +02:00
2022-04-28 14:58:53 +02:00
2022-02-12 15:25:53 -05:00
2022-06-15 23:27:08 -05:00
2022-01-29 17:24:49 +01:00
2022-03-06 14:07:26 +01:00