diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2018-03-22 11:25:42 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2018-03-22 11:29:02 -0700 |
commit | 311bb33218b860413af699ac84e50fccfc1469c0 (patch) | |
tree | db63ee188f3fb5db610bf4039157b3f42581a2ad /lisp/emacs-lisp/faceup.el | |
parent | 011186279c1041e790b81af72981547d623d9b29 (diff) | |
download | emacs-311bb33218b860413af699ac84e50fccfc1469c0.tar.gz emacs-311bb33218b860413af699ac84e50fccfc1469c0.tar.bz2 emacs-311bb33218b860413af699ac84e50fccfc1469c0.zip |
Fix byte-opt lists of pure functions etc.
This fixes a bug where a byte-compiler running on 64-bit Emacs
optimized (lsh -1 -1) to #x1fffffffffffffff, an optimization
that is incorrect for .elc files intended for either 32- or
64-bit Emacs. While I was in the neighborhood, I noticed other
glitches in the lists of pure and side-effect-free functions, and
fixed the errors that I found.
* lisp/emacs-lisp/byte-opt.el (side-effect-free-fns):
Move some functions here from side-effect-and-error-free-fns,
since they can now signal errors. The affected functions are
current-time-string, current-time-zone,
line-beginning-position, line-end-position. Rename langinfo
to locale-info. Add logcount. Remove string-to-int.
(side-effect-and-error-free-fns): Remove minibuffer-window, a
function that can signal errors, and that is already in
side-effect-free-fns.
(pure-fns): Remove ash, lsh, and logb, since they are
platform-dependent and .elc files should be
platform-independent. Add %, logand, logcount. Sort.
Clarify what is meant by “pure”.
Diffstat (limited to 'lisp/emacs-lisp/faceup.el')
0 files changed, 0 insertions, 0 deletions