1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 06:20:55 -08:00
emacs/lisp/org
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
..
ChangeLog.1 Update copyright year to 2018 2018-01-01 00:57:59 -08:00
ob-abc.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
ob-asymptote.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-awk.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-C.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-calc.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-clojure.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-comint.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-coq.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-core.el Add predicate proper-list-p 2018-07-09 19:00:43 -07:00
ob-css.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-ditaa.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-dot.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-ebnf.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-emacs-lisp.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-eval.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-exp.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-forth.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-fortran.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-gnuplot.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-groovy.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-haskell.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-hledger.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-io.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-J.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-java.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-js.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-keys.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-latex.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-ledger.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-lilypond.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-lisp.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-lob.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-lua.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-makefile.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-matlab.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-maxima.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-mscgen.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-ocaml.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-octave.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-org.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-perl.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-picolisp.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-plantuml.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-processing.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-python.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-R.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-ref.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-ruby.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-sass.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-scheme.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-screen.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-sed.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
ob-shell.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-shen.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-sql.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-sqlite.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-stan.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-table.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-tangle.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-vala.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
org-agenda.el The tedious game of whack-a-mole with compiler warnings continues 2018-04-20 18:34:39 -04:00
org-archive.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
org-attach.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
org-bbdb.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
org-bibtex.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
org-capture.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
org-clock.el Port recent org-clock fix to POSIX time_t 2018-03-28 15:04:50 -07:00
org-colview.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
org-compat.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
org-crypt.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
org-ctags.el Prefer \... to control chars in .el literals 2018-03-29 17:43:08 -07:00
org-datetree.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
org-docview.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
org-duration.el Update Org to v9.1.6 2018-01-22 16:02:55 +01:00
org-element.el Merge from origin/emacs-26 2018-03-28 09:38:22 -07:00
org-entities.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
org-eshell.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
org-eww.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
org-faces.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
org-feed.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
org-footnote.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
org-gnus.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
org-habit.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
org-id.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
org-indent.el Merge from origin/emacs-26 2018-03-28 09:38:22 -07:00
org-info.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
org-inlinetask.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
org-install.el
org-irc.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
org-lint.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
org-list.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
org-macro.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
org-macs.el Merge from origin/emacs-26 2018-03-28 09:38:22 -07:00
org-mhe.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
org-mobile.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
org-mouse.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
org-pcomplete.el Merge from origin/emacs-26 2018-03-28 09:38:22 -07:00
org-plot.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
org-protocol.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
org-rmail.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
org-src.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
org-table.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
org-timer.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
org-version.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
org-w3m.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
org.el Audit use of lsh and fix glitches 2018-08-21 13:44:32 -07:00
ox-ascii.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
ox-beamer.el Update Org to v9.1.6 2018-01-22 16:02:55 +01:00
ox-html.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ox-icalendar.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ox-latex.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ox-man.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
ox-md.el Update Org to v9.1.6 2018-01-22 16:02:55 +01:00
ox-odt.el Merge from origin/emacs-26 2018-03-28 09:38:22 -07:00
ox-org.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
ox-publish.el Audit use of lsh and fix glitches 2018-08-21 13:44:32 -07:00
ox-texinfo.el ; Fix doc typos related to indefinite articles 2018-02-16 15:16:15 -05:00
ox.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00