emacs/lisp/mail
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
..
binhex.el Audit use of lsh and fix glitches 2018-08-21 13:44:32 -07:00
blessmail.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
emacsbug.el Recognize more system descriptions in report-emacs-bug 2018-01-29 23:01:28 -08:00
feedmail.el Use “Cc” for email copies, as per RFC 5322. 2018-05-20 11:02:50 -07:00
flow-fill.el Merge from origin/emacs-26 2018-01-01 01:13:04 -08:00
footnote.el Optionally add argument description in minor mode DOC (bug#10754) 2018-07-01 23:34:53 -04:00
hashcash.el Update some lisp function declarations 2018-02-26 13:35:30 -05:00
ietf-drums.el Update doc string after previous ietf-drums change 2018-04-15 19:49:47 +02:00
mail-extr.el mail-extr.el: Mention `mail-header-parse-address' in the doc string 2018-04-15 19:45:05 +02:00
mail-hist.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
mail-parse.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
mail-prsvr.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
mail-utils.el Use “Cc” for email copies, as per RFC 5322. 2018-05-20 11:02:50 -07:00
mailabbrev.el Optionally add argument description in minor mode DOC (bug#10754) 2018-07-01 23:34:53 -04:00
mailalias.el Use “Cc” for email copies, as per RFC 5322. 2018-05-20 11:02:50 -07:00
mailclient.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
mailheader.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
metamail.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
mspools.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
qp.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
reporter.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
rfc822.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
rfc2045.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
rfc2047.el Use “Cc” for email copies, as per RFC 5322. 2018-05-20 11:02:50 -07:00
rfc2231.el Explicitly require cl-lib where needed 2018-03-16 20:41:17 -04:00
rfc2368.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
rmail-spam-filter.el Use “Cc” for email copies, as per RFC 5322. 2018-05-20 11:02:50 -07:00
rmail.el Audit use of lsh and fix glitches 2018-08-21 13:44:32 -07:00
rmailedit.el ; Fix doc typos related to indefinite articles 2018-02-16 15:16:15 -05:00
rmailkwd.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
rmailmm.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
rmailmsc.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
rmailout.el Allow to reset Deleted flag when exporting messages in Rmail 2018-06-09 11:03:20 +03:00
rmailsort.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
rmailsum.el rmail-summary-by-senders defaults to sender 2018-06-18 00:21:22 -07:00
sendmail.el * lisp/mail/sendmail.el: Use lexical-binding 2018-07-03 18:16:52 -04:00
smtpmail.el Use “Cc” for email copies, as per RFC 5322. 2018-05-20 11:02:50 -07:00
supercite.el Remove some obsolete compat code in supercite.el 2018-01-09 22:58:08 -08:00
uce.el Use “Cc” for email copies, as per RFC 5322. 2018-05-20 11:02:50 -07:00
undigest.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
unrmail.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
uudecode.el Audit use of lsh and fix glitches 2018-08-21 13:44:32 -07:00
yenc.el Merge from origin/emacs-26 2018-01-01 01:13:04 -08:00