1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 06:20:55 -08:00
emacs/lisp/gnus
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
..
.dir-locals.el
canlock.el gnus: replace cl with cl-lib 2018-03-23 16:14:47 -04:00
ChangeLog.1 Update copyright year to 2018 2018-01-01 00:57:59 -08:00
ChangeLog.2 Update copyright year to 2018 2018-01-01 00:57:59 -08:00
ChangeLog.3 Update copyright year to 2018 2018-01-01 00:57:59 -08:00
deuglify.el ; Fix doc typos related to indefinite articles 2018-02-16 17:33:57 -05:00
gmm-utils.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
gnus-agent.el gnus: replace cl with cl-lib 2018-03-23 16:14:47 -04:00
gnus-art.el Add further clarifications to gnus-blocked-images 2018-07-22 15:57:49 +02:00
gnus-async.el gnus: replace cl with cl-lib 2018-03-23 16:14:47 -04:00
gnus-bcklg.el gnus: replace cl with cl-lib 2018-03-23 16:14:47 -04:00
gnus-bookmark.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
gnus-cache.el gnus: replace cl with cl-lib 2018-03-23 16:14:47 -04:00
gnus-cite.el Clarify Gnus doc string 2018-04-12 16:33:36 +02:00
gnus-cloud.el gnus: replace cl with cl-lib 2018-03-23 16:14:47 -04:00
gnus-cus.el Merge from origin/emacs-26 2018-02-17 07:50:28 -08:00
gnus-delay.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
gnus-demon.el gnus: replace cl with cl-lib 2018-03-23 16:14:47 -04:00
gnus-diary.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
gnus-dired.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
gnus-draft.el gnus: replace cl with cl-lib 2018-03-23 16:14:47 -04:00
gnus-dup.el gnus: replace cl with cl-lib 2018-03-23 16:14:47 -04:00
gnus-eform.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
gnus-fun.el gnus: replace cl with cl-lib 2018-03-23 16:14:47 -04:00
gnus-gravatar.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
gnus-group.el When undoing a mark-as-read, display the group if it isn't 2018-04-17 21:32:25 +02:00
gnus-html.el gnus: replace cl with cl-lib 2018-03-23 16:14:47 -04:00
gnus-icalendar.el gnus: replace cl with cl-lib 2018-03-23 16:14:47 -04:00
gnus-int.el gnus: replace cl with cl-lib 2018-03-23 16:14:47 -04:00
gnus-kill.el gnus: replace cl with cl-lib 2018-03-23 16:14:47 -04:00
gnus-logic.el gnus: replace cl with cl-lib 2018-03-23 16:14:47 -04:00
gnus-mh.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
gnus-ml.el gnus: replace cl with cl-lib 2018-03-23 16:14:47 -04:00
gnus-mlspl.el Gnus Group Mail Spliting on mailing-list headers 2018-04-12 00:40:13 +02:00
gnus-msg.el Use “Cc” for email copies, as per RFC 5322. 2018-05-20 11:02:50 -07:00
gnus-notifications.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
gnus-picon.el gnus: replace cl with cl-lib 2018-03-23 16:14:47 -04:00
gnus-range.el gnus: replace cl with cl-lib 2018-03-23 16:14:47 -04:00
gnus-registry.el Remove some unused gnus-registry variables 2018-03-23 20:01:26 -04:00
gnus-rfc1843.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
gnus-salt.el gnus: replace cl with cl-lib 2018-03-23 16:14:47 -04:00
gnus-score.el nil is no longer an allowed value for mm-inline-text-html 2018-04-12 19:18:26 +02:00
gnus-sieve.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
gnus-spec.el gnus: replace cl with cl-lib 2018-03-23 16:14:47 -04:00
gnus-srvr.el Remove two string-as-unibyte in gnus-srvr.el 2018-04-14 23:54:07 +02:00
gnus-start.el Remove call to string-as-unibyte in gnus-start.el 2018-04-15 00:09:47 +02:00
gnus-sum.el Fix docstring of gnus-dependencies-add-header 2018-07-25 12:13:36 -07:00
gnus-topic.el gnus: replace cl with cl-lib 2018-03-23 16:14:47 -04:00
gnus-undo.el gnus: replace cl with cl-lib 2018-03-23 16:14:47 -04:00
gnus-util.el Doc string update for gnus-extract-address-components 2018-04-15 23:12:26 +02:00
gnus-uu.el gnus: replace cl with cl-lib 2018-03-23 16:14:47 -04:00
gnus-vm.el gnus: replace cl with cl-lib 2018-03-23 16:14:47 -04:00
gnus-win.el gnus: replace cl with cl-lib 2018-03-23 16:14:47 -04:00
gnus.el Revert "Add colors to faces that lack them." 2018-04-13 22:52:16 +02:00
gssapi.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
legacy-gnus-agent.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
mail-source.el Merge from origin/emacs-26 2018-06-18 12:14:25 -07:00
message.el Audit use of lsh and fix glitches 2018-08-21 13:44:32 -07:00
mm-archive.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
mm-bodies.el Rewrite Gnus calls to compat function mm-multibyte-p 2018-04-15 00:30:14 +02:00
mm-decode.el Rewrite Gnus calls to compat function mm-multibyte-p 2018-04-15 00:30:14 +02:00
mm-encode.el gnus: replace cl with cl-lib 2018-03-23 16:14:47 -04:00
mm-extern.el * lisp/gnus/mm-extern.el: Use lexical-binding 2018-02-27 20:39:06 -05:00
mm-partial.el gnus: replace cl with cl-lib 2018-03-23 16:14:47 -04:00
mm-url.el gnus: replace cl with cl-lib 2018-03-23 16:14:47 -04:00
mm-util.el Rewrite Gnus calls to compat function mm-multibyte-p 2018-04-15 00:30:14 +02:00
mm-uu.el gnus: replace cl with cl-lib 2018-03-23 16:14:47 -04:00
mm-view.el nil is no longer an allowed value for mm-inline-text-html 2018-04-12 19:18:26 +02:00
mml-sec.el Quieten cl-lib related compiler warnings 2018-03-22 21:40:24 -07:00
mml-smime.el gnus: replace cl with cl-lib 2018-03-23 16:14:47 -04:00
mml.el gnus: replace cl with cl-lib 2018-03-23 16:14:47 -04:00
mml1991.el Revert "Revert "Give better errors in signing failures in Gnus"" 2018-04-14 17:18:53 +02:00
mml2015.el Revert "Revert "Give better errors in signing failures in Gnus"" 2018-04-14 17:18:53 +02:00
nnagent.el gnus: replace cl with cl-lib 2018-03-23 16:14:47 -04:00
nnbabyl.el gnus: replace cl with cl-lib 2018-03-23 16:14:47 -04:00
nndiary.el Clean up some defvoo doc strings 2018-04-13 20:00:52 +02:00
nndir.el Clean up some defvoo doc strings 2018-04-13 20:00:52 +02:00
nndoc.el Audit use of lsh and fix glitches 2018-08-21 13:44:32 -07:00
nndraft.el gnus: replace cl with cl-lib 2018-03-23 16:14:47 -04:00
nneething.el gnus: replace cl with cl-lib 2018-03-23 16:14:47 -04:00
nnfolder.el gnus: replace cl with cl-lib 2018-03-23 16:14:47 -04:00
nngateway.el gnus: replace cl with cl-lib 2018-03-23 16:14:47 -04:00
nnheader.el Remove calls from string-to-multibyte in nnheader/nntp 2018-04-15 01:07:38 +02:00
nnimap.el Make nnimap support IMAP namespaces 2018-08-11 10:46:02 +03:00
nnir.el Remove calls to string-as-unibyte from nnir.el 2018-04-15 00:14:30 +02:00
nnmail.el Rewrite Gnus calls to compat function mm-multibyte-p 2018-04-15 00:30:14 +02:00
nnmaildir.el Audit use of lsh and fix glitches 2018-08-21 13:44:32 -07:00
nnmairix.el gnus: replace cl with cl-lib 2018-03-23 16:14:47 -04:00
nnmbox.el gnus: replace cl with cl-lib 2018-03-23 16:14:47 -04:00
nnmh.el Remove a string-to-multibyte from nnmh.el 2018-04-15 00:57:40 +02:00
nnml.el gnus: replace cl with cl-lib 2018-03-23 16:14:47 -04:00
nnnil.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
nnoo.el gnus: replace cl with cl-lib 2018-03-23 16:14:47 -04:00
nnregistry.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
nnrss.el Clean up some defvoo doc strings 2018-04-13 20:00:52 +02:00
nnspool.el The tedious game of whack-a-mole with compiler warnings continues 2018-04-20 18:34:39 -04:00
nntp.el Remove calls from string-to-multibyte in nnheader/nntp 2018-04-15 01:07:38 +02:00
nnvirtual.el gnus: replace cl with cl-lib 2018-03-23 16:14:47 -04:00
nnweb.el Removed outdated comment from nnweb.el 2018-04-15 00:32:10 +02:00
score-mode.el gnus: replace cl with cl-lib 2018-03-23 16:14:47 -04:00
smiley.el gnus: replace cl with cl-lib 2018-03-23 16:14:47 -04:00
smime.el ; Add fixme comments re password caching 2018-03-05 13:36:05 -05:00
spam-report.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
spam-stat.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
spam-wash.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
spam.el gnus: replace cl with cl-lib 2018-03-23 16:14:47 -04:00