summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/package.el
diff options
context:
space:
mode:
authorMattias EngdegÄrd <mattiase@acm.org>2020-07-06 17:38:52 +0200
committerMattias EngdegÄrd <mattiase@acm.org>2020-07-06 18:08:06 +0200
commit3f990c3cccf85e64399bf98ea3e61cb618e8455c (patch)
tree54bd70ca572b47a4cb36931cd6306e25d4edf1b9 /lisp/emacs-lisp/package.el
parentfb63a64d2159be9cd9bf63a0a6ebff582e385528 (diff)
downloademacs-3f990c3cccf85e64399bf98ea3e61cb618e8455c.tar.gz
emacs-3f990c3cccf85e64399bf98ea3e61cb618e8455c.tar.bz2
emacs-3f990c3cccf85e64399bf98ea3e61cb618e8455c.zip
Simplify byte-code optimisation of pure functions
Most pure functions need no explicit optimisation; we can do away with almost all uses of byte-optimize-predicate (now renamed to byte-optimize-constant-args, since it is not just for predicates). Also remove some superfluous arity warnings. * lisp/emacs-lisp/byte-opt.el (byte-optimize-identity, byte-optimize-memq) (byte-optimize-nth, byte-optimize-nthcdr): Remove arity warnings and simplify. * lisp/emacs-lisp/byte-opt.el (<, >, <=, >=, not, null, consp, listp) (symbolp, stringp, string<, string-lessp, proper-list-p, logand) (logior, logxor, lognot, car, cdr, car-safe, cdr-safe): Remove superfluous byte-optimizer property. (byte-optimize-predicate): Rename to byte-optimize-constant-args. All uses changed.
Diffstat (limited to 'lisp/emacs-lisp/package.el')
0 files changed, 0 insertions, 0 deletions