1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-14 19:01:45 -07:00
emacs/lisp/net
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
..
ange-ftp.el Implement command completion in remote shells. (Bug#31704) 2018-06-20 12:13:56 +02:00
browse-url.el Merge from origin/emacs-26 2018-05-07 07:50:49 -07:00
dbus.el
dig.el
dns.el Audit use of lsh and fix glitches 2018-08-21 13:44:32 -07:00
eudc-bob.el EUDC: Remove XEmacs support 2018-08-15 21:43:00 -04:00
eudc-export.el
eudc-hotlist.el EUDC: Remove XEmacs support 2018-08-15 21:43:00 -04:00
eudc-vars.el
eudc.el EUDC: Remove XEmacs support 2018-08-15 21:43:00 -04:00
eudcb-bbdb.el EUDC: Add more BBDB >= 3 support 2018-08-15 21:43:03 -04:00
eudcb-ldap.el
eudcb-mab.el
eww.el Fix off-by-one history pruning (bug#31211) 2018-05-02 20:18:07 -04:00
gnutls.el Merge from emacs-26 2018-07-09 20:03:30 -04:00
goto-addr.el Optionally add argument description in minor mode DOC (bug#10754) 2018-07-01 23:34:53 -04:00
hmac-def.el
hmac-md5.el
imap.el
ldap.el
mailcap.el
mairix.el
net-utils.el
netrc.el
network-stream.el Move tls.el and starttls.el to lisp/obsolete/ (Bug#31457) 2018-06-18 20:01:44 -04:00
newst-backend.el * lisp/net/newst-backend.el (newsticker--sentinel-work): 2018-04-20 13:46:45 -04:00
newst-plainview.el
newst-reader.el
newst-ticker.el
newst-treeview.el
newsticker.el
nsm.el Fix typo in sha1-intermediate check 2018-07-08 16:14:06 +02:00
ntlm.el Audit use of lsh and fix glitches 2018-08-21 13:44:32 -07:00
pop3.el
puny.el
quickurl.el
rcirc.el Merge from origin/emacs-26 2018-07-13 09:28:15 -07:00
rfc2104.el
rlogin.el * lisp/comint.el: Clean up namespace 2018-07-18 10:23:20 -04:00
sasl-cram.el
sasl-digest.el
sasl-ntlm.el
sasl-scram-rfc.el
sasl.el Audit use of lsh and fix glitches 2018-08-21 13:44:32 -07:00
secrets.el Fix Bug#31846. Do not merge with master 2018-06-16 16:05:07 +02:00
shr-color.el
shr.el Don't have shr bug out on degenerate <img> tags 2018-06-11 20:38:53 +02:00
sieve-manage.el Move tls.el and starttls.el to lisp/obsolete/ (Bug#31457) 2018-06-18 20:01:44 -04:00
sieve-mode.el
sieve.el
snmp-mode.el
soap-client.el * lisp/net/soap-client.el (soap-type-of): Optimize for Emacs≥26 2018-07-17 22:22:41 -04:00
soap-inspect.el soap-client: Add byte-code compatibility function (Bug#31742) 2018-06-11 21:39:06 -04:00
socks.el Audit use of lsh and fix glitches 2018-08-21 13:44:32 -07:00
telnet.el
tramp-adb.el Improve backward compatibility of Tramp 2018-06-22 16:17:17 +02:00
tramp-archive.el Implement command completion in remote shells. (Bug#31704) 2018-06-20 12:13:56 +02:00
tramp-cache.el Sync with Tramp 2.3.4-pre 2018-05-29 09:57:48 +02:00
tramp-cmds.el Sync with Tramp 2.3.4-pre 2018-05-29 09:57:48 +02:00
tramp-compat.el Implement command completion in remote shells. (Bug#31704) 2018-06-20 12:13:56 +02:00
tramp-ftp.el
tramp-gvfs.el Rename Tramp method "owncloud" to "nextcloud" 2018-08-04 12:05:28 +02:00
tramp-sh.el Fix Bug#32325 2018-08-01 23:09:31 +02:00
tramp-smb.el Sync with Tramp 2.3.4. Do not merge with master 2018-06-27 13:08:18 +02:00
tramp-uu.el
tramp.el Audit use of lsh and fix glitches 2018-08-21 13:44:32 -07:00
trampver.el * lisp/net/trampver.el (customize-package-emacs-version-alist): 2018-07-20 11:30:04 +02:00
webjump.el
zeroconf.el