1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-25 06:50:46 -08: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 Make dbus.el fitter for Emacs configured --without-dbus 2018-04-06 11:49:21 +02:00
dig.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
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 Update copyright year to 2018 2018-01-01 00:57:59 -08:00
eudc-hotlist.el EUDC: Remove XEmacs support 2018-08-15 21:43:00 -04:00
eudc-vars.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
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 Update copyright year to 2018 2018-01-01 00:57:59 -08:00
eudcb-mab.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
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 Update copyright year to 2018 2018-01-01 00:57:59 -08:00
hmac-md5.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
imap.el Update some lisp function declarations 2018-02-26 13:35:30 -05:00
ldap.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
mailcap.el Tweak mailcap precedence so that Emacs values are heeded better 2018-04-14 14:50:14 +02:00
mairix.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
net-utils.el Remove many items obsolete since Emacs 22.1 2018-03-10 19:15:56 -08:00
netrc.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
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 Remove some declare-function stub definitions 2018-03-23 16:28:24 -04:00
newst-reader.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
newst-ticker.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
newst-treeview.el Remove some declare-function stub definitions 2018-03-23 16:28:24 -04:00
newsticker.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
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 Remove final uses of 'cl' in lisp/net 2018-01-23 14:42:43 -05:00
puny.el Explicitly require cl-lib where needed 2018-03-16 20:41:17 -04:00
quickurl.el Replace uses of the obsolete local-write-file-hooks 2018-03-08 20:03:13 -05:00
rcirc.el Merge from origin/emacs-26 2018-07-13 09:28:15 -07:00
rfc2104.el Remove final uses of 'cl' in lisp/net 2018-01-23 14:42:43 -05:00
rlogin.el * lisp/comint.el: Clean up namespace 2018-07-18 10:23:20 -04:00
sasl-cram.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
sasl-digest.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
sasl-ntlm.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
sasl-scram-rfc.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
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 Merge from origin/emacs-26 2018-02-09 11:12:48 -08:00
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 Update copyright year to 2018 2018-01-01 00:57:59 -08:00
sieve.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
snmp-mode.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
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 Update copyright year to 2018 2018-01-01 00:57:59 -08:00
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 Update copyright year to 2018 2018-01-01 00:57:59 -08:00
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 Update copyright year to 2018 2018-01-01 00:57:59 -08:00
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 Update copyright year to 2018 2018-01-01 00:57:59 -08:00
zeroconf.el * lisp/net/zeroconf.el (dbus-debug): Declare for builds without dbus. 2018-02-26 17:00:41 -05:00