1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-27 07:41:28 -08:00
emacs/lisp/vc
Paul Eggert f18af6cd5c Audit use of lsh and fix glitches
I audited use of lsh in the Lisp source code, and fixed the
glitches that I found.  While I was at it, I replaced uses of lsh
with ash when either will do.  Replacement is OK when either
argument is known to be nonnegative, or when only the low-order
bits of the result matter, and is a (minor) win since ash is a bit
more solid than lsh nowadays, and is a bit faster.
* lisp/calc/calc-ext.el (math-check-fixnum):
Prefer most-positive-fixnum to (lsh -1 -1).
* lisp/vc/vc-hg.el (vc-hg-state-fast): When testing fixnum width,
prefer (zerop (ash most-positive-fixnum -32)) to (zerop (lsh -1
32)) (Bug#32485#11).
* lisp/emacs-lisp/bytecomp.el (byte-compile-lapcode):
Tighten sanity-check for bytecode overflow, by checking that the
result of (ash pc -8) is nonnegative.  Formerly this check was not
needed since lsh was used and the number overflowed differently.
* lisp/net/dns.el (dns-write): Fix some obvious sign typos in
shift counts.  Evidently this part of the code has never been
exercised.
* lisp/progmodes/hideif.el (hif-shiftleft, hif-shiftright):
* lisp/term/common-win.el (x-setup-function-keys):
Simplify.
* admin/unidata/unidata-gen.el, admin/unidata/uvs.el:
* doc/lispref/keymaps.texi, doc/lispref/syntax.texi:
* doc/misc/calc.texi, doc/misc/cl.texi, etc/NEWS.19:
* lisp/arc-mode.el, lisp/calc/calc-bin.el, lisp/calc/calc-comb.el:
* lisp/calc/calc-ext.el, lisp/calc/calc-math.el:
* lisp/cedet/semantic/wisent/comp.el, lisp/composite.el:
* lisp/disp-table.el, lisp/dos-fns.el, lisp/edmacro.el:
* lisp/emacs-lisp/bindat.el, lisp/emacs-lisp/byte-opt.el:
* lisp/emacs-lisp/bytecomp.el, lisp/emacs-lisp/cl-extra.el:
* lisp/erc/erc-dcc.el, lisp/facemenu.el, lisp/gnus/message.el:
* lisp/gnus/nndoc.el, lisp/gnus/nnmaildir.el, lisp/image.el:
* lisp/international/ccl.el, lisp/international/fontset.el:
* lisp/international/mule-cmds.el, lisp/international/mule.el:
* lisp/json.el, lisp/mail/binhex.el, lisp/mail/rmail.el:
* lisp/mail/uudecode.el, lisp/md4.el, lisp/net/dns.el:
* lisp/net/ntlm.el, lisp/net/sasl.el, lisp/net/socks.el:
* lisp/net/tramp.el, lisp/obsolete/levents.el:
* lisp/obsolete/pgg-parse.el, lisp/org/org.el:
* lisp/org/ox-publish.el, lisp/progmodes/cc-defs.el:
* lisp/progmodes/ebnf2ps.el, lisp/progmodes/hideif.el:
* lisp/ps-bdf.el, lisp/ps-print.el, lisp/simple.el:
* lisp/tar-mode.el, lisp/term/common-win.el:
* lisp/term/tty-colors.el, lisp/term/xterm.el, lisp/vc/vc-git.el:
* lisp/vc/vc-hg.el, lisp/x-dnd.el, test/src/data-tests.el:
Prefer ash to lsh when either will do.
2018-08-21 13:44:32 -07:00
..
add-log.el Minor rewording of last change 2018-07-21 19:11:32 +03:00
compare-w.el
cvs-status.el
diff-mode.el * lisp/vc/diff-mode.el (diff-font-lock-prettify): New var 2018-07-13 12:35:25 -04:00
diff.el * lisp/vc/diff.el (diff-buffer-with-file): Support indirect buffers. 2018-07-29 00:30:01 +12:00
ediff-diff.el ; Use GNU not Gnu in docs 2018-03-23 16:01:12 -04:00
ediff-help.el
ediff-hook.el
ediff-init.el
ediff-merg.el
ediff-mult.el
ediff-ptch.el
ediff-util.el Let ediff '=' compare against ancestor buffer (Bug#11320) 2018-06-28 22:09:04 -04:00
ediff-vers.el
ediff-wind.el Remove some declare-function stub definitions 2018-03-23 16:28:24 -04:00
ediff.el Remove some declare-function stub definitions 2018-03-23 16:28:24 -04:00
emerge.el * lisp/vc/emerge.el: Use lexical-binding 2018-04-03 23:17:30 -04:00
log-edit.el New option to make 'C-x 4 a' use file-less ChangeLog buffers 2018-07-21 16:02:57 +01:00
log-view.el
pcvs-defs.el
pcvs-info.el
pcvs-parse.el Explicitly require cl-lib where needed 2018-03-16 20:41:17 -04:00
pcvs-util.el
pcvs.el Prefer \... to control chars in .el literals 2018-03-29 17:43:08 -07:00
smerge-mode.el Speed up smerge-refine-regions by avoiding fsync 2018-07-12 21:45:31 -04:00
vc-annotate.el
vc-bzr.el
vc-cvs.el
vc-dav.el
vc-dir.el Merge from origin/emacs-26 2018-03-13 18:13:26 -07:00
vc-dispatcher.el
vc-filewise.el
vc-git.el Audit use of lsh and fix glitches 2018-08-21 13:44:32 -07:00
vc-hg.el Audit use of lsh and fix glitches 2018-08-21 13:44:32 -07:00
vc-hooks.el Avoid calling vc backend if 'vc-display-status' is nil 2018-08-11 13:04:06 +03:00
vc-mtn.el
vc-rcs.el
vc-sccs.el
vc-src.el
vc-svn.el
vc.el Merge from origin/emacs-26 2018-06-18 12:14:25 -07:00