1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-11 14:01:43 -08:00
emacs/doc/misc
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
..
ada-mode.texi Fix use of @key in Texinfo manuals 2018-04-19 12:21:06 +03:00
auth.texi Merge from origin/emacs-26 2018-01-01 01:13:04 -08:00
autotype.texi Fix typos in several manuals (Bug#31610) 2018-06-01 16:33:58 +03:00
bovine.texi Fix copyright years by hand 2018-01-01 01:02:09 -08:00
calc.texi Audit use of lsh and fix glitches 2018-08-21 13:44:32 -07:00
cc-mode.texi ; Spelling fixes 2018-03-04 17:10:34 -08:00
ChangeLog.1 Update copyright year to 2018 2018-01-01 00:57:59 -08:00
cl.texi Audit use of lsh and fix glitches 2018-08-21 13:44:32 -07:00
dbus.texi Further improvements on manuals 2018-03-01 09:25:55 +01:00
dired-x.texi Remove obsolete objects from dired-x.el 2018-05-14 17:06:33 +02:00
doclicense.texi Merge from Gnulib 2017-10-01 18:31:10 -07:00
ebrowse.texi * doc/misc/ebrowse.texi: Use @key{} for keys. 2018-02-24 17:56:43 +01:00
ede.texi Merge from origin/emacs-26 2018-02-28 09:40:40 -08:00
ediff.texi Fix use of @key in Texinfo manuals 2018-04-19 12:21:06 +03:00
edt.texi Mark keys consistently in manuals 2018-02-26 13:53:37 +01:00
efaq-w32.texi Fix use of @key in Texinfo manuals 2018-04-19 12:21:06 +03:00
efaq.texi * lisp/comint.el: Clean up namespace 2018-07-18 10:23:20 -04:00
eieio.texi Fix @cindex entries in manuals 2018-02-24 20:52:21 +01:00
emacs-gnutls.texi Fix copyright years by hand 2018-01-01 01:02:09 -08:00
emacs-mime.texi Fix a typo in emacs-mime.texi (Bug#31610) 2018-06-01 16:38:09 +03:00
epa.texi Fix @kindex entries in manuals 2018-02-25 16:29:39 +01:00
erc.texi Mark keys consistently in manuals 2018-02-26 13:53:37 +01:00
ert.texi Fix some documentation formatting nits 2018-08-03 08:54:08 -07:00
eshell.texi Merge from origin/emacs-26 2018-04-20 08:07:43 -07:00
eudc.texi Fix copyright years by hand 2018-01-01 01:02:09 -08:00
eww.texi Remove @key{} markups from @kindex entries in manuals 2018-02-26 09:24:39 +01:00
flymake.texi Fix @include directive in Flymake doc again 2018-07-28 08:41:10 +01:00
forms.texi Remove @key{} markups from @kindex entries in manuals 2018-02-26 09:24:39 +01:00
gnus-coding.texi Fix copyright years by hand 2018-01-01 01:02:09 -08:00
gnus-faq.texi Use “Cc” for email copies, as per RFC 5322. 2018-05-20 11:02:50 -07:00
gnus-news.el Fix copyright years by hand 2018-01-01 01:02:09 -08:00
gnus-news.texi Mark keys consistently in manuals 2018-02-26 13:53:37 +01:00
gnus-overrides.texi gnus-overrides.texi: Renamed from overrides.texi and all the relevant manuals use it now. 2011-02-06 00:25:41 +00:00
gnus.texi Make nnimap support IMAP namespaces 2018-08-11 10:46:02 +03:00
gpl.texi Merge from Gnulib 2017-10-01 18:31:10 -07:00
htmlfontify.texi Doc fixes re obsolete items 2018-03-13 14:47:41 -04:00
idlwave.texi Fix use of @key in Texinfo manuals 2018-04-19 12:21:06 +03:00
ido.texi Mark keys consistently in manuals 2018-02-26 13:53:37 +01:00
info.texi Fix use of @key in Texinfo manuals 2018-04-19 12:21:06 +03:00
mairix-el.texi Mark keys consistently in manuals 2018-02-26 13:53:37 +01:00
Makefile.in Update copyright year to 2018 2018-01-01 00:57:59 -08:00
message.texi Revert part of the previous change 2018-05-20 21:27:42 +03:00
mh-e.texi Use “Cc” for email copies, as per RFC 5322. 2018-05-20 11:02:50 -07:00
newsticker.texi Mark keys consistently in manuals 2018-02-26 13:53:37 +01:00
nxml-mode.texi Fix copyright years by hand 2018-01-01 01:02:09 -08:00
octave-mode.texi Fix copyright years by hand 2018-01-01 01:02:09 -08:00
org.texi Merge from origin/emacs-26 2018-06-02 10:29:37 -07:00
pcl-cvs.texi Fix use of @key in Texinfo manuals 2018-04-19 12:21:06 +03:00
pgg.texi Fix copyright years by hand 2018-01-01 01:02:09 -08:00
rcirc.texi Remove @key{} markups from @kindex entries in manuals 2018-02-26 09:24:39 +01:00
reftex.texi Fix use of @key in Texinfo manuals 2018-04-19 12:21:06 +03:00
remember.texi Fix copyright years by hand 2018-01-01 01:02:09 -08:00
sasl.texi Fix copyright years by hand 2018-01-01 01:02:09 -08:00
sc.texi Fix use of @key in Texinfo manuals 2018-04-19 12:21:06 +03:00
sem-user.texi Fix @cindex entries in manuals 2018-02-24 20:52:21 +01:00
semantic.texi Semantic manual fixes 2018-02-21 20:13:01 +01:00
ses.texi Mark keys consistently in manuals 2018-02-26 13:53:37 +01:00
sieve.texi Mark keys consistently in manuals 2018-02-26 13:53:37 +01:00
smtpmail.texi Mark keys consistently in manuals 2018-02-26 13:53:37 +01:00
speedbar.texi Replace some obsolete aliases in documentation 2018-03-07 15:41:29 -05:00
srecode.texi Mark keys consistently in manuals 2018-02-26 13:53:37 +01:00
texinfo.tex Update from Gnulib 2018-06-29 17:32:35 -07:00
todo-mode.texi Update copyright year to 2018 2018-01-01 00:57:59 -08:00
tramp.texi Editorial changes in tramp.texi 2018-08-11 09:51:27 +02:00
trampver.texi Fix (Bug#32218). Do not merge with master 2018-07-20 10:56:41 +02:00
url.texi ; * doc/misc/url.texi (file/ftp): Remove stray '@end defopt'. 2018-04-14 01:58:38 -04:00
vhdl-mode.texi Mark keys consistently in manuals 2018-02-26 13:53:37 +01:00
vip.texi Fix use of @key in Texinfo manuals 2018-04-19 12:21:06 +03:00
viper.texi Fix typos in several manuals (Bug#31610) 2018-06-01 16:33:58 +03:00
widget.texi Fix copyright years by hand 2018-01-01 01:02:09 -08:00
wisent.texi Fix typos in several manuals (Bug#31610) 2018-06-01 16:33:58 +03:00
woman.texi Remove @key{} markups from @kindex entries in manuals 2018-02-26 09:24:39 +01:00