aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorK. Handa2015-09-08 20:43:11 +0900
committerK. Handa2015-09-08 20:43:11 +0900
commit94ed5167557112fb00eeca05e62589db744206de (patch)
tree80a544f8534802dd61fbd218b97441d3419dbf6b
parent33f2e0023a5ef03db3e99ade0b93a7a1a913dbe1 (diff)
parent10e7f7de910ca816799062f33b830f7598801f0e (diff)
downloademacs-94ed5167557112fb00eeca05e62589db744206de.tar.gz
emacs-94ed5167557112fb00eeca05e62589db744206de.zip
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs
-rw-r--r--ChangeLog.2634
-rw-r--r--admin/unidata/unidata-gen.el2
-rw-r--r--doc/emacs/building.texi2
-rw-r--r--doc/emacs/custom.texi2
-rw-r--r--doc/emacs/emacs.texi20
-rw-r--r--doc/emacs/files.texi2
-rw-r--r--doc/emacs/help.texi2
-rw-r--r--doc/emacs/package.texi2
-rw-r--r--doc/emacs/picture-xtra.texi2
-rw-r--r--doc/emacs/programs.texi1
-rw-r--r--doc/emacs/search.texi4
-rw-r--r--doc/emacs/text.texi4
-rw-r--r--doc/emacs/trouble.texi8
-rw-r--r--doc/lispintro/emacs-lisp-intro.texi38
-rw-r--r--doc/lispref/anti.texi4
-rw-r--r--doc/lispref/buffers.texi2
-rw-r--r--doc/lispref/control.texi2
-rw-r--r--doc/lispref/display.texi8
-rw-r--r--doc/lispref/elisp.texi14
-rw-r--r--doc/lispref/eval.texi2
-rw-r--r--doc/lispref/files.texi4
-rw-r--r--doc/lispref/frames.texi2
-rw-r--r--doc/lispref/functions.texi4
-rw-r--r--doc/lispref/help.texi8
-rw-r--r--doc/lispref/loading.texi2
-rw-r--r--doc/lispref/markers.texi4
-rw-r--r--doc/lispref/modes.texi14
-rw-r--r--doc/lispref/os.texi29
-rw-r--r--doc/lispref/package.texi6
-rw-r--r--doc/lispref/processes.texi4
-rw-r--r--doc/lispref/sequences.texi25
-rw-r--r--doc/lispref/strings.texi30
-rw-r--r--doc/lispref/text.texi4
-rw-r--r--doc/lispref/tips.texi8
-rw-r--r--doc/lispref/variables.texi2
-rw-r--r--doc/misc/ede.texi6
-rw-r--r--doc/misc/efaq.texi2
-rw-r--r--doc/misc/eieio.texi2
-rw-r--r--doc/misc/ert.texi2
-rw-r--r--doc/misc/gnus-faq.texi24
-rw-r--r--doc/misc/gnus.texi11
-rw-r--r--doc/misc/rcirc.texi2
-rw-r--r--doc/misc/tramp.texi18
-rw-r--r--doc/misc/viper.texi2
-rw-r--r--etc/NEWS32
-rw-r--r--lisp/abbrev.el2
-rw-r--r--lisp/align.el2
-rw-r--r--lisp/allout-widgets.el10
-rw-r--r--lisp/allout.el24
-rw-r--r--lisp/apropos.el2
-rw-r--r--lisp/bookmark.el4
-rw-r--r--lisp/bs.el2
-rw-r--r--lisp/button.el6
-rw-r--r--lisp/calc/calc-aent.el10
-rw-r--r--lisp/calc/calc-embed.el2
-rw-r--r--lisp/calc/calc-ext.el2
-rw-r--r--lisp/calc/calc-graph.el2
-rw-r--r--lisp/calc/calc-help.el16
-rw-r--r--lisp/calc/calc-lang.el42
-rw-r--r--lisp/calc/calc-misc.el4
-rw-r--r--lisp/calc/calc-mode.el12
-rw-r--r--lisp/calc/calc-prog.el14
-rw-r--r--lisp/calc/calc-store.el2
-rw-r--r--lisp/calc/calc-units.el6
-rw-r--r--lisp/calc/calc-vec.el4
-rw-r--r--lisp/calc/calc-yank.el4
-rw-r--r--lisp/calc/calc.el12
-rw-r--r--lisp/calculator.el2
-rw-r--r--lisp/calendar/appt.el2
-rw-r--r--lisp/calendar/cal-bahai.el74
-rw-r--r--lisp/calendar/cal-hebrew.el2
-rw-r--r--lisp/calendar/cal-menu.el4
-rw-r--r--lisp/calendar/cal-tex.el2
-rw-r--r--lisp/calendar/calendar.el22
-rw-r--r--lisp/calendar/diary-lib.el18
-rw-r--r--lisp/calendar/holidays.el18
-rw-r--r--lisp/calendar/icalendar.el14
-rw-r--r--lisp/calendar/time-date.el4
-rw-r--r--lisp/calendar/timeclock.el10
-rw-r--r--lisp/calendar/todo-mode.el22
-rw-r--r--lisp/cedet/cedet-global.el2
-rw-r--r--lisp/cedet/ede.el2
-rw-r--r--lisp/cedet/ede/auto.el6
-rw-r--r--lisp/cedet/ede/pmake.el2
-rw-r--r--lisp/cedet/inversion.el4
-rw-r--r--lisp/cedet/mode-local.el12
-rw-r--r--lisp/cedet/semantic/analyze.el6
-rw-r--r--lisp/cedet/semantic/analyze/complete.el6
-rw-r--r--lisp/cedet/semantic/bovine/gcc.el6
-rw-r--r--lisp/cedet/semantic/complete.el4
-rw-r--r--lisp/cedet/semantic/db-find.el2
-rw-r--r--lisp/cedet/semantic/decorate/include.el2
-rw-r--r--lisp/cedet/semantic/fw.el8
-rw-r--r--lisp/cedet/semantic/java.el2
-rw-r--r--lisp/cedet/semantic/tag-ls.el10
-rw-r--r--lisp/cedet/semantic/wisent/javascript.el12
-rw-r--r--lisp/cedet/srecode/insert.el6
-rw-r--r--lisp/cedet/srecode/srt-mode.el4
-rw-r--r--lisp/comint.el2
-rw-r--r--lisp/cus-edit.el2
-rw-r--r--lisp/cus-start.el2
-rw-r--r--lisp/cus-theme.el4
-rw-r--r--lisp/custom.el12
-rw-r--r--lisp/descr-text.el32
-rw-r--r--lisp/dired-x.el8
-rw-r--r--lisp/dired.el6
-rw-r--r--lisp/electric.el12
-rw-r--r--lisp/emacs-lisp/advice.el42
-rw-r--r--lisp/emacs-lisp/byte-opt.el24
-rw-r--r--lisp/emacs-lisp/byte-run.el4
-rw-r--r--lisp/emacs-lisp/bytecomp.el88
-rw-r--r--lisp/emacs-lisp/cconv.el6
-rw-r--r--lisp/emacs-lisp/chart.el2
-rw-r--r--lisp/emacs-lisp/check-declare.el10
-rw-r--r--lisp/emacs-lisp/checkdoc.el29
-rw-r--r--lisp/emacs-lisp/cl-extra.el22
-rw-r--r--lisp/emacs-lisp/cl-generic.el10
-rw-r--r--lisp/emacs-lisp/cl-macs.el36
-rw-r--r--lisp/emacs-lisp/cl.el8
-rw-r--r--lisp/emacs-lisp/copyright.el4
-rw-r--r--lisp/emacs-lisp/disass.el63
-rw-r--r--lisp/emacs-lisp/edebug.el2
-rw-r--r--lisp/emacs-lisp/eieio-base.el2
-rw-r--r--lisp/emacs-lisp/eieio-core.el19
-rw-r--r--lisp/emacs-lisp/eieio-opt.el4
-rw-r--r--lisp/emacs-lisp/eieio-speedbar.el4
-rw-r--r--lisp/emacs-lisp/eieio.el17
-rw-r--r--lisp/emacs-lisp/elint.el16
-rw-r--r--lisp/emacs-lisp/ert.el23
-rw-r--r--lisp/emacs-lisp/find-func.el6
-rw-r--r--lisp/emacs-lisp/generator.el2
-rw-r--r--lisp/emacs-lisp/gv.el2
-rw-r--r--lisp/emacs-lisp/lisp-mnt.el14
-rw-r--r--lisp/emacs-lisp/macroexp.el4
-rw-r--r--lisp/emacs-lisp/map-ynp.el6
-rw-r--r--lisp/emacs-lisp/map.el13
-rw-r--r--lisp/emacs-lisp/nadvice.el6
-rw-r--r--lisp/emacs-lisp/package-x.el2
-rw-r--r--lisp/emacs-lisp/package.el186
-rw-r--r--lisp/emacs-lisp/pcase.el10
-rw-r--r--lisp/emacs-lisp/re-builder.el2
-rw-r--r--lisp/emacs-lisp/regexp-opt.el2
-rw-r--r--lisp/emacs-lisp/ring.el4
-rw-r--r--lisp/emacs-lisp/rx.el38
-rw-r--r--lisp/emacs-lisp/seq.el32
-rw-r--r--lisp/emacs-lisp/smie.el6
-rw-r--r--lisp/emacs-lisp/subr-x.el2
-rw-r--r--lisp/emacs-lisp/tabulated-list.el2
-rw-r--r--lisp/emacs-lisp/testcover.el2
-rw-r--r--lisp/emacs-lisp/timer.el2
-rw-r--r--lisp/emulation/viper-cmd.el10
-rw-r--r--lisp/emulation/viper-init.el2
-rw-r--r--lisp/emulation/viper-keym.el2
-rw-r--r--lisp/emulation/viper-macs.el8
-rw-r--r--lisp/env.el4
-rw-r--r--lisp/erc/erc-backend.el14
-rw-r--r--lisp/erc/erc-button.el2
-rw-r--r--lisp/erc/erc-dcc.el2
-rw-r--r--lisp/erc/erc.el18
-rw-r--r--lisp/eshell/em-dirs.el4
-rw-r--r--lisp/eshell/em-glob.el6
-rw-r--r--lisp/eshell/em-pred.el22
-rw-r--r--lisp/eshell/em-script.el4
-rw-r--r--lisp/eshell/esh-opt.el2
-rw-r--r--lisp/eshell/esh-util.el2
-rw-r--r--lisp/eshell/esh-var.el2
-rw-r--r--lisp/facemenu.el10
-rw-r--r--lisp/faces.el32
-rw-r--r--lisp/ffap.el6
-rw-r--r--lisp/filenotify.el114
-rw-r--r--lisp/files-x.el2
-rw-r--r--lisp/files.el38
-rw-r--r--lisp/filesets.el34
-rw-r--r--lisp/find-cmd.el4
-rw-r--r--lisp/finder.el2
-rw-r--r--lisp/font-lock.el9
-rw-r--r--lisp/format.el6
-rw-r--r--lisp/frame.el4
-rw-r--r--lisp/fringe.el2
-rw-r--r--lisp/gnus/gmm-utils.el2
-rw-r--r--lisp/gnus/gnus-art.el22
-rw-r--r--lisp/gnus/gnus-registry.el6
-rw-r--r--lisp/gnus/gnus-start.el3
-rw-r--r--lisp/gnus/gnus-sum.el2
-rw-r--r--lisp/gnus/gnus-uu.el2
-rw-r--r--lisp/gnus/gnus.el4
-rw-r--r--lisp/gnus/mail-source.el11
-rw-r--r--lisp/gnus/message.el2
-rw-r--r--lisp/gnus/nnimap.el6
-rw-r--r--lisp/gnus/nnir.el20
-rw-r--r--lisp/gnus/nnmail.el4
-rw-r--r--lisp/gnus/nnmairix.el4
-rw-r--r--lisp/gnus/nntp.el2
-rw-r--r--lisp/help-fns.el72
-rw-r--r--lisp/help.el10
-rw-r--r--lisp/hi-lock.el2
-rw-r--r--lisp/htmlfontify.el10
-rw-r--r--lisp/ibuffer.el2
-rw-r--r--lisp/ido.el4
-rw-r--r--lisp/image.el4
-rw-r--r--lisp/info.el6
-rw-r--r--lisp/international/ccl.el3
-rw-r--r--lisp/international/fontset.el2
-rw-r--r--lisp/international/mule-cmds.el30
-rw-r--r--lisp/international/mule-conf.el8
-rw-r--r--lisp/international/mule-diag.el14
-rw-r--r--lisp/international/ogonek.el26
-rw-r--r--lisp/json.el2
-rw-r--r--lisp/kermit.el2
-rw-r--r--lisp/leim/quail/cyrillic.el6
-rw-r--r--lisp/leim/quail/hebrew.el16
-rw-r--r--lisp/leim/quail/latin-ltx.el8
-rw-r--r--lisp/leim/quail/thai.el6
-rw-r--r--lisp/leim/quail/tibetan.el12
-rw-r--r--lisp/ls-lisp.el2
-rw-r--r--lisp/mail/feedmail.el16
-rw-r--r--lisp/mail/mailalias.el6
-rw-r--r--lisp/mail/rfc2368.el8
-rw-r--r--lisp/mail/sendmail.el28
-rw-r--r--lisp/man.el2
-rw-r--r--lisp/mh-e/mh-comp.el2
-rw-r--r--lisp/mh-e/mh-compat.el2
-rw-r--r--lisp/mh-e/mh-e.el6
-rw-r--r--lisp/mh-e/mh-seq.el4
-rw-r--r--lisp/mh-e/mh-utils.el10
-rw-r--r--lisp/mouse-copy.el2
-rw-r--r--lisp/mouse-drag.el4
-rw-r--r--lisp/mouse.el2
-rw-r--r--lisp/mpc.el12
-rw-r--r--lisp/msb.el2
-rw-r--r--lisp/net/ange-ftp.el4
-rw-r--r--lisp/net/browse-url.el2
-rw-r--r--lisp/net/imap.el4
-rw-r--r--lisp/net/mairix.el4
-rw-r--r--lisp/net/newst-backend.el4
-rw-r--r--lisp/net/newst-treeview.el4
-rw-r--r--lisp/net/ntlm.el159
-rw-r--r--lisp/net/rcirc.el2
-rw-r--r--lisp/net/rlogin.el2
-rw-r--r--lisp/net/soap-client.el2
-rw-r--r--lisp/net/tls.el2
-rw-r--r--lisp/net/tramp.el6
-rw-r--r--lisp/obsolete/fast-lock.el4
-rw-r--r--lisp/obsolete/iswitchb.el2
-rw-r--r--lisp/obsolete/landmark.el2
-rw-r--r--lisp/obsolete/lazy-lock.el2
-rw-r--r--lisp/obsolete/otodo-mode.el2
-rw-r--r--lisp/obsolete/pgg-gpg.el2
-rw-r--r--lisp/obsolete/pgg-pgp.el2
-rw-r--r--lisp/obsolete/pgg-pgp5.el2
-rw-r--r--lisp/obsolete/sym-comp.el6
-rw-r--r--lisp/obsolete/tpu-edt.el4
-rw-r--r--lisp/obsolete/vi.el2
-rw-r--r--lisp/org/ob-core.el6
-rw-r--r--lisp/org/ob-fortran.el2
-rw-r--r--lisp/org/ob-python.el2
-rw-r--r--lisp/org/ob-ref.el2
-rw-r--r--lisp/org/ob-scheme.el2
-rw-r--r--lisp/org/org-agenda.el18
-rw-r--r--lisp/org/org-bibtex.el8
-rw-r--r--lisp/org/org-capture.el4
-rw-r--r--lisp/org/org-clock.el4
-rw-r--r--lisp/org/org-ctags.el2
-rw-r--r--lisp/org/org-feed.el2
-rw-r--r--lisp/org/org-habit.el2
-rw-r--r--lisp/org/org-irc.el2
-rw-r--r--lisp/org/org-mouse.el8
-rw-r--r--lisp/org/org-plot.el2
-rw-r--r--lisp/org/org-protocol.el18
-rw-r--r--lisp/org/org-src.el6
-rw-r--r--lisp/org/org-table.el6
-rw-r--r--lisp/org/org.el20
-rw-r--r--lisp/org/ox.el12
-rw-r--r--lisp/pcmpl-cvs.el4
-rw-r--r--lisp/play/bubbles.el10
-rw-r--r--lisp/play/gomoku.el2
-rw-r--r--lisp/proced.el2
-rw-r--r--lisp/progmodes/ada-mode.el28
-rw-r--r--lisp/progmodes/ada-prj.el6
-rw-r--r--lisp/progmodes/ada-xref.el2
-rw-r--r--lisp/progmodes/cc-engine.el18
-rw-r--r--lisp/progmodes/cc-langs.el12
-rw-r--r--lisp/progmodes/cc-vars.el2
-rw-r--r--lisp/progmodes/cperl-mode.el2
-rw-r--r--lisp/progmodes/ebrowse.el2
-rw-r--r--lisp/progmodes/elisp-mode.el2
-rw-r--r--lisp/progmodes/etags.el4
-rw-r--r--lisp/progmodes/f90.el2
-rw-r--r--lisp/progmodes/flymake.el6
-rw-r--r--lisp/progmodes/fortran.el8
-rw-r--r--lisp/progmodes/gdb-mi.el18
-rw-r--r--lisp/progmodes/idlw-shell.el22
-rw-r--r--lisp/progmodes/idlwave.el22
-rw-r--r--lisp/progmodes/make-mode.el2
-rw-r--r--lisp/progmodes/prolog.el12
-rw-r--r--lisp/progmodes/python.el6
-rw-r--r--lisp/progmodes/sql.el2
-rw-r--r--lisp/progmodes/verilog-mode.el22
-rw-r--r--lisp/progmodes/vhdl-mode.el20
-rw-r--r--lisp/progmodes/xref.el4
-rw-r--r--lisp/recentf.el2
-rw-r--r--lisp/replace.el8
-rw-r--r--lisp/scroll-bar.el2
-rw-r--r--lisp/server.el2
-rw-r--r--lisp/simple.el36
-rw-r--r--lisp/speedbar.el8
-rw-r--r--lisp/startup.el58
-rw-r--r--lisp/subr.el14
-rw-r--r--lisp/term/common-win.el6
-rw-r--r--lisp/term/x-win.el4
-rw-r--r--lisp/textmodes/ispell.el4
-rw-r--r--lisp/textmodes/reftex-ref.el2
-rw-r--r--lisp/textmodes/reftex-toc.el2
-rw-r--r--lisp/textmodes/reftex-vars.el6
-rw-r--r--lisp/textmodes/reftex.el4
-rw-r--r--lisp/textmodes/rst.el6
-rw-r--r--lisp/textmodes/sgml-mode.el2
-rw-r--r--lisp/textmodes/table.el24
-rw-r--r--lisp/textmodes/tex-mode.el2
-rw-r--r--lisp/textmodes/texnfo-upd.el2
-rw-r--r--lisp/textmodes/tildify.el2
-rw-r--r--lisp/textmodes/two-column.el2
-rw-r--r--lisp/thingatpt.el4
-rw-r--r--lisp/thumbs.el2
-rw-r--r--lisp/tree-widget.el6
-rw-r--r--lisp/tutorial.el10
-rw-r--r--lisp/type-break.el2
-rw-r--r--lisp/url/url-util.el2
-rw-r--r--lisp/url/url-vars.el6
-rw-r--r--lisp/vc/ediff-mult.el5
-rw-r--r--lisp/vc/ediff-ptch.el2
-rw-r--r--lisp/vc/vc-git.el4
-rw-r--r--lisp/vc/vc-hooks.el28
-rw-r--r--lisp/wdired.el8
-rw-r--r--lisp/whitespace.el8
-rw-r--r--lisp/widget.el2
-rw-r--r--lisp/window.el2
-rw-r--r--lisp/woman.el12
-rw-r--r--src/dispextern.h1
-rw-r--r--src/doc.c14
-rw-r--r--src/editfns.c4
-rw-r--r--src/keyboard.c46
-rw-r--r--src/keyboard.h5
-rw-r--r--src/process.c12
-rw-r--r--src/w32.c33
-rw-r--r--src/xdisp.c22
-rw-r--r--src/xfaces.c2
-rw-r--r--test/automated/Makefile.in8
-rw-r--r--test/automated/flymake-tests.el1
-rw-r--r--test/automated/map-tests.el44
-rw-r--r--test/automated/python-tests.el21
-rw-r--r--test/automated/seq-tests.el21
-rw-r--r--test/automated/textprop-tests.el2
-rw-r--r--test/automated/tildify-tests.el3
354 files changed, 2575 insertions, 1704 deletions
diff --git a/ChangeLog.2 b/ChangeLog.2
index 856cb58ed1e..c4912f7d8e1 100644
--- a/ChangeLog.2
+++ b/ChangeLog.2
@@ -1,3 +1,635 @@
12015-09-05 Paul Eggert <eggert@cs.ucla.edu>
2
3 Spelling fix (Bug#21420)
4
52015-09-05 Nicolas Petton <nicolas@petton.fr>
6
7 Improve the semantic of map-some
8 Update map-some to return the returned by the predicate, similar to
9 seq-some.
10 * lisp/emacs-lisp/map.el (map-some): Update the function to return the
11 return value of the predicate.
12 * test/automated/map-tests.el (test-map-some): Update the test to check
13 for non-nil values only.
14
15 Rename map-contains-key-p and map-some-p
16 Remove the "-p" suffix from both function names.
17 * lisp/emacs-lisp/map.el (map-contains-key, map-some): Rename the functions.
18 * test/automated/map-tests.el (test-map-contains-key, test-map-some):
19 Update both test functions.
20
21 Improve the semantic of seq-some
22 Update seq-some to return non-nil if the predicate returns non-nil for
23 any element of the seq, in which case the returned value is the one
24 returned by the predicate.
25 * lisp/emacs-lisp/seq.el (seq-some): Update the function and its
26 docstring.
27 * test/automated/seq-tests.el (test-seq-some): Add a regression test.
28 * doc/lispref/sequences.texi (Sequence Functions): Update the
29 documentation for seq-some.
30
31 Rename seq-some-p to seq-some and seq-contains-p to seq-contains
32 * lisp/emacs-lisp/seq.el (seq-some, seq-contains): Rename the functions
33 without the "-p" prefix.
34 * test/automated/seq-tests.el (test-seq-some, test-seq-contains): Update
35 the tests accordingly.
36 * doc/lispref/sequences.texi (Sequence Functions): Update the
37 documentation for seq.el.
38
392015-09-05 Paul Eggert <eggert@Penguin.CS.UCLA.EDU>
40
41 text-quoting-style for usage of fn names with ‘’
42 * lisp/help.el (help--docstring-quote): Don’t assume
43 text-quoting-style is ‘curve’ when generating usage strings for
44 functions whose names contain curved quotes.
45
462015-09-05 Paul Eggert <eggert@cs.ucla.edu>
47
48 Fix fix for describe-function keybinding confusion
49 This fixes a bug introduced by the previous patch.
50 * lisp/help-fns.el (help-fns--signature):
51 Last arg of help-fns--signature is now a buffer, or nil if a
52 raw signature is wanted. All callers changed.
53 (describe-function-1): Use this to do the right thing with signatures.
54
552015-09-05 Johan Bockgård <bojohan@gnu.org>
56
57 * doc/lispref/frames.texi (Mouse Tracking): Fix typo.
58
59 Use PAT rather than UPAT in pcase macros
60 * lisp/emacs-lisp/cl-macs.el (cl-struct) <pcase-defmacro>:
61 * lisp/emacs-lisp/eieio.el (eieio) <pcase-defmacro>: Use PAT rather
62 than UPAT.
63
642015-09-05 Paul Eggert <eggert@cs.ucla.edu>
65
66 Fix describe-function keybinding confusion
67 * lisp/help-fns.el (describe-function-1): Compute signature
68 in the original buffer, not in standard-output, so that
69 substitute-command-keys uses the proper keybindings.
70 This fixes Bug#21412, introduced in commit
71 2015-06-11T10:23:46-0700!eggert@cs.ucla.edu.
72
732015-09-05 Xue Fuqiao <xfq.free@gmail.com>
74
75 * doc/emacs/programs.texi (Program Modes): Remove an index entry.
76
772015-09-05 Robert Pluim <rpluim@gmail.com> (tiny change)
78
79 Avoid read error messages from 'inotify'
80 * src/process.c (wait_reading_process_output): Add a
81 'tls_available' set and manipulate it instead of 'Available' when
82 checking TLS inputs. Assign the value to 'Available' only if we
83 find any TLS data waiting to be read. This avoids error messages
84 from 'inotify' that tries to read data it shouldn't. (Bug#21337)
85
862015-09-05 Eli Zaretskii <eliz@gnu.org>
87
88 Avoid errors in thing-at-point with 2nd argument non-nil
89 * lisp/thingatpt.el (thing-at-point): Only call 'length' on
90 sequences. (Bug#21391)
91
922015-09-05 Philip <pipcet@gmail.com> (tiny change)
93
94 Fix segfaults due to using a stale face ID
95 * src/xdisp.c (forget_escape_and_glyphless_faces): New function.
96 (display_echo_area_1, redisplay_internal): Call it to avoid
97 reusing stale face IDs for 'escape-glyph' and 'glyphless-char'
98 faces, which could case a segfault if the frame's face cache was
99 freed since the last redisplay. (Bug#21394)
100 * src/xfaces.c (free_realized_faces): Call forget_escape_and_glyphless_faces.
101 * src/dispextern.h (forget_escape_and_glyphless_faces): Add prototype.
102
1032015-09-04 Paul Eggert <eggert@cs.ucla.edu>
104
105 Fix minor problems with " in manual
106
1072015-09-04 Michael Albinus <michael.albinus@gmx.de>
108
109 * doc/misc/tramp.texi (Frequently Asked Questions): New item for ad-hoc
110 multi-hop files.
111
1122015-09-04 Paul Eggert <eggert@cs.ucla.edu>
113
114 Support automated ‘make check’ in non-C locale
115 This lets the builder optionally test Emacs behavior in other locales.
116 The C locale is still the default for tests.
117 * test/automated/Makefile.in (TEST_LOCALE): New macro.
118 (emacs): Use it.
119 * test/automated/flymake-tests.el (flymake-tests--current-face):
120 Use C locale for subprocesses so that tests behave as expected.
121 * test/automated/python-tests.el:
122 (python-shell-prompt-validate-regexps-1)
123 (python-shell-prompt-validate-regexps-2)
124 (python-shell-prompt-validate-regexps-3)
125 (python-shell-prompt-validate-regexps-4)
126 (python-shell-prompt-validate-regexps-5)
127 (python-shell-prompt-validate-regexps-6)
128 (python-shell-prompt-set-calculated-regexps-1):
129 Adjust expected output to match locale.
130 * test/automated/tildify-tests.el (tildify-test--test)
131 (tildify-space-test--test, tildify-space-undo-test--test):
132 This test assumes UTF-8 encoding.
133
1342015-09-03 Paul Eggert <eggert@cs.ucla.edu>
135
136 Fix some more docstring etc. quoting problems
137 Mostly these fixes prevent the transliteration of apostrophes
138 that should stay apostrophes. Also, prefer curved quotes in
139 Bahá’í proper names, as that’s the preferred Bahá’í style and
140 these names are chock-full of non-ASCII characters anyway.
141 * lisp/emacs-lisp/eieio-core.el (eieio-defclass-autoload)
142 (eieio-defclass-internal):
143 * lisp/emacs-lisp/eieio.el (defclass):
144 * lisp/hi-lock.el (hi-lock-mode):
145 Don’t transliterate Lisp apostrophes when generating a
146 doc string or diagnostic.
147 * lisp/international/mule-diag.el (list-coding-systems-1):
148 * lisp/international/ogonek.el (ogonek-jak, ogonek-how):
149 * lisp/mail/sendmail.el (sendmail-query-user-about-smtp):
150 * lisp/vc/ediff-mult.el (ediff-redraw-registry-buffer):
151 * lisp/vc/ediff-ptch.el (ediff-fixup-patch-map):
152 Substitute quotes before putting them in the help buffer.
153
1542015-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
155
156 Re-add the notion of echo_prompt lost in the translation
157 * src/keyboard.h (struct kboard): Replace echo_after_prompt with new
158 echo_prompt which contains the actual string. Update all uses.
159 * src/keyboard.c (kset_echo_prompt): New function.
160 (echo_update): Add echo_prompt at the very beginning.
161 (read_char): Remove workaround for bug#19875, not needed any more.
162 (read_key_sequence): Set echo_prompt rather than echo_string (bug#21403).
163 (mark_kboards): Mark echo_prompt.
164
165 Fix disassembly of non-compiled lexical functions (bug#21377)
166 * lisp/emacs-lisp/bytecomp.el (byte-compile): Handle `closure' arg.
167 * lisp/emacs-lisp/disass.el: Use lexical-binding.
168 (disassemble): Recognize `closure's as well.
169 (disassemble-internal): Use indirect-function and
170 help-function-arglist, and accept `closure's.
171 (disassemble-internal): Use interactive-form.
172 (disassemble-1): Use functionp.
173
174 (tex--prettify-symbols-compose-p): Don't compose in verbatim blocks!
175 * lisp/textmodes/tex-mode.el (tex--prettify-symbols-compose-p):
176 Don't compose inside verbatim blocks!
177
1782015-09-03 Mark Oteiza <mvoteiza@udel.edu>
179
180 * lisp/thingatpt.el (thing-at-point-uri-schemes): Add "man:"
181 (bug#19441)
182
183 * lisp/mpc.el (mpc--proc-connect): Handle unix sockets (bug#19394)
184
1852015-09-03 Dmitry Gutov <dgutov@yandex.ru>
186
187 vc-git-mode-line-string: Explicitly re-apply the face
188 * lisp/vc/vc-git.el (vc-git-mode-line-string): Explicitly re-apply
189 the face (bug#21404).
190
1912015-09-02 Paul Eggert <eggert@cs.ucla.edu>
192
193 Treat initial-scratch-message as a doc string
194 * doc/emacs/building.texi (Lisp Interaction):
195 * doc/lispref/os.texi (Startup Summary):
196 * etc/NEWS: Document this.
197 * lisp/startup.el (initial-scratch-message):
198 Look up find-file’s key rather than hardcoding it.
199 (command-line-1): Substitute the doc string.
200 This also substitutes the quotes, which will help test display
201 quoting at startup.
202
203 Fix describe-char bug with glyphs on terminals
204 * lisp/descr-text.el (describe-char): Terminals can have glyphs in
205 buffers too, so don’t treat them differently from graphic displays.
206 Without this fix, describe-char would throw an error on a terminal
207 if given a glyph with a non-default face.
208
209 Follow text-quoting-style in display table init
210 This attempts to fix a problem reported by Alan Mackenzie in:
211 http://lists.gnu.org/archive/html/emacs-devel/2015-09/msg00112.html
212 * doc/lispref/display.texi (Active Display Table):
213 Mention how text-quoting-style affects it.
214 * doc/lispref/help.texi (Keys in Documentation):
215 Say how to set text-quoting-style in ~/.emacs.
216 * etc/NEWS: Document the change.
217 * lisp/startup.el (startup--setup-quote-display):
218 Follow user preference if text-quoting-style is set.
219 (command-line): Setup quote display again if user expresses
220 a preference in .emacs.
221
2222015-09-02 K. Handa <handa@gnu.org>
223
224 Fix typo
225 * ftfont.c (ftfont_drive_otf): otf_positioning_type_components_mask -> OTF_positioning_type_components_mask.
226
227 fix previous change
228 * ftfont.c (ftfont_drive_otf): Remember some bits of
229 OTF_Glyph->positioning_type in MFLTGlyphFT->libotf_positioning_type.
230
2312015-09-01 David Caldwell <david@porkrind.org> (tiny change)
232
233 * lisp/vc/vc-hooks.el (vc-refresh-state): New command
234 (vc-refresh-state): Rename from vc-find-file-hook and make interactive.
235 (vc-find-file-hook): Redefine as obsolete alias.
236
2372015-09-01 Paul Eggert <eggert@cs.ucla.edu>
238
239 Escape ` and ' in doc
240 Escape apostrophes and grave accents in docstrings if they are
241 are supposed to stand for themselves and are not quotes. Remove
242 apostrophes from docstring examples like ‘'(calendar-nth-named-day
243 -1 0 10 year)’ that confuse source code with data. Do some other
244 minor docstring fixups as well, e.g., insert a missing close
245 quote.
246
2472015-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
248
249 Generalize the prefix-command machinery of C-u
250 * lisp/simple.el (prefix-command-echo-keystrokes-functions)
251 (prefix-command-preserve-state-hook): New hooks.
252 (internal-echo-keystrokes-prefix): New function.
253 (prefix-command--needs-update, prefix-command--last-echo): New vars.
254 (prefix-command-update, prefix-command-preserve): New functions.
255 (reset-this-command-lengths): New compatibility definition.
256 (universal-argument--mode): Call prefix-command-update.
257 (universal-argument, universal-argument-more, negative-argument)
258 (digit-argument): Call prefix-command-preserve-state.
259 * src/keyboard.c: Call internal-echo-keystrokes-prefix to build
260 the "prefix argument" to echo.
261 (this_command_key_count_reset, before_command_key_count)
262 (before_command_echo_length): Delete variables.
263 (echo_add_key): Always add a space.
264 (echo_char): Remove.
265 (echo_dash): Don't give up when this_command_key_count is 0, since that
266 is now the case after a prefix command.
267 (echo_update): New function, extracted from echo_now.
268 (echo_now): Use it.
269 (add_command_key, read_char, record_menu_key): Remove old disabled code.
270 (command_loop_1): Don't refrain from pushing an undo boundary when
271 prefix-arg is set. Remove other prefix-arg special case, now handled
272 directly in the prefix commands instead. But call echo_now if there's
273 a prefix state to echo.
274 (read_char, record_menu_key): Use echo_update instead of echo_char.
275 (read_key_sequence): Use echo_now rather than echo_dash/echo_char.
276 (Freset_this_command_lengths): Delete function.
277 (syms_of_keyboard): Define Qinternal_echo_keystrokes_prefix.
278 (syms_of_keyboard): Don't defsubr Sreset_this_command_lengths.
279 * lisp/simple.el: Use those new hooks for C-u.
280 (universal-argument--description): New function.
281 (prefix-command-echo-keystrokes-functions): Use it.
282 (universal-argument--preserve): New function.
283 (prefix-command-preserve-state-hook): Use it.
284 (command-execute): Call prefix-command-update if needed.
285 * lisp/kmacro.el (kmacro-step-edit-prefix-commands)
286 (kmacro-step-edit-prefix-index): Delete variables.
287 (kmacro-step-edit-query, kmacro-step-edit-insert): Remove ad-hoc
288 support for prefix arg commands.
289 (kmacro-step-edit-macro): Don't bind kmacro-step-edit-prefix-index.
290 * lisp/emulation/cua-base.el (cua--prefix-override-replay)
291 (cua--shift-control-prefix): Use prefix-command-preserve-state.
292 Remove now unused arg `arg'.
293 (cua--prefix-override-handler, cua--prefix-repeat-handler)
294 (cua--shift-control-c-prefix, cua--shift-control-x-prefix):
295 Update accordingly.
296 (cua--prefix-override-timeout): Don't call reset-this-command-lengths
297 any more.
298 (cua--keep-active, cua-exchange-point-and-mark): Don't set mark-active
299 if the mark is not set.
300
3012015-09-01 Paul Eggert <eggert@cs.ucla.edu>
302
303 Rework quoting in tutorial
304 * doc/lispintro/emacs-lisp-intro.texi (Sample let Expression)
305 (if in more detail, type-of-animal in detail, else): Rework the
306 early example to use " rather than ' so that we don’t burden
307 complete novices with the low-priority detail of text quoting style.
308 (Complete zap-to-char, kill-region, Complete copy-region-as-kill)
309 (kill-new function, kill-ring-yank-pointer)
310 (Complete forward-sentence, Loading Files)
311 (Code for current-kill, Code for current-kill, yank):
312 Resurrect the Emacs 22 versions of the code, which uses grave
313 quoting style in doc strings.
314 (Complete zap-to-char): Mention how quoting works in doc strings.
315
316 Setup quote display only if interactive
317 * lisp/startup.el (command-line):
318 Skip call to startup--setup-quote-display if noninteractive.
319 Without this change, python-shell-prompt-validate-regexps-1
320 fails in test/automated/python-tests.el when run in an
321 en_US.utf8 locale on Fedora.
322
3232015-09-01 Katsumi Yamaoka <yamaoka@jpl.org>
324
325 Use defalias at the top level
326 * lisp/gnus/gnus-util.el (gnus-format-message):
327 * lisp/net/tls.el (tls-format-message): Use defalias at the top level
328 so as to make eval-and-compile unnecessary. Thanks to Stefan Monnier.
329
3302015-09-01 Paul Eggert <eggert@cs.ucla.edu>
331
332 terminal-init-w32console mimicks command-line
333 Problem reported by Eli Zaretskii.
334 * lisp/startup.el (startup--setup-quote-display):
335 New function, refactored from a part of ‘command-line’.
336 (command-line): Use it.
337 * lisp/term/w32console.el (terminal-init-w32console):
338 Use it, so that this function stays consistent with ‘command-line’.
339
340 Display replacement quotes with shadow glyphs
341 * lisp/startup.el (command-line): When displaying ASCII
342 replacements for curved quotes, use a shadow glyph instead of a
343 regular one, to avoid ambiguity.
344
3452015-09-01 Michael Albinus <michael.albinus@gmx.de>
346
347 * lisp/net/tramp-sh.el (tramp-methods) <sudo>: Mask "Password:".
348
3492015-09-01 Paul Eggert <eggert@cs.ucla.edu>
350
351 Docstring fixes re quotes in C code
352 Fix some docstring quoting problems, mostly by escaping apostrophe.
353
3542015-09-01 Michael Albinus <michael.albinus@gmx.de>
355
356 Some Tramp password fixes
357 * lisp/net/tramp.el (tramp-clear-passwd): Clear also the passwords
358 of the hops.
359 * lisp/net/tramp-sh.el (tramp-methods) <sudo>: Move "-p" "Password:"
360 at the beginning of the command. Otherwise, it could be
361 interpreted as password prompt if the remote host echoes the
362 command.
363 (tramp-remote-coding-commands): Add "openssl enc -base64".
364
3652015-09-01 Dmitry Gutov <dgutov@yandex.ru>
366
367 Make vc-git-working-revision always return the commit hash
368 * lisp/vc/vc-git.el (vc-git-working-revision):
369 Return the commit hash (bug#21383).
370 (vc-git--symbolic-ref): New function, extracted from above.
371 (vc-git-mode-line-string): Use it.
372
3732015-09-01 K. Handa <handa@gnu.org>
374
375 Use the new type MFLTGlyphFT for MFLTGlyphString.glyphs.
376 * ftfont.c (MFLTGlyphFT): New type.
377 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_drive_otf)
378 (ftfont_shape_by_flt): Make MFLTGlyphFT the actual type of
379 elements in the array MFLTGlyphString.glyphs.
380
3812015-09-01 Stephen Leake <stephen_leake@stephe-leake.org>
382
383 Improve comments in elisp-mode.el, elisp-mode-tests.el
384 * lisp/progmodes/elisp-mode.el: Clean up FIXMEs, comments.
385
386 Delete Emacs 25 test in mode-local.el
387 * lisp/cedet/mode-local.el (describe-mode-local-overload): Fix missed an
388 edit in previous commit.
389
390 Show all known mode-local overrides in *Help*
391 * lisp/cedet/mode-local.el (describe-mode-local-overload): Assume Emacs
392 25. Add all known mode-local overrides.
393
3942015-09-01 Katsumi Yamaoka <yamaoka@jpl.org>
395
396 * lisp/gnus/gnus-sum.el (gnus-summary-search-article):
397 Ensure that the article where the search word is found is displayed
398 and pointed to in the summary buffer.
399
4002015-08-31 Zachary Kanfer <zkanfer@gmail.com> (tiny change)
401
402 * lisp/newcomment.el (comment-dwim): Use `use-region-p'
403 When the region is active, but is empty (length 0), act as though
404 the region was not active; that is, put a comment at the end of
405 the line. (Bug#21119)
406
4072015-08-31 Katsumi Yamaoka <yamaoka@jpl.org>
408
409 Port tls.el to older Emacs
410 * lisp/net/tls.el (tls-format-message):
411 Alias to format-message, or format if not available.
412 (open-tls-stream): Use it.
413
4142015-08-31 Rüdiger Sonderfeld <ruediger@c-plusplus.net>
415
416 hideif.el: Recognize .h++ as C++ header.
417 * lisp/progmodes/hideif.el (hide-ifdef-header-regexp): Add .h++.
418
419 isearch: Document character folding mode.
420 * isearch.el (isearch-forward): Mention `isearch-toggle-character-fold'
421 in docstring.
422
4232015-08-31 Paul Eggert <eggert@cs.ucla.edu>
424
425 Quoting fixes in ERC and Eshell
426 * lisp/erc/erc-autoaway.el (erc-autoaway-set-away):
427 * lisp/erc/erc-backend.el (define-erc-response-handler):
428 * lisp/erc/erc-fill.el (erc-fill-static-center):
429 * lisp/eshell/em-dirs.el (eshell-save-some-last-dir):
430 * lisp/eshell/em-glob.el (eshell-glob-entries):
431 * lisp/eshell/em-hist.el (eshell-save-some-history):
432 * lisp/eshell/em-unix.el (eshell-remove-entries, eshell/rm)
433 (eshell-shuffle-files):
434 * lisp/eshell/esh-cmd.el (eshell-do-eval):
435 * lisp/eshell/esh-proc.el (eshell-process-interact)
436 (eshell-query-kill-processes):
437 Respect ‘text-quoting-style’ in diagnostics and doc strings.
438
439 Quoting fixes in Gnus
440 * lisp/gnus/gnus-agent.el:
441 (gnus-agent-possibly-synchronize-flags-server):
442 * lisp/gnus/gnus-art.el (gnus-article-browse-delete-temp-files):
443 * lisp/gnus/gnus-eform.el (gnus-edit-form):
444 * lisp/gnus/gnus-group.el (gnus-group-edit-group)
445 (gnus-group-nnimap-edit-acl):
446 * lisp/gnus/gnus-topic.el (gnus-topic-edit-parameters):
447 * lisp/gnus/mail-source.el (mail-source-delete-old-incoming):
448 * lisp/gnus/message.el (message-strip-subject-encoded-words)
449 (message-check-recipients, message-send-form-letter):
450 * lisp/gnus/mm-decode.el (mm-display-part):
451 * lisp/gnus/mm-uu.el (mm-uu-pgp-signed-extract-1):
452 * lisp/gnus/mml-smime.el (mml-smime-get-dns-cert)
453 (mml-smime-get-ldap-cert):
454 * lisp/gnus/spam-report.el (spam-report-process-queue):
455 Respect ‘text-quoting-style’ in diagnostics.
456 * lisp/gnus/gnus-art.el (article-display-face)
457 * lisp/gnus/gnus-fun.el (gnus-display-x-face-in-from):
458 Use straight quoting in email.
459 * lisp/gnus/rfc2231.el (rfc2231-decode-encoded-string):
460 Escape apostrophes in doc strings.
461
462 Quoting fixes in lisp mail, mh-e, net, url
463 * lisp/mail/emacsbug.el (report-emacs-bug)
464 (report-emacs-bug-hook): Use straight quotes in outgoing email,
465 * lisp/mail/feedmail.el (feedmail-message-action-help-blat):
466 * lisp/mail/rmail.el (rmail-unknown-mail-followup-to):
467 * lisp/mail/rmailout.el (rmail-output-read-file-name):
468 * lisp/net/imap.el (imap-interactive-login):
469 * lisp/net/tls.el (open-tls-stream):
470 * lisp/url/url-auth.el (url-register-auth-scheme):
471 Respect ‘text-quoting-style’ in diagnostics.
472 * lisp/mh-e/mh-e.el (mh-sortm-args):
473 Quote docstring example using text quotes, not as a Lisp quote.
474
4752015-08-31 Stephen Leake <stephen_leake@stephe-leake.org>
476
477 Fix some byte-compiler warnings in EDE
478 This fixes a bug that caused ede-generic-new-autoloader to overwrite the
479 existing autoloader list, rather than add to it.
480 * lisp/cedet/ede/auto.el (ede-project-class-files): Delete obsolete name
481 argument to eieio class constructor.
482 (ede-show-supported-projects): New.
483 (ede-add-project-autoload): Replace obsolete `eieio-object-name-string'
484 with (oref ... name).
485 (ede-auto-load-project): Use slot name, not initarg key.
486 * lisp/cedet/ede/generic.el (ede-generic-load,
487 ede-generic-find-matching-target): Use slot name, not initarg key.
488 (ede-find-target): Use oref-default on class name.
489 (ede-generic-new-autoloader): Delete obsolete name argument to eieio
490 class constructor.
491 (ede-enable-generic-projects): Make project type names unique.
492
4932015-08-31 Eli Zaretskii <eliz@gnu.org>
494
495 Fix directory accessibility tests for w32 network volumes
496 * src/w32.c (faccessat): Don't fail with network volumes without a
497 share.
498 (w32_accessible_directory_p): Handle network volumes without a
499 share.
500
501 Fix handling long file names in readdir on MS-Windows
502 * src/w32.c (sys_readdir): Append "\*" to the directory after
503 converting it to UTF-16/ANSI, not before, to avoid overflowing the
504 260-character limit on file names in filename_to_utf16/ansi.
505
506 Make file-accessible-directory-p reliable on MS-Windows
507 * src/w32.c (w32_accessible_directory_p): New function.
508 * src/w32.h (w32_accessible_directory_p): Add prototype.
509 * src/fileio.c (file_accessible_directory_p) [WINDOWSNT]: Call
510 w32_accessible_directory_p to test a directory for accessibility
511 by the current user. (Bug#21346)
512 (Ffile_accessible_directory_p): Remove the w32 specific caveat
513 from the doc string.
514
5152015-08-31 Martin Rudalics <rudalics@gmx.at>
516
517 Don't call do_pending_window_change in signal handlers (Bug#21380)
518 * src/gtkutil.c (xg_frame_resized):
519 * src/xterm.c (x_set_window_size):
520 * src/w32term.c (x_set_window_size): Don't call
521 do_pending_window_change.
522
5232015-08-31 Paul Eggert <eggert@cs.ucla.edu>
524
525 Quoting fixes in lisp/org
526 * lisp/org/org-agenda.el (org-search-view, org-todo-list)
527 (org-tags-view):
528 * lisp/org/org-capture.el (org-capture-mode)
529 * lisp/org/org-ctags.el (org-ctags-visit-buffer-or-file)
530 (org-ctags-ask-append-topic):
531 * lisp/org/org.el (org-time-string-to-time)
532 (org-time-string-to-absolute):
533 * lisp/org/org-ctags.el (org-ctags-visit-buffer-or-file)
534 (org-ctags-ask-append-topic):
535 * lisp/org/org.el (org-time-string-to-time)
536 (org-time-string-to-absolute):
537 Respect ‘text-quoting-style’ in diagnostics.
538 * lisp/org/org-agenda.el (org-agenda-custom-commands)
539 (org-agenda-dim-blocked-tasks): Plural of TODO is TODOs, not TODO’s.
540 * lisp/org/org-capture.el (org-capture-fill-template):
541 Avoid contraction in output file that might be ASCII.
542 * lisp/org/org-compat.el (format-message):
543 Define if not already defined, for backward compatibility.
544 * lisp/org/org-src.el (org-edit-src-save):
545 * lisp/org/org.el (org-cycle, org-ctrl-c-ctrl-c):
546 Escape apostrophes in diagnostics.
547
548 Treat “instead” strings as docstrings
549 * lisp/emacs-lisp/bytecomp.el (byte-compile-form):
550 * lisp/emacs-lisp/macroexp.el (macroexp--obsolete-warning):
551 Substitute quotes in instead strings.
552
5532015-08-31 Nicolas Petton <nicolas@petton.fr>
554
555 Better documentation of seq-let
556 * doc/lispref/sequences.texi (Sequence Functions): Rephrase the
557 documentation of seq-let.
558
5592015-08-31 Paul Eggert <eggert@cs.ucla.edu>
560
561 * lisp/international/ccl.el: Fix quoting.
562
563 Quoting fixes in lisp/international and lisp/leim
564 * lisp/international/ccl.el (ccl-dump, ccl-dump-call):
565 * lisp/international/ja-dic-utl.el (skkdic-lookup-key):
566 * lisp/international/mule-cmds.el:
567 (select-safe-coding-system-interactively, leim-list-file-name):
568 * lisp/international/quail.el (quail-use-package, quail-help):
569 * lisp/international/titdic-cnv.el (tit-process-header)
570 (miscdic-convert):
571 Respect text quoting style in doc strings and diagnostics.
572 * lisp/international/quail.el (lisp/international/quail.el):
573 * lisp/leim/quail/ethiopic.el ("ethiopic"):
574 Escape apostrophes in doc strings.
575
576 Make ‘text-quoting-style’ a plain defvar
577 It doesn’t need customization, as it’s likely useful only by experts.
578 Suggested by Stefan Monnier in:
579 http://lists.gnu.org/archive/html/emacs-devel/2015-08/msg01020.html
580 * lisp/cus-start.el: Remove doc.c section for builtin customized vars.
581
582 Quoting fixes in lisp/textmodes
583 * lisp/textmodes/bibtex.el (bibtex-validate)
584 (bibtex-validate-globally, bibtex-search-entries):
585 * lisp/textmodes/ispell.el (ispell-command-loop):
586 * lisp/textmodes/page-ext.el (search-pages, pages-directory):
587 * lisp/textmodes/texinfmt.el (texinfmt-version)
588 (texinfo-format-region, texinfo-format-buffer-1):
589 * lisp/textmodes/two-column.el (2C-split):
590 Respect text quoting style in doc strings and diagnostics.
591 * lisp/textmodes/conf-mode.el (conf-mode-map, conf-quote-normal):
592 * lisp/textmodes/sgml-mode.el (sgml-specials, sgml-mode):
593 Escape apostrophes in doc strings.
594
595 Documentation fixes re quotes
596 Prefer curved quotes in examples if users will typically see
597 curved quotes when the examples run.
598 Mention format-message when appropriate.
599 Don’t use @code in examples.
600 Quote an apostrophe with @kbd.
601
602 Quoting fixes in lisp/progmodes
603 * lisp/progmodes/cc-engine.el (c-bos-report-error):
604 * lisp/progmodes/cpp.el (cpp-edit-reset):
605 * lisp/progmodes/ebrowse.el (ebrowse-tags-apropos):
606 * lisp/progmodes/etags.el (etags-tags-apropos-additional)
607 (etags-tags-apropos, list-tags, tags-apropos):
608 * lisp/progmodes/executable.el (executable-set-magic):
609 * lisp/progmodes/octave.el (octave-sync-function-file-names)
610 (octave-help, octave-find-definition-default-filename)
611 (octave-find-definition):
612 Respect text quoting style in doc strings and diagnostics.
613 * lisp/progmodes/cc-langs.el (c-populate-syntax-table):
614 * lisp/progmodes/verilog-mode.el (verilog-auto-reset-widths):
615 * lisp/progmodes/vhdl-mode.el (vhdl-electric-quote):
616 Escape apostrophes in doc strings.
617 * lisp/progmodes/cmacexp.el (c-macro-expansion):
618 Use straight quoting in ASCII comment.
619 * lisp/progmodes/idlwave.el (idlwave-auto-fill-split-string)
620 (idlwave-pad-keyword):
621 * lisp/progmodes/vhdl-mode.el (vhdl-widget-directory-validate)
622 (vhdl-electric-open-bracket, vhdl-electric-close-bracket):
623 (vhdl-electric-semicolon, vhdl-electric-comma)
624 (vhdl-electric-period, vhdl-electric-equal):
625 Use directed quotes in diagnostics and doc strings.
626
6272015-08-30 Xue Fuqiao <xfq.free@gmail.com>
628
629 Minor documentation and NEWS tweak
630 * doc/lispintro/emacs-lisp-intro.texi (fwd-para let): Add an index
631 entry.
632
12015-08-30 Michael Albinus <michael.albinus@gmx.de> 6332015-08-30 Michael Albinus <michael.albinus@gmx.de>
2 634
3 * lisp/net/tramp-sh.el (tramp-convert-file-attributes): 635 * lisp/net/tramp-sh.el (tramp-convert-file-attributes):
@@ -11395,7 +12027,7 @@
11395 12027
11396This file records repository revisions from 12028This file records repository revisions from
11397commit 9d56a21e6a696ad19ac65c4b405aeca44785884a (exclusive) to 12029commit 9d56a21e6a696ad19ac65c4b405aeca44785884a (exclusive) to
11398commit cc90c25a50e536669ac327f7e05ec9194d1650d0 (inclusive). 12030commit 88b9a8000da6cf2d4aede86e9eae4f00016d0d6b (inclusive).
11399See ChangeLog.1 for earlier changes. 12031See ChangeLog.1 for earlier changes.
11400 12032
11401;; Local Variables: 12033;; Local Variables:
diff --git a/admin/unidata/unidata-gen.el b/admin/unidata/unidata-gen.el
index 8d3f5b71557..9e39fd0c00d 100644
--- a/admin/unidata/unidata-gen.el
+++ b/admin/unidata/unidata-gen.el
@@ -445,7 +445,7 @@ Property value is a symbol `o' (Open), `c' (Close), or `n' (None)."
445 ;; (4) possibly update the switch cases in 445 ;; (4) possibly update the switch cases in
446 ;; bidi.c:bidi_get_type and bidi.c:bidi_get_category. 446 ;; bidi.c:bidi_get_type and bidi.c:bidi_get_category.
447 (bidi-warning "\ 447 (bidi-warning "\
448** Found new bidi-class %s, please update bidi.c and dispextern.h") 448** Found new bidi-class `%s', please update bidi.c and dispextern.h")
449 tail elt range val val-code idx slot 449 tail elt range val val-code idx slot
450 prev-range-data) 450 prev-range-data)
451 (setq val-list (cons nil (copy-sequence val-list))) 451 (setq val-list (cons nil (copy-sequence val-list)))
diff --git a/doc/emacs/building.texi b/doc/emacs/building.texi
index b4a99a1c25e..1d40a2dd12d 100644
--- a/doc/emacs/building.texi
+++ b/doc/emacs/building.texi
@@ -1549,7 +1549,7 @@ mode are the same as in Emacs Lisp mode.
1549 At startup, the @file{*scratch*} buffer contains a short message, in 1549 At startup, the @file{*scratch*} buffer contains a short message, in
1550the form of a Lisp comment, that explains what it is for. This 1550the form of a Lisp comment, that explains what it is for. This
1551message is controlled by the variable @code{initial-scratch-message}, 1551message is controlled by the variable @code{initial-scratch-message},
1552which should be either a string, or @code{nil} (which means to 1552which should be either a documentation string, or @code{nil} (which means to
1553suppress the message). 1553suppress the message).
1554 1554
1555@findex ielm 1555@findex ielm
diff --git a/doc/emacs/custom.texi b/doc/emacs/custom.texi
index a2bea2463e7..43c61d769c7 100644
--- a/doc/emacs/custom.texi
+++ b/doc/emacs/custom.texi
@@ -28,7 +28,7 @@ Reference Manual}.
28 to decide what to do; by setting variables, 28 to decide what to do; by setting variables,
29 you can control their functioning. 29 you can control their functioning.
30* Key Bindings:: The keymaps say what command each key runs. 30* Key Bindings:: The keymaps say what command each key runs.
31 By changing them, you can "redefine keys". 31 By changing them, you can ``redefine keys''.
32* Init File:: How to write common customizations in the 32* Init File:: How to write common customizations in the
33 initialization file. 33 initialization file.
34@end menu 34@end menu
diff --git a/doc/emacs/emacs.texi b/doc/emacs/emacs.texi
index 5f53f9bf1dd..ec82a071001 100644
--- a/doc/emacs/emacs.texi
+++ b/doc/emacs/emacs.texi
@@ -160,7 +160,7 @@ Fundamental Editing Commands
160* Help:: Commands for asking Emacs about its commands. 160* Help:: Commands for asking Emacs about its commands.
161 161
162Important Text-Changing Commands 162Important Text-Changing Commands
163* Mark:: The mark: how to delimit a "region" of text. 163* Mark:: The mark: how to delimit a ``region'' of text.
164* Killing:: Killing (cutting) and yanking (copying) text. 164* Killing:: Killing (cutting) and yanking (copying) text.
165* Registers:: Saving a text string or a location in the buffer. 165* Registers:: Saving a text string or a location in the buffer.
166* Display:: Controlling what text is displayed. 166* Display:: Controlling what text is displayed.
@@ -172,7 +172,7 @@ Major Structures of Emacs
172* Files:: All about handling files. 172* Files:: All about handling files.
173* Buffers:: Multiple buffers; editing several files at once. 173* Buffers:: Multiple buffers; editing several files at once.
174* Windows:: Viewing multiple pieces of text in one frame. 174* Windows:: Viewing multiple pieces of text in one frame.
175* Frames:: Using multiple "windows" on your display. 175* Frames:: Using multiple ``windows'' on your display.
176* International:: Using non-@acronym{ASCII} character sets. 176* International:: Using non-@acronym{ASCII} character sets.
177 177
178Advanced Features 178Advanced Features
@@ -200,7 +200,7 @@ Advanced Features
200@end ifnottex 200@end ifnottex
201* Editing Binary Files:: Editing binary files with Hexl mode. 201* Editing Binary Files:: Editing binary files with Hexl mode.
202* Saving Emacs Sessions:: Saving Emacs state from one session to the next. 202* Saving Emacs Sessions:: Saving Emacs state from one session to the next.
203* Recursive Edit:: Performing edits while "within another command". 203* Recursive Edit:: Performing edits while ``within another command''.
204* Hyperlinking:: Following links in buffers. 204* Hyperlinking:: Following links in buffers.
205* Amusements:: Various games and hacks. 205* Amusements:: Various games and hacks.
206* Packages:: Installing additional features. 206* Packages:: Installing additional features.
@@ -301,7 +301,7 @@ Help
301* Language Help:: Help relating to international language support. 301* Language Help:: Help relating to international language support.
302* Misc Help:: Other help commands. 302* Misc Help:: Other help commands.
303* Help Files:: Commands to display auxiliary help files. 303* Help Files:: Commands to display auxiliary help files.
304* Help Echo:: Help on active text and tooltips ("balloon help"). 304* Help Echo:: Help on active text and tooltips (``balloon help'').
305 305
306The Mark and the Region 306The Mark and the Region
307 307
@@ -337,7 +337,7 @@ Yanking
337* Earlier Kills:: Yanking something killed some time ago. 337* Earlier Kills:: Yanking something killed some time ago.
338* Appending Kills:: Several kills in a row all yank together. 338* Appending Kills:: Several kills in a row all yank together.
339 339
340"Cut and Paste" Operations on Graphical Displays 340``Cut and Paste'' Operations on Graphical Displays
341 341
342* Clipboard:: How Emacs uses the system clipboard. 342* Clipboard:: How Emacs uses the system clipboard.
343* Primary Selection:: The temporarily selected text selection. 343* Primary Selection:: The temporarily selected text selection.
@@ -464,7 +464,7 @@ Saving Files
464* Customize Save:: Customizing the saving of files. 464* Customize Save:: Customizing the saving of files.
465* Interlocking:: How Emacs protects against simultaneous editing 465* Interlocking:: How Emacs protects against simultaneous editing
466 of one file by two users. 466 of one file by two users.
467* File Shadowing:: Copying files to "shadows" automatically. 467* File Shadowing:: Copying files to ``shadows'' automatically.
468* Time Stamps:: Emacs can update time stamps on saved files. 468* Time Stamps:: Emacs can update time stamps on saved files.
469 469
470Backup Files 470Backup Files
@@ -597,7 +597,7 @@ Commands for Human Languages
597* TeX Mode:: Editing TeX and LaTeX files. 597* TeX Mode:: Editing TeX and LaTeX files.
598* HTML Mode:: Editing HTML and SGML files. 598* HTML Mode:: Editing HTML and SGML files.
599* Nroff Mode:: Editing input to the nroff formatter. 599* Nroff Mode:: Editing input to the nroff formatter.
600* Enriched Text:: Editing text "enriched" with fonts, colors, etc. 600* Enriched Text:: Editing text ``enriched'' with fonts, colors, etc.
601* Text Based Tables:: Commands for editing text-based tables. 601* Text Based Tables:: Commands for editing text-based tables.
602* Two-Column:: Splitting text columns into separate windows. 602* Two-Column:: Splitting text columns into separate windows.
603 603
@@ -638,7 +638,7 @@ Enriched Text
638* Enriched Indentation:: Changing the left and right margins. 638* Enriched Indentation:: Changing the left and right margins.
639* Enriched Justification:: Centering, setting text flush with the 639* Enriched Justification:: Centering, setting text flush with the
640 left or right margin, etc. 640 left or right margin, etc.
641* Enriched Properties:: The "special" text properties submenu. 641* Enriched Properties:: The ``special'' text properties submenu.
642 642
643@c The automatic texinfo menu update inserts some duplicate items here 643@c The automatic texinfo menu update inserts some duplicate items here
644@c (faces, colors, indentation, justification, properties), because 644@c (faces, colors, indentation, justification, properties), because
@@ -895,7 +895,7 @@ Editing Pictures
895 895
896* Basic Picture:: Basic concepts and simple commands of Picture Mode. 896* Basic Picture:: Basic concepts and simple commands of Picture Mode.
897* Insert in Picture:: Controlling direction of cursor motion 897* Insert in Picture:: Controlling direction of cursor motion
898 after "self-inserting" characters. 898 after ``self-inserting'' characters.
899* Tabs in Picture:: Various features for tab stops and indentation. 899* Tabs in Picture:: Various features for tab stops and indentation.
900* Rectangles in Picture:: Clearing and superimposing rectangles. 900* Rectangles in Picture:: Clearing and superimposing rectangles.
901@end ifnottex 901@end ifnottex
@@ -1092,7 +1092,7 @@ Customization
1092 to decide what to do; by setting variables, 1092 to decide what to do; by setting variables,
1093 you can control their functioning. 1093 you can control their functioning.
1094* Key Bindings:: The keymaps say what command each key runs. 1094* Key Bindings:: The keymaps say what command each key runs.
1095 By changing them, you can "redefine" keys. 1095 By changing them, you can ``redefine'' keys.
1096* Init File:: How to write common customizations in the 1096* Init File:: How to write common customizations in the
1097 initialization file. 1097 initialization file.
1098 1098
diff --git a/doc/emacs/files.texi b/doc/emacs/files.texi
index 6ff59b42c73..5985d8b840e 100644
--- a/doc/emacs/files.texi
+++ b/doc/emacs/files.texi
@@ -340,7 +340,7 @@ that was visited in the buffer.
340* Customize Save:: Customizing the saving of files. 340* Customize Save:: Customizing the saving of files.
341* Interlocking:: How Emacs protects against simultaneous editing 341* Interlocking:: How Emacs protects against simultaneous editing
342 of one file by two users. 342 of one file by two users.
343* Shadowing: File Shadowing. Copying files to "shadows" automatically. 343* Shadowing: File Shadowing. Copying files to ``shadows'' automatically.
344* Time Stamps:: Emacs can update time stamps on saved files. 344* Time Stamps:: Emacs can update time stamps on saved files.
345@end menu 345@end menu
346 346
diff --git a/doc/emacs/help.texi b/doc/emacs/help.texi
index 5129c1c005c..69842500e92 100644
--- a/doc/emacs/help.texi
+++ b/doc/emacs/help.texi
@@ -72,7 +72,7 @@ inputs, but they all support @key{F1}.)
72* Language Help:: Help relating to international language support. 72* Language Help:: Help relating to international language support.
73* Misc Help:: Other help commands. 73* Misc Help:: Other help commands.
74* Help Files:: Commands to display auxiliary help files. 74* Help Files:: Commands to display auxiliary help files.
75* Help Echo:: Help on active text and tooltips ("balloon help"). 75* Help Echo:: Help on active text and tooltips (``balloon help'').
76@end menu 76@end menu
77 77
78@iftex 78@iftex
diff --git a/doc/emacs/package.texi b/doc/emacs/package.texi
index 68913d8b6fd..19d861a8395 100644
--- a/doc/emacs/package.texi
+++ b/doc/emacs/package.texi
@@ -232,7 +232,7 @@ in your init file depends on a package). In that case, your init file
232should call the function @code{package-initialize}. It is up to you 232should call the function @code{package-initialize}. It is up to you
233to ensure that relevant user options, such as @code{package-load-list} 233to ensure that relevant user options, such as @code{package-load-list}
234(see below), are set up prior to the @code{package-initialize} call. 234(see below), are set up prior to the @code{package-initialize} call.
235You should also set @code{package-enable-at-startup} to @code{nil}, to 235This will automatically set @code{package-enable-at-startup} to @code{nil}, to
236avoid loading the packages again after processing the init file. 236avoid loading the packages again after processing the init file.
237Alternatively, you may choose to completely inhibit package loading at 237Alternatively, you may choose to completely inhibit package loading at
238startup, and invoke the command @kbd{M-x package-initialize} to load 238startup, and invoke the command @kbd{M-x package-initialize} to load
diff --git a/doc/emacs/picture-xtra.texi b/doc/emacs/picture-xtra.texi
index 6be84bd083d..a9ad2d5d2e3 100644
--- a/doc/emacs/picture-xtra.texi
+++ b/doc/emacs/picture-xtra.texi
@@ -53,7 +53,7 @@ Additional extensions to Picture mode can be found in
53@menu 53@menu
54* Basic Picture:: Basic concepts and simple commands of Picture Mode. 54* Basic Picture:: Basic concepts and simple commands of Picture Mode.
55* Insert in Picture:: Controlling direction of cursor motion 55* Insert in Picture:: Controlling direction of cursor motion
56 after "self-inserting" characters. 56 after ``self-inserting'' characters.
57* Tabs in Picture:: Various features for tab stops and indentation. 57* Tabs in Picture:: Various features for tab stops and indentation.
58* Rectangles in Picture:: Clearing and superimposing rectangles. 58* Rectangles in Picture:: Clearing and superimposing rectangles.
59@end menu 59@end menu
diff --git a/doc/emacs/programs.texi b/doc/emacs/programs.texi
index 8f78a1a54b6..ea8f82fa2ea 100644
--- a/doc/emacs/programs.texi
+++ b/doc/emacs/programs.texi
@@ -97,7 +97,6 @@ your favorite language, the mode might be implemented in a package not
97distributed with Emacs (@pxref{Packages}); or you can contribute one. 97distributed with Emacs (@pxref{Packages}); or you can contribute one.
98 98
99@kindex DEL @r{(programming modes)} 99@kindex DEL @r{(programming modes)}
100@findex c-electric-backspace
101@findex backward-delete-char-untabify 100@findex backward-delete-char-untabify
102 In most programming languages, indentation should vary from line to 101 In most programming languages, indentation should vary from line to
103line to illustrate the structure of the program. Therefore, in most 102line to illustrate the structure of the program. Therefore, in most
diff --git a/doc/emacs/search.texi b/doc/emacs/search.texi
index 34d4e8f54cb..a0dfe226324 100644
--- a/doc/emacs/search.texi
+++ b/doc/emacs/search.texi
@@ -1342,13 +1342,13 @@ to replace all remaining occurrences without asking again.
1342to replace all remaining occurrences in all remaining buffers in 1342to replace all remaining occurrences in all remaining buffers in
1343multi-buffer replacements (like the Dired @key{Q} command that performs 1343multi-buffer replacements (like the Dired @key{Q} command that performs
1344query replace on selected files). It answers this question and all 1344query replace on selected files). It answers this question and all
1345subsequent questions in the series with "yes", without further 1345subsequent questions in the series with ``yes'', without further
1346user interaction. 1346user interaction.
1347 1347
1348@item N @r{(Upper-case)} 1348@item N @r{(Upper-case)}
1349to skip to the next buffer in multi-buffer replacements without 1349to skip to the next buffer in multi-buffer replacements without
1350replacing remaining occurrences in the current buffer. It answers 1350replacing remaining occurrences in the current buffer. It answers
1351this question "no", gives up on the questions for the current buffer, 1351this question ``no'', gives up on the questions for the current buffer,
1352and continues to the next buffer in the sequence. 1352and continues to the next buffer in the sequence.
1353 1353
1354@item ^ 1354@item ^
diff --git a/doc/emacs/text.texi b/doc/emacs/text.texi
index 31760b70b4c..389ef5ec8d6 100644
--- a/doc/emacs/text.texi
+++ b/doc/emacs/text.texi
@@ -78,7 +78,7 @@ for editing such pictures.
78* TeX Mode:: Editing TeX and LaTeX files. 78* TeX Mode:: Editing TeX and LaTeX files.
79* HTML Mode:: Editing HTML and SGML files. 79* HTML Mode:: Editing HTML and SGML files.
80* Nroff Mode:: Editing input to the nroff formatter. 80* Nroff Mode:: Editing input to the nroff formatter.
81* Enriched Text:: Editing text "enriched" with fonts, colors, etc. 81* Enriched Text:: Editing text ``enriched'' with fonts, colors, etc.
82* Text Based Tables:: Commands for editing text-based tables. 82* Text Based Tables:: Commands for editing text-based tables.
83* Two-Column:: Splitting text columns into separate windows. 83* Two-Column:: Splitting text columns into separate windows.
84@end menu 84@end menu
@@ -2072,7 +2072,7 @@ serves as an example of the features of Enriched mode.
2072* Enriched Indentation:: Changing the left and right margins. 2072* Enriched Indentation:: Changing the left and right margins.
2073* Enriched Justification:: Centering, setting text flush with the 2073* Enriched Justification:: Centering, setting text flush with the
2074 left or right margin, etc. 2074 left or right margin, etc.
2075* Enriched Properties:: The "special" text properties submenu. 2075* Enriched Properties:: The ``special'' text properties submenu.
2076@end menu 2076@end menu
2077 2077
2078@node Enriched Mode 2078@node Enriched Mode
diff --git a/doc/emacs/trouble.texi b/doc/emacs/trouble.texi
index fc01a97e889..2233376755a 100644
--- a/doc/emacs/trouble.texi
+++ b/doc/emacs/trouble.texi
@@ -1345,16 +1345,16 @@ Emacs has additional style and coding conventions:
1345@item 1345@item
1346@ifset WWW_GNU_ORG 1346@ifset WWW_GNU_ORG
1347@ifhtml 1347@ifhtml
1348the "Tips" Appendix in the Emacs Lisp Reference 1348the ``Tips'' Appendix in the Emacs Lisp Reference
1349@url{http://www.gnu.org/software/emacs/manual/html_node/elisp/Tips.html}. 1349@url{http://www.gnu.org/software/emacs/manual/html_node/elisp/Tips.html}.
1350@end ifhtml 1350@end ifhtml
1351@ifnothtml 1351@ifnothtml
1352@xref{Tips, "Tips" Appendix in the Emacs Lisp Reference, Tips 1352@xref{Tips, ``Tips'' Appendix in the Emacs Lisp Reference, Tips
1353Appendix, elisp, Emacs Lisp Reference}. 1353Appendix, elisp, Emacs Lisp Reference}.
1354@end ifnothtml 1354@end ifnothtml
1355@end ifset 1355@end ifset
1356@ifclear WWW_GNU_ORG 1356@ifclear WWW_GNU_ORG
1357@xref{Tips, "Tips" Appendix in the Emacs Lisp Reference, Tips 1357@xref{Tips, ``Tips'' Appendix in the Emacs Lisp Reference, Tips
1358Appendix, elisp, Emacs Lisp Reference}. 1358Appendix, elisp, Emacs Lisp Reference}.
1359@end ifclear 1359@end ifclear
1360 1360
@@ -1398,7 +1398,7 @@ See gnu-misc-discuss instead.)
1398 1398
1399A copyright disclaimer is also a possibility, but we prefer an assignment. 1399A copyright disclaimer is also a possibility, but we prefer an assignment.
1400Note that the disclaimer, like an assignment, involves you sending 1400Note that the disclaimer, like an assignment, involves you sending
1401signed paperwork to the FSF (simply saying "this is in the public domain" 1401signed paperwork to the FSF (simply saying ``this is in the public domain''
1402is not enough). Also, a disclaimer cannot be applied to future work, it 1402is not enough). Also, a disclaimer cannot be applied to future work, it
1403has to be repeated each time you want to send something new. 1403has to be repeated each time you want to send something new.
1404 1404
diff --git a/doc/lispintro/emacs-lisp-intro.texi b/doc/lispintro/emacs-lisp-intro.texi
index 3ac24183078..d353241c34a 100644
--- a/doc/lispintro/emacs-lisp-intro.texi
+++ b/doc/lispintro/emacs-lisp-intro.texi
@@ -9268,7 +9268,7 @@ documentation string. For example:
9268@smallexample 9268@smallexample
9269@group 9269@group
9270(defvar shell-command-default-error-buffer nil 9270(defvar shell-command-default-error-buffer nil
9271 "*Buffer name for shell-command @dots{} error output. 9271 "*Buffer name for `shell-command' @dots{} error output.
9272@dots{} ") 9272@dots{} ")
9273@end group 9273@end group
9274@end smallexample 9274@end smallexample
@@ -11107,7 +11107,7 @@ up the number of pebbles in a triangle.
11107@smallexample 11107@smallexample
11108@group 11108@group
11109(defun triangle-using-dotimes (number-of-rows) 11109(defun triangle-using-dotimes (number-of-rows)
11110 "Using dotimes, add up the number of pebbles in a triangle." 11110 "Using `dotimes', add up the number of pebbles in a triangle."
11111(let ((total 0)) ; otherwise a total is a void variable 11111(let ((total 0)) ; otherwise a total is a void variable
11112 (dotimes (number number-of-rows total) 11112 (dotimes (number number-of-rows total)
11113 (setq total (+ total (1+ number)))))) 11113 (setq total (+ total (1+ number))))))
@@ -13514,8 +13514,8 @@ For example:
13514@smallexample 13514@smallexample
13515@group 13515@group
13516(let* ((foo 7) 13516(let* ((foo 7)
13517 (bar (* 3 foo))) 13517 (bar (* 3 foo)))
13518 (message "bar is %d." bar)) 13518 (message "`bar' is %d." bar))
13519 @result{} ‘bar’ is 21. 13519 @result{} ‘bar’ is 21.
13520@end group 13520@end group
13521@end smallexample 13521@end smallexample
@@ -13758,7 +13758,7 @@ All this leads to the following function definition:
13758 "Print number of words in the region. 13758 "Print number of words in the region.
13759Words are defined as at least one word-constituent 13759Words are defined as at least one word-constituent
13760character followed by at least one character that 13760character followed by at least one character that
13761is not a word-constituent. The buffers syntax 13761is not a word-constituent. The buffer's syntax
13762table determines which characters these are." 13762table determines which characters these are."
13763 (interactive "r") 13763 (interactive "r")
13764 (message "Counting words in region ... ") 13764 (message "Counting words in region ... ")
@@ -13825,7 +13825,7 @@ parenthesis and type @kbd{C-x C-e} to install it.
13825(defun @value{COUNT-WORDS} (beginning end) 13825(defun @value{COUNT-WORDS} (beginning end)
13826 "Print number of words in the region. 13826 "Print number of words in the region.
13827Words are defined as at least one word-constituent character followed 13827Words are defined as at least one word-constituent character followed
13828by at least one character that is not a word-constituent. The buffers 13828by at least one character that is not a word-constituent. The buffer's
13829syntax table determines which characters these are." 13829syntax table determines which characters these are."
13830@end group 13830@end group
13831@group 13831@group
@@ -13947,7 +13947,7 @@ What happens is this: the search is limited to the region, and fails
13947as you expect because there are no word-constituent characters in the 13947as you expect because there are no word-constituent characters in the
13948region. Since it fails, we receive an error message. But we do not 13948region. Since it fails, we receive an error message. But we do not
13949want to receive an error message in this case; we want to receive the 13949want to receive an error message in this case; we want to receive the
13950message that "The region does NOT have any words." 13950message ``The region does NOT have any words.''
13951 13951
13952The solution to this problem is to provide @code{re-search-forward} 13952The solution to this problem is to provide @code{re-search-forward}
13953with a third argument of @code{t}, which causes the function to return 13953with a third argument of @code{t}, which causes the function to return
@@ -14987,13 +14987,13 @@ beginning of the file. The function definition looks like this:
14987@smallexample 14987@smallexample
14988@group 14988@group
14989(defun lengths-list-file (filename) 14989(defun lengths-list-file (filename)
14990 "Return list of definitions lengths within FILE. 14990 "Return list of definitions' lengths within FILE.
14991The returned list is a list of numbers. 14991The returned list is a list of numbers.
14992Each number is the number of words or 14992Each number is the number of words or
14993symbols in one function definition." 14993symbols in one function definition."
14994@end group 14994@end group
14995@group 14995@group
14996 (message "Working on %s ... " filename) 14996 (message "Working on `%s' ... " filename)
14997 (save-excursion 14997 (save-excursion
14998 (let ((buffer (find-file-noselect filename)) 14998 (let ((buffer (find-file-noselect filename))
14999 (lengths-list)) 14999 (lengths-list))
@@ -15759,7 +15759,7 @@ simpler to write a list manually. Here it is:
15759 160 170 180 190 200 15759 160 170 180 190 200
15760 210 220 230 240 250 15760 210 220 230 240 250
15761 260 270 280 290 300) 15761 260 270 280 290 300)
15762 "List specifying ranges for defuns-per-range.") 15762 "List specifying ranges for `defuns-per-range'.")
15763@end group 15763@end group
15764@end smallexample 15764@end smallexample
15765 15765
@@ -19943,7 +19943,7 @@ row, and the value of the width of the top line, which is calculated
19943@group 19943@group
19944(defun Y-axis-element (number full-Y-label-width) 19944(defun Y-axis-element (number full-Y-label-width)
19945 "Construct a NUMBERed label element. 19945 "Construct a NUMBERed label element.
19946A numbered element looks like this 5 - , 19946A numbered element looks like this ` 5 - ',
19947and is padded as needed so all line up with 19947and is padded as needed so all line up with
19948the element for the largest number." 19948the element for the largest number."
19949@end group 19949@end group
@@ -20044,7 +20044,7 @@ the @code{print-Y-axis} function, which inserts the list as a column.
20044Height must be the maximum height of the graph. 20044Height must be the maximum height of the graph.
20045Full width is the width of the highest label element." 20045Full width is the width of the highest label element."
20046;; Value of height and full-Y-label-width 20046;; Value of height and full-Y-label-width
20047;; are passed by print-graph. 20047;; are passed by print-graph.
20048@end group 20048@end group
20049@group 20049@group
20050 (let ((start (point))) 20050 (let ((start (point)))
@@ -21169,7 +21169,7 @@ each column."
21169@end group 21169@end group
21170@group 21170@group
21171;; Value of symbol-width and full-Y-label-width 21171;; Value of symbol-width and full-Y-label-width
21172;; are passed by print-graph. 21172;; are passed by print-graph.
21173 (let* ((leading-spaces 21173 (let* ((leading-spaces
21174 (make-string full-Y-label-width ? )) 21174 (make-string full-Y-label-width ? ))
21175 ;; symbol-width @r{is provided by} graph-body-print 21175 ;; symbol-width @r{is provided by} graph-body-print
@@ -21269,7 +21269,7 @@ Here are all the graphing definitions in their final form:
21269 110 120 130 140 150 21269 110 120 130 140 150
21270 160 170 180 190 200 21270 160 170 180 190 200
21271 210 220 230 240 250) 21271 210 220 230 240 250)
21272 "List specifying ranges for defuns-per-range.") 21272 "List specifying ranges for `defuns-per-range'.")
21273@end group 21273@end group
21274 21274
21275@group 21275@group
@@ -21330,14 +21330,14 @@ as graph-symbol.")
21330@smallexample 21330@smallexample
21331@group 21331@group
21332(defun lengths-list-file (filename) 21332(defun lengths-list-file (filename)
21333 "Return list of definitions lengths within FILE. 21333 "Return list of definitions' lengths within FILE.
21334The returned list is a list of numbers. 21334The returned list is a list of numbers.
21335Each number is the number of words or 21335Each number is the number of words or
21336symbols in one function definition." 21336symbols in one function definition."
21337@end group 21337@end group
21338 21338
21339@group 21339@group
21340 (message "Working on %s ... " filename) 21340 (message "Working on `%s' ... " filename)
21341 (save-excursion 21341 (save-excursion
21342 (let ((buffer (find-file-noselect filename)) 21342 (let ((buffer (find-file-noselect filename))
21343 (lengths-list)) 21343 (lengths-list))
@@ -21467,7 +21467,7 @@ The strings are either graph-blank or graph-symbol."
21467@group 21467@group
21468(defun Y-axis-element (number full-Y-label-width) 21468(defun Y-axis-element (number full-Y-label-width)
21469 "Construct a NUMBERed label element. 21469 "Construct a NUMBERed label element.
21470A numbered element looks like this 5 - , 21470A numbered element looks like this ` 5 - ',
21471and is padded as needed so all line up with 21471and is padded as needed so all line up with
21472the element for the largest number." 21472the element for the largest number."
21473@end group 21473@end group
@@ -21497,7 +21497,7 @@ Optionally, print according to VERTICAL-STEP."
21497@end group 21497@end group
21498@group 21498@group
21499;; Value of height and full-Y-label-width 21499;; Value of height and full-Y-label-width
21500;; are passed by print-graph. 21500;; are passed by 'print-graph'.
21501 (let ((start (point))) 21501 (let ((start (point)))
21502 (insert-rectangle 21502 (insert-rectangle
21503 (Y-axis-column height full-Y-label-width vertical-step)) 21503 (Y-axis-column height full-Y-label-width vertical-step))
@@ -21662,7 +21662,7 @@ each column."
21662@end group 21662@end group
21663@group 21663@group
21664;; Value of symbol-width and full-Y-label-width 21664;; Value of symbol-width and full-Y-label-width
21665;; are passed by print-graph. 21665;; are passed by 'print-graph'.
21666 (let* ((leading-spaces 21666 (let* ((leading-spaces
21667 (make-string full-Y-label-width ? )) 21667 (make-string full-Y-label-width ? ))
21668 ;; symbol-width @r{is provided by} graph-body-print 21668 ;; symbol-width @r{is provided by} graph-body-print
diff --git a/doc/lispref/anti.texi b/doc/lispref/anti.texi
index c1773aa6e9b..2784fd9b3b1 100644
--- a/doc/lispref/anti.texi
+++ b/doc/lispref/anti.texi
@@ -56,8 +56,8 @@ there is no need to worry about the insertion of right-to-left text
56messing up how lines and paragraphs are displayed, the function 56messing up how lines and paragraphs are displayed, the function
57@code{bidi-string-mark-left-to-right} has been removed; so have many 57@code{bidi-string-mark-left-to-right} has been removed; so have many
58other functions and variables related to bidirectional display. 58other functions and variables related to bidirectional display.
59Unicode directionality characters like @code{U+200E} ("left-to-right 59Unicode directionality characters like @code{U+200E} LEFT-TO-RIGHT
60mark") have no special effect on display. 60MARK have no special effect on display.
61 61
62@item 62@item
63Emacs windows now have most of their internal state hidden from Lisp. 63Emacs windows now have most of their internal state hidden from Lisp.
diff --git a/doc/lispref/buffers.texi b/doc/lispref/buffers.texi
index 49bfe82a3e1..71261e08db7 100644
--- a/doc/lispref/buffers.texi
+++ b/doc/lispref/buffers.texi
@@ -23,7 +23,7 @@ not be displayed in any windows.
23* Buffer File Name:: The buffer file name indicates which file is visited. 23* Buffer File Name:: The buffer file name indicates which file is visited.
24* Buffer Modification:: A buffer is @dfn{modified} if it needs to be saved. 24* Buffer Modification:: A buffer is @dfn{modified} if it needs to be saved.
25* Modification Time:: Determining whether the visited file was changed 25* Modification Time:: Determining whether the visited file was changed
26 "behind Emacs's back". 26 ``behind Emacs's back''.
27* Read Only Buffers:: Modifying text is not allowed in a read-only buffer. 27* Read Only Buffers:: Modifying text is not allowed in a read-only buffer.
28* Buffer List:: How to look at all the existing buffers. 28* Buffer List:: How to look at all the existing buffers.
29* Creating Buffers:: Functions that create buffers. 29* Creating Buffers:: Functions that create buffers.
diff --git a/doc/lispref/control.texi b/doc/lispref/control.texi
index 29d1bd588e3..421f5cc530f 100644
--- a/doc/lispref/control.texi
+++ b/doc/lispref/control.texi
@@ -315,7 +315,7 @@ between a few different constant values:
315@example 315@example
316(pcase (get-return-code x) 316(pcase (get-return-code x)
317 (`success (message "Done!")) 317 (`success (message "Done!"))
318 (`would-block (message "Sorry, cant do it now")) 318 (`would-block (message "Sorry, can't do it now"))
319 (`read-only (message "The shmliblick is read-only")) 319 (`read-only (message "The shmliblick is read-only"))
320 (`access-denied (message "You do not have the needed rights")) 320 (`access-denied (message "You do not have the needed rights"))
321 (code (message "Unknown return code %S" code))) 321 (code (message "Unknown return code %S" code)))
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi
index 9d82edc9a98..14e2cd363a4 100644
--- a/doc/lispref/display.texi
+++ b/doc/lispref/display.texi
@@ -6531,8 +6531,12 @@ no buffer display table.
6531The value of this variable is the standard display table, which is 6531The value of this variable is the standard display table, which is
6532used when Emacs is displaying a buffer in a window with neither a 6532used when Emacs is displaying a buffer in a window with neither a
6533window display table nor a buffer display table defined, or when Emacs 6533window display table nor a buffer display table defined, or when Emacs
6534is outputting text to the standard output or error streams. Its 6534is outputting text to the standard output or error streams. Although its
6535default is @code{nil}. 6535default is typically @code{nil}, in an interactive session if the
6536locale cannot display curved quotes, or if the initial value of
6537@code{text-quoting-style} specifies a preference for ASCII, its
6538default maps curved quotes to ASCII approximations. @xref{Keys in
6539Documentation}.
6536@end defvar 6540@end defvar
6537 6541
6538The @file{disp-table} library defines several functions for changing 6542The @file{disp-table} library defines several functions for changing
diff --git a/doc/lispref/elisp.texi b/doc/lispref/elisp.texi
index 9044fbaec56..7b2b68a4fa6 100644
--- a/doc/lispref/elisp.texi
+++ b/doc/lispref/elisp.texi
@@ -453,7 +453,7 @@ Kinds of Forms
453 we find the real function via the symbol. 453 we find the real function via the symbol.
454* Function Forms:: Forms that call functions. 454* Function Forms:: Forms that call functions.
455* Macro Forms:: Forms that call macros. 455* Macro Forms:: Forms that call macros.
456* Special Forms:: "Special forms" are idiosyncratic primitives, 456* Special Forms:: ``Special forms'' are idiosyncratic primitives,
457 most of them extremely important. 457 most of them extremely important.
458* Autoloading:: Functions set up to load files 458* Autoloading:: Functions set up to load files
459 containing their real definitions. 459 containing their real definitions.
@@ -485,7 +485,7 @@ Errors
485Variables 485Variables
486 486
487* Global Variables:: Variable values that exist permanently, everywhere. 487* Global Variables:: Variable values that exist permanently, everywhere.
488* Constant Variables:: Certain "variables" have values that never change. 488* Constant Variables:: Certain ``variables'' have values that never change.
489* Local Variables:: Variable values that exist only temporarily. 489* Local Variables:: Variable values that exist only temporarily.
490* Void Variables:: Symbols that lack values. 490* Void Variables:: Symbols that lack values.
491* Defining Variables:: A definition says a symbol is used as a variable. 491* Defining Variables:: A definition says a symbol is used as a variable.
@@ -599,7 +599,7 @@ Loading
599* Repeated Loading:: Precautions about loading a file twice. 599* Repeated Loading:: Precautions about loading a file twice.
600* Named Features:: Loading a library if it isn't already loaded. 600* Named Features:: Loading a library if it isn't already loaded.
601* Where Defined:: Finding which file defined a certain symbol. 601* Where Defined:: Finding which file defined a certain symbol.
602* Unloading:: How to "unload" a library that was loaded. 602* Unloading:: How to ``unload'' a library that was loaded.
603* Hooks for Loading:: Providing code to be run when 603* Hooks for Loading:: Providing code to be run when
604 particular libraries are loaded. 604 particular libraries are loaded.
605 605
@@ -990,7 +990,7 @@ Buffers
990 is visited. 990 is visited.
991* Buffer Modification:: A buffer is @dfn{modified} if it needs to be saved. 991* Buffer Modification:: A buffer is @dfn{modified} if it needs to be saved.
992* Modification Time:: Determining whether the visited file was changed 992* Modification Time:: Determining whether the visited file was changed
993 "behind Emacs's back". 993 ``behind Emacs's back''.
994* Read Only Buffers:: Modifying text is not allowed in a 994* Read Only Buffers:: Modifying text is not allowed in a
995 read-only buffer. 995 read-only buffer.
996* Buffer List:: How to look at all the existing buffers. 996* Buffer List:: How to look at all the existing buffers.
@@ -1117,8 +1117,8 @@ Markers
1117* Marker Insertion Types:: Two ways a marker can relocate when you 1117* Marker Insertion Types:: Two ways a marker can relocate when you
1118 insert where it points. 1118 insert where it points.
1119* Moving Markers:: Moving the marker to a new buffer or position. 1119* Moving Markers:: Moving the marker to a new buffer or position.
1120* The Mark:: How "the mark" is implemented with a marker. 1120* The Mark:: How ``the mark'' is implemented with a marker.
1121* The Region:: How to access "the region". 1121* The Region:: How to access ``the region''.
1122 1122
1123Text 1123Text
1124 1124
@@ -1152,7 +1152,7 @@ Text
1152* Base 64:: Conversion to or from base 64 encoding. 1152* Base 64:: Conversion to or from base 64 encoding.
1153* Checksum/Hash:: Computing cryptographic hashes. 1153* Checksum/Hash:: Computing cryptographic hashes.
1154* Parsing HTML/XML:: Parsing HTML and XML. 1154* Parsing HTML/XML:: Parsing HTML and XML.
1155* Atomic Changes:: Installing several buffer changes "atomically". 1155* Atomic Changes:: Installing several buffer changes ``atomically''.
1156* Change Hooks:: Supplying functions to be run when text is changed. 1156* Change Hooks:: Supplying functions to be run when text is changed.
1157 1157
1158The Kill Ring 1158The Kill Ring
diff --git a/doc/lispref/eval.texi b/doc/lispref/eval.texi
index a185da7086f..f253e7007b4 100644
--- a/doc/lispref/eval.texi
+++ b/doc/lispref/eval.texi
@@ -116,7 +116,7 @@ with the ``all other types'' which are self-evaluating forms.
116 we find the real function via the symbol. 116 we find the real function via the symbol.
117* Function Forms:: Forms that call functions. 117* Function Forms:: Forms that call functions.
118* Macro Forms:: Forms that call macros. 118* Macro Forms:: Forms that call macros.
119* Special Forms:: "Special forms" are idiosyncratic primitives, 119* Special Forms:: ``Special forms'' are idiosyncratic primitives,
120 most of them extremely important. 120 most of them extremely important.
121* Autoloading:: Functions set up to load files 121* Autoloading:: Functions set up to load files
122 containing their real definitions. 122 containing their real definitions.
diff --git a/doc/lispref/files.texi b/doc/lispref/files.texi
index f4c9abd5468..91b0c96071e 100644
--- a/doc/lispref/files.texi
+++ b/doc/lispref/files.texi
@@ -1291,10 +1291,10 @@ has only one name (the name @file{files.texi} in the current default
1291directory). 1291directory).
1292 1292
1293@item "lh" 1293@item "lh"
1294is owned by the user with name "lh". 1294is owned by the user with name @samp{lh}.
1295 1295
1296@item "users" 1296@item "users"
1297is in the group with name "users". 1297is in the group with name @samp{users}.
1298 1298
1299@item (20614 64019 50040 152000) 1299@item (20614 64019 50040 152000)
1300was last accessed on October 23, 2012, at 20:12:03.050040152 UTC. 1300was last accessed on October 23, 2012, at 20:12:03.050040152 UTC.
diff --git a/doc/lispref/frames.texi b/doc/lispref/frames.texi
index 65eeec6aea2..16fc4958d1f 100644
--- a/doc/lispref/frames.texi
+++ b/doc/lispref/frames.texi
@@ -2256,7 +2256,7 @@ indicates the release of the button, or whatever kind of event means
2256it is time to stop tracking. 2256it is time to stop tracking.
2257 2257
2258The @code{track-mouse} form causes Emacs to generate mouse motion 2258The @code{track-mouse} form causes Emacs to generate mouse motion
2259events by binding the variable @code{mouse-tracking} to a 2259events by binding the variable @code{track-mouse} to a
2260non-@code{nil} value. If that variable has the special value 2260non-@code{nil} value. If that variable has the special value
2261@code{dragging}, it additionally instructs the display engine to 2261@code{dragging}, it additionally instructs the display engine to
2262refrain from changing the shape of the mouse pointer. This is 2262refrain from changing the shape of the mouse pointer. This is
diff --git a/doc/lispref/functions.texi b/doc/lispref/functions.texi
index 20eaf5dee1e..a853d2fbab5 100644
--- a/doc/lispref/functions.texi
+++ b/doc/lispref/functions.texi
@@ -1561,7 +1561,7 @@ Around advice such as:
1561 1561
1562@example 1562@example
1563(defadvice foo (around foo-around) 1563(defadvice foo (around foo-around)
1564 "Ignore case in foo." 1564 "Ignore case in `foo'."
1565 (let ((case-fold-search t)) 1565 (let ((case-fold-search t))
1566 ad-do-it)) 1566 ad-do-it))
1567(ad-activate 'foo) 1567(ad-activate 'foo)
@@ -1571,7 +1571,7 @@ could translate into:
1571 1571
1572@example 1572@example
1573(defun foo--foo-around (orig-fun &rest args) 1573(defun foo--foo-around (orig-fun &rest args)
1574 "Ignore case in foo." 1574 "Ignore case in `foo'."
1575 (let ((case-fold-search t)) 1575 (let ((case-fold-search t))
1576 (apply orig-fun args))) 1576 (apply orig-fun args)))
1577(advice-add 'foo :around #'foo--foo-around) 1577(advice-add 'foo :around #'foo--foo-around)
diff --git a/doc/lispref/help.texi b/doc/lispref/help.texi
index 44c09a2085a..b3042d747b4 100644
--- a/doc/lispref/help.texi
+++ b/doc/lispref/help.texi
@@ -345,7 +345,9 @@ quotes. If the variable's value is @code{curve}, the style is
345apostrophes. If the value is @code{grave}, the style is @t{`like 345apostrophes. If the value is @code{grave}, the style is @t{`like
346this'} with grave accent and apostrophe. The default value @code{nil} 346this'} with grave accent and apostrophe. The default value @code{nil}
347acts like @code{curve} if curved single quotes are displayable, and 347acts like @code{curve} if curved single quotes are displayable, and
348like @code{grave} otherwise. 348like @code{grave} otherwise. To use the traditional @code{grave}
349style, put the line @code{(setq text-quoting-style 'grave)} into your
350@file{~/.emacs} file.
349@end defvar 351@end defvar
350 352
351@defun substitute-command-keys string 353@defun substitute-command-keys string
@@ -375,7 +377,7 @@ specifies a key binding that the command does not actually have.
375@smallexample 377@smallexample
376@group 378@group
377(substitute-command-keys 379(substitute-command-keys
378 "To abort recursive edit, type \\[abort-recursive-edit].") 380 "To abort recursive edit, type `\\[abort-recursive-edit]'.")
379@result{} "To abort recursive edit, type ‘C-]’." 381@result{} "To abort recursive edit, type ‘C-]’."
380@end group 382@end group
381 383
@@ -396,7 +398,7 @@ C-g abort-recursive-edit
396 398
397@group 399@group
398(substitute-command-keys 400(substitute-command-keys
399 "To abort a recursive edit from the minibuffer, type\ 401 "To abort a recursive edit from the minibuffer, type \
400`\\<minibuffer-local-must-match-map>\\[abort-recursive-edit]'.") 402`\\<minibuffer-local-must-match-map>\\[abort-recursive-edit]'.")
401@result{} "To abort a recursive edit from the minibuffer, type ‘C-g’." 403@result{} "To abort a recursive edit from the minibuffer, type ‘C-g’."
402@end group 404@end group
diff --git a/doc/lispref/loading.texi b/doc/lispref/loading.texi
index fc1def60207..91dc9a95390 100644
--- a/doc/lispref/loading.texi
+++ b/doc/lispref/loading.texi
@@ -40,7 +40,7 @@ For on-demand loading of external libraries, @pxref{Dynamic Libraries}.
40* Repeated Loading:: Precautions about loading a file twice. 40* Repeated Loading:: Precautions about loading a file twice.
41* Named Features:: Loading a library if it isn't already loaded. 41* Named Features:: Loading a library if it isn't already loaded.
42* Where Defined:: Finding which file defined a certain symbol. 42* Where Defined:: Finding which file defined a certain symbol.
43* Unloading:: How to "unload" a library that was loaded. 43* Unloading:: How to ``unload'' a library that was loaded.
44* Hooks for Loading:: Providing code to be run when 44* Hooks for Loading:: Providing code to be run when
45 particular libraries are loaded. 45 particular libraries are loaded.
46@end menu 46@end menu
diff --git a/doc/lispref/markers.texi b/doc/lispref/markers.texi
index 109e9359f2c..4f25b91506e 100644
--- a/doc/lispref/markers.texi
+++ b/doc/lispref/markers.texi
@@ -20,8 +20,8 @@ deleted, so that it stays with the two characters on either side of it.
20* Marker Insertion Types:: Two ways a marker can relocate when you 20* Marker Insertion Types:: Two ways a marker can relocate when you
21 insert where it points. 21 insert where it points.
22* Moving Markers:: Moving the marker to a new buffer or position. 22* Moving Markers:: Moving the marker to a new buffer or position.
23* The Mark:: How "the mark" is implemented with a marker. 23* The Mark:: How ``the mark'' is implemented with a marker.
24* The Region:: How to access "the region". 24* The Region:: How to access ``the region''.
25@end menu 25@end menu
26 26
27@node Overview of Markers 27@node Overview of Markers
diff --git a/doc/lispref/modes.texi b/doc/lispref/modes.texi
index f00e481275f..a8b6bb19c5f 100644
--- a/doc/lispref/modes.texi
+++ b/doc/lispref/modes.texi
@@ -1155,9 +1155,9 @@ Many other modes, such as `mail-mode', `outline-mode' and
1155 "Major mode for editing text written for humans to read. 1155 "Major mode for editing text written for humans to read.
1156In this mode, paragraphs are delimited only by blank or white lines. 1156In this mode, paragraphs are delimited only by blank or white lines.
1157You can thus get the full benefit of adaptive filling 1157You can thus get the full benefit of adaptive filling
1158 (see the variable adaptive-fill-mode). 1158 (see the variable `adaptive-fill-mode').
1159\\@{text-mode-map@} 1159\\@{text-mode-map@}
1160Turning on Text mode runs the normal hook text-mode-hook." 1160Turning on Text mode runs the normal hook `text-mode-hook'."
1161@end group 1161@end group
1162@group 1162@group
1163 (set (make-local-variable 'text-mode-variant) t) 1163 (set (make-local-variable 'text-mode-variant) t)
@@ -1252,7 +1252,7 @@ And here is the code to set up the keymap for Lisp mode:
1252 @dots{} 1252 @dots{}
1253 map) 1253 map)
1254 "Keymap for ordinary Lisp mode. 1254 "Keymap for ordinary Lisp mode.
1255All commands in lisp-mode-shared-map are inherited by this map.") 1255All commands in `lisp-mode-shared-map' are inherited by this map.")
1256@end group 1256@end group
1257@end smallexample 1257@end smallexample
1258 1258
@@ -1268,12 +1268,12 @@ Delete converts tabs to spaces as it moves back.
1268Blank lines separate paragraphs. Semicolons start comments. 1268Blank lines separate paragraphs. Semicolons start comments.
1269 1269
1270\\@{lisp-mode-map@} 1270\\@{lisp-mode-map@}
1271Note that run-lisp may be used either to start an inferior Lisp job 1271Note that `run-lisp' may be used either to start an inferior Lisp job
1272or to switch back to an existing one. 1272or to switch back to an existing one.
1273@end group 1273@end group
1274 1274
1275@group 1275@group
1276Entry to this mode calls the value of lisp-mode-hook 1276Entry to this mode calls the value of `lisp-mode-hook'
1277if that value is non-nil." 1277if that value is non-nil."
1278 (lisp-mode-variables nil t) 1278 (lisp-mode-variables nil t)
1279 (set (make-local-variable 'find-tag-default-function) 1279 (set (make-local-variable 'find-tag-default-function)
@@ -1447,7 +1447,7 @@ will load the library that defines the mode. For example:
1447(defcustom msb-mode nil 1447(defcustom msb-mode nil
1448 "Toggle msb-mode. 1448 "Toggle msb-mode.
1449Setting this variable directly does not take effect; 1449Setting this variable directly does not take effect;
1450use either \\[customize] or the function msb-mode." 1450use either \\[customize] or the function `msb-mode'."
1451 :set 'custom-set-minor-mode 1451 :set 'custom-set-minor-mode
1452 :initialize 'custom-initialize-default 1452 :initialize 'custom-initialize-default
1453 :version "20.4" 1453 :version "20.4"
@@ -1605,7 +1605,7 @@ for this macro.
1605Interactively with no argument, this command toggles the mode. 1605Interactively with no argument, this command toggles the mode.
1606A positive prefix argument enables the mode, any other prefix 1606A positive prefix argument enables the mode, any other prefix
1607argument disables it. From Lisp, argument omitted or nil enables 1607argument disables it. From Lisp, argument omitted or nil enables
1608the mode, toggle toggles the state. 1608the mode, `toggle' toggles the state.
1609 1609
1610When Hungry mode is enabled, the control delete key 1610When Hungry mode is enabled, the control delete key
1611gobbles all preceding whitespace except the last. 1611gobbles all preceding whitespace except the last.
diff --git a/doc/lispref/os.texi b/doc/lispref/os.texi
index 64ebb45f23b..6ef87dfbd53 100644
--- a/doc/lispref/os.texi
+++ b/doc/lispref/os.texi
@@ -195,7 +195,7 @@ It now exits if the option @code{--batch} was specified.
195 195
196@item 196@item
197If the @file{*scratch*} buffer exists and is empty, it inserts 197If the @file{*scratch*} buffer exists and is empty, it inserts
198@code{initial-scratch-message} into that buffer. 198@code{(substitute-command-keys initial-scratch-message)} into that buffer.
199 199
200@item 200@item
201If @code{initial-buffer-choice} is a string, it visits the file (or 201If @code{initial-buffer-choice} is a string, it visits the file (or
@@ -314,6 +314,7 @@ file will not inhibit the message for someone else.
314 314
315@defopt initial-scratch-message 315@defopt initial-scratch-message
316This variable, if non-@code{nil}, should be a string, which is 316This variable, if non-@code{nil}, should be a string, which is
317treated as documentation to be
317inserted into the @file{*scratch*} buffer when Emacs starts up. If it 318inserted into the @file{*scratch*} buffer when Emacs starts up. If it
318is @code{nil}, the @file{*scratch*} buffer is empty. 319is @code{nil}, the @file{*scratch*} buffer is empty.
319@end defopt 320@end defopt
@@ -1927,7 +1928,7 @@ idleness. Here's an example:
1927 1928
1928@example 1929@example
1929(defvar my-resume-timer nil 1930(defvar my-resume-timer nil
1930 "Timer for my-timer-function to reschedule itself, or nil.") 1931 "Timer for `my-timer-function' to reschedule itself, or nil.")
1931 1932
1932(defun my-timer-function () 1933(defun my-timer-function ()
1933 ;; @r{If the user types a command while @code{my-resume-timer}} 1934 ;; @r{If the user types a command while @code{my-resume-timer}}
@@ -2479,7 +2480,7 @@ argument of another @code{notifications-notify} call. For example:
2479@end group 2480@end group
2480 2481
2481@group 2482@group
2482A message window opens on the desktop. Press "I agree" 2483A message window opens on the desktop. Press ``I agree''.
2483 @result{} Message 22, key "Confirm" pressed 2484 @result{} Message 22, key "Confirm" pressed
2484 Message 22, closed due to "dismissed" 2485 Message 22, closed due to "dismissed"
2485@end group 2486@end group
@@ -2674,32 +2675,14 @@ being reported. For example:
2674@end example 2675@end example
2675 2676
2676Whether the action @code{renamed} is returned, depends on the used 2677Whether the action @code{renamed} is returned, depends on the used
2677watch library. It can be expected, when a directory is watched, and 2678watch library. Otherwise, the actions @code{deleted} and
2678both @var{file} and @var{file1} belong to this directory. Otherwise, 2679@code{created} could be returned in a random order.
2679the actions @code{deleted} and @code{created} could be returned in a
2680random order.
2681 2680
2682@example 2681@example
2683@group 2682@group
2684(rename-file "/tmp/foo" "/tmp/bla") 2683(rename-file "/tmp/foo" "/tmp/bla")
2685 @result{} Event (35025468 renamed "/tmp/foo" "/tmp/bla") 2684 @result{} Event (35025468 renamed "/tmp/foo" "/tmp/bla")
2686@end group 2685@end group
2687
2688@group
2689(file-notify-add-watch
2690 "/var/tmp" '(change attribute-change) 'my-notify-callback)
2691 @result{} 35025504
2692@end group
2693
2694@group
2695(rename-file "/tmp/bla" "/var/tmp/bla")
2696 @result{} ;; gfilenotify
2697 Event (35025468 renamed "/tmp/bla" "/var/tmp/bla")
2698
2699 @result{} ;; inotify
2700 Event (35025504 created "/var/tmp/bla")
2701 Event (35025468 deleted "/tmp/bla")
2702@end group
2703@end example 2686@end example
2704@end defun 2687@end defun
2705 2688
diff --git a/doc/lispref/package.texi b/doc/lispref/package.texi
index f8eba2a5161..7136286f0ba 100644
--- a/doc/lispref/package.texi
+++ b/doc/lispref/package.texi
@@ -113,8 +113,10 @@ package loading is disabled if the user option
113This function initializes Emacs' internal record of which packages are 113This function initializes Emacs' internal record of which packages are
114installed, and loads them. The user option @code{package-load-list} 114installed, and loads them. The user option @code{package-load-list}
115specifies which packages to load; by default, all installed packages 115specifies which packages to load; by default, all installed packages
116are loaded. @xref{Package Installation,,, emacs, The GNU Emacs 116are loaded. If called during startup, this function also sets
117Manual}. 117@code{package-enable-at-startup} to @code{nil}, to avoid accidentally
118loading the packages twice. @xref{Package Installation,,, emacs, The
119GNU Emacs Manual}.
118 120
119The optional argument @var{no-activate}, if non-@code{nil}, causes 121The optional argument @var{no-activate}, if non-@code{nil}, causes
120Emacs to update its record of installed packages without actually 122Emacs to update its record of installed packages without actually
diff --git a/doc/lispref/processes.texi b/doc/lispref/processes.texi
index 98b3dfb9e3a..c9509b0f216 100644
--- a/doc/lispref/processes.texi
+++ b/doc/lispref/processes.texi
@@ -1720,13 +1720,13 @@ sentinel, the eventual call to the sentinel will use the new one.
1720@group 1720@group
1721(defun msg-me (process event) 1721(defun msg-me (process event)
1722 (princ 1722 (princ
1723 (format "Process: %s had the event %s" process event))) 1723 (format "Process: %s had the event '%s'" process event)))
1724(set-process-sentinel (get-process "shell") 'msg-me) 1724(set-process-sentinel (get-process "shell") 'msg-me)
1725 @result{} msg-me 1725 @result{} msg-me
1726@end group 1726@end group
1727@group 1727@group
1728(kill-process (get-process "shell")) 1728(kill-process (get-process "shell"))
1729 @print{} Process: #<process shell> had the event killed 1729 @print{} Process: #<process shell> had the event 'killed'
1730 @result{} #<process shell> 1730 @result{} #<process shell>
1731@end group 1731@end group
1732@end smallexample 1732@end smallexample
diff --git a/doc/lispref/sequences.texi b/doc/lispref/sequences.texi
index 12ed881dadb..f73779bd9ce 100644
--- a/doc/lispref/sequences.texi
+++ b/doc/lispref/sequences.texi
@@ -557,19 +557,24 @@ calling @var{function}.
557@end example 557@end example
558@end defun 558@end defun
559 559
560@defun seq-some-p predicate sequence 560@defun seq-some predicate sequence
561 This function returns the first member of sequence for which @var{predicate} 561 This function returns non-@code{nil} if @var{predicate} returns
562returns non-@code{nil}. 562non-@code{nil} for any element of @var{sequence}. If so, the returned
563value is the value returned by @var{predicate}.
563 564
564@example 565@example
565@group 566@group
566(seq-some-p #'numberp ["abc" 1 nil]) 567(seq-some #'numberp ["abc" 1 nil])
567@result{} 1 568@result{} t
568@end group 569@end group
569@group 570@group
570(seq-some-p #'numberp ["abc" "def"]) 571(seq-some #'numberp ["abc" "def"])
571@result{} nil 572@result{} nil
572@end group 573@end group
574@group
575(seq-some #'null ["abc" 1 nil])
576@result{} t
577@end group
573@end example 578@end example
574@end defun 579@end defun
575 580
@@ -583,7 +588,7 @@ to every element of @var{sequence} returns non-@code{nil}.
583@result{} t 588@result{} t
584@end group 589@end group
585@group 590@group
586(seq-some-p #'numberp [2 4 "6"]) 591(seq-some #'numberp [2 4 "6"])
587@result{} nil 592@result{} nil
588@end group 593@end group
589@end example 594@end example
@@ -621,18 +626,18 @@ according to @var{function}, a function of two arguments that returns
621non-@code{nil} if the first argument should sort before the second. 626non-@code{nil} if the first argument should sort before the second.
622@end defun 627@end defun
623 628
624@defun seq-contains-p sequence elt &optional function 629@defun seq-contains sequence elt &optional function
625 This function returns the first element in @var{sequence} that is equal to 630 This function returns the first element in @var{sequence} that is equal to
626@var{elt}. If the optional argument @var{function} is non-@code{nil}, 631@var{elt}. If the optional argument @var{function} is non-@code{nil},
627it is a function of two arguments to use instead of the default @code{equal}. 632it is a function of two arguments to use instead of the default @code{equal}.
628 633
629@example 634@example
630@group 635@group
631(seq-contains-p '(symbol1 symbol2) 'symbol1) 636(seq-contains '(symbol1 symbol2) 'symbol1)
632@result{} symbol1 637@result{} symbol1
633@end group 638@end group
634@group 639@group
635(seq-contains-p '(symbol1 symbol2) 'symbol3) 640(seq-contains '(symbol1 symbol2) 'symbol3)
636@result{} nil 641@result{} nil
637@end group 642@end group
638@end example 643@end example
diff --git a/doc/lispref/strings.texi b/doc/lispref/strings.texi
index d882be485ef..f42250719e5 100644
--- a/doc/lispref/strings.texi
+++ b/doc/lispref/strings.texi
@@ -486,8 +486,8 @@ accent Unicode characters:
486 486
487The optional argument @var{locale}, a string, overrides the setting of 487The optional argument @var{locale}, a string, overrides the setting of
488your current locale identifier for collation. The value is system 488your current locale identifier for collation. The value is system
489dependent; a @var{locale} "en_US.UTF-8" is applicable on POSIX 489dependent; a @var{locale} @code{"en_US.UTF-8"} is applicable on POSIX
490systems, while it would be, e.g., "enu_USA.1252" on MS-Windows 490systems, while it would be, e.g., @code{"enu_USA.1252"} on MS-Windows
491systems. 491systems.
492 492
493If @var{ignore-case} is non-@code{nil}, characters are converted to lower-case 493If @var{ignore-case} is non-@code{nil}, characters are converted to lower-case
@@ -495,7 +495,7 @@ before comparing them.
495 495
496To emulate Unicode-compliant collation on MS-Windows systems, 496To emulate Unicode-compliant collation on MS-Windows systems,
497bind @code{w32-collate-ignore-punctuation} to a non-@code{nil} value, since 497bind @code{w32-collate-ignore-punctuation} to a non-@code{nil} value, since
498the codeset part of the locale cannot be "UTF-8" on MS-Windows. 498the codeset part of the locale cannot be @code{"UTF-8"} on MS-Windows.
499 499
500If your system does not support a locale environment, this function 500If your system does not support a locale environment, this function
501behaves like @code{string-equal}. 501behaves like @code{string-equal}.
@@ -596,9 +596,9 @@ less significant for @ref{Sorting,,sorting}.
596 596
597The optional argument @var{locale}, a string, overrides the setting of 597The optional argument @var{locale}, a string, overrides the setting of
598your current locale identifier for collation. The value is system 598your current locale identifier for collation. The value is system
599dependent; a @var{locale} "en_US.UTF-8" is applicable on POSIX 599dependent; a @var{locale} @code{"en_US.UTF-8"} is applicable on POSIX
600systems, while it would be, e.g., "enu_USA.1252" on MS-Windows 600systems, while it would be, e.g., @code{"enu_USA.1252"} on MS-Windows
601systems. The @var{locale} "POSIX" lets @code{string-collate-lessp} 601systems. The @var{locale} @code{"POSIX"} lets @code{string-collate-lessp}
602behave like @code{string-lessp}: 602behave like @code{string-lessp}:
603 603
604@example 604@example
@@ -614,7 +614,7 @@ before comparing them.
614 614
615To emulate Unicode-compliant collation on MS-Windows systems, 615To emulate Unicode-compliant collation on MS-Windows systems,
616bind @code{w32-collate-ignore-punctuation} to a non-@code{nil} value, since 616bind @code{w32-collate-ignore-punctuation} to a non-@code{nil} value, since
617the codeset part of the locale cannot be "UTF-8" on MS-Windows. 617the codeset part of the locale cannot be @code{"UTF-8"} on MS-Windows.
618 618
619If your system does not support a locale environment, this function 619If your system does not support a locale environment, this function
620behaves like @code{string-lessp}. 620behaves like @code{string-lessp}.
@@ -969,12 +969,12 @@ is not truncated.
969 969
970@example 970@example
971@group 971@group
972(format "The word %7s has %d letters in it." 972(format "The word '%7s' has %d letters in it."
973 "foo" (length "foo")) 973 "foo" (length "foo"))
974 @result{} "The word foo has 3 letters in it." 974 @result{} "The word ' foo' has 3 letters in it."
975(format "The word %7s has %d letters in it." 975(format "The word '%7s' has %d letters in it."
976 "specification" (length "specification")) 976 "specification" (length "specification"))
977 @result{} "The word specification has 13 letters in it." 977 @result{} "The word 'specification' has 13 letters in it."
978@end group 978@end group
979@end example 979@end example
980 980
@@ -1013,12 +1013,12 @@ ignored.
1013(format "%06d is padded on the left with zeros" 123) 1013(format "%06d is padded on the left with zeros" 123)
1014 @result{} "000123 is padded on the left with zeros" 1014 @result{} "000123 is padded on the left with zeros"
1015 1015
1016(format "%-6d is padded on the right" 123) 1016(format "'%-6d' is padded on the right" 123)
1017 @result{} "123 is padded on the right" 1017 @result{} "'123 ' is padded on the right"
1018 1018
1019(format "The word %-7s actually has %d letters in it." 1019(format "The word '%-7s' actually has %d letters in it."
1020 "foo" (length "foo")) 1020 "foo" (length "foo"))
1021 @result{} "The word foo actually has 3 letters in it." 1021 @result{} "The word 'foo ' actually has 3 letters in it."
1022@end group 1022@end group
1023@end example 1023@end example
1024 1024
diff --git a/doc/lispref/text.texi b/doc/lispref/text.texi
index 245825ada60..55e550a7b80 100644
--- a/doc/lispref/text.texi
+++ b/doc/lispref/text.texi
@@ -58,7 +58,7 @@ the character after point.
58* Base 64:: Conversion to or from base 64 encoding. 58* Base 64:: Conversion to or from base 64 encoding.
59* Checksum/Hash:: Computing cryptographic hashes. 59* Checksum/Hash:: Computing cryptographic hashes.
60* Parsing HTML/XML:: Parsing HTML and XML. 60* Parsing HTML/XML:: Parsing HTML and XML.
61* Atomic Changes:: Installing several buffer changes "atomically". 61* Atomic Changes:: Installing several buffer changes ``atomically''.
62* Change Hooks:: Supplying functions to be run when text is changed. 62* Change Hooks:: Supplying functions to be run when text is changed.
63@end menu 63@end menu
64 64
@@ -1960,7 +1960,7 @@ Called from a program, there are three arguments:
1960@group 1960@group
1961REVERSE (non-nil means reverse order),\ 1961REVERSE (non-nil means reverse order),\
1962 BEG and END (region to sort). 1962 BEG and END (region to sort).
1963The variable sort-fold-case determines\ 1963The variable `sort-fold-case' determines\
1964 whether alphabetic case affects 1964 whether alphabetic case affects
1965the sort order." 1965the sort order."
1966@end group 1966@end group
diff --git a/doc/lispref/tips.texi b/doc/lispref/tips.texi
index 7107bb45872..3bde0a877ab 100644
--- a/doc/lispref/tips.texi
+++ b/doc/lispref/tips.texi
@@ -689,7 +689,7 @@ immediately before the symbol name. (Case makes no difference in
689recognizing these indicator words.) For example, if you write 689recognizing these indicator words.) For example, if you write
690 690
691@example 691@example
692This function sets the variable buffer-file-name. 692This function sets the variable `buffer-file-name'.
693@end example 693@end example
694 694
695@noindent 695@noindent
@@ -702,7 +702,7 @@ you can write the words @samp{symbol} or @samp{program} before the
702symbol name to prevent making any hyperlink. For example, 702symbol name to prevent making any hyperlink. For example,
703 703
704@example 704@example
705If the argument KIND-OF-RESULT is the symbol list, 705If the argument KIND-OF-RESULT is the symbol `list',
706this function returns a list of all the objects 706this function returns a list of all the objects
707that satisfy the criterion. 707that satisfy the criterion.
708@end example 708@end example
@@ -727,7 +727,7 @@ name of the Info node (or anchor), preceded by
727anchor}. The Info file name defaults to @samp{emacs}. For example, 727anchor}. The Info file name defaults to @samp{emacs}. For example,
728 728
729@smallexample 729@smallexample
730See Info node Font Lock and Info node (elisp)Font Lock Basics. 730See Info node `Font Lock' and Info node `(elisp)Font Lock Basics'.
731@end smallexample 731@end smallexample
732 732
733Finally, to create a hyperlink to URLs, write the single-quoted URL, 733Finally, to create a hyperlink to URLs, write the single-quoted URL,
@@ -735,7 +735,7 @@ preceded by @samp{URL}. For example,
735 735
736@smallexample 736@smallexample
737The home page for the GNU project has more information (see URL 737The home page for the GNU project has more information (see URL
738http://www.gnu.org/). 738`http://www.gnu.org/').
739@end smallexample 739@end smallexample
740 740
741@item 741@item
diff --git a/doc/lispref/variables.texi b/doc/lispref/variables.texi
index 15491e52751..369e8ddfc30 100644
--- a/doc/lispref/variables.texi
+++ b/doc/lispref/variables.texi
@@ -25,7 +25,7 @@ representing the variable.
25 25
26@menu 26@menu
27* Global Variables:: Variable values that exist permanently, everywhere. 27* Global Variables:: Variable values that exist permanently, everywhere.
28* Constant Variables:: Certain "variables" have values that never change. 28* Constant Variables:: Certain ``variables'' have values that never change.
29* Local Variables:: Variable values that exist only temporarily. 29* Local Variables:: Variable values that exist only temporarily.
30* Void Variables:: Symbols that lack values. 30* Void Variables:: Symbols that lack values.
31* Defining Variables:: A definition says a symbol is used as a variable. 31* Defining Variables:: A definition says a symbol is used as a variable.
diff --git a/doc/misc/ede.texi b/doc/misc/ede.texi
index 565abb557e2..7a824acfed5 100644
--- a/doc/misc/ede.texi
+++ b/doc/misc/ede.texi
@@ -867,14 +867,14 @@ It would look like this:
867 ) 867 )
868 868
869(defun MY-ROOT-FCN () 869(defun MY-ROOT-FCN ()
870 "Return the root fcn for default-directory" 870 "Return the root fcn for `default-directory'"
871 ;; You might be able to use 'ede-cpp-root-project-root' 871 ;; You might be able to use 'ede-cpp-root-project-root'
872 ;; and not write this at all. 872 ;; and not write this at all.
873 ) 873 )
874 874
875(defun MY-LOAD (dir) 875(defun MY-LOAD (dir)
876 "Load a project of type cpp-root for the directory DIR. 876 "Load a project of type `cpp-root' for the directory DIR.
877Return nil if there isnt one." 877Return nil if there isn't one."
878 ;; Use your preferred construction method here. 878 ;; Use your preferred construction method here.
879 (ede-cpp-root-project "NAME" :file (expand-file-name "FILE" dir) 879 (ede-cpp-root-project "NAME" :file (expand-file-name "FILE" dir)
880 :locate-fcn 'MYFCN) 880 :locate-fcn 'MYFCN)
diff --git a/doc/misc/efaq.texi b/doc/misc/efaq.texi
index 75df1d41ff9..3e9109d0924 100644
--- a/doc/misc/efaq.texi
+++ b/doc/misc/efaq.texi
@@ -4336,7 +4336,7 @@ best fix I've been able to come up with:
4336 4336
4337@lisp 4337@lisp
4338(defun rmail-reply-t () 4338(defun rmail-reply-t ()
4339 "Reply only to the sender of the current message. (See rmail-reply.)" 4339 "Reply only to the sender of the current message. (See rmail-reply.)"
4340 (interactive) 4340 (interactive)
4341 (rmail-reply t)) 4341 (rmail-reply t))
4342 4342
diff --git a/doc/misc/eieio.texi b/doc/misc/eieio.texi
index 7cee5c30a1b..fb4e1470016 100644
--- a/doc/misc/eieio.texi
+++ b/doc/misc/eieio.texi
@@ -1529,7 +1529,7 @@ Currently, the default superclass is defined as follows:
1529 nil 1529 nil
1530 "Default parent class for classes with no specified parent class. 1530 "Default parent class for classes with no specified parent class.
1531Its slots are automatically adopted by classes with no specified 1531Its slots are automatically adopted by classes with no specified
1532parents. This class is not stored in the parent slot of a class vector." 1532parents. This class is not stored in the `parent' slot of a class vector."
1533 :abstract t) 1533 :abstract t)
1534@end example 1534@end example
1535 1535
diff --git a/doc/misc/ert.texi b/doc/misc/ert.texi
index 3192e4bdc0a..35d315c64b8 100644
--- a/doc/misc/ert.texi
+++ b/doc/misc/ert.texi
@@ -861,7 +861,7 @@ The most common use of this is to run just the tests for one
861particular module. Since symbol prefixes are the usual way of 861particular module. Since symbol prefixes are the usual way of
862separating module namespaces in Emacs Lisp, test selectors already 862separating module namespaces in Emacs Lisp, test selectors already
863solve this by allowing regexp matching on test names; e.g., the 863solve this by allowing regexp matching on test names; e.g., the
864selector "^ert-" selects ERT's self-tests. 864selector @code{"^ert-"} selects ERT's self-tests.
865 865
866Other uses include grouping tests by their expected execution time, 866Other uses include grouping tests by their expected execution time,
867e.g., to run quick tests during interactive development and slow tests less 867e.g., to run quick tests during interactive development and slow tests less
diff --git a/doc/misc/gnus-faq.texi b/doc/misc/gnus-faq.texi
index 0b856c7f0a3..19c78bf56c6 100644
--- a/doc/misc/gnus-faq.texi
+++ b/doc/misc/gnus-faq.texi
@@ -892,11 +892,11 @@ more readable?
892 892
893@subsubheading Answer 893@subsubheading Answer
894 894
895Gnus offers you several functions to "wash" incoming mail, you can 895Gnus offers you several functions to ``wash'' incoming mail, you can
896find them if you browse through the menu, item 896find them if you browse through the menu, item
897Article->Washing. The most interesting ones are probably "Wrap 897Article->Washing. The most interesting ones are probably ``Wrap
898long lines" (@samp{W w}), "Decode ROT13" 898long lines'' (@samp{W w}), ``Decode ROT13''
899(@samp{W r}) and "Outlook Deuglify" which repairs 899(@samp{W r}) and ``Outlook Deuglify'' which repairs
900the dumb quoting used by many users of Microsoft products 900the dumb quoting used by many users of Microsoft products
901(@samp{W Y f} gives you full deuglify. 901(@samp{W Y f} gives you full deuglify.
902See @samp{W Y C-h} or have a look at the menus for 902See @samp{W Y C-h} or have a look at the menus for
@@ -1016,8 +1016,8 @@ mail groups. Is this a bug?
1016 1016
1017No, that's a matter of design of Gnus, fixing this would 1017No, that's a matter of design of Gnus, fixing this would
1018mean reimplementation of major parts of Gnus' 1018mean reimplementation of major parts of Gnus'
1019back ends. Gnus thinks "highest-article-number @minus{} 1019back ends. Gnus thinks ``highest-article-number @minus{}
1020lowest-article-number = total-number-of-articles". This 1020lowest-article-number = total-number-of-articles''. This
1021works OK for Usenet groups, but if you delete and move 1021works OK for Usenet groups, but if you delete and move
1022many messages in mail groups, this fails. To cure the 1022many messages in mail groups, this fails. To cure the
1023symptom, enter the group via @samp{C-u RET} 1023symptom, enter the group via @samp{C-u RET}
@@ -1085,8 +1085,8 @@ You've got to play around with the variable
1085gnus-summary-line-format. Its value is a string of 1085gnus-summary-line-format. Its value is a string of
1086symbols which stand for things like author, date, subject 1086symbols which stand for things like author, date, subject
1087etc. A list of the available specifiers can be found in the 1087etc. A list of the available specifiers can be found in the
1088manual node "Summary Buffer Lines" and the often forgotten 1088manual node ``Summary Buffer Lines'' and the often forgotten
1089node "Formatting Variables" and its sub-nodes. There 1089node ``Formatting Variables'' and its sub-nodes. There
1090you'll find useful things like positioning the cursor and 1090you'll find useful things like positioning the cursor and
1091tabulators which allow you a summary in table form, but 1091tabulators which allow you a summary in table form, but
1092sadly hard tabulators are broken in 5.8.8. 1092sadly hard tabulators are broken in 5.8.8.
@@ -1671,7 +1671,7 @@ instead (works for newer versions as well):
1671 (setq message-user-fqdn fqdn) 1671 (setq message-user-fqdn fqdn)
1672 (gnus-message 1 "Redefining `message-make-fqdn'.") 1672 (gnus-message 1 "Redefining `message-make-fqdn'.")
1673 (defun message-make-fqdn () 1673 (defun message-make-fqdn ()
1674 "Return users fully qualified domain name." 1674 "Return user's fully qualified domain name."
1675 fqdn)))) 1675 fqdn))))
1676@end example 1676@end example
1677@noindent 1677@noindent
@@ -1765,9 +1765,9 @@ snippet by Frank Haun <pille3003@@fhaun.de> in
1765 1765
1766@example 1766@example
1767(defun my-archive-article (&optional n) 1767(defun my-archive-article (&optional n)
1768 "Copies one or more article(s) to a corresponding nnml: group, e.g., 1768 "Copies one or more article(s) to a corresponding `nnml:' group, e.g.,
1769gnus.ding goes to nnml:1.gnus.ding. And nnml:List-gnus.ding goes 1769`gnus.ding' goes to `nnml:1.gnus.ding'. And `nnml:List-gnus.ding' goes
1770to nnml:1.List-gnus-ding. 1770to `nnml:1.List-gnus-ding'.
1771 1771
1772Use process marks or mark a region in the summary buffer to archive 1772Use process marks or mark a region in the summary buffer to archive
1773more then one article." 1773more then one article."
diff --git a/doc/misc/gnus.texi b/doc/misc/gnus.texi
index 23a43f4893c..9093fa24f3d 100644
--- a/doc/misc/gnus.texi
+++ b/doc/misc/gnus.texi
@@ -12565,7 +12565,7 @@ Gnus provides a few different methods for storing the mail and news you
12565send. The default method is to use the @dfn{archive virtual server} to 12565send. The default method is to use the @dfn{archive virtual server} to
12566store the messages. If you want to disable this completely, the 12566store the messages. If you want to disable this completely, the
12567@code{gnus-message-archive-group} variable should be @code{nil}. The 12567@code{gnus-message-archive-group} variable should be @code{nil}. The
12568default is "sent.%Y-%m", which gives you one archive group per month. 12568default is @code{"sent.%Y-%m"}, which gives you one archive group per month.
12569 12569
12570For archiving interesting messages in a group you read, see the 12570For archiving interesting messages in a group you read, see the
12571@kbd{B c} (@code{gnus-summary-copy-article}) command (@pxref{Mail 12571@kbd{B c} (@code{gnus-summary-copy-article}) command (@pxref{Mail
@@ -15018,7 +15018,8 @@ corresponding keywords.
15018 15018
15019@item :mailbox 15019@item :mailbox
15020The name of the mailbox to get mail from. The default is @samp{INBOX} 15020The name of the mailbox to get mail from. The default is @samp{INBOX}
15021which normally is the mailbox which receives incoming mail. 15021which normally is the mailbox which receives incoming mail. Instead of
15022a single mailbox, this can be a list of mailboxes to fetch mail from.
15022 15023
15023@item :predicate 15024@item :predicate
15024The predicate used to find articles to fetch. The default, @samp{UNSEEN 15025The predicate used to find articles to fetch. The default, @samp{UNSEEN
@@ -21033,8 +21034,8 @@ function:
21033 21034
21034@lisp 21035@lisp
21035(defun gnus-decay-score (score) 21036(defun gnus-decay-score (score)
21036 "Decay SCORE according to gnus-score-decay-constant 21037 "Decay SCORE according to `gnus-score-decay-constant'
21037and gnus-score-decay-scale." 21038and `gnus-score-decay-scale'."
21038 (let ((n (- score 21039 (let ((n (- score
21039 (* (if (< score 0) -1 1) 21040 (* (if (< score 0) -1 1)
21040 (min (abs score) 21041 (min (abs score)
@@ -24080,7 +24081,7 @@ spam. And here is the nifty function:
24080 24081
24081@lisp 24082@lisp
24082(defun my-gnus-raze-spam () 24083(defun my-gnus-raze-spam ()
24083 "Submit SPAM to Vipuls Razor, then mark it as expirable." 24084 "Submit SPAM to Vipul's Razor, then mark it as expirable."
24084 (interactive) 24085 (interactive)
24085 (gnus-summary-save-in-pipe "razor-report -f -d" t) 24086 (gnus-summary-save-in-pipe "razor-report -f -d" t)
24086 (gnus-summary-mark-as-expirable 1)) 24087 (gnus-summary-mark-as-expirable 1))
diff --git a/doc/misc/rcirc.texi b/doc/misc/rcirc.texi
index a0d74b41be3..a707ba5f03e 100644
--- a/doc/misc/rcirc.texi
+++ b/doc/misc/rcirc.texi
@@ -909,7 +909,7 @@ The real answer, therefore, is a @code{/reconnect} command:
909 "Reconnect the server process." 909 "Reconnect the server process."
910 (interactive "i") 910 (interactive "i")
911 (unless process 911 (unless process
912 (error "Theres no process for this target")) 912 (error "There's no process for this target"))
913 (let* ((server (car (process-contact process))) 913 (let* ((server (car (process-contact process)))
914 (port (process-contact process :service)) 914 (port (process-contact process :service))
915 (nick (rcirc-nick process)) 915 (nick (rcirc-nick process))
diff --git a/doc/misc/tramp.texi b/doc/misc/tramp.texi
index 012c58658a6..87c7c8054f1 100644
--- a/doc/misc/tramp.texi
+++ b/doc/misc/tramp.texi
@@ -3691,6 +3691,24 @@ I would like to thank all @value{tramp} users who have contributed to
3691the different recipes! 3691the different recipes!
3692 3692
3693 3693
3694@item I have saved @value{tramp} file names as indicated. But it
3695doesn't work in a new @value{emacsname} session!
3696
3697If you have saved an ad-hoc multi-hop @value{tramp} file name
3698(@pxref{Ad-hoc multi-hops}) via bookmarks, recent files,
3699@ifset emacs
3700filecache, bbdb,
3701@end ifset
3702or another package, you must use the full ad-hoc file name including
3703all hops, like @file{@trampfn{ssh, bird,
3704bastion|ssh@value{postfixhop}news.my.domain, /opt/news/etc}}.
3705
3706Alternatively, if you save only the abbreviated multi-hop file name
3707@file{@trampfn{ssh, news, news.my.domain, /opt/news/etc}}, the
3708customer option @code{tramp-save-ad-hoc-proxies} must be set to a to a
3709non-@code{nil} value.
3710
3711
3694@ifset emacs 3712@ifset emacs
3695@item 3713@item
3696How can I use @value{tramp} to connect to a remote @value{emacsname} 3714How can I use @value{tramp} to connect to a remote @value{emacsname}
diff --git a/doc/misc/viper.texi b/doc/misc/viper.texi
index f449e3b738b..8f57e8c6bbe 100644
--- a/doc/misc/viper.texi
+++ b/doc/misc/viper.texi
@@ -1961,7 +1961,7 @@ can include a line like this in your Viper customization file:
1961 1961
1962Viper lets you define hot keys, i.e., you can associate keyboard keys 1962Viper lets you define hot keys, i.e., you can associate keyboard keys
1963such as F1, Help, PgDn, etc., with Emacs Lisp functions (that may already 1963such as F1, Help, PgDn, etc., with Emacs Lisp functions (that may already
1964exist or that you will write). Each key has a "preferred form" in 1964exist or that you will write). Each key has a ``preferred form'' in
1965Emacs. For instance, the Up key's preferred form is [up], the Help key's 1965Emacs. For instance, the Up key's preferred form is [up], the Help key's
1966preferred form is [help], and the Undo key has the preferred form [f14]. 1966preferred form is [help], and the Undo key has the preferred form [f14].
1967You can find out the preferred form of a key by typing @kbd{M-x 1967You can find out the preferred form of a key by typing @kbd{M-x
diff --git a/etc/NEWS b/etc/NEWS
index c664e026d47..8a08a065ba9 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -91,6 +91,10 @@ so if you want to use it, you can always take a copy from an older Emacs.
91and *Buffer List*. This makes Emacs convenient to use from the 91and *Buffer List*. This makes Emacs convenient to use from the
92command line when `initial-buffer-choice' is non-nil. 92command line when `initial-buffer-choice' is non-nil.
93 93
94+++
95** The value of ‘initial-scratch-message’ is now treated as a doc string
96and can contain escape sequences for command keys, quotes, and the like.
97
94 98
95* Changes in Emacs 25.1 99* Changes in Emacs 25.1
96 100
@@ -828,14 +832,6 @@ notifications, if Emacs is compiled with file notification support.
828 832
829*** landmark.el (moved to elpa.gnu.org) 833*** landmark.el (moved to elpa.gnu.org)
830 834
831+++
832** The character classes [:graph:] and [:print:] in regular expressions
833no longer match every multibyte character. Instead, Emacs now
834consults the Unicode character properties to determine which
835characters are graphic or printable. In particular, surrogates and
836unassigned codepoints are now rejected. If you want the old behavior,
837use [:multibyte:] instead.
838
839 835
840* New Modes and Packages in Emacs 25.1 836* New Modes and Packages in Emacs 25.1
841 837
@@ -860,6 +856,13 @@ a typographically-correct documents.
860 856
861* Incompatible Lisp Changes in Emacs 25.1 857* Incompatible Lisp Changes in Emacs 25.1
862 858
859+++
860** `package-initialize' now sets `package-enable-at-startup' to nil if
861called during startup. Users who call this function in their init
862file and still expect it to be run after startup should set
863`package-enable-at-startup' to t after the call to
864`package-initialize'.
865
863** `:global' minor mode use `setq-default' rather than `setq'. 866** `:global' minor mode use `setq-default' rather than `setq'.
864This means that you can't use `make-local-variable' and expect them to 867This means that you can't use `make-local-variable' and expect them to
865"magically" become buffer-local. 868"magically" become buffer-local.
@@ -951,6 +954,14 @@ If you want the old behavior where they matched any character with
951word syntax, use `\sw' instead. 954word syntax, use `\sw' instead.
952 955
953+++ 956+++
957** The character classes [:graph:] and [:print:] in regular expressions
958no longer match every multibyte character. Instead, Emacs now
959consults the Unicode character properties to determine which
960characters are graphic or printable. In particular, surrogates and
961unassigned codepoints are now rejected. If you want the old behavior,
962use [:multibyte:] instead.
963
964+++
954** The `diff' command uses the unified format now. To restore the old 965** The `diff' command uses the unified format now. To restore the old
955behavior, set `diff-switches' to `-c'. 966behavior, set `diff-switches' to `-c'.
956 967
@@ -1113,8 +1124,9 @@ integers.
1113** New function `set-binary-mode' allows to switch a standard stream 1124** New function `set-binary-mode' allows to switch a standard stream
1114of the Emacs process to binary I/O mode. 1125of the Emacs process to binary I/O mode.
1115 1126
1116** In locales that cannot display curved quotes, ASCII approximations 1127** ASCII approximations to curved quotes are put in standard-display-table
1117are installed in standard-display-table. 1128if the locale cannot display curved quotes, or if text-quoting-style
1129initially specifies a preference for ASCII.
1118 1130
1119** Standard output and error streams now transliterate characters via 1131** Standard output and error streams now transliterate characters via
1120standard-display-table, and encode output using locale-coding-system. 1132standard-display-table, and encode output using locale-coding-system.
diff --git a/lisp/abbrev.el b/lisp/abbrev.el
index 0ba21da70ca..f372a280ffe 100644
--- a/lisp/abbrev.el
+++ b/lisp/abbrev.el
@@ -399,7 +399,7 @@ A prefix argument means don't query; expand all abbrevs."
399 (buffer-substring-no-properties 399 (buffer-substring-no-properties
400 (save-excursion (forward-word -1) (point)) 400 (save-excursion (forward-word -1) (point))
401 pnt))) 401 pnt)))
402 (if (or noquery (y-or-n-p (format-message "Expand %s? " string))) 402 (if (or noquery (y-or-n-p (format-message "Expand `%s'? " string)))
403 (expand-abbrev))))))) 403 (expand-abbrev)))))))
404 404
405;;; Abbrev properties. 405;;; Abbrev properties.
diff --git a/lisp/align.el b/lisp/align.el
index 3020b6a1750..9eb04ef594f 100644
--- a/lisp/align.el
+++ b/lisp/align.el
@@ -1348,7 +1348,7 @@ aligner would have dealt with are."
1348 (if real-beg 1348 (if real-beg
1349 (goto-char beg) 1349 (goto-char beg)
1350 (if (or (not thissep) (eq thissep 'entire)) 1350 (if (or (not thissep) (eq thissep 'entire))
1351 (error "Cannot determine alignment region for %s" 1351 (error "Cannot determine alignment region for `%s'"
1352 (symbol-name (cdr (assq 'title rule))))) 1352 (symbol-name (cdr (assq 'title rule)))))
1353 (beginning-of-line) 1353 (beginning-of-line)
1354 (while (and (not (eobp)) 1354 (while (and (not (eobp))
diff --git a/lisp/allout-widgets.el b/lisp/allout-widgets.el
index f0a1cab0cb6..f31c3d8689e 100644
--- a/lisp/allout-widgets.el
+++ b/lisp/allout-widgets.el
@@ -384,9 +384,9 @@ The structure includes the guides lines, bullet, and bullet cue.")
384 384
385Entries on the list are lists whose first element is a symbol indicating 385Entries on the list are lists whose first element is a symbol indicating
386the change type and subsequent elements are data specific to that change 386the change type and subsequent elements are data specific to that change
387type. Specifically: 387type. For example:
388 388
389 'exposure `allout-exposure-from' `allout-exposure-to' `allout-exposure-flag' 389 (exposure ALLOUT-EXPOSURE-FROM ALLOUT-EXPOSURE-TO ALLOUT-EXPOSURE-FLAG)
390 390
391The changes are recorded in reverse order, with new values pushed 391The changes are recorded in reverse order, with new values pushed
392onto the front.") 392onto the front.")
@@ -481,9 +481,9 @@ text in allout item bodies.")
481 481
482\(That space is used to convey selected cues indicating body qualities, 482\(That space is used to convey selected cues indicating body qualities,
483including things like: 483including things like:
484 - encryption ~ 484 - encryption `~'
485 - numbering # 485 - numbering `#'
486 - indirect reference @ 486 - indirect reference `@'
487 - distinctive bullets - see `allout-distinctive-bullets-string'.)") 487 - distinctive bullets - see `allout-distinctive-bullets-string'.)")
488;;;_ = allout-span-to-category 488;;;_ = allout-span-to-category
489(defvar allout-span-to-category 489(defvar allout-span-to-category
diff --git a/lisp/allout.el b/lisp/allout.el
index 3ba440f4886..f7055734961 100644
--- a/lisp/allout.el
+++ b/lisp/allout.el
@@ -229,7 +229,7 @@ See `allout-unprefixed-keybindings' for the list of keybindings
229that are not prefixed. 229that are not prefixed.
230 230
231Use vector format for the keys: 231Use vector format for the keys:
232 - put literal keys after a ? question mark, eg: ?a, ?. 232 - put literal keys after a `?' question mark, eg: `?a', `?.'
233 - enclose control, shift, or meta-modified keys as sequences within 233 - enclose control, shift, or meta-modified keys as sequences within
234 parentheses, with the literal key, as above, preceded by the name(s) 234 parentheses, with the literal key, as above, preceded by the name(s)
235 of the modifiers, eg: [(control ?a)] 235 of the modifiers, eg: [(control ?a)]
@@ -257,7 +257,7 @@ This is in contrast to the majority of allout-mode bindings on
257preceding command key. 257preceding command key.
258 258
259Use vector format for the keys: 259Use vector format for the keys:
260 - put literal keys after a ? question mark, eg: ?a, ?. 260 - put literal keys after a `?' question mark, eg: `?a', `?.'
261 - enclose control, shift, or meta-modified keys as sequences within 261 - enclose control, shift, or meta-modified keys as sequences within
262 parentheses, with the literal key, as above, preceded by the name(s) 262 parentheses, with the literal key, as above, preceded by the name(s)
263 of the modifiers, eg: [(control ?a)] 263 of the modifiers, eg: [(control ?a)]
@@ -1012,9 +1012,9 @@ determination of aberrance is according to the mistaken item
1012being followed by a legitimate item of excessively greater depth. 1012being followed by a legitimate item of excessively greater depth.
1013 1013
1014The classic example of a mistaken item, for a standard allout 1014The classic example of a mistaken item, for a standard allout
1015outline configuration, is a body line that begins with an ... 1015outline configuration, is a body line that begins with an `...'
1016ellipsis. This happens to contain a legitimate depth-2 header 1016ellipsis. This happens to contain a legitimate depth-2 header
1017prefix, constituted by two .. dots at the beginning of the 1017prefix, constituted by two `..' dots at the beginning of the
1018line. The only thing that can distinguish it *in principle* from 1018line. The only thing that can distinguish it *in principle* from
1019a legitimate one is if the following real header is at a depth 1019a legitimate one is if the following real header is at a depth
1020that is discontinuous from the depth of 2 implied by the 1020that is discontinuous from the depth of 2 implied by the
@@ -2081,20 +2081,20 @@ OPEN: A TOPIC that is not CLOSED, though its OFFSPRING or BODY may be."
2081 (and (not (string= allout-auto-activation "activate")) 2081 (and (not (string= allout-auto-activation "activate"))
2082 (if (string= allout-auto-activation "ask") 2082 (if (string= allout-auto-activation "ask")
2083 (if (y-or-n-p (format-message 2083 (if (y-or-n-p (format-message
2084 "Expose %s with layout %s? " 2084 "Expose %s with layout `%s'? "
2085 (buffer-name) use-layout)) 2085 (buffer-name) use-layout))
2086 t 2086 t
2087 (message "Skipped %s layout." (buffer-name)) 2087 (message "Skipped %s layout." (buffer-name))
2088 nil) 2088 nil)
2089 t))) 2089 t)))
2090 (save-excursion 2090 (save-excursion
2091 (message "Adjusting %s exposure..." (buffer-name)) 2091 (message "Adjusting `%s' exposure..." (buffer-name))
2092 (goto-char 0) 2092 (goto-char 0)
2093 (allout-this-or-next-heading) 2093 (allout-this-or-next-heading)
2094 (condition-case err 2094 (condition-case err
2095 (progn 2095 (progn
2096 (apply 'allout-expose-topic (list use-layout)) 2096 (apply 'allout-expose-topic (list use-layout))
2097 (message "Adjusting %s exposure... done." 2097 (message "Adjusting `%s' exposure... done."
2098 (buffer-name))) 2098 (buffer-name)))
2099 ;; Problem applying exposure -- notify user, but don't 2099 ;; Problem applying exposure -- notify user, but don't
2100 ;; interrupt, eg, file visit: 2100 ;; interrupt, eg, file visit:
@@ -3484,7 +3484,7 @@ Offer one suitable for current depth DEPTH as default."
3484 (goto-char (allout-current-bullet-pos)) 3484 (goto-char (allout-current-bullet-pos))
3485 (setq choice (solicit-char-in-string 3485 (setq choice (solicit-char-in-string
3486 (format-message 3486 (format-message
3487 "Select bullet: %s (%s default): " 3487 "Select bullet: %s (`%s' default): "
3488 sans-escapes 3488 sans-escapes
3489 (allout-substring-no-properties default-bullet)) 3489 (allout-substring-no-properties default-bullet))
3490 sans-escapes 3490 sans-escapes
@@ -5879,7 +5879,7 @@ With repeat count, copy the exposed portions of entire buffer."
5879(defun allout-toggle-current-subtree-encryption (&optional keymode-cue) 5879(defun allout-toggle-current-subtree-encryption (&optional keymode-cue)
5880 "Encrypt clear or decrypt encoded topic text. 5880 "Encrypt clear or decrypt encoded topic text.
5881 5881
5882Allout uses Emacs epg library to perform encryption. Symmetric 5882Allout uses Emacs `epg' library to perform encryption. Symmetric
5883and keypair encryption are supported. All encryption is ascii 5883and keypair encryption are supported. All encryption is ascii
5884armored. 5884armored.
5885 5885
@@ -5941,7 +5941,7 @@ associated with it. This can be used to dissociate any
5941recipients with the file, by selecting no recipients in the 5941recipients with the file, by selecting no recipients in the
5942dialog. 5942dialog.
5943 5943
5944Encryption and decryption uses the Emacs epg library. 5944Encryption and decryption uses the Emacs `epg' library.
5945 5945
5946Encrypted text will be ascii-armored. 5946Encrypted text will be ascii-armored.
5947 5947
@@ -6381,7 +6381,7 @@ for details on preparing Emacs for automatic allout activation."
6381 (allout-open-topic 2) 6381 (allout-open-topic 2)
6382 (insert (substitute-command-keys 6382 (insert (substitute-command-keys
6383 (concat "Dummy outline topic header -- see" 6383 (concat "Dummy outline topic header -- see"
6384 " allout-mode docstring: \\[describe-mode]."))) 6384 " `allout-mode' docstring: `\\[describe-mode]'.")))
6385 (allout-adjust-file-variable 6385 (allout-adjust-file-variable
6386 "allout-layout" (or allout-layout '(-1 : 0)))))) 6386 "allout-layout" (or allout-layout '(-1 : 0))))))
6387;;;_ > allout-file-vars-section-data () 6387;;;_ > allout-file-vars-section-data ()
@@ -6546,7 +6546,7 @@ Optional arg DO-DEFAULTING indicates to accept empty input (CR)."
6546(defun regexp-sans-escapes (regexp &optional successive-backslashes) 6546(defun regexp-sans-escapes (regexp &optional successive-backslashes)
6547 "Return a copy of REGEXP with all character escapes stripped out. 6547 "Return a copy of REGEXP with all character escapes stripped out.
6548 6548
6549Representations of actual backslashes -- \\\\\\\\ -- are left as a 6549Representations of actual backslashes -- `\\\\\\\\' -- are left as a
6550single backslash. 6550single backslash.
6551 6551
6552Optional arg SUCCESSIVE-BACKSLASHES is used internally for recursion." 6552Optional arg SUCCESSIVE-BACKSLASHES is used internally for recursion."
diff --git a/lisp/apropos.el b/lisp/apropos.el
index ec212968db6..6d7dc8af40d 100644
--- a/lisp/apropos.el
+++ b/lisp/apropos.el
@@ -682,7 +682,7 @@ the output includes key-bindings of commands."
682 symbols apropos-do-all 682 symbols apropos-do-all
683 (concat 683 (concat
684 (format-message 684 (format-message
685 "Library %s provides: %s\nand requires: %s" 685 "Library `%s' provides: %s\nand requires: %s"
686 file 686 file
687 (mapconcat 'apropos-library-button 687 (mapconcat 'apropos-library-button
688 (or provides '(nil)) " and ") 688 (or provides '(nil)) " and ")
diff --git a/lisp/bookmark.el b/lisp/bookmark.el
index 308d1cab585..035148120a4 100644
--- a/lisp/bookmark.el
+++ b/lisp/bookmark.el
@@ -843,10 +843,10 @@ whose annotation is being edited.")
843The default annotation text is simply some text explaining how to use 843The default annotation text is simply some text explaining how to use
844annotations." 844annotations."
845 (concat (format-message 845 (concat (format-message
846 "# Type the annotation for bookmark %s here.\n" 846 "# Type the annotation for bookmark `%s' here.\n"
847 bookmark-name) 847 bookmark-name)
848 (format-message 848 (format-message
849 "# All lines which start with a # will be deleted.\n") 849 "# All lines which start with a `#' will be deleted.\n")
850 "# Type C-c C-c when done.\n#\n" 850 "# Type C-c C-c when done.\n#\n"
851 "# Author: " (user-full-name) " <" (user-login-name) "@" 851 "# Author: " (user-full-name) " <" (user-login-name) "@"
852 (system-name) ">\n" 852 (system-name) ">\n"
diff --git a/lisp/bs.el b/lisp/bs.el
index 6314bbb024e..1735c176700 100644
--- a/lisp/bs.el
+++ b/lisp/bs.el
@@ -1314,7 +1314,7 @@ ALL-BUFFERS is the list of buffers appearing in Buffer Selection Menu."
1314 (format-mode-line mode-name nil nil start-buffer)) 1314 (format-mode-line mode-name nil nil start-buffer))
1315 1315
1316(defun bs--get-file-name (_start-buffer _all-buffers) 1316(defun bs--get-file-name (_start-buffer _all-buffers)
1317 "Return string for column File in Buffer Selection Menu. 1317 "Return string for column `File' in Buffer Selection Menu.
1318This is the variable `buffer-file-name' of current buffer. 1318This is the variable `buffer-file-name' of current buffer.
1319If not visiting a file, `list-buffers-directory' is returned instead. 1319If not visiting a file, `list-buffers-directory' is returned instead.
1320START-BUFFER is the buffer where we started buffer selection. 1320START-BUFFER is the buffer where we started buffer selection.
diff --git a/lisp/button.el b/lisp/button.el
index 5fe5bf077ba..e7602dd7050 100644
--- a/lisp/button.el
+++ b/lisp/button.el
@@ -114,7 +114,7 @@ Mode-specific keymaps may want to use this as their parent keymap.")
114 "Return the symbol used by button-type TYPE to store properties. 114 "Return the symbol used by button-type TYPE to store properties.
115Buttons inherit them by setting their `category' property to that symbol." 115Buttons inherit them by setting their `category' property to that symbol."
116 (or (get type 'button-category-symbol) 116 (or (get type 'button-category-symbol)
117 (error "Unknown button type %s" type))) 117 (error "Unknown button type `%s'" type)))
118 118
119(defun define-button-type (name &rest properties) 119(defun define-button-type (name &rest properties)
120 "Define a `button type' called NAME (a symbol). 120 "Define a `button type' called NAME (a symbol).
@@ -208,7 +208,7 @@ changes to a supertype are not reflected in its subtypes)."
208 (setq val (button-category-symbol val))) 208 (setq val (button-category-symbol val)))
209 ((eq prop 'category) 209 ((eq prop 'category)
210 ;; Disallow updating the `category' property directly. 210 ;; Disallow updating the `category' property directly.
211 (error "Button category property may not be set directly"))) 211 (error "Button `category' property may not be set directly")))
212 ;; Add the property. 212 ;; Add the property.
213 (cond ((overlayp button) 213 (cond ((overlayp button)
214 (overlay-put button prop val)) 214 (overlay-put button prop val))
@@ -333,7 +333,7 @@ Also see `insert-text-button'."
333 (setq object beg beg 0 end (length object))) 333 (setq object beg beg 0 end (length object)))
334 ;; Disallow setting the `category' property directly. 334 ;; Disallow setting the `category' property directly.
335 (when (plist-get properties 'category) 335 (when (plist-get properties 'category)
336 (error "Button category property may not be set directly")) 336 (error "Button `category' property may not be set directly"))
337 (if (null type-entry) 337 (if (null type-entry)
338 ;; The user didn't specify a `type' property, use the default. 338 ;; The user didn't specify a `type' property, use the default.
339 (setq properties (cons 'category (cons 'default-button properties))) 339 (setq properties (cons 'category (cons 'default-button properties)))
diff --git a/lisp/calc/calc-aent.el b/lisp/calc/calc-aent.el
index 2c588c15287..2319c484498 100644
--- a/lisp/calc/calc-aent.el
+++ b/lisp/calc/calc-aent.el
@@ -1034,7 +1034,7 @@ in Calc algebraic input.")
1034 1034
1035(defun math-restore-placeholders (x) 1035(defun math-restore-placeholders (x)
1036 "Replace placeholders by the proper characters in the symbol x. 1036 "Replace placeholders by the proper characters in the symbol x.
1037This includes # for _ and ' for %. 1037This includes `#' for `_' and `'' for `%'.
1038If the current Calc language does not use placeholders, return nil." 1038If the current Calc language does not use placeholders, return nil."
1039 (if (or (memq calc-language calc-lang-allow-underscores) 1039 (if (or (memq calc-language calc-lang-allow-underscores)
1040 (memq calc-language calc-lang-allow-percentsigns)) 1040 (memq calc-language calc-lang-allow-percentsigns))
@@ -1057,7 +1057,7 @@ If the current Calc language does not use placeholders, return nil."
1057(defun math-read-if (cond op) 1057(defun math-read-if (cond op)
1058 (let ((then (math-read-expr-level 0))) 1058 (let ((then (math-read-expr-level 0)))
1059 (or (equal math-expr-data ":") 1059 (or (equal math-expr-data ":")
1060 (throw 'syntax "Expected :")) 1060 (throw 'syntax "Expected `:'"))
1061 (math-read-token) 1061 (math-read-token)
1062 (list 'calcFunc-if cond then (math-read-expr-level (nth 3 op))))) 1062 (list 'calcFunc-if cond then (math-read-expr-level (nth 3 op)))))
1063 1063
@@ -1121,7 +1121,7 @@ If the current Calc language does not use placeholders, return nil."
1121 (math-read-expr-list)))) 1121 (math-read-expr-list))))
1122 (if (not (or (equal math-expr-data calc-function-close) 1122 (if (not (or (equal math-expr-data calc-function-close)
1123 (eq math-exp-token 'end))) 1123 (eq math-exp-token 'end)))
1124 (throw 'syntax "Expected )")) 1124 (throw 'syntax "Expected `)'"))
1125 (math-read-token) 1125 (math-read-token)
1126 (if (and (memq calc-language 1126 (if (and (memq calc-language
1127 calc-lang-parens-are-subscripts) 1127 calc-lang-parens-are-subscripts)
@@ -1177,7 +1177,7 @@ If the current Calc language does not use placeholders, return nil."
1177 (setq el (cdr el)))) 1177 (setq el (cdr el))))
1178 (if (equal math-expr-data "]") 1178 (if (equal math-expr-data "]")
1179 (math-read-token) 1179 (math-read-token)
1180 (throw 'syntax "Expected ]"))) 1180 (throw 'syntax "Expected `]'")))
1181 val))))) 1181 val)))))
1182 ((eq math-exp-token 'dollar) 1182 ((eq math-exp-token 'dollar)
1183 (let ((abs (if (> math-expr-data 0) math-expr-data (- math-expr-data)))) 1183 (let ((abs (if (> math-expr-data 0) math-expr-data (- math-expr-data))))
@@ -1246,7 +1246,7 @@ If the current Calc language does not use placeholders, return nil."
1246 (if (not (or (equal math-expr-data ")") 1246 (if (not (or (equal math-expr-data ")")
1247 (and (equal math-expr-data "]") (eq (car-safe exp) 'intv)) 1247 (and (equal math-expr-data "]") (eq (car-safe exp) 'intv))
1248 (eq math-exp-token 'end))) 1248 (eq math-exp-token 'end)))
1249 (throw 'syntax "Expected )")) 1249 (throw 'syntax "Expected `)'"))
1250 (math-read-token) 1250 (math-read-token)
1251 exp)) 1251 exp))
1252 ((eq math-exp-token 'string) 1252 ((eq math-exp-token 'string)
diff --git a/lisp/calc/calc-embed.el b/lisp/calc/calc-embed.el
index 3f6e83e0c6d..d0efe53f6e6 100644
--- a/lisp/calc/calc-embed.el
+++ b/lisp/calc/calc-embed.el
@@ -333,7 +333,7 @@
333 (message (concat 333 (message (concat
334 "Embedded Calc mode enabled; " 334 "Embedded Calc mode enabled; "
335 (if calc-embedded-quiet 335 (if calc-embedded-quiet
336 "Type C-x * x" 336 "Type `C-x * x'"
337 "Give this command again") 337 "Give this command again")
338 " to return to normal"))))) 338 " to return to normal")))))
339 (scroll-down 0)) ; fix a bug which occurs when truncate-lines is changed. 339 (scroll-down 0)) ; fix a bug which occurs when truncate-lines is changed.
diff --git a/lisp/calc/calc-ext.el b/lisp/calc/calc-ext.el
index 2442f020012..cb6ab6f8ecc 100644
--- a/lisp/calc/calc-ext.el
+++ b/lisp/calc/calc-ext.el
@@ -1957,7 +1957,7 @@ calc-kill calc-kill-region calc-yank))))
1957 (desc 1957 (desc
1958 (if (symbolp func) 1958 (if (symbolp func)
1959 (if (= (logand kind 3) 0) 1959 (if (= (logand kind 3) 0)
1960 (format-message "%c = %s" key name) 1960 (format-message "`%c' = %s" key name)
1961 (if pos 1961 (if pos
1962 (format "%s%c%s" 1962 (format "%s%c%s"
1963 (downcase (substring name 0 pos)) 1963 (downcase (substring name 0 pos))
diff --git a/lisp/calc/calc-graph.el b/lisp/calc/calc-graph.el
index 8378b23c0eb..20b0249ec1a 100644
--- a/lisp/calc/calc-graph.el
+++ b/lisp/calc/calc-graph.el
@@ -958,7 +958,7 @@ This \"dumb\" driver will be present in Gnuplot 3.0."
958 (define-key calc-dumb-map "\C-c\C-c" 'exit-recursive-edit))) 958 (define-key calc-dumb-map "\C-c\C-c" 'exit-recursive-edit)))
959 (use-local-map calc-dumb-map) 959 (use-local-map calc-dumb-map)
960 (setq truncate-lines t) 960 (setq truncate-lines t)
961 (message "Type q or C-c C-c to return to Calc") 961 (message "Type `q' or `C-c C-c' to return to Calc")
962 (recursive-edit) 962 (recursive-edit)
963 (bury-buffer "*Gnuplot Trail*"))) 963 (bury-buffer "*Gnuplot Trail*")))
964 964
diff --git a/lisp/calc/calc-help.el b/lisp/calc/calc-help.el
index 395b12d8699..444bb5ef920 100644
--- a/lisp/calc/calc-help.el
+++ b/lisp/calc/calc-help.el
@@ -240,7 +240,7 @@ C-w Describe how there is no warranty for Calc."
240 (if (string-match "\\` +" prompts) 240 (if (string-match "\\` +" prompts)
241 (setq prompts (substring prompts (match-end 0)))) 241 (setq prompts (substring prompts (match-end 0))))
242 (setq msg (format-message 242 (setq msg (format-message
243 "%s: %s%s%s%s%s %s%s" 243 "%s: %s%s`%s'%s%s %s%s"
244 (if (string-match 244 (if (string-match
245 "\\`\\(calc-[-a-zA-Z0-9]+\\) *\\(.*\\)\\'" 245 "\\`\\(calc-[-a-zA-Z0-9]+\\) *\\(.*\\)\\'"
246 cmd) 246 cmd)
@@ -345,7 +345,7 @@ C-w Describe how there is no warranty for Calc."
345 (calc-describe-thing var "Variable Index")) 345 (calc-describe-thing var "Variable Index"))
346 346
347(defun calc-describe-thing (thing where &optional target not-quoted) 347(defun calc-describe-thing (thing where &optional target not-quoted)
348 (message "Looking for %s in %s..." thing where) 348 (message "Looking for `%s' in %s..." thing where)
349 (let ((savewin (current-window-configuration))) 349 (let ((savewin (current-window-configuration)))
350 (calc-info-goto-node where) 350 (calc-info-goto-node where)
351 (or (let ((case-fold-search nil)) 351 (or (let ((case-fold-search nil))
@@ -361,7 +361,7 @@ C-w Describe how there is no warranty for Calc."
361 (if Info-history 361 (if Info-history
362 (Info-last)) 362 (Info-last))
363 (set-window-configuration savewin) 363 (set-window-configuration savewin)
364 (error "Can't find %s in %s" thing where))) 364 (error "Can't find `%s' in %s" thing where)))
365 (let (Info-history) 365 (let (Info-history)
366 (Info-goto-node (buffer-substring (match-beginning 1) (match-end 1)))) 366 (Info-goto-node (buffer-substring (match-beginning 1) (match-end 1))))
367 (let* ((string-target (or target thing)) 367 (let* ((string-target (or target thing))
@@ -380,7 +380,7 @@ C-w Describe how there is no warranty for Calc."
380 (re-search-forward quoted nil t) 380 (re-search-forward quoted nil t)
381 (search-forward string-target nil t))))) 381 (search-forward string-target nil t)))))
382 (beginning-of-line) 382 (beginning-of-line)
383 (message "Found %s in %s" thing where))) 383 (message "Found `%s' in %s" thing where)))
384 384
385(defun calc-view-news () 385(defun calc-view-news ()
386 (interactive) 386 (interactive)
@@ -400,9 +400,9 @@ C-w Describe how there is no warranty for Calc."
400 (princ "GNU Emacs Calculator.\n") 400 (princ "GNU Emacs Calculator.\n")
401 (princ " By Dave Gillespie.\n") 401 (princ " By Dave Gillespie.\n")
402 (princ (format " %s\n\n" emacs-copyright)) 402 (princ (format " %s\n\n" emacs-copyright))
403 (princ (format-message "Type h s for a more detailed summary.\n")) 403 (princ (format-message "Type `h s' for a more detailed summary.\n"))
404 (princ (format-message 404 (princ (format-message
405 "Or type h i to read the full Calc manual on-line.\n\n")) 405 "Or type `h i' to read the full Calc manual on-line.\n\n"))
406 (princ "Basic keys:\n") 406 (princ "Basic keys:\n")
407 (let* ((calc-full-help-flag t)) 407 (let* ((calc-full-help-flag t))
408 (mapc (function (lambda (x) (princ (format 408 (mapc (function (lambda (x) (princ (format
@@ -417,10 +417,10 @@ C-w Describe how there is no warranty for Calc."
417 (princ 417 (princ
418 (if (eq (nth 2 msgs) ?v) 418 (if (eq (nth 2 msgs) ?v)
419 (format-message 419 (format-message
420 "\nv or V prefix (vector/matrix) keys: \n") 420 "\n`v' or `V' prefix (vector/matrix) keys: \n")
421 (if (nth 2 msgs) 421 (if (nth 2 msgs)
422 (format-message 422 (format-message
423 "\n%c prefix (%s) keys:\n" 423 "\n`%c' prefix (%s) keys:\n"
424 (nth 2 msgs) 424 (nth 2 msgs)
425 (or (cdr (assq (nth 2 msgs) 425 (or (cdr (assq (nth 2 msgs)
426 calc-help-long-names)) 426 calc-help-long-names))
diff --git a/lisp/calc/calc-lang.el b/lisp/calc/calc-lang.el
index 70a9ff8a402..6b3b949424d 100644
--- a/lisp/calc/calc-lang.el
+++ b/lisp/calc/calc-lang.el
@@ -94,7 +94,7 @@
94 (interactive) 94 (interactive)
95 (calc-wrapper 95 (calc-wrapper
96 (calc-set-language 'c) 96 (calc-set-language 'c)
97 (message "C language mode"))) 97 (message "C language mode")))
98 98
99(put 'c 'math-oper-table 99(put 'c 'math-oper-table
100 '( ( "u!" calcFunc-lnot -1 1000 ) 100 '( ( "u!" calcFunc-lnot -1 1000 )
@@ -387,7 +387,7 @@
387 math-exp-token 'end 387 math-exp-token 'end
388 math-expr-data "\000") 388 math-expr-data "\000")
389 x) 389 x)
390 (throw 'syntax "Unmatched closing /"))) 390 (throw 'syntax "Unmatched closing `/'")))
391 391
392(defun math-parse-fortran-subscr (sym args) 392(defun math-parse-fortran-subscr (sym args)
393 (setq sym (math-build-var-name sym)) 393 (setq sym (math-build-var-name sym))
@@ -695,7 +695,7 @@
695 695
696(defun math-parse-tex-sum (f val) 696(defun math-parse-tex-sum (f val)
697 (let (low high save) 697 (let (low high save)
698 (or (equal math-expr-data "_") (throw 'syntax "Expected _")) 698 (or (equal math-expr-data "_") (throw 'syntax "Expected `_'"))
699 (math-read-token) 699 (math-read-token)
700 (setq save math-exp-old-pos) 700 (setq save math-exp-old-pos)
701 (setq low (math-read-factor)) 701 (setq low (math-read-factor))
@@ -703,7 +703,7 @@
703 (progn 703 (progn
704 (setq math-exp-old-pos (1+ save)) 704 (setq math-exp-old-pos (1+ save))
705 (throw 'syntax "Expected equation"))) 705 (throw 'syntax "Expected equation")))
706 (or (equal math-expr-data "^") (throw 'syntax "Expected ^")) 706 (or (equal math-expr-data "^") (throw 'syntax "Expected `^'"))
707 (math-read-token) 707 (math-read-token)
708 (setq high (math-read-factor)) 708 (setq high (math-read-factor))
709 (list (nth 2 f) (math-read-factor) (nth 1 low) (nth 2 low) high))) 709 (list (nth 2 f) (math-read-factor) (nth 1 low) (nth 2 low) high)))
@@ -1165,14 +1165,14 @@
1165 (while (assoc math-expr-data '(("ccol") ("lcol") ("rcol"))) 1165 (while (assoc math-expr-data '(("ccol") ("lcol") ("rcol")))
1166 (math-read-token) 1166 (math-read-token)
1167 (or (equal math-expr-data calc-function-open) 1167 (or (equal math-expr-data calc-function-open)
1168 (throw 'syntax "Expected {")) 1168 (throw 'syntax "Expected `{'"))
1169 (math-read-token) 1169 (math-read-token)
1170 (setq vec (cons (cons 'vec (math-read-expr-list)) vec)) 1170 (setq vec (cons (cons 'vec (math-read-expr-list)) vec))
1171 (or (equal math-expr-data calc-function-close) 1171 (or (equal math-expr-data calc-function-close)
1172 (throw 'syntax "Expected }")) 1172 (throw 'syntax "Expected `}'"))
1173 (math-read-token)) 1173 (math-read-token))
1174 (or (equal math-expr-data calc-function-close) 1174 (or (equal math-expr-data calc-function-close)
1175 (throw 'syntax "Expected }")) 1175 (throw 'syntax "Expected `}'"))
1176 (math-read-token) 1176 (math-read-token)
1177 (math-transpose (cons 'vec (nreverse vec))))) 1177 (math-transpose (cons 'vec (nreverse vec)))))
1178 1178
@@ -1187,7 +1187,7 @@
1187 (math-read-expr-list)))) 1187 (math-read-expr-list))))
1188 (if (not (or (equal math-expr-data calc-function-close) 1188 (if (not (or (equal math-expr-data calc-function-close)
1189 (eq math-exp-token 'end))) 1189 (eq math-exp-token 'end)))
1190 (throw 'syntax "Expected )")) 1190 (throw 'syntax "Expected `)'"))
1191 (math-read-token) 1191 (math-read-token)
1192 (cons (intern (format "calcFunc-%s'" (nth 1 x))) args))) 1192 (cons (intern (format "calcFunc-%s'" (nth 1 x))) args)))
1193 (list 'var 1193 (list 'var
@@ -1211,7 +1211,7 @@
1211 (interactive) 1211 (interactive)
1212 (calc-wrapper 1212 (calc-wrapper
1213 (calc-set-language 'yacas) 1213 (calc-set-language 'yacas)
1214 (message "Yacas language mode"))) 1214 (message "Yacas language mode")))
1215 1215
1216(put 'yacas 'math-vector-brackets "{}") 1216(put 'yacas 'math-vector-brackets "{}")
1217 1217
@@ -1427,7 +1427,7 @@
1427 (interactive) 1427 (interactive)
1428 (calc-wrapper 1428 (calc-wrapper
1429 (calc-set-language 'maxima) 1429 (calc-set-language 'maxima)
1430 (message "Maxima language mode"))) 1430 (message "Maxima language mode")))
1431 1431
1432(put 'maxima 'math-oper-table 1432(put 'maxima 'math-oper-table
1433 '(("+" + 100 100) 1433 '(("+" + 100 100)
@@ -1625,7 +1625,7 @@
1625 (interactive) 1625 (interactive)
1626 (calc-wrapper 1626 (calc-wrapper
1627 (calc-set-language 'giac) 1627 (calc-set-language 'giac)
1628 (message "Giac language mode"))) 1628 (message "Giac language mode")))
1629 1629
1630(put 'giac 'math-oper-table 1630(put 'giac 'math-oper-table
1631 '( ( "[" (math-read-giac-subscr) 250 -1 ) 1631 '( ( "[" (math-read-giac-subscr) 250 -1 )
@@ -1817,7 +1817,7 @@ order to Calc's."
1817(defun math-read-giac-subscr (x op) 1817(defun math-read-giac-subscr (x op)
1818 (let ((idx (math-read-expr-level 0))) 1818 (let ((idx (math-read-expr-level 0)))
1819 (or (equal math-expr-data "]") 1819 (or (equal math-expr-data "]")
1820 (throw 'syntax "Expected ]")) 1820 (throw 'syntax "Expected `]'"))
1821 (math-read-token) 1821 (math-read-token)
1822 (list 'calcFunc-subscr x (calc-normalize (list '+ idx 1))))) 1822 (list 'calcFunc-subscr x (calc-normalize (list '+ idx 1)))))
1823 1823
@@ -1954,7 +1954,7 @@ order to Calc's."
1954 (progn 1954 (progn
1955 (math-read-token) 1955 (math-read-token)
1956 (equal math-expr-data "]"))) 1956 (equal math-expr-data "]")))
1957 (throw 'syntax "Expected ]]")) 1957 (throw 'syntax "Expected `]]'"))
1958 (math-read-token) 1958 (math-read-token)
1959 (list 'calcFunc-subscr x idx))) 1959 (list 'calcFunc-subscr x idx)))
1960 1960
@@ -2237,7 +2237,7 @@ order to Calc's."
2237 (if (= sep ?\.) 2237 (if (= sep ?\.)
2238 (setq h (1+ h))) 2238 (setq h (1+ h)))
2239 (if (= sep ?\]) 2239 (if (= sep ?\])
2240 (math-read-big-error (1- h) v "Expected )")) 2240 (math-read-big-error (1- h) v "Expected `)'"))
2241 (if (= sep ?\)) 2241 (if (= sep ?\))
2242 (setq p (math-read-big-rec 2242 (setq p (math-read-big-rec
2243 (1+ math-rb-h1) math-rb-v1 (1- h) math-rb-v2 v)) 2243 (1+ math-rb-h1) math-rb-v1 (1- h) math-rb-v2 v))
@@ -2252,7 +2252,7 @@ order to Calc's."
2252 0 1) 2252 0 1)
2253 p)))) 2253 p))))
2254 ((= (math-read-big-char (1- h) v) ?\]) 2254 ((= (math-read-big-char (1- h) v) ?\])
2255 (math-read-big-error (1- h) v "Expected )")) 2255 (math-read-big-error (1- h) v "Expected `)'"))
2256 ((= sep ?\,) 2256 ((= sep ?\,)
2257 (or (and (math-realp (car p)) (math-realp (nth 1 p))) 2257 (or (and (math-realp (car p)) (math-realp (nth 1 p)))
2258 (math-read-big-error 2258 (math-read-big-error
@@ -2280,7 +2280,7 @@ order to Calc's."
2280 (setq h (math-read-big-balance (1+ hleft) v "[")) 2280 (setq h (math-read-big-balance (1+ hleft) v "["))
2281 (if hright 2281 (if hright
2282 (or (= h hright) 2282 (or (= h hright)
2283 (math-read-big-error hright v "Expected ]")) 2283 (math-read-big-error hright v "Expected `]'"))
2284 (setq hright h)) 2284 (setq hright h))
2285 (setq p (cons (math-read-big-rec 2285 (setq p (cons (math-read-big-rec
2286 hleft v h (1+ v)) p)) 2286 hleft v h (1+ v)) p))
@@ -2293,7 +2293,7 @@ order to Calc's."
2293 (setq h (1+ h))) 2293 (setq h (1+ h)))
2294 (and (= (math-read-big-char h v) ?\]) 2294 (and (= (math-read-big-char h v) ?\])
2295 (setq h (1+ h)))) 2295 (setq h (1+ h))))
2296 (math-read-big-error (1- h) v "Expected ]")) 2296 (math-read-big-error (1- h) v "Expected `]'"))
2297 (if (= (math-read-big-char h vtop) ?\,) 2297 (if (= (math-read-big-char h vtop) ?\,)
2298 (setq h (1+ h))) 2298 (setq h (1+ h)))
2299 (math-read-big-emptyp math-rb-h1 (1+ v) (1- h) math-rb-v2 nil t) 2299 (math-read-big-emptyp math-rb-h1 (1+ v) (1- h) math-rb-v2 nil t)
@@ -2317,7 +2317,7 @@ order to Calc's."
2317 (setq widest (math-read-big-char (1- h) v)) 2317 (setq widest (math-read-big-char (1- h) v))
2318 (if (or (memq widest '(?\; ?\))) 2318 (if (or (memq widest '(?\; ?\)))
2319 (and (eq widest ?\.) (cdr p))) 2319 (and (eq widest ?\.) (cdr p)))
2320 (math-read-big-error (1- h) v "Expected ]")) 2320 (math-read-big-error (1- h) v "Expected `]'"))
2321 (if (= widest ?\.) 2321 (if (= widest ?\.)
2322 (setq h (1+ h) 2322 (setq h (1+ h)
2323 widest (math-read-big-balance h v "[") 2323 widest (math-read-big-balance h v "[")
@@ -2369,7 +2369,7 @@ order to Calc's."
2369 h widest) 2369 h widest)
2370 (= (math-read-big-char (1- h) v) ?\,))) 2370 (= (math-read-big-char (1- h) v) ?\,)))
2371 (or (= (math-read-big-char (1- h) v) ?\)) 2371 (or (= (math-read-big-char (1- h) v) ?\))
2372 (math-read-big-error (1- h) v "Expected )")) 2372 (math-read-big-error (1- h) v "Expected `)'"))
2373 (setq p (cons line (nreverse p)))) 2373 (setq p (cons line (nreverse p))))
2374 (setq p (list 'var 2374 (setq p (list 'var
2375 (intern (math-remove-dashes p)) 2375 (intern (math-remove-dashes p))
@@ -2433,7 +2433,7 @@ order to Calc's."
2433 math-rb-v2 baseline nil t))) 2433 math-rb-v2 baseline nil t)))
2434 (or (= (math-read-big-char math-read-big-h2 baseline) ?\:) 2434 (or (= (math-read-big-char math-read-big-h2 baseline) ?\:)
2435 (math-read-big-error math-read-big-h2 baseline 2435 (math-read-big-error math-read-big-h2 baseline
2436 "Expected :")) 2436 "Expected `:'"))
2437 (setq p (list (nth 1 widest) p y 2437 (setq p (list (nth 1 widest) p y
2438 (math-read-big-rec 2438 (math-read-big-rec
2439 (1+ math-read-big-h2) math-rb-v1 math-rb-h2 math-rb-v2 2439 (1+ math-read-big-h2) math-rb-v1 math-rb-h2 math-rb-v2
@@ -2509,7 +2509,7 @@ order to Calc's."
2509 (if (>= h len) 2509 (if (>= h len)
2510 (if what 2510 (if what
2511 (math-read-big-error nil v (format-message 2511 (math-read-big-error nil v (format-message
2512 "Unmatched %s" what)) 2512 "Unmatched `%s'" what))
2513 (setq count 0)) 2513 (setq count 0))
2514 (if (memq (aref line h) '(?\( ?\[)) 2514 (if (memq (aref line h) '(?\( ?\[))
2515 (setq count (1+ count)) 2515 (setq count (1+ count))
diff --git a/lisp/calc/calc-misc.el b/lisp/calc/calc-misc.el
index e141589ab7b..aa0ccb79edd 100644
--- a/lisp/calc/calc-misc.el
+++ b/lisp/calc/calc-misc.el
@@ -217,7 +217,7 @@ Calc user interface as before (either C-x * C or C-x * K; initially C-x * C).
217(defun calc-help () 217(defun calc-help ()
218 (interactive) 218 (interactive)
219 (let ((msgs 219 (let ((msgs
220 '("Press h for complete help; press ? repeatedly for a summary" 220 '("Press `h' for complete help; press `?' repeatedly for a summary"
221 "Letter keys: Negate; Precision; Yank; Why; Xtended cmd; Quit" 221 "Letter keys: Negate; Precision; Yank; Why; Xtended cmd; Quit"
222 "Letter keys: SHIFT + Undo, reDo; Inverse, Hyperbolic, Option" 222 "Letter keys: SHIFT + Undo, reDo; Inverse, Hyperbolic, Option"
223 "Letter keys: SHIFT + sQrt; Sin, Cos, Tan; Exp, Ln, logB" 223 "Letter keys: SHIFT + sQrt; Sin, Cos, Tan; Exp, Ln, logB"
@@ -953,7 +953,7 @@ Prompts for bug subject. Leaves you in a mail buffer."
953 nil nil nil 953 nil nil nil
954 "Please describe exactly what actions triggered the bug and the 954 "Please describe exactly what actions triggered the bug and the
955precise symptoms of the bug. If possible, include a backtrace by 955precise symptoms of the bug. If possible, include a backtrace by
956doing \\[toggle-debug-on-error], then reproducing the bug. 956doing `\\[toggle-debug-on-error]', then reproducing the bug.
957" ))) 957" )))
958;;;###autoload 958;;;###autoload
959(defalias 'calc-report-bug 'report-calc-bug) 959(defalias 'calc-report-bug 'report-calc-bug)
diff --git a/lisp/calc/calc-mode.el b/lisp/calc/calc-mode.el
index b5eef7f6784..3ed9612f79a 100644
--- a/lisp/calc/calc-mode.el
+++ b/lisp/calc/calc-mode.el
@@ -110,11 +110,11 @@
110 (setq n (and (not (eq calc-auto-why t)) (if calc-auto-why t 1)))) 110 (setq n (and (not (eq calc-auto-why t)) (if calc-auto-why t 1))))
111 (calc-change-mode 'calc-auto-why n nil) 111 (calc-change-mode 'calc-auto-why n nil)
112 (cond ((null n) 112 (cond ((null n)
113 (message "User must press w to explain unsimplified results")) 113 (message "User must press `w' to explain unsimplified results"))
114 ((eq n t) 114 ((eq n t)
115 (message "Automatically doing w to explain unsimplified results")) 115 (message "Automatically doing `w' to explain unsimplified results"))
116 (t 116 (t
117 (message "Automatically doing w only for unusual messages"))))) 117 (message "Automatically doing `w' only for unusual messages")))))
118 118
119(defun calc-group-digits (n) 119(defun calc-group-digits (n)
120 (interactive "P") 120 (interactive "P")
@@ -272,7 +272,7 @@
272 (vals (mapcar (function (lambda (v) (symbol-value (car v)))) 272 (vals (mapcar (function (lambda (v) (symbol-value (car v))))
273 calc-mode-var-list))) 273 calc-mode-var-list)))
274 (unless calc-settings-file 274 (unless calc-settings-file
275 (error "No calc-settings-file specified")) 275 (error "No `calc-settings-file' specified"))
276 (set-buffer (find-file-noselect (substitute-in-file-name 276 (set-buffer (find-file-noselect (substitute-in-file-name
277 calc-settings-file))) 277 calc-settings-file)))
278 (goto-char (point-min)) 278 (goto-char (point-min))
@@ -572,8 +572,8 @@
572 (calc-change-mode 'calc-auto-recompute arg nil t) 572 (calc-change-mode 'calc-auto-recompute arg nil t)
573 (calc-refresh-evaltos) 573 (calc-refresh-evaltos)
574 (message (if calc-auto-recompute 574 (message (if calc-auto-recompute
575 "Automatically recomputing => forms when necessary" 575 "Automatically recomputing `=>' forms when necessary"
576 "Not recomputing => forms automatically")))) 576 "Not recomputing `=>' forms automatically"))))
577 577
578(defun calc-working (n) 578(defun calc-working (n)
579 (interactive "P") 579 (interactive "P")
diff --git a/lisp/calc/calc-prog.el b/lisp/calc/calc-prog.el
index 58d2b5ce431..57af0d27822 100644
--- a/lisp/calc/calc-prog.el
+++ b/lisp/calc/calc-prog.el
@@ -597,9 +597,9 @@
597 ",") 597 ",")
598 ((equal name "#") 598 ((equal name "#")
599 (search-backward "#") 599 (search-backward "#")
600 (error "Token # is reserved")) 600 (error "Token `#' is reserved"))
601 ((and unquoted (string-match "#" name)) 601 ((and unquoted (string-match "#" name))
602 (error "Tokens containing # must be quoted")) 602 (error "Tokens containing `#' must be quoted"))
603 ((not (string-match "[^ ]" name)) 603 ((not (string-match "[^ ]" name))
604 (search-backward "\"" nil t) 604 (search-backward "\"" nil t)
605 (error "Blank tokens are not allowed")) 605 (error "Blank tokens are not allowed"))
@@ -610,7 +610,7 @@
610 (quoted nil)) 610 (quoted nil))
611 (while (progn 611 (while (progn
612 (skip-chars-forward "\n\t ") 612 (skip-chars-forward "\n\t ")
613 (if (eobp) (error "Expected %s" eterm)) 613 (if (eobp) (error "Expected `%s'" eterm))
614 (not (looking-at term))) 614 (not (looking-at term)))
615 (cond ((looking-at "%%") 615 (cond ((looking-at "%%")
616 (end-of-line)) 616 (end-of-line))
@@ -618,7 +618,7 @@
618 (forward-char 2) 618 (forward-char 2)
619 (let ((p (calc-read-parse-table-part "}" "}"))) 619 (let ((p (calc-read-parse-table-part "}" "}")))
620 (or (looking-at "[+*?]") 620 (or (looking-at "[+*?]")
621 (error "Expected +, *, or ?")) 621 (error "Expected `+', `*', or `?'"))
622 (let ((sym (intern (buffer-substring (point) (1+ (point)))))) 622 (let ((sym (intern (buffer-substring (point) (1+ (point))))))
623 (forward-char 1) 623 (forward-char 1)
624 (looking-at "[^\n\t ]*") 624 (looking-at "[^\n\t ]*")
@@ -650,7 +650,7 @@
650 (match-end 1))))))) 650 (match-end 1)))))))
651 (goto-char (match-end 0))) 651 (goto-char (match-end 0)))
652 ((looking-at ":=[\n\t ]") 652 ((looking-at ":=[\n\t ]")
653 (error "Misplaced :=")) 653 (error "Misplaced `:='"))
654 (t 654 (t
655 (looking-at "[^\n\t ]*") 655 (looking-at "[^\n\t ]*")
656 (let ((end (match-end 0))) 656 (let ((end (match-end 0)))
@@ -673,7 +673,7 @@
673 (or last-kbd-macro 673 (or last-kbd-macro
674 (error "No keyboard macro defined")) 674 (error "No keyboard macro defined"))
675 (setq calc-invocation-macro last-kbd-macro) 675 (setq calc-invocation-macro last-kbd-macro)
676 (message "Use C-x * Z to invoke this macro")) 676 (message "Use `C-x * Z' to invoke this macro"))
677 677
678(defun calc-user-define-edit () 678(defun calc-user-define-edit ()
679 (interactive) ; but no calc-wrapper! 679 (interactive) ; but no calc-wrapper!
@@ -1899,7 +1899,7 @@ Redefine the corresponding command."
1899 `((and 1899 `((and
1900 (,chk ,var) 1900 (,chk ,var)
1901 (math-reject-arg ,var ',qual))))) 1901 (math-reject-arg ,var ',qual)))))
1902 (error "Unknown qualifier %s" qual-name)))))))) 1902 (error "Unknown qualifier `%s'" qual-name))))))))
1903 1903
1904(defun math-do-arg-list-check (args is-opt is-rest) 1904(defun math-do-arg-list-check (args is-opt is-rest)
1905 (cond ((null args) nil) 1905 (cond ((null args) nil)
diff --git a/lisp/calc/calc-store.el b/lisp/calc/calc-store.el
index 4cf5b8c3a31..3d8c865c7bf 100644
--- a/lisp/calc/calc-store.el
+++ b/lisp/calc/calc-store.el
@@ -443,7 +443,7 @@
443 (calc-edit-mode (list 'calc-finish-stack-edit (list 'quote var)) 443 (calc-edit-mode (list 'calc-finish-stack-edit (list 'quote var))
444 t 444 t
445 (format-message 445 (format-message
446 "Editing variable %s" (calc-var-name var))) 446 "Editing variable `%s'" (calc-var-name var)))
447 (and value 447 (and value
448 (insert (math-format-nice-expr value (frame-width)) "\n"))))) 448 (insert (math-format-nice-expr value (frame-width)) "\n")))))
449 (calc-show-edit-buffer)) 449 (calc-show-edit-buffer))
diff --git a/lisp/calc/calc-units.el b/lisp/calc/calc-units.el
index d56c0b29c12..4373e52eb87 100644
--- a/lisp/calc/calc-units.el
+++ b/lisp/calc/calc-units.el
@@ -1625,10 +1625,10 @@ If COMP or STD is non-nil, put that in the units table instead."
1625 (format-message 1625 (format-message
1626 (concat 1626 (concat
1627 "(**) When in TeX or LaTeX display mode, the TeX specific unit\n" 1627 "(**) When in TeX or LaTeX display mode, the TeX specific unit\n"
1628 "names will not use the tex prefix; the unit name for a\n" 1628 "names will not use the `tex' prefix; the unit name for a\n"
1629 "TeX point will be pt instead of texpt, for example.\n" 1629 "TeX point will be `pt' instead of `texpt', for example.\n"
1630 "To avoid conflicts, the unit names for pint and parsec will\n" 1630 "To avoid conflicts, the unit names for pint and parsec will\n"
1631 "be pint and parsec instead of pt and pc.")))) 1631 "be `pint' and `parsec' instead of `pt' and `pc'."))))
1632 (view-mode) 1632 (view-mode)
1633 (message "Formatting units table...done")) 1633 (message "Formatting units table...done"))
1634 (setq math-units-table-buffer-valid t) 1634 (setq math-units-table-buffer-valid t)
diff --git a/lisp/calc/calc-vec.el b/lisp/calc/calc-vec.el
index c7a3e716d61..cd157703f49 100644
--- a/lisp/calc/calc-vec.el
+++ b/lisp/calc/calc-vec.el
@@ -1618,13 +1618,13 @@ of two matrices is a matrix."
1618 (if (not (or (equal math-expr-data math-rb-close) 1618 (if (not (or (equal math-expr-data math-rb-close)
1619 (equal math-expr-data ")") 1619 (equal math-expr-data ")")
1620 (eq math-exp-token 'end))) 1620 (eq math-exp-token 'end)))
1621 (throw 'syntax "Expected ]"))) 1621 (throw 'syntax "Expected `]'")))
1622 (if (equal math-expr-data ";") 1622 (if (equal math-expr-data ";")
1623 (let ((math-exp-keep-spaces space-sep)) 1623 (let ((math-exp-keep-spaces space-sep))
1624 (setq vals (cons 'vec (math-read-matrix (list vals)))))) 1624 (setq vals (cons 'vec (math-read-matrix (list vals))))))
1625 (if (not (or (equal math-expr-data math-rb-close) 1625 (if (not (or (equal math-expr-data math-rb-close)
1626 (eq math-exp-token 'end))) 1626 (eq math-exp-token 'end)))
1627 (throw 'syntax "Expected ]"))) 1627 (throw 'syntax "Expected `]'")))
1628 (or (eq math-exp-token 'end) 1628 (or (eq math-exp-token 'end)
1629 (math-read-token)) 1629 (math-read-token))
1630 vals))) 1630 vals)))
diff --git a/lisp/calc/calc-yank.el b/lisp/calc/calc-yank.el
index cce04705da8..5694a4e56ae 100644
--- a/lisp/calc/calc-yank.el
+++ b/lisp/calc/calc-yank.el
@@ -603,9 +603,9 @@ To cancel the edit, simply kill the *Calc Edit* buffer."
603 (insert (propertize 603 (insert (propertize
604 (concat 604 (concat
605 (or title title "Calc Edit Mode. ") 605 (or title title "Calc Edit Mode. ")
606 (format-message "Press C-c C-c") 606 (format-message "Press `C-c C-c'")
607 (if allow-ret "" " or RET") 607 (if allow-ret "" " or RET")
608 (format-message " to finish, C-x k RET to cancel.\n\n")) 608 (format-message " to finish, `C-x k RET' to cancel.\n\n"))
609 'font-lock-face 'italic 'read-only t 'rear-nonsticky t 'front-sticky t)) 609 'font-lock-face 'italic 'read-only t 'rear-nonsticky t 'front-sticky t))
610 (make-local-variable 'calc-edit-top) 610 (make-local-variable 'calc-edit-top)
611 (setq calc-edit-top (point)))) 611 (setq calc-edit-top (point))))
diff --git a/lisp/calc/calc.el b/lisp/calc/calc.el
index ea20986bc85..b4b0ad8b185 100644
--- a/lisp/calc/calc.el
+++ b/lisp/calc/calc.el
@@ -989,11 +989,11 @@ Used by `calc-user-invocation'.")
989(defvar calc-last-kill nil 989(defvar calc-last-kill nil
990 "The last number killed in calc-mode.") 990 "The last number killed in calc-mode.")
991(defvar calc-dollar-values nil 991(defvar calc-dollar-values nil
992 "Values to be used for $.") 992 "Values to be used for `$'.")
993(defvar calc-dollar-used nil 993(defvar calc-dollar-used nil
994 "The highest order of $ that occurred.") 994 "The highest order of `$' that occurred.")
995(defvar calc-hashes-used nil 995(defvar calc-hashes-used nil
996 "The highest order of # that occurred.") 996 "The highest order of `#' that occurred.")
997(defvar calc-quick-prev-results nil 997(defvar calc-quick-prev-results nil
998 "Previous results from Quick Calc.") 998 "Previous results from Quick Calc.")
999(defvar calc-said-hello nil 999(defvar calc-said-hello nil
@@ -1474,7 +1474,7 @@ commands given here will actually operate on the *Calculator* stack."
1474 (and calc-display-trail 1474 (and calc-display-trail
1475 (= (window-width) (frame-width)) 1475 (= (window-width) (frame-width))
1476 (calc-trail-display 1 t))) 1476 (calc-trail-display 1 t)))
1477 (message "Welcome to the GNU Emacs Calculator! Press ? or h for help, q to quit") 1477 (message "Welcome to the GNU Emacs Calculator! Press `?' or `h' for help, `q' to quit")
1478 (run-hooks 'calc-start-hook) 1478 (run-hooks 'calc-start-hook)
1479 (and (windowp full-display) 1479 (and (windowp full-display)
1480 (window-point full-display) 1480 (window-point full-display)
@@ -1622,7 +1622,7 @@ See calc-keypad for details."
1622 (stringp (nth 1 err)) 1622 (stringp (nth 1 err))
1623 (string-match "max-specpdl-size\\|max-lisp-eval-depth" 1623 (string-match "max-specpdl-size\\|max-lisp-eval-depth"
1624 (nth 1 err))) 1624 (nth 1 err)))
1625 (error "Computation got stuck or ran too long. Type M to increase the limit") 1625 (error "Computation got stuck or ran too long. Type `M' to increase the limit")
1626 (setq calc-aborted-prefix nil) 1626 (setq calc-aborted-prefix nil)
1627 (signal (car err) (cdr err))))) 1627 (signal (car err) (cdr err)))))
1628 (when calc-aborted-prefix 1628 (when calc-aborted-prefix
@@ -3856,7 +3856,7 @@ Also looks for the equivalent TeX words, \\gets and \\evalto."
3856(defun calc-user-invocation () 3856(defun calc-user-invocation ()
3857 (interactive) 3857 (interactive)
3858 (unless calc-invocation-macro 3858 (unless calc-invocation-macro
3859 (error "Use Z I inside Calc to define a C-x * Z keyboard macro")) 3859 (error "Use `Z I' inside Calc to define a `C-x * Z' keyboard macro"))
3860 (execute-kbd-macro calc-invocation-macro nil)) 3860 (execute-kbd-macro calc-invocation-macro nil))
3861 3861
3862;;; User-programmability. 3862;;; User-programmability.
diff --git a/lisp/calculator.el b/lisp/calculator.el
index 49d47a0519b..80b7c070f1f 100644
--- a/lisp/calculator.el
+++ b/lisp/calculator.el
@@ -1551,7 +1551,7 @@ Used by `calculator-paste' and `get-register'."
1551 + - * / \\(div) %(rem) _(-X,postfix) ;(1/X,postfix) ^(exp) L(og) 1551 + - * / \\(div) %(rem) _(-X,postfix) ;(1/X,postfix) ^(exp) L(og)
1552 Q(sqrt) !(fact) S(in) C(os) T(an) |(or) #(xor) &(and) ~(not) 1552 Q(sqrt) !(fact) S(in) C(os) T(an) |(or) #(xor) &(and) ~(not)
1553* >/< repeats last binary operation with its 2nd (1st) arg as postfix op 1553* >/< repeats last binary operation with its 2nd (1st) arg as postfix op
1554* I inverses next trig function * '/\"/{} - display/display args 1554* I inverses next trig function * \\='/\"/{} - display/display args
1555* D - switch to all-decimal, or toggle deg/rad mode 1555* D - switch to all-decimal, or toggle deg/rad mode
1556* B/O/H/X - binary/octal/hex mode for i/o (X is a shortcut for H) 1556* B/O/H/X - binary/octal/hex mode for i/o (X is a shortcut for H)
1557* i/o - prefix for d/b/o/x - set only input/output modes 1557* i/o - prefix for d/b/o/x - set only input/output modes
diff --git a/lisp/calendar/appt.el b/lisp/calendar/appt.el
index 426bb286ebb..d5d8a400218 100644
--- a/lisp/calendar/appt.el
+++ b/lisp/calendar/appt.el
@@ -239,7 +239,7 @@ also calls `beep' for an audible reminder."
239 (wrong-type-argument 239 (wrong-type-argument
240 (if (not (listp mins)) 240 (if (not (listp mins))
241 (signal (car err) (cdr err)) 241 (signal (car err) (cdr err))
242 (message "Argtype error in appt-disp-window-function - \ 242 (message "Argtype error in `appt-disp-window-function' - \
243update it for multiple appts?") 243update it for multiple appts?")
244 ;; Fallback to just displaying the first appt, as we used to. 244 ;; Fallback to just displaying the first appt, as we used to.
245 (funcall appt-disp-window-function 245 (funcall appt-disp-window-function
diff --git a/lisp/calendar/cal-bahai.el b/lisp/calendar/cal-bahai.el
index b68ba8a866f..998dc6c7056 100644
--- a/lisp/calendar/cal-bahai.el
+++ b/lisp/calendar/cal-bahai.el
@@ -1,10 +1,10 @@
1;;; cal-bahai.el --- calendar functions for the Bahá'í calendar. 1;;; cal-bahai.el --- calendar functions for the Baháí calendar.
2 2
3;; Copyright (C) 2001-2015 Free Software Foundation, Inc. 3;; Copyright (C) 2001-2015 Free Software Foundation, Inc.
4 4
5;; Author: John Wiegley <johnw@gnu.org> 5;; Author: John Wiegley <johnw@gnu.org>
6;; Keywords: calendar 6;; Keywords: calendar
7;; Human-Keywords: Bahá'í calendar, Bahá'í, Baha'i, Bahai, calendar, diary 7;; Human-Keywords: Baháí calendar, Baháí, Baha'i, Bahai, calendar, diary
8;; Package: calendar 8;; Package: calendar
9 9
10;; This file is part of GNU Emacs. 10;; This file is part of GNU Emacs.
@@ -25,9 +25,9 @@
25;;; Commentary: 25;;; Commentary:
26 26
27;; This collection of functions implements the features of calendar.el 27;; This collection of functions implements the features of calendar.el
28;; and diary-lib.el that deal with the Bahá'í calendar. 28;; and diary-lib.el that deal with the Baháí calendar.
29 29
30;; The Bahá'í (http://www.bahai.org) calendar system is based on a 30;; The Baháí (http://www.bahai.org) calendar system is based on a
31;; solar cycle of 19 months with 19 days each. The four remaining 31;; solar cycle of 19 months with 19 days each. The four remaining
32;; "intercalary" days are called the Ayyám-i-Há (days of Há), and are 32;; "intercalary" days are called the Ayyám-i-Há (days of Há), and are
33;; placed between the 18th and 19th months. They are meant as a time 33;; placed between the 18th and 19th months. They are meant as a time
@@ -59,13 +59,13 @@
59 ["Bahá" "Jalál" "Jamál" "‘Aẓamat" "Núr" "Raḥmat" "Kalimát" "Kamál" 59 ["Bahá" "Jalál" "Jamál" "‘Aẓamat" "Núr" "Raḥmat" "Kalimát" "Kamál"
60 "Asmá’" "‘Izzat" "Mashíyyat" "‘Ilm" "Qudrat" "Qawl" "Masá’il" 60 "Asmá’" "‘Izzat" "Mashíyyat" "‘Ilm" "Qudrat" "Qawl" "Masá’il"
61 "Sharaf" "Sulṭán" "Mulk" "‘Alá’"] 61 "Sharaf" "Sulṭán" "Mulk" "‘Alá’"]
62 "Array of the month names in the Bahá'í calendar.") 62 "Array of the month names in the Baháí calendar.")
63 63
64(defconst calendar-bahai-epoch (calendar-absolute-from-gregorian '(3 21 1844)) 64(defconst calendar-bahai-epoch (calendar-absolute-from-gregorian '(3 21 1844))
65 "Absolute date of start of Bahá'í calendar = March 21, 1844 AD.") 65 "Absolute date of start of Baháí calendar = March 21, 1844 AD.")
66 66
67(defun calendar-bahai-leap-year-p (year) 67(defun calendar-bahai-leap-year-p (year)
68 "True if Bahá'í YEAR is a leap year in the Bahá'í calendar." 68 "True if Baháí YEAR is a leap year in the Baháí calendar."
69 (calendar-leap-year-p (+ year 1844))) 69 (calendar-leap-year-p (+ year 1844)))
70 70
71(defconst calendar-bahai-leap-base 71(defconst calendar-bahai-leap-base
@@ -74,7 +74,7 @@
74Used by `calendar-bahai-to-absolute'.") 74Used by `calendar-bahai-to-absolute'.")
75 75
76(defun calendar-bahai-to-absolute (date) 76(defun calendar-bahai-to-absolute (date)
77 "Compute absolute date from Bahá'í date DATE. 77 "Compute absolute date from Baháí date DATE.
78The absolute date is the number of days elapsed since the (imaginary) 78The absolute date is the number of days elapsed since the (imaginary)
79Gregorian date Sunday, December 31, 1 BC." 79Gregorian date Sunday, December 31, 1 BC."
80 (let* ((month (calendar-extract-month date)) 80 (let* ((month (calendar-extract-month date))
@@ -95,9 +95,9 @@ Gregorian date Sunday, December 31, 1 BC."
95 day))) ; days so far this month 95 day))) ; days so far this month
96 96
97(defun calendar-bahai-from-absolute (date) 97(defun calendar-bahai-from-absolute (date)
98 "Bahá'í date (month day year) corresponding to the absolute DATE." 98 "Baháí date (month day year) corresponding to the absolute DATE."
99 (if (< date calendar-bahai-epoch) 99 (if (< date calendar-bahai-epoch)
100 (list 0 0 0) ; pre-Bahá'í date 100 (list 0 0 0) ; pre-Baháí date
101 (let* ((greg (calendar-gregorian-from-absolute date)) 101 (let* ((greg (calendar-gregorian-from-absolute date))
102 (gmonth (calendar-extract-month greg)) 102 (gmonth (calendar-extract-month greg))
103 (year (+ (- (calendar-extract-year greg) 1844) 103 (year (+ (- (calendar-extract-year greg) 1844)
@@ -116,7 +116,7 @@ Gregorian date Sunday, December 31, 1 BC."
116 116
117;;;###cal-autoload 117;;;###cal-autoload
118(defun calendar-bahai-date-string (&optional date) 118(defun calendar-bahai-date-string (&optional date)
119 "String of Bahá'í date of Gregorian DATE. 119 "String of Baháí date of Gregorian DATE.
120Defaults to today's date if DATE is not given." 120Defaults to today's date if DATE is not given."
121 (let* ((bahai-date (calendar-bahai-from-absolute 121 (let* ((bahai-date (calendar-bahai-from-absolute
122 (calendar-absolute-from-gregorian 122 (calendar-absolute-from-gregorian
@@ -142,19 +142,19 @@ Defaults to today's date if DATE is not given."
142 142
143;;;###cal-autoload 143;;;###cal-autoload
144(defun calendar-bahai-print-date () 144(defun calendar-bahai-print-date ()
145 "Show the Bahá'í calendar equivalent of the selected date." 145 "Show the Baháí calendar equivalent of the selected date."
146 (interactive) 146 (interactive)
147 (let ((s (calendar-bahai-date-string (calendar-cursor-to-date t)))) 147 (let ((s (calendar-bahai-date-string (calendar-cursor-to-date t))))
148 (if (string-equal s "") 148 (if (string-equal s "")
149 (message "Date is pre-Bahá'í") 149 (message "Date is pre-Baháí")
150 (message "Bahá'í date: %s" s)))) 150 (message "Baháí date: %s" s))))
151 151
152(defun calendar-bahai-read-date () 152(defun calendar-bahai-read-date ()
153 "Interactively read the arguments for a Bahá'í date command. 153 "Interactively read the arguments for a Baháí date command.
154Reads a year, month and day." 154Reads a year, month and day."
155 (let* ((today (calendar-current-date)) 155 (let* ((today (calendar-current-date))
156 (year (calendar-read 156 (year (calendar-read
157 "Bahá'í calendar year (not 0): " 157 "Baháí calendar year (not 0): "
158 (lambda (x) (not (zerop x))) 158 (lambda (x) (not (zerop x)))
159 (number-to-string 159 (number-to-string
160 (calendar-extract-year 160 (calendar-extract-year
@@ -163,19 +163,19 @@ Reads a year, month and day."
163 (completion-ignore-case t) 163 (completion-ignore-case t)
164 (month (cdr (assoc 164 (month (cdr (assoc
165 (completing-read 165 (completing-read
166 "Bahá'í calendar month name: " 166 "Baháí calendar month name: "
167 (mapcar 'list 167 (mapcar 'list
168 (append calendar-bahai-month-name-array nil)) 168 (append calendar-bahai-month-name-array nil))
169 nil t) 169 nil t)
170 (calendar-make-alist calendar-bahai-month-name-array 170 (calendar-make-alist calendar-bahai-month-name-array
171 1)))) 171 1))))
172 (day (calendar-read "Bahá'í calendar day (1-19): " 172 (day (calendar-read "Baháí calendar day (1-19): "
173 (lambda (x) (and (< 0 x) (<= x 19)))))) 173 (lambda (x) (and (< 0 x) (<= x 19))))))
174 (list (list month day year)))) 174 (list (list month day year))))
175 175
176;;;###cal-autoload 176;;;###cal-autoload
177(defun calendar-bahai-goto-date (date &optional noecho) 177(defun calendar-bahai-goto-date (date &optional noecho)
178 "Move cursor to Bahá'í date DATE; echo Bahá'í date unless NOECHO is non-nil." 178 "Move cursor to Baháí date DATE; echo Baháí date unless NOECHO is non-nil."
179 (interactive (calendar-bahai-read-date)) 179 (interactive (calendar-bahai-read-date))
180 (calendar-goto-date (calendar-gregorian-from-absolute 180 (calendar-goto-date (calendar-gregorian-from-absolute
181 (calendar-bahai-to-absolute date))) 181 (calendar-bahai-to-absolute date)))
@@ -186,8 +186,8 @@ Reads a year, month and day."
186 186
187;;;###holiday-autoload 187;;;###holiday-autoload
188(defun holiday-bahai (month day string) 188(defun holiday-bahai (month day string)
189 "Holiday on MONTH, DAY (Bahá'í) called STRING. 189 "Holiday on MONTH, DAY (Baháí) called STRING.
190If MONTH, DAY (Bahá'í) is visible in the current calendar window, 190If MONTH, DAY (Baháí) is visible in the current calendar window,
191returns the corresponding Gregorian date in the form of the 191returns the corresponding Gregorian date in the form of the
192list (((month day year) STRING)). Otherwise, returns nil." 192list (((month day year) STRING)). Otherwise, returns nil."
193 ;; Since the calendar window shows 3 months at a time, there are 193 ;; Since the calendar window shows 3 months at a time, there are
@@ -199,7 +199,7 @@ list (((month day year) STRING)). Otherwise, returns nil."
199 (m (calendar-extract-month bahai-date)) 199 (m (calendar-extract-month bahai-date))
200 (y (calendar-extract-year bahai-date)) 200 (y (calendar-extract-year bahai-date))
201 date) 201 date)
202 (unless (< m 1) ; Bahá'í calendar doesn't apply 202 (unless (< m 1) ; Baháí calendar doesn't apply
203 ;; Cf holiday-fixed, holiday-islamic. 203 ;; Cf holiday-fixed, holiday-islamic.
204 ;; With a +- 3 month calendar window, and 19 months per year, 204 ;; With a +- 3 month calendar window, and 19 months per year,
205 ;; month 16 is special. When m16 is central is when the 205 ;; month 16 is special. When m16 is central is when the
@@ -209,7 +209,7 @@ list (((month day year) STRING)). Otherwise, returns nil."
209 ;; To see if other months are visible we can shift the range 209 ;; To see if other months are visible we can shift the range
210 ;; accordingly. 210 ;; accordingly.
211 (calendar-increment-month m y (- 16 month) 19) 211 (calendar-increment-month m y (- 16 month) 19)
212 (and (> m 12) ; Bahá'í date might be visible 212 (and (> m 12) ; Baháí date might be visible
213 (calendar-date-is-visible-p 213 (calendar-date-is-visible-p
214 (setq date (calendar-gregorian-from-absolute 214 (setq date (calendar-gregorian-from-absolute
215 (calendar-bahai-to-absolute (list month day y))))) 215 (calendar-bahai-to-absolute (list month day y)))))
@@ -219,9 +219,9 @@ list (((month day year) STRING)). Otherwise, returns nil."
219 219
220;;;###holiday-autoload 220;;;###holiday-autoload
221(defun holiday-bahai-new-year () 221(defun holiday-bahai-new-year ()
222 "Holiday entry for the Bahá'í New Year, if visible in the calendar window." 222 "Holiday entry for the Baháí New Year, if visible in the calendar window."
223 (holiday-fixed 3 21 223 (holiday-fixed 3 21
224 (format "Bahá'í New Year (Naw-Ruz) %d" 224 (format "Baháí New Year (Naw-Ruz) %d"
225 (- displayed-year (1- 1844))))) 225 (- displayed-year (1- 1844)))))
226 226
227;;;###holiday-autoload 227;;;###holiday-autoload
@@ -246,12 +246,12 @@ Only considers the first, ninth, and twelfth days, unless ALL or
246 246
247;;;###diary-autoload 247;;;###diary-autoload
248(defun diary-bahai-list-entries () 248(defun diary-bahai-list-entries ()
249 "Add any Bahá'í date entries from the diary file to `diary-entries-list'. 249 "Add any Baháí date entries from the diary file to `diary-entries-list'.
250Bahá'í date diary entries must be prefaced by `diary-bahai-entry-symbol' 250Baháí date diary entries must be prefaced by `diary-bahai-entry-symbol'
251\(normally a `B'). The same diary date forms govern the style of the 251\(normally a `B'). The same diary date forms govern the style of the
252Bahá'í calendar entries, except that the Bahá'í month names cannot be 252Baháí calendar entries, except that the Baháí month names cannot be
253abbreviated. The Bahá'í months are numbered from 1 to 19 with Bahá being 253abbreviated. The Baháí months are numbered from 1 to 19 with Bahá being
2541 and 19 being `Alá. If a Bahá'í date diary entry begins with 2541 and 19 being `Alá. If a Baháí date diary entry begins with
255`diary-nonmarking-symbol', the entry will appear in the diary listing, but 255`diary-nonmarking-symbol', the entry will appear in the diary listing, but
256will not be marked in the calendar. This function is provided for use with 256will not be marked in the calendar. This function is provided for use with
257`diary-nongregorian-listing-hook'." 257`diary-nongregorian-listing-hook'."
@@ -263,7 +263,7 @@ will not be marked in the calendar. This function is provided for use with
263 263
264;;;###diary-autoload 264;;;###diary-autoload
265(defun calendar-bahai-mark-date-pattern (month day year &optional color) 265(defun calendar-bahai-mark-date-pattern (month day year &optional color)
266 "Mark dates in calendar window that conform to Bahá'í date MONTH/DAY/YEAR. 266 "Mark dates in calendar window that conform to Baháí date MONTH/DAY/YEAR.
267A value of 0 in any position is a wildcard. Optional argument COLOR is 267A value of 0 in any position is a wildcard. Optional argument COLOR is
268passed to `calendar-mark-visible-date' as MARK." 268passed to `calendar-mark-visible-date' as MARK."
269 (calendar-mark-1 month day year 'calendar-bahai-from-absolute 269 (calendar-mark-1 month day year 'calendar-bahai-from-absolute
@@ -273,7 +273,7 @@ passed to `calendar-mark-visible-date' as MARK."
273 273
274;;;###diary-autoload 274;;;###diary-autoload
275(defun diary-bahai-mark-entries () 275(defun diary-bahai-mark-entries ()
276 "Mark days in the calendar window that have Bahá'í date diary entries. 276 "Mark days in the calendar window that have Baháí date diary entries.
277Marks each entry in `diary-file' (or included files) visible in the calendar 277Marks each entry in `diary-file' (or included files) visible in the calendar
278window. See `diary-bahai-list-entries' for more information." 278window. See `diary-bahai-list-entries' for more information."
279 (diary-mark-entries-1 'calendar-bahai-mark-date-pattern 279 (diary-mark-entries-1 'calendar-bahai-mark-date-pattern
@@ -286,7 +286,7 @@ window. See `diary-bahai-list-entries' for more information."
286;;;###cal-autoload 286;;;###cal-autoload
287(defun diary-bahai-insert-entry (arg) 287(defun diary-bahai-insert-entry (arg)
288 "Insert a diary entry. 288 "Insert a diary entry.
289For the Bahá'í date corresponding to the date indicated by point. 289For the Baháí date corresponding to the date indicated by point.
290Prefix argument ARG makes the entry nonmarking." 290Prefix argument ARG makes the entry nonmarking."
291 (interactive "P") 291 (interactive "P")
292 (diary-insert-entry-1 nil arg calendar-bahai-month-name-array 292 (diary-insert-entry-1 nil arg calendar-bahai-month-name-array
@@ -296,7 +296,7 @@ Prefix argument ARG makes the entry nonmarking."
296;;;###cal-autoload 296;;;###cal-autoload
297(defun diary-bahai-insert-monthly-entry (arg) 297(defun diary-bahai-insert-monthly-entry (arg)
298 "Insert a monthly diary entry. 298 "Insert a monthly diary entry.
299For the day of the Bahá'í month corresponding to the date indicated by point. 299For the day of the Baháí month corresponding to the date indicated by point.
300Prefix argument ARG makes the entry nonmarking." 300Prefix argument ARG makes the entry nonmarking."
301 (interactive "P") 301 (interactive "P")
302 (diary-insert-entry-1 'monthly arg calendar-bahai-month-name-array 302 (diary-insert-entry-1 'monthly arg calendar-bahai-month-name-array
@@ -306,7 +306,7 @@ Prefix argument ARG makes the entry nonmarking."
306;;;###cal-autoload 306;;;###cal-autoload
307(defun diary-bahai-insert-yearly-entry (arg) 307(defun diary-bahai-insert-yearly-entry (arg)
308 "Insert an annual diary entry. 308 "Insert an annual diary entry.
309For the day of the Bahá'í year corresponding to the date indicated by point. 309For the day of the Baháí year corresponding to the date indicated by point.
310Prefix argument ARG will make the entry nonmarking." 310Prefix argument ARG will make the entry nonmarking."
311 (interactive "P") 311 (interactive "P")
312 (diary-insert-entry-1 'yearly arg calendar-bahai-month-name-array 312 (diary-insert-entry-1 'yearly arg calendar-bahai-month-name-array
@@ -318,8 +318,8 @@ Prefix argument ARG will make the entry nonmarking."
318;; To be called from diary-list-sexp-entries, where DATE is bound. 318;; To be called from diary-list-sexp-entries, where DATE is bound.
319;;;###diary-autoload 319;;;###diary-autoload
320(defun diary-bahai-date () 320(defun diary-bahai-date ()
321 "Bahá'í calendar equivalent of date diary entry." 321 "Baháí calendar equivalent of date diary entry."
322 (format "Bahá'í date: %s" (calendar-bahai-date-string date))) 322 (format "Baháí date: %s" (calendar-bahai-date-string date)))
323 323
324 324
325(provide 'cal-bahai) 325(provide 'cal-bahai)
diff --git a/lisp/calendar/cal-hebrew.el b/lisp/calendar/cal-hebrew.el
index 8a975d8e862..8bb1b88ee62 100644
--- a/lisp/calendar/cal-hebrew.el
+++ b/lisp/calendar/cal-hebrew.el
@@ -611,7 +611,7 @@ is provided for use with `diary-nongregorian-listing-hook'."
611 "Mark dates in calendar window that conform to Hebrew date MONTH/DAY/YEAR. 611 "Mark dates in calendar window that conform to Hebrew date MONTH/DAY/YEAR.
612A value of 0 in any position is a wildcard. Optional argument COLOR is 612A value of 0 in any position is a wildcard. Optional argument COLOR is
613passed to `calendar-mark-visible-date' as MARK." 613passed to `calendar-mark-visible-date' as MARK."
614 ;; FIXME not the same as the Bahai and Islamic cases, so can't use 614 ;; FIXME not the same as the Bahá’í and Islamic cases, so can't use
615 ;; calendar-mark-1. 615 ;; calendar-mark-1.
616 (with-current-buffer calendar-buffer 616 (with-current-buffer calendar-buffer
617 (if (and (not (zerop month)) (not (zerop day))) 617 (if (and (not (zerop month)) (not (zerop day)))
diff --git a/lisp/calendar/cal-menu.el b/lisp/calendar/cal-menu.el
index 7462df84566..251d811bc52 100644
--- a/lisp/calendar/cal-menu.el
+++ b/lisp/calendar/cal-menu.el
@@ -52,7 +52,7 @@
52 ["Insert Anniversary" diary-insert-anniversary-entry] 52 ["Insert Anniversary" diary-insert-anniversary-entry]
53 ["Insert Block" diary-insert-block-entry] 53 ["Insert Block" diary-insert-block-entry]
54 ["Insert Cyclic" diary-insert-cyclic-entry] 54 ["Insert Cyclic" diary-insert-cyclic-entry]
55 ("Insert Bahá'í" 55 ("Insert Baháí"
56 ["One time" diary-bahai-insert-entry] 56 ["One time" diary-bahai-insert-entry]
57 ["Monthly" diary-bahai-insert-monthly-entry] 57 ["Monthly" diary-bahai-insert-monthly-entry]
58 ["Yearly" diary-bahai-insert-yearly-entry]) 58 ["Yearly" diary-bahai-insert-yearly-entry])
@@ -132,7 +132,7 @@
132 ["Astronomical Date" calendar-astro-goto-day-number] 132 ["Astronomical Date" calendar-astro-goto-day-number]
133 ["Hebrew Date" calendar-hebrew-goto-date] 133 ["Hebrew Date" calendar-hebrew-goto-date]
134 ["Persian Date" calendar-persian-goto-date] 134 ["Persian Date" calendar-persian-goto-date]
135 ["Bahá'í Date" calendar-bahai-goto-date] 135 ["Baháí Date" calendar-bahai-goto-date]
136 ["Islamic Date" calendar-islamic-goto-date] 136 ["Islamic Date" calendar-islamic-goto-date]
137 ["Julian Date" calendar-julian-goto-date] 137 ["Julian Date" calendar-julian-goto-date]
138 ["Chinese Date" calendar-chinese-goto-date] 138 ["Chinese Date" calendar-chinese-goto-date]
diff --git a/lisp/calendar/cal-tex.el b/lisp/calendar/cal-tex.el
index e2e9182d626..e512faef15e 100644
--- a/lisp/calendar/cal-tex.el
+++ b/lisp/calendar/cal-tex.el
@@ -1602,7 +1602,7 @@ informative header, and run HOOK."
1602 (goto-char (point-min)) 1602 (goto-char (point-min))
1603 (when (search-forward "documentclass" nil t) 1603 (when (search-forward "documentclass" nil t)
1604 (forward-line 1) 1604 (forward-line 1)
1605 ;; Eg for some Bahai holidays. 1605 ;; E.g., for some Bahá’í holidays.
1606 ;; FIXME latin1 might not always be right. 1606 ;; FIXME latin1 might not always be right.
1607 (insert "\\usepackage[latin1]{inputenc}\n")))) 1607 (insert "\\usepackage[latin1]{inputenc}\n"))))
1608 (latex-mode) 1608 (latex-mode)
diff --git a/lisp/calendar/calendar.el b/lisp/calendar/calendar.el
index 07977afc397..86e5477aa6f 100644
--- a/lisp/calendar/calendar.el
+++ b/lisp/calendar/calendar.el
@@ -42,7 +42,7 @@
42;; can be translated from the (usual) Gregorian calendar to the day of 42;; can be translated from the (usual) Gregorian calendar to the day of
43;; the year/days remaining in year, to the ISO commercial calendar, to 43;; the year/days remaining in year, to the ISO commercial calendar, to
44;; the Julian (old style) calendar, to the Hebrew calendar, to the 44;; the Julian (old style) calendar, to the Hebrew calendar, to the
45;; Islamic calendar, to the Bahá'í calendar, to the French 45;; Islamic calendar, to the Baháí calendar, to the French
46;; Revolutionary calendar, to the Mayan calendar, to the Chinese 46;; Revolutionary calendar, to the Mayan calendar, to the Chinese
47;; calendar, to the Coptic calendar, to the Ethiopic calendar, and to 47;; calendar, to the Coptic calendar, to the Ethiopic calendar, and to
48;; the astronomical (Julian) day number. Times of sunrise/sunset can 48;; the astronomical (Julian) day number. Times of sunrise/sunset can
@@ -53,7 +53,7 @@
53;; The following files are part of the calendar/diary code: 53;; The following files are part of the calendar/diary code:
54 54
55;; appt.el Appointment notification 55;; appt.el Appointment notification
56;; cal-bahai.el Bahá'í calendar 56;; cal-bahai.el Baháí calendar
57;; cal-china.el Chinese calendar 57;; cal-china.el Chinese calendar
58;; cal-coptic.el Coptic/Ethiopic calendars 58;; cal-coptic.el Coptic/Ethiopic calendars
59;; cal-dst.el Daylight saving time rules 59;; cal-dst.el Daylight saving time rules
@@ -375,7 +375,7 @@ When this expression is evaluated, DAY, MONTH, and YEAR are
375integers appropriate to the relevant date. For example, to 375integers appropriate to the relevant date. For example, to
376display the ISO date: 376display the ISO date:
377 377
378 (setq calendar-date-echo-text '(format \"ISO date: %s\" 378 (setq calendar-date-echo-text \\='(format \"ISO date: %s\"
379 (calendar-iso-date-string 379 (calendar-iso-date-string
380 (list month day year)))) 380 (list month day year))))
381Changing this variable without using customize has no effect on 381Changing this variable without using customize has no effect on
@@ -655,7 +655,7 @@ causes the diary entry \"Vacation\" to appear from November 1 through
655November 10, 1990. See the documentation for the function 655November 10, 1990. See the documentation for the function
656`diary-list-sexp-entries' for more details. 656`diary-list-sexp-entries' for more details.
657 657
658Diary entries based on the Hebrew, the Islamic and/or the Bahá'í 658Diary entries based on the Hebrew, the Islamic and/or the Baháí
659calendar are also possible, but because these are somewhat slow, they 659calendar are also possible, but because these are somewhat slow, they
660are ignored unless you set the `diary-nongregorian-listing-hook' and 660are ignored unless you set the `diary-nongregorian-listing-hook' and
661the `diary-nongregorian-marking-hook' appropriately. See the 661the `diary-nongregorian-marking-hook' appropriately. See the
@@ -690,7 +690,7 @@ details, see the documentation for the variable `diary-list-entries-hook'."
690 :group 'diary) 690 :group 'diary)
691 691
692(defcustom diary-bahai-entry-symbol "B" 692(defcustom diary-bahai-entry-symbol "B"
693 "Symbol indicating a diary entry according to the Bahá'í calendar." 693 "Symbol indicating a diary entry according to the Baháí calendar."
694 :type 'string 694 :type 'string
695 :group 'diary) 695 :group 'diary)
696 696
@@ -1013,9 +1013,9 @@ calendar."
1013 :group 'holidays) 1013 :group 'holidays)
1014 1014
1015(defcustom calendar-bahai-all-holidays-flag nil 1015(defcustom calendar-bahai-all-holidays-flag nil
1016 "If nil, show only major holidays from the Bahá'í calendar. 1016 "If nil, show only major holidays from the Baháí calendar.
1017These are the days on which work and school must be suspended. 1017These are the days on which work and school must be suspended.
1018Otherwise, show all the holidays that would appear in a complete Bahá'í 1018Otherwise, show all the holidays that would appear in a complete Baháí
1019calendar." 1019calendar."
1020 :type 'boolean 1020 :type 'boolean
1021 :group 'holidays) 1021 :group 'holidays)
@@ -1708,13 +1708,13 @@ remaining in the year, and the ISO week/year numbers:
1708 1708
1709 (list 1709 (list
1710 \"\" 1710 \"\"
1711 '(calendar-hebrew-date-string date) 1711 \\='(calendar-hebrew-date-string date)
1712 '(let* ((year (calendar-extract-year date)) 1712 \\='(let* ((year (calendar-extract-year date))
1713 (d (calendar-day-number date)) 1713 (d (calendar-day-number date))
1714 (days-remaining 1714 (days-remaining
1715 (- (calendar-day-number (list 12 31 year)) d))) 1715 (- (calendar-day-number (list 12 31 year)) d)))
1716 (format \"%d/%d\" d days-remaining)) 1716 (format \"%d/%d\" d days-remaining))
1717 '(let* ((d (calendar-absolute-from-gregorian date)) 1717 \\='(let* ((d (calendar-absolute-from-gregorian date))
1718 (iso-date (calendar-iso-from-absolute d))) 1718 (iso-date (calendar-iso-from-absolute d)))
1719 (format \"ISO week %d of %d\" 1719 (format \"ISO week %d of %d\"
1720 (calendar-extract-month iso-date) 1720 (calendar-extract-month iso-date)
@@ -2571,7 +2571,7 @@ DATE is (month day year). Calendars that do not apply are omitted."
2571 (unless (string-equal 2571 (unless (string-equal
2572 (setq odate (calendar-bahai-date-string date)) 2572 (setq odate (calendar-bahai-date-string date))
2573 "") 2573 "")
2574 (format "Bahá'í date: %s" odate)) 2574 (format "Baháí date: %s" odate))
2575 (format "Chinese date: %s" 2575 (format "Chinese date: %s"
2576 (calendar-chinese-date-string date)) 2576 (calendar-chinese-date-string date))
2577 (unless (string-equal 2577 (unless (string-equal
diff --git a/lisp/calendar/diary-lib.el b/lisp/calendar/diary-lib.el
index b21fc687144..a1370bbc5e3 100644
--- a/lisp/calendar/diary-lib.el
+++ b/lisp/calendar/diary-lib.el
@@ -300,7 +300,7 @@ expressions that can involve the keywords `days' (a number), `date'
300 300
301(defcustom diary-abbreviated-year-flag t 301(defcustom diary-abbreviated-year-flag t
302 "Interpret a two-digit year DD in a diary entry as either 19DD or 20DD. 302 "Interpret a two-digit year DD in a diary entry as either 19DD or 20DD.
303This applies to the Gregorian, Hebrew, Islamic, and Bahá'í calendars. 303This applies to the Gregorian, Hebrew, Islamic, and Baháí calendars.
304When the current century is added to a two-digit year, if the result 304When the current century is added to a two-digit year, if the result
305is more than 50 years in the future, the previous century is assumed. 305is more than 50 years in the future, the previous century is assumed.
306If the result is more than 50 years in the past, the next century is assumed. 306If the result is more than 50 years in the past, the next century is assumed.
@@ -484,8 +484,8 @@ If so, return the expanded file name, otherwise signal an error."
484 (if (and diary-file (file-exists-p diary-file)) 484 (if (and diary-file (file-exists-p diary-file))
485 (if (file-readable-p diary-file) 485 (if (file-readable-p diary-file)
486 diary-file 486 diary-file
487 (error "Diary file %s is not readable" diary-file)) 487 (error "Diary file `%s' is not readable" diary-file))
488 (error "Diary file %s does not exist" diary-file))) 488 (error "Diary file `%s' does not exist" diary-file)))
489 489
490;;;###autoload 490;;;###autoload
491(defun diary (&optional arg) 491(defun diary (&optional arg)
@@ -1199,7 +1199,7 @@ ensure that all relevant variables are set.
1199" 1199"
1200 (interactive "P") 1200 (interactive "P")
1201 (if (string-equal diary-mail-addr "") 1201 (if (string-equal diary-mail-addr "")
1202 (user-error "You must set diary-mail-addr to use this command") 1202 (user-error "You must set `diary-mail-addr' to use this command")
1203 (let ((diary-display-function 'diary-fancy-display)) 1203 (let ((diary-display-function 'diary-fancy-display))
1204 (diary-list-entries (calendar-current-date) (or ndays diary-mail-days))) 1204 (diary-list-entries (calendar-current-date) (or ndays diary-mail-days)))
1205 (compose-mail diary-mail-addr 1205 (compose-mail diary-mail-addr
@@ -1531,7 +1531,7 @@ passed to `calendar-mark-visible-date' as MARK."
1531 (calendar-mark-month m y month day year color) 1531 (calendar-mark-month m y month day year color)
1532 (calendar-increment-month m y 1))))) 1532 (calendar-increment-month m y 1)))))
1533 1533
1534;; Bahai, Hebrew, Islamic. 1534;; Bahá’í, Hebrew, Islamic.
1535(defun calendar-mark-complex (month day year fromabs &optional color) 1535(defun calendar-mark-complex (month day year fromabs &optional color)
1536 "Mark dates in the calendar conforming to MONTH DAY YEAR of some system. 1536 "Mark dates in the calendar conforming to MONTH DAY YEAR of some system.
1537The function FROMABS converts absolute dates to the appropriate date system. 1537The function FROMABS converts absolute dates to the appropriate date system.
@@ -1561,7 +1561,7 @@ Optional argument COLOR is passed to `calendar-mark-visible-date' as MARK."
1561 (calendar-mark-visible-date 1561 (calendar-mark-visible-date
1562 (calendar-gregorian-from-absolute date) color))))) 1562 (calendar-gregorian-from-absolute date) color)))))
1563 1563
1564;; Bahai, Islamic. 1564;; Bahá’í, Islamic.
1565(defun calendar-mark-1 (month day year fromabs toabs &optional color) 1565(defun calendar-mark-1 (month day year fromabs toabs &optional color)
1566 "Mark dates in the calendar conforming to MONTH DAY YEAR of some system. 1566 "Mark dates in the calendar conforming to MONTH DAY YEAR of some system.
1567The function FROMABS converts absolute dates to the appropriate date system. 1567The function FROMABS converts absolute dates to the appropriate date system.
@@ -1659,8 +1659,8 @@ on a weekend:
1659 &%%(let ((dayname (calendar-day-of-week date)) 1659 &%%(let ((dayname (calendar-day-of-week date))
1660 (day (calendar-extract-day date))) 1660 (day (calendar-extract-day date)))
1661 (or 1661 (or
1662 (and (= day 21) (memq dayname '(1 2 3 4 5))) 1662 (and (= day 21) (memq dayname \\='(1 2 3 4 5)))
1663 (and (memq day '(19 20)) (= dayname 5))) 1663 (and (memq day \\='(19 20)) (= dayname 5)))
1664 ) UIUC pay checks deposited 1664 ) UIUC pay checks deposited
1665 1665
1666A number of built-in functions are available for this type of 1666A number of built-in functions are available for this type of
@@ -2529,7 +2529,7 @@ entry is found the user is asked to confirm its addition."
2529 #'diary-from-outlook-rmail) 2529 #'diary-from-outlook-rmail)
2530 ((memq major-mode '(gnus-summary-mode gnus-article-mode)) 2530 ((memq major-mode '(gnus-summary-mode gnus-article-mode))
2531 #'diary-from-outlook-gnus) 2531 #'diary-from-outlook-gnus)
2532 (t (error "Don't know how to snarf in %s" major-mode))))) 2532 (t (error "Don't know how to snarf in `%s'" major-mode)))))
2533 (funcall func noconfirm))) 2533 (funcall func noconfirm)))
2534 2534
2535(provide 'diary-lib) 2535(provide 'diary-lib)
diff --git a/lisp/calendar/holidays.el b/lisp/calendar/holidays.el
index d282d74392a..bd3a558dc2c 100644
--- a/lisp/calendar/holidays.el
+++ b/lisp/calendar/holidays.el
@@ -173,15 +173,15 @@ See the documentation for `calendar-holidays' for details."
173 '((holiday-bahai-new-year) 173 '((holiday-bahai-new-year)
174 (holiday-bahai-ridvan) ; respects calendar-bahai-all-holidays-flag 174 (holiday-bahai-ridvan) ; respects calendar-bahai-all-holidays-flag
175 (holiday-fixed 5 23 "Declaration of the Báb") 175 (holiday-fixed 5 23 "Declaration of the Báb")
176 (holiday-fixed 5 29 "Ascension of Bahá'u'lláh") 176 (holiday-fixed 5 29 "Ascension of Baháulláh")
177 (holiday-fixed 7 9 "Martyrdom of the Báb") 177 (holiday-fixed 7 9 "Martyrdom of the Báb")
178 (holiday-fixed 10 20 "Birth of the Báb") 178 (holiday-fixed 10 20 "Birth of the Báb")
179 (holiday-fixed 11 12 "Birth of Bahá'u'lláh") 179 (holiday-fixed 11 12 "Birth of Baháulláh")
180 (if calendar-bahai-all-holidays-flag 180 (if calendar-bahai-all-holidays-flag
181 (append 181 (append
182 (holiday-fixed 11 26 "Day of the Covenant") 182 (holiday-fixed 11 26 "Day of the Covenant")
183 (holiday-fixed 11 28 "Ascension of `Abdu'l-Bahá"))))) 183 (holiday-fixed 11 28 "Ascension of `Abdul-Bahá")))))
184 "Bahá'í holidays. 184 "Baháí holidays.
185See the documentation for `calendar-holidays' for details." 185See the documentation for `calendar-holidays' for details."
186 :type 'sexp 186 :type 'sexp
187 :group 'holidays) 187 :group 'holidays)
@@ -254,7 +254,7 @@ Several basic functions are provided for this purpose:
254 K>0, and MONTH's last day otherwise. 254 K>0, and MONTH's last day otherwise.
255 (holiday-hebrew MONTH DAY STRING) a fixed date on the Hebrew calendar 255 (holiday-hebrew MONTH DAY STRING) a fixed date on the Hebrew calendar
256 (holiday-islamic MONTH DAY STRING) a fixed date on the Islamic calendar 256 (holiday-islamic MONTH DAY STRING) a fixed date on the Islamic calendar
257 (holiday-bahai MONTH DAY STRING) a fixed date on the Bahá'í calendar 257 (holiday-bahai MONTH DAY STRING) a fixed date on the Baháí calendar
258 (holiday-julian MONTH DAY STRING) a fixed date on the Julian calendar 258 (holiday-julian MONTH DAY STRING) a fixed date on the Julian calendar
259 (holiday-sexp SEXP STRING) SEXP is a Gregorian-date-valued expression 259 (holiday-sexp SEXP STRING) SEXP is a Gregorian-date-valued expression
260 in the variable `year'; if it evaluates to 260 in the variable `year'; if it evaluates to
@@ -282,11 +282,11 @@ To add the Islamic feast celebrating Mohammed's birthday, use
282 (holiday-islamic 3 12 \"Mohammed's Birthday\") 282 (holiday-islamic 3 12 \"Mohammed's Birthday\")
283 283
284since the Islamic months are numbered from 1 starting with Muharram. 284since the Islamic months are numbered from 1 starting with Muharram.
285To add an entry for the Bahá'í festival of Ridvan, use 285To add an entry for the Baháí festival of Ridvan, use
286 286
287 (holiday-bahai 2 13 \"Festival of Ridvan\") 287 (holiday-bahai 2 13 \"Festival of Ridvan\")
288 288
289since the Bahá'í months are numbered from 1 starting with Bahá. 289since the Baháí months are numbered from 1 starting with Bahá.
290To add Thomas Jefferson's birthday, April 2, 1743 (Julian), use 290To add Thomas Jefferson's birthday, April 2, 1743 (Julian), use
291 291
292 (holiday-julian 4 2 \"Jefferson's Birthday\") 292 (holiday-julian 4 2 \"Jefferson's Birthday\")
@@ -296,7 +296,7 @@ example, to include American presidential elections, which occur on the first
296Tuesday after the first Monday in November of years divisible by 4, add 296Tuesday after the first Monday in November of years divisible by 4, add
297 297
298 (holiday-sexp 298 (holiday-sexp
299 '(if (zerop (% year 4)) 299 \\='(if (zerop (% year 4))
300 (calendar-gregorian-from-absolute 300 (calendar-gregorian-from-absolute
301 (1+ (calendar-dayname-on-or-before 301 (1+ (calendar-dayname-on-or-before
302 1 (+ 6 (calendar-absolute-from-gregorian 302 1 (+ 6 (calendar-absolute-from-gregorian
@@ -460,7 +460,7 @@ The optional LABEL is used to label the buffer created."
460 (if holiday-islamic-holidays 460 (if holiday-islamic-holidays
461 (cons "Islamic" holiday-islamic-holidays)) 461 (cons "Islamic" holiday-islamic-holidays))
462 (if holiday-bahai-holidays 462 (if holiday-bahai-holidays
463 (cons "Bahá'í" holiday-bahai-holidays)) 463 (cons "Baháí" holiday-bahai-holidays))
464 (if holiday-oriental-holidays 464 (if holiday-oriental-holidays
465 (cons "Oriental" holiday-oriental-holidays)) 465 (cons "Oriental" holiday-oriental-holidays))
466 (if holiday-solar-holidays 466 (if holiday-solar-holidays
diff --git a/lisp/calendar/icalendar.el b/lisp/calendar/icalendar.el
index b75e4423080..4b71530febb 100644
--- a/lisp/calendar/icalendar.el
+++ b/lisp/calendar/icalendar.el
@@ -482,7 +482,7 @@ children."
482 result)) 482 result))
483 483
484(defun icalendar--split-value (value-string) 484(defun icalendar--split-value (value-string)
485 "Split VALUE-STRING at ;=." 485 "Split VALUE-STRING at `;='."
486 (let ((result '()) 486 (let ((result '())
487 param-name param-value) 487 param-name param-value)
488 (when value-string 488 (when value-string
@@ -1118,7 +1118,7 @@ FExport diary data into iCalendar file: ")
1118 (setq found-error t) 1118 (setq found-error t)
1119 (save-current-buffer 1119 (save-current-buffer
1120 (set-buffer (get-buffer-create "*icalendar-errors*")) 1120 (set-buffer (get-buffer-create "*icalendar-errors*"))
1121 (insert (format-message "Error in line %d -- %s: %s\n" 1121 (insert (format-message "Error in line %d -- %s: `%s'\n"
1122 (count-lines (point-min) (point)) 1122 (count-lines (point-min) (point))
1123 error-val 1123 error-val
1124 entry-main)))))) 1124 entry-main))))))
@@ -1741,7 +1741,7 @@ entries. ENTRY-MAIN is the first line of the diary entry."
1741 (when day 1741 (when day
1742 (progn 1742 (progn
1743 (icalendar--dmsg "diary-float %s" entry-main) 1743 (icalendar--dmsg "diary-float %s" entry-main)
1744 (error "Don't know if or how to implement day in diary-float"))) 1744 (error "Don't know if or how to implement day in `diary-float'")))
1745 1745
1746 (cons (concat 1746 (cons (concat
1747 ;;Start today (yes this is an arbitrary choice): 1747 ;;Start today (yes this is an arbitrary choice):
@@ -1788,7 +1788,7 @@ entries. ENTRY-MAIN is the first line of the diary entry."
1788 entry-main) 1788 entry-main)
1789 (progn 1789 (progn
1790 (icalendar--dmsg "diary-date %s" entry-main) 1790 (icalendar--dmsg "diary-date %s" entry-main)
1791 (error "diary-date is not supported yet")) 1791 (error "`diary-date' is not supported yet"))
1792 ;; no match 1792 ;; no match
1793 nil)) 1793 nil))
1794 1794
@@ -2104,7 +2104,7 @@ written into the buffer `*icalendar-errors*'."
2104 (rrule (icalendar--get-event-property e 'RRULE)) 2104 (rrule (icalendar--get-event-property e 'RRULE))
2105 (rdate (icalendar--get-event-property e 'RDATE)) 2105 (rdate (icalendar--get-event-property e 'RDATE))
2106 (duration (icalendar--get-event-property e 'DURATION))) 2106 (duration (icalendar--get-event-property e 'DURATION)))
2107 (icalendar--dmsg "%s: %s" start-d summary) 2107 (icalendar--dmsg "%s: `%s'" start-d summary)
2108 ;; check whether start-time is missing 2108 ;; check whether start-time is missing
2109 (if (and dtstart 2109 (if (and dtstart
2110 (string= 2110 (string=
@@ -2282,7 +2282,7 @@ END-T is the event's end time in diary format."
2282 interval)))) 2282 interval))))
2283 ) 2283 )
2284 (t 2284 (t
2285 (message "Cannot handle COUNT attribute for %s events." 2285 (message "Cannot handle COUNT attribute for `%s' events."
2286 frequency))) 2286 frequency)))
2287 (setq until-conv (icalendar--datetime-to-diary-date until)) 2287 (setq until-conv (icalendar--datetime-to-diary-date until))
2288 (setq until-1-conv (icalendar--datetime-to-diary-date until-1)) 2288 (setq until-1-conv (icalendar--datetime-to-diary-date until-1))
@@ -2473,7 +2473,7 @@ SUMMARY is not nil it must be a string that gives the summary of the
2473entry. In this case the user will be asked whether he wants to insert 2473entry. In this case the user will be asked whether he wants to insert
2474the entry." 2474the entry."
2475 (when (or (not summary) 2475 (when (or (not summary)
2476 (y-or-n-p (format-message "Add appointment for %s to diary? " 2476 (y-or-n-p (format-message "Add appointment for `%s' to diary? "
2477 summary))) 2477 summary)))
2478 (when summary 2478 (when summary
2479 (setq non-marking 2479 (setq non-marking
diff --git a/lisp/calendar/time-date.el b/lisp/calendar/time-date.el
index c13ef97c6b9..bb7e97ea7f3 100644
--- a/lisp/calendar/time-date.el
+++ b/lisp/calendar/time-date.el
@@ -377,9 +377,9 @@ This function does not work for SECONDS greater than `most-positive-fixnum'."
377 spec (match-string 1 string)) 377 spec (match-string 1 string))
378 (unless (string-equal spec "%") 378 (unless (string-equal spec "%")
379 (or (setq match (assoc (downcase spec) units)) 379 (or (setq match (assoc (downcase spec) units))
380 (error "Bad format specifier: %s" spec)) 380 (error "Bad format specifier: `%s'" spec))
381 (if (assoc (downcase spec) usedunits) 381 (if (assoc (downcase spec) usedunits)
382 (error "Multiple instances of specifier: %s" spec)) 382 (error "Multiple instances of specifier: `%s'" spec))
383 (if (string-equal (car match) "z") 383 (if (string-equal (car match) "z")
384 (setq zeroflag t) 384 (setq zeroflag t)
385 (unless larger 385 (unless larger
diff --git a/lisp/calendar/timeclock.el b/lisp/calendar/timeclock.el
index 797f2173e52..67fc4c546ff 100644
--- a/lisp/calendar/timeclock.el
+++ b/lisp/calendar/timeclock.el
@@ -305,8 +305,8 @@ display (non-nil means on)."
305 ;; on calling this function. 305 ;; on calling this function.
306 (if display-time-mode 306 (if display-time-mode
307 (timeclock-update-mode-line) 307 (timeclock-update-mode-line)
308 (message "Activate display-time-mode or turn off \ 308 (message "Activate `display-time-mode' or turn off \
309timeclock-use-display-time to see timeclock information")) 309`timeclock-use-display-time' to see timeclock information"))
310 (add-hook 'display-time-hook 'timeclock-update-mode-line)) 310 (add-hook 'display-time-hook 'timeclock-update-mode-line))
311 (setq timeclock-update-timer 311 (setq timeclock-update-timer
312 (run-at-time nil 60 'timeclock-update-mode-line)))) 312 (run-at-time nil 60 'timeclock-update-mode-line))))
@@ -575,7 +575,7 @@ relative only to the time worked today, and not to past time."
575OLD-DEFAULT hours are set for every day that has no number indicated." 575OLD-DEFAULT hours are set for every day that has no number indicated."
576 (interactive "P") 576 (interactive "P")
577 (if old-default (setq old-default (prefix-numeric-value old-default)) 577 (if old-default (setq old-default (prefix-numeric-value old-default))
578 (error "timelog-make-hours-explicit requires an explicit argument")) 578 (error "`timelog-make-hours-explicit' requires an explicit argument"))
579 (let ((extant-timelog (find-buffer-visiting timeclock-file)) 579 (let ((extant-timelog (find-buffer-visiting timeclock-file))
580 current-date) 580 current-date)
581 (with-current-buffer (find-file-noselect timeclock-file t) 581 (with-current-buffer (find-file-noselect timeclock-file t)
@@ -589,7 +589,7 @@ OLD-DEFAULT hours are set for every day that has no number indicated."
589 (unless (looking-at 589 (unless (looking-at
590 (concat "^\\([bhioO]\\) \\([0-9]+/[0-9]+/[0-9]+\\) " 590 (concat "^\\([bhioO]\\) \\([0-9]+/[0-9]+/[0-9]+\\) "
591 "\\([0-9]+:[0-9]+:[0-9]+\\)")) 591 "\\([0-9]+:[0-9]+:[0-9]+\\)"))
592 (error "Can't parse %s" timeclock-file)) 592 (error "Can't parse `%s'" timeclock-file))
593 (let ((this-date (match-string 2))) 593 (let ((this-date (match-string 2)))
594 (unless (or (and current-date 594 (unless (or (and current-date
595 (string= this-date current-date)) 595 (string= this-date current-date))
@@ -919,7 +919,7 @@ following format:
919 (DEBT ENTRIES-BY-DAY ENTRIES-BY-PROJECT) 919 (DEBT ENTRIES-BY-DAY ENTRIES-BY-PROJECT)
920 920
921DEBT is a floating point number representing the number of seconds 921DEBT is a floating point number representing the number of seconds
922“owed” before any work was done. For a new file (one without a b 922“owed” before any work was done. For a new file (one without a `b'
923entry), this is always zero. 923entry), this is always zero.
924 924
925The two entries lists have similar formats. They are both alists, 925The two entries lists have similar formats. They are both alists,
diff --git a/lisp/calendar/todo-mode.el b/lisp/calendar/todo-mode.el
index 83f2fedf25b..a04bf8237d9 100644
--- a/lisp/calendar/todo-mode.el
+++ b/lisp/calendar/todo-mode.el
@@ -238,7 +238,7 @@ The final element is \"*\", indicating an unspecified month.")
238 (widget-put 238 (widget-put
239 widget :error 239 widget :error
240 (format-message 240 (format-message
241 "Invalid value: must be distinct from todo-item-mark")) 241 "Invalid value: must be distinct from `todo-item-mark'"))
242 widget))) 242 widget)))
243 :initialize 'custom-initialize-default 243 :initialize 'custom-initialize-default
244 :set 'todo-reset-prefix 244 :set 'todo-reset-prefix
@@ -1343,12 +1343,13 @@ todo or done items."
1343 "deleting it will also delete the file.\n" 1343 "deleting it will also delete the file.\n"
1344 "Do you want to proceed? "))) 1344 "Do you want to proceed? ")))
1345 ((> archived 0) 1345 ((> archived 0)
1346 (todo-y-or-n-p (concat "This category has archived items; " 1346 (todo-y-or-n-p (format-message
1347 (concat "This category has archived items; "
1347 "the archived category will remain\n" 1348 "the archived category will remain\n"
1348 "after deleting the todo category. " 1349 "after deleting the todo category. "
1349 "Do you still want to delete it\n" 1350 "Do you still want to delete it\n"
1350 "(see todo-skip-archived-categories " 1351 "(see `todo-skip-archived-categories' "
1351 "for another option)? "))) 1352 "for another option)? "))))
1352 (t 1353 (t
1353 (todo-y-or-n-p (concat "Permanently remove category \"" cat 1354 (todo-y-or-n-p (concat "Permanently remove category \"" cat
1354 "\"" (and arg " and all its entries") 1355 "\"" (and arg " and all its entries")
@@ -1696,7 +1697,7 @@ only when no items are marked."
1696 (widget-put 1697 (widget-put
1697 widget :error 1698 widget :error
1698 (format-message 1699 (format-message
1699 "Invalid value: must be distinct from todo-prefix")) 1700 "Invalid value: must be distinct from `todo-prefix'"))
1700 widget))) 1701 widget)))
1701 :set (lambda (symbol value) 1702 :set (lambda (symbol value)
1702 (custom-set-default symbol (propertize value 'face 'todo-mark))) 1703 (custom-set-default symbol (propertize value 'face 'todo-mark)))
@@ -5036,7 +5037,7 @@ but the categories sexp differs from the current value of
5036 ;; Warn user if categories sexp has changed. 5037 ;; Warn user if categories sexp has changed.
5037 (unless (string= ssexp cats) 5038 (unless (string= ssexp cats)
5038 (message (concat "The sexp at the beginning of the file differs " 5039 (message (concat "The sexp at the beginning of the file differs "
5039 "from the value of todo-categories.\n" 5040 "from the value of `todo-categories'.\n"
5040 "If the sexp is wrong, you can fix it with " 5041 "If the sexp is wrong, you can fix it with "
5041 "M-x todo-repair-categories-sexp,\n" 5042 "M-x todo-repair-categories-sexp,\n"
5042 "but note this reverts any changes you have " 5043 "but note this reverts any changes you have "
@@ -5533,7 +5534,7 @@ already entered and those still available."
5533 (todo-insert-item--this-key) 5534 (todo-insert-item--this-key)
5534 todo-insert-item--argsleft))))))))) 5535 todo-insert-item--argsleft)))))))))
5535 (setq todo-insert-item--argsleft todo-insert-item--newargsleft)) 5536 (setq todo-insert-item--argsleft todo-insert-item--newargsleft))
5536 (when prompt (message "Press a key (so far %s): %s" 5537 (when prompt (message "Press a key (so far `%s'): %s"
5537 todo-insert-item--keys-so-far prompt)) 5538 todo-insert-item--keys-so-far prompt))
5538 (set-transient-map map) 5539 (set-transient-map map)
5539 (setq todo-insert-item--argsleft argsleft))) 5540 (setq todo-insert-item--argsleft argsleft)))
@@ -5576,7 +5577,8 @@ already entered and those still available."
5576 '(add/edit delete)) 5577 '(add/edit delete))
5577 " comment")))) 5578 " comment"))))
5578 params " ")) 5579 params " "))
5579 (this-key (let ((key (read-key (concat todo-edit-item--prompt p->k)))) 5580 (key-prompt (substitute-command-keys todo-edit-item--prompt))
5581 (this-key (let ((key (read-key (concat key-prompt p->k))))
5580 (and (characterp key) (char-to-string key)))) 5582 (and (characterp key) (char-to-string key))))
5581 (this-param (car (rassoc this-key params)))) 5583 (this-param (car (rassoc this-key params))))
5582 (pcase this-param 5584 (pcase this-param
@@ -5587,7 +5589,7 @@ already entered and those still available."
5587 (`delete (todo-edit-item--text 'comment-delete)) 5589 (`delete (todo-edit-item--text 'comment-delete))
5588 (`diary (todo-edit-item--diary-inclusion)) 5590 (`diary (todo-edit-item--diary-inclusion))
5589 (`nonmarking (todo-edit-item--diary-inclusion 'nonmarking)) 5591 (`nonmarking (todo-edit-item--diary-inclusion 'nonmarking))
5590 (`date (let ((todo-edit-item--prompt "Press a key (so far e d): ")) 5592 (`date (let ((todo-edit-item--prompt "Press a key (so far `e d'): "))
5591 (todo-edit-item--next-key 5593 (todo-edit-item--next-key
5592 todo-edit-item--date-param-key-alist arg))) 5594 todo-edit-item--date-param-key-alist arg)))
5593 (`full (progn (todo-edit-item--header 'date) 5595 (`full (progn (todo-edit-item--header 'date)
@@ -6602,7 +6604,7 @@ Added to `window-configuration-change-hook' in Todo mode."
6602 (if (called-interactively-p 'any) 6604 (if (called-interactively-p 'any)
6603 (message "%s" 6605 (message "%s"
6604 (substitute-command-keys 6606 (substitute-command-keys
6605 "Type \\[todo-show] to enter Todo mode")) 6607 "Type `\\[todo-show]' to enter Todo mode"))
6606 (todo-modes-set-1) 6608 (todo-modes-set-1)
6607 (todo-modes-set-2) 6609 (todo-modes-set-2)
6608 (todo-modes-set-3) 6610 (todo-modes-set-3)
diff --git a/lisp/cedet/cedet-global.el b/lisp/cedet/cedet-global.el
index 9e311776261..3773ba09f32 100644
--- a/lisp/cedet/cedet-global.el
+++ b/lisp/cedet/cedet-global.el
@@ -36,7 +36,7 @@
36 36
37(defcustom cedet-global-gtags-command "gtags" 37(defcustom cedet-global-gtags-command "gtags"
38 "Command name for the GNU Global gtags executable. 38 "Command name for the GNU Global gtags executable.
39GTAGS is used to create the tags table queried by the global command." 39GTAGS is used to create the tags table queried by the `global' command."
40 :type 'string 40 :type 'string
41 :group 'cedet) 41 :group 'cedet)
42 42
diff --git a/lisp/cedet/ede.el b/lisp/cedet/ede.el
index 7d99b179112..27d7abe540e 100644
--- a/lisp/cedet/ede.el
+++ b/lisp/cedet/ede.el
@@ -764,7 +764,7 @@ Optional argument NAME is the name to give this project."
764 (if cs 764 (if cs
765 (error "No valid interactive sub project types for %s" 765 (error "No valid interactive sub project types for %s"
766 cs) 766 cs)
767 (error "EDE error: Can't fin project types to create"))) 767 (error "EDE error: Can't find project types to create")))
768 r) 768 r)
769 ) 769 )
770 nil t))) 770 nil t)))
diff --git a/lisp/cedet/ede/auto.el b/lisp/cedet/ede/auto.el
index 51459fa7e74..b4fea421447 100644
--- a/lisp/cedet/ede/auto.el
+++ b/lisp/cedet/ede/auto.el
@@ -239,9 +239,9 @@ type is required and the load function used.")
239 "Add PROJAUTO, an EDE autoload definition to `ede-project-class-files'. 239 "Add PROJAUTO, an EDE autoload definition to `ede-project-class-files'.
240Optional argument FLAG indicates how this autoload should be 240Optional argument FLAG indicates how this autoload should be
241added. Possible values are: 241added. Possible values are:
242 'generic - A generic project type. Keep this at the very end. 242 `generic' - A generic project type. Keep this at the very end.
243 'unique - A unique project type for a specific project. Keep at the very 243 `unique' - A unique project type for a specific project. Keep at the very
244 front of the list so more generic projects don't get priority." 244 front of the list so more generic projects don't get priority."
245 ;; First, can we identify PROJAUTO as already in the list? If so, replace. 245 ;; First, can we identify PROJAUTO as already in the list? If so, replace.
246 (let ((projlist ede-project-class-files) 246 (let ((projlist ede-project-class-files)
247 (projname (oref projauto name))) 247 (projname (oref projauto name)))
diff --git a/lisp/cedet/ede/pmake.el b/lisp/cedet/ede/pmake.el
index 1318fde6e3d..b494e27dc31 100644
--- a/lisp/cedet/ede/pmake.el
+++ b/lisp/cedet/ede/pmake.el
@@ -599,7 +599,7 @@ Argument THIS is the target that should insert stuff."
599 "It needs to be regenerated by EDE.\n" 599 "It needs to be regenerated by EDE.\n"
600 "\t@echo If you have not modified Project.ede, you can" 600 "\t@echo If you have not modified Project.ede, you can"
601 (format-message 601 (format-message
602 " use touch to update the Makefile time stamp.\n") 602 " use `touch' to update the Makefile time stamp.\n")
603 "\t@false\n\n" 603 "\t@false\n\n"
604 "\n\n# End of Makefile\n"))) 604 "\n\n# End of Makefile\n")))
605 605
diff --git a/lisp/cedet/inversion.el b/lisp/cedet/inversion.el
index 8409b73e719..9d07b67e894 100644
--- a/lisp/cedet/inversion.el
+++ b/lisp/cedet/inversion.el
@@ -230,8 +230,8 @@ string. INCOMPATIBLE-VERSION can be nil.
230RESERVED arguments are kept for a later use. 230RESERVED arguments are kept for a later use.
231Return: 231Return:
232- nil if everything is ok. 232- nil if everything is ok.
233- 'outdated if VERSION is less than MINIMUM. 233- `outdated' if VERSION is less than MINIMUM.
234- 'incompatible if VERSION is not backward compatible with MINIMUM. 234- `incompatible' if VERSION is not backward compatible with MINIMUM.
235- t if the check failed." 235- t if the check failed."
236 (let ((code (if (stringp version) 236 (let ((code (if (stringp version)
237 (inversion-decode-version version) 237 (inversion-decode-version version)
diff --git a/lisp/cedet/mode-local.el b/lisp/cedet/mode-local.el
index 72512c6e6bc..64c1f08af22 100644
--- a/lisp/cedet/mode-local.el
+++ b/lisp/cedet/mode-local.el
@@ -50,7 +50,7 @@
50 50
51(require 'find-func) 51(require 'find-func)
52;; For find-function-regexp-alist. It is tempting to replace this 52;; For find-function-regexp-alist. It is tempting to replace this
53;; ‘require by (defvar find-function-regexp-alist) and 53;; ‘require by (defvar find-function-regexp-alist) and
54;; with-eval-after-load, but model-local.el is typically loaded when a 54;; with-eval-after-load, but model-local.el is typically loaded when a
55;; semantic autoload is invoked, and something in semantic loads 55;; semantic autoload is invoked, and something in semantic loads
56;; find-func.el before mode-local.el, so the eval-after-load is lost. 56;; find-func.el before mode-local.el, so the eval-after-load is lost.
@@ -658,7 +658,7 @@ SYMBOL is a function that can be overridden."
658 (override (fetch-overload symbol))) 658 (override (fetch-overload symbol)))
659 659
660 (when override 660 (when override
661 (insert (format-message "\noverride in mode %s: %s\n" 661 (insert (format-message "\noverride in mode `%s': `%s'\n"
662 major-mode override)) 662 major-mode override))
663 ))) 663 )))
664 ))) 664 )))
@@ -760,9 +760,9 @@ META-NAME is a cons (OVERLOADABLE-SYMBOL . MAJOR-MODE)."
760(defun mode-local-print-binding (symbol) 760(defun mode-local-print-binding (symbol)
761 "Print the SYMBOL binding." 761 "Print the SYMBOL binding."
762 (let ((value (symbol-value symbol))) 762 (let ((value (symbol-value symbol)))
763 (princ (format-message "\n %s value is\n " symbol)) 763 (princ (format-message "\n `%s' value is\n " symbol))
764 (if (and value (symbolp value)) 764 (if (and value (symbolp value))
765 (princ (format-message "%s" value)) 765 (princ (format-message "`%s'" value))
766 (let ((pt (point))) 766 (let ((pt (point)))
767 (pp value) 767 (pp value)
768 (save-excursion 768 (save-excursion
@@ -820,7 +820,7 @@ META-NAME is a cons (OVERLOADABLE-SYMBOL . MAJOR-MODE)."
820 ) 820 )
821 ((symbolp buffer-or-mode) 821 ((symbolp buffer-or-mode)
822 (setq mode buffer-or-mode) 822 (setq mode buffer-or-mode)
823 (princ (format-message "%s\n" buffer-or-mode)) 823 (princ (format-message "`%s'\n" buffer-or-mode))
824 ) 824 )
825 ((signal 'wrong-type-argument 825 ((signal 'wrong-type-argument
826 (list 'buffer-or-mode buffer-or-mode)))) 826 (list 'buffer-or-mode buffer-or-mode))))
@@ -830,7 +830,7 @@ META-NAME is a cons (OVERLOADABLE-SYMBOL . MAJOR-MODE)."
830 (while mode 830 (while mode
831 (setq table (get mode 'mode-local-symbol-table)) 831 (setq table (get mode 'mode-local-symbol-table))
832 (when table 832 (when table
833 (princ (format-message "\n- From %s\n" mode)) 833 (princ (format-message "\n- From `%s'\n" mode))
834 (mode-local-print-bindings table)) 834 (mode-local-print-bindings table))
835 (setq mode (get-mode-local-parent mode))))) 835 (setq mode (get-mode-local-parent mode)))))
836 836
diff --git a/lisp/cedet/semantic/analyze.el b/lisp/cedet/semantic/analyze.el
index 7ff69771023..fe888f57767 100644
--- a/lisp/cedet/semantic/analyze.el
+++ b/lisp/cedet/semantic/analyze.el
@@ -251,7 +251,7 @@ are found in SEQUENCE.
251Optional argument THROWSYM specifies a symbol the throw on non-recoverable error. 251Optional argument THROWSYM specifies a symbol the throw on non-recoverable error.
252Remaining arguments FLAGS are additional flags to apply when searching. 252Remaining arguments FLAGS are additional flags to apply when searching.
253This function knows of flags: 253This function knows of flags:
254 'mustbeclassvariable" 254 `mustbeclassvariable'"
255 (let ((s sequence) ; copy of the sequence 255 (let ((s sequence) ; copy of the sequence
256 (tmp nil) ; tmp find variable 256 (tmp nil) ; tmp find variable
257 (tag nil) ; tag return list 257 (tag nil) ; tag return list
@@ -263,7 +263,7 @@ This function knows of flags:
263 ) 263 )
264 ;; First order check. Is this wholly contained in the typecache? 264 ;; First order check. Is this wholly contained in the typecache?
265 (setq tmp (semanticdb-typecache-find sequence)) 265 (setq tmp (semanticdb-typecache-find sequence))
266 266
267 (when tmp 267 (when tmp
268 (if (or (not tagclass) (semantic-tag-of-class-p tmp tagclass)) 268 (if (or (not tagclass) (semantic-tag-of-class-p tmp tagclass))
269 ;; We are effectively done... 269 ;; We are effectively done...
@@ -709,7 +709,7 @@ Returns nil if no alias was found."
709 (when (eq (semantic-tag-get-attribute (car taglist) :kind) 'alias) 709 (when (eq (semantic-tag-get-attribute (car taglist) :kind) 'alias)
710 (let ((tagname 710 (let ((tagname
711 (semantic-analyze-split-name 711 (semantic-analyze-split-name
712 (semantic-tag-name 712 (semantic-tag-name
713 (car (semantic-tag-get-attribute (car taglist) :members)))))) 713 (car (semantic-tag-get-attribute (car taglist) :members))))))
714 (append (if (listp tagname) 714 (append (if (listp tagname)
715 tagname 715 tagname
diff --git a/lisp/cedet/semantic/analyze/complete.el b/lisp/cedet/semantic/analyze/complete.el
index c47b57336c5..680a0ae65bd 100644
--- a/lisp/cedet/semantic/analyze/complete.el
+++ b/lisp/cedet/semantic/analyze/complete.el
@@ -112,9 +112,9 @@ in a buffer."
112Argument CONTEXT is an object specifying the locally derived context. 112Argument CONTEXT is an object specifying the locally derived context.
113The optional argument FLAGS changes which return options are returned. 113The optional argument FLAGS changes which return options are returned.
114FLAGS can be any number of: 114FLAGS can be any number of:
115 'no-tc - do not apply data-type constraint. 115 `no-tc' - do not apply data-type constraint.
116 'no-longprefix - ignore long multi-symbol prefixes. 116 `no-longprefix' - ignore long multi-symbol prefixes.
117 'no-unique - do not apply unique by name filtering." 117 `no-unique' - do not apply unique by name filtering."
118 (let* ((a context) 118 (let* ((a context)
119 (desired-type (semantic-analyze-type-constraint a)) 119 (desired-type (semantic-analyze-type-constraint a))
120 (desired-class (oref a prefixclass)) 120 (desired-class (oref a prefixclass))
diff --git a/lisp/cedet/semantic/bovine/gcc.el b/lisp/cedet/semantic/bovine/gcc.el
index fe7a14451f5..1d3f7730f35 100644
--- a/lisp/cedet/semantic/bovine/gcc.el
+++ b/lisp/cedet/semantic/bovine/gcc.el
@@ -137,9 +137,9 @@ to give to the program."
137 "The GCC setup data. 137 "The GCC setup data.
138This is setup by `semantic-gcc-setup'. 138This is setup by `semantic-gcc-setup'.
139This is an alist, and should include keys of: 139This is an alist, and should include keys of:
140 'version - the version of gcc 140 `version' - the version of gcc
141 '--host - the host symbol (used in include directories) 141 `--host' - the host symbol (used in include directories)
142 '--prefix - where GCC was installed. 142 `--prefix' - where GCC was installed.
143It should also include other symbols GCC was compiled with.") 143It should also include other symbols GCC was compiled with.")
144 144
145;;;###autoload 145;;;###autoload
diff --git a/lisp/cedet/semantic/complete.el b/lisp/cedet/semantic/complete.el
index 9c32388669b..d32b2c4f001 100644
--- a/lisp/cedet/semantic/complete.el
+++ b/lisp/cedet/semantic/complete.el
@@ -1665,7 +1665,7 @@ Display mechanism using tooltip for a list of possible completions.")
1665 (when (>= (oref obj typing-count) 5) 1665 (when (>= (oref obj typing-count) 5)
1666 (oset obj mode 'standard) 1666 (oset obj mode 'standard)
1667 (setq mode 'standard) 1667 (setq mode 'standard)
1668 (message "Resetting inline-mode to standard.")) 1668 (message "Resetting inline-mode to `standard'."))
1669 (when (and (> numcompl max-tags) 1669 (when (and (> numcompl max-tags)
1670 (< (oref obj typing-count) 2)) 1670 (< (oref obj typing-count) 2))
1671 ;; Discretely hint at completion availability. 1671 ;; Discretely hint at completion availability.
@@ -1684,7 +1684,7 @@ Display mechanism using tooltip for a list of possible completions.")
1684 (setq msg-tail (concat "\n[<TAB> " (number-to-string (- numcompl max-tags)) " more]")) 1684 (setq msg-tail (concat "\n[<TAB> " (number-to-string (- numcompl max-tags)) " more]"))
1685 (setq msg-tail (concat "\n[<n/a> " (number-to-string (- numcompl max-tags)) " more]")) 1685 (setq msg-tail (concat "\n[<n/a> " (number-to-string (- numcompl max-tags)) " more]"))
1686 (when (>= (oref obj typing-count) 2) 1686 (when (>= (oref obj typing-count) 2)
1687 (message "Refine search to display results beyond the %s limit" 1687 (message "Refine search to display results beyond the `%s' limit"
1688 (symbol-name 'semantic-complete-inline-max-tags-extended))))) 1688 (symbol-name 'semantic-complete-inline-max-tags-extended)))))
1689 ((= numcompl 1) 1689 ((= numcompl 1)
1690 ;; two possible cases 1690 ;; two possible cases
diff --git a/lisp/cedet/semantic/db-find.el b/lisp/cedet/semantic/db-find.el
index ff3431a17cf..293f535d60b 100644
--- a/lisp/cedet/semantic/db-find.el
+++ b/lisp/cedet/semantic/db-find.el
@@ -297,7 +297,7 @@ refreshed when things change. See `semanticdb-ref-test'.
297Note for overloading: If you opt to overload this function for your 297Note for overloading: If you opt to overload this function for your
298major mode, and your routine takes a long time, be sure to call 298major mode, and your routine takes a long time, be sure to call
299 299
300 (semantic-throw-on-input 'your-symbol-here) 300 (semantic-throw-on-input \\='your-symbol-here)
301 301
302so that it can be called from the idle work handler." 302so that it can be called from the idle work handler."
303 ) 303 )
diff --git a/lisp/cedet/semantic/decorate/include.el b/lisp/cedet/semantic/decorate/include.el
index 962dc49da54..1974e0ade07 100644
--- a/lisp/cedet/semantic/decorate/include.el
+++ b/lisp/cedet/semantic/decorate/include.el
@@ -540,7 +540,7 @@ For C/C++ includes located within a project, you can use a special
540EDE project that will wrap an existing build system. You can do that 540EDE project that will wrap an existing build system. You can do that
541like this in your .emacs file: 541like this in your .emacs file:
542 542
543 (ede-cpp-root-project \"NAME\" :file \"FILENAME\" :locate-fcn 'MYFCN) 543 (ede-cpp-root-project \"NAME\" :file \"FILENAME\" :locate-fcn \\='MYFCN)
544 544
545See the CEDET manual, the EDE manual, or the commentary in 545See the CEDET manual, the EDE manual, or the commentary in
546ede/cpp-root.el for more. 546ede/cpp-root.el for more.
diff --git a/lisp/cedet/semantic/fw.el b/lisp/cedet/semantic/fw.el
index 0e81b2c0ba5..d8ba6f275f3 100644
--- a/lisp/cedet/semantic/fw.el
+++ b/lisp/cedet/semantic/fw.el
@@ -173,10 +173,10 @@ recover the cached data with `semantic-get-cache-data'.
173LIFESPAN indicates how long the data cache will be remembered. 173LIFESPAN indicates how long the data cache will be remembered.
174The default LIFESPAN is 'end-of-command. 174The default LIFESPAN is 'end-of-command.
175Possible Lifespans are: 175Possible Lifespans are:
176 'end-of-command - Remove the cache at the end of the currently 176 `end-of-command' - Remove the cache at the end of the currently
177 executing command. 177 executing command.
178 'exit-cache-zone - Remove when point leaves the overlay at the 178 `exit-cache-zone' - Remove when point leaves the overlay at the
179 end of the currently executing command." 179 end of the currently executing command."
180 ;; Check if LIFESPAN is valid before to create any overlay 180 ;; Check if LIFESPAN is valid before to create any overlay
181 (or lifespan (setq lifespan 'end-of-command)) 181 (or lifespan (setq lifespan 'end-of-command))
182 (or (memq lifespan '(end-of-command exit-cache-zone)) 182 (or (memq lifespan '(end-of-command exit-cache-zone))
diff --git a/lisp/cedet/semantic/java.el b/lisp/cedet/semantic/java.el
index fc02d034dca..829eafae37a 100644
--- a/lisp/cedet/semantic/java.el
+++ b/lisp/cedet/semantic/java.el
@@ -369,7 +369,7 @@ That is @NAME."
369 369
370(defsubst semantic-java-doc-tag-name (tag) 370(defsubst semantic-java-doc-tag-name (tag)
371 "Return name of the doc TAG symbol. 371 "Return name of the doc TAG symbol.
372That is TAG `symbol-name' without the leading @." 372That is TAG `symbol-name' without the leading `@'."
373 (substring (symbol-name tag) 1)) 373 (substring (symbol-name tag) 1))
374 374
375(defun semantic-java-doc-keyword-before-p (k1 k2) 375(defun semantic-java-doc-keyword-before-p (k1 k2)
diff --git a/lisp/cedet/semantic/tag-ls.el b/lisp/cedet/semantic/tag-ls.el
index 40eafd9f160..fe4440b1e1a 100644
--- a/lisp/cedet/semantic/tag-ls.el
+++ b/lisp/cedet/semantic/tag-ls.el
@@ -271,11 +271,11 @@ search locally, then semanticdb for that tag (when enabled.)")
271(define-overloadable-function semantic-tag-protection (tag &optional parent) 271(define-overloadable-function semantic-tag-protection (tag &optional parent)
272 "Return protection information about TAG with optional PARENT. 272 "Return protection information about TAG with optional PARENT.
273This function returns on of the following symbols: 273This function returns on of the following symbols:
274 nil - No special protection. Language dependent. 274 nil - No special protection. Language dependent.
275 'public - Anyone can access this TAG. 275 `public' - Anyone can access this TAG.
276 'private - Only methods in the local scope can access TAG. 276 `private' - Only methods in the local scope can access TAG.
277 'protected - Like private for outside scopes, like public for child 277 `protected' - Like private for outside scopes, like public for child
278 classes. 278 classes.
279Some languages may choose to provide additional return symbols specific 279Some languages may choose to provide additional return symbols specific
280to themselves. Use of this function should allow for this. 280to themselves. Use of this function should allow for this.
281 281
diff --git a/lisp/cedet/semantic/wisent/javascript.el b/lisp/cedet/semantic/wisent/javascript.el
index b2a18fb48b8..a676a8b4591 100644
--- a/lisp/cedet/semantic/wisent/javascript.el
+++ b/lisp/cedet/semantic/wisent/javascript.el
@@ -73,11 +73,11 @@ This function overrides `get-local-variables'."
73(define-mode-local-override semantic-tag-protection javascript-mode (tag &optional parent) 73(define-mode-local-override semantic-tag-protection javascript-mode (tag &optional parent)
74 "Return protection information about TAG with optional PARENT. 74 "Return protection information about TAG with optional PARENT.
75This function returns on of the following symbols: 75This function returns on of the following symbols:
76 nil - No special protection. Language dependent. 76 nil - No special protection. Language dependent.
77 'public - Anyone can access this TAG. 77 `public' - Anyone can access this TAG.
78 'private - Only methods in the local scope can access TAG. 78 `private' - Only methods in the local scope can access TAG.
79 'protected - Like private for outside scopes, like public for child 79 `protected' - Like private for outside scopes, like public for child
80 classes. 80 classes.
81Some languages may choose to provide additional return symbols specific 81Some languages may choose to provide additional return symbols specific
82to themselves. Use of this function should allow for this. 82to themselves. Use of this function should allow for this.
83 83
@@ -114,7 +114,7 @@ This is currently needed for the mozrepl omniscient database."
114 (setq symlist (list (match-string 1 tmp) 114 (setq symlist (list (match-string 1 tmp)
115 (substring tmp (1+ (match-end 1)) (length tmp)))) 115 (substring tmp (1+ (match-end 1)) (length tmp))))
116 (setq symlist (list tmp)))))))) 116 (setq symlist (list tmp))))))))
117 117
118;;; Setup Function 118;;; Setup Function
119;; 119;;
120;; Since javascript-mode is an alias for js-mode, let it inherit all 120;; Since javascript-mode is an alias for js-mode, let it inherit all
diff --git a/lisp/cedet/srecode/insert.el b/lisp/cedet/srecode/insert.el
index d1b00157648..2ff3060ac51 100644
--- a/lisp/cedet/srecode/insert.el
+++ b/lisp/cedet/srecode/insert.el
@@ -45,9 +45,9 @@
45Only the ASK style inserter will query the user for a value. 45Only the ASK style inserter will query the user for a value.
46Dictionary value references that ask begin with the ? character. 46Dictionary value references that ask begin with the ? character.
47Possible values are: 47Possible values are:
48 'ask - Prompt in the minibuffer as the value is inserted. 48 `ask' - Prompt in the minibuffer as the value is inserted.
49 'field - Use the dictionary macro name as the inserted value, 49 `field' - Use the dictionary macro name as the inserted value,
50 and place a field there. Matched fields change together. 50 and place a field there. Matched fields change together.
51 51
52NOTE: The field feature does not yet work with XEmacs." 52NOTE: The field feature does not yet work with XEmacs."
53 :group 'srecode 53 :group 'srecode
diff --git a/lisp/cedet/srecode/srt-mode.el b/lisp/cedet/srecode/srt-mode.el
index 48f055561ea..7fc35410b48 100644
--- a/lisp/cedet/srecode/srt-mode.el
+++ b/lisp/cedet/srecode/srt-mode.el
@@ -258,9 +258,9 @@ we can tell font lock about them.")
258 (when (class-abstract-p C) 258 (when (class-abstract-p C)
259 (throw 'skip nil)) 259 (throw 'skip nil))
260 260
261 (princ (substitute-command-keys "")) 261 (princ (substitute-command-keys "`"))
262 (princ name) 262 (princ name)
263 (princ (substitute-command-keys "")) 263 (princ (substitute-command-keys "'"))
264 (when (slot-exists-p C 'key) 264 (when (slot-exists-p C 'key)
265 (when key 265 (when key
266 (princ " - Character Key: ") 266 (princ " - Character Key: ")
diff --git a/lisp/comint.el b/lisp/comint.el
index b840a22bc84..ead2757e6e8 100644
--- a/lisp/comint.el
+++ b/lisp/comint.el
@@ -2850,7 +2850,7 @@ then the filename reader will only accept a file that exists.
2850 2850
2851A typical use: 2851A typical use:
2852 (interactive (comint-get-source \"Compile file: \" prev-lisp-dir/file 2852 (interactive (comint-get-source \"Compile file: \" prev-lisp-dir/file
2853 '(lisp-mode) t))" 2853 \\='(lisp-mode) t))"
2854 (let* ((def (comint-source-default prev-dir/file source-modes)) 2854 (let* ((def (comint-source-default prev-dir/file source-modes))
2855 (stringfile (comint-extract-string)) 2855 (stringfile (comint-extract-string))
2856 (sfile-p (and stringfile 2856 (sfile-p (and stringfile
diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el
index 08c1acdae86..aa26ac38fc5 100644
--- a/lisp/cus-edit.el
+++ b/lisp/cus-edit.el
@@ -477,7 +477,7 @@
477(defun custom-split-regexp-maybe (regexp) 477(defun custom-split-regexp-maybe (regexp)
478 "If REGEXP is a string, split it to a list at `\\|'. 478 "If REGEXP is a string, split it to a list at `\\|'.
479You can get the original back from the result with: 479You can get the original back from the result with:
480 (mapconcat 'identity result \"\\|\") 480 (mapconcat \\='identity result \"\\|\")
481 481
482IF REGEXP is not a string, return it unchanged." 482IF REGEXP is not a string, return it unchanged."
483 (if (stringp regexp) 483 (if (stringp regexp)
diff --git a/lisp/cus-start.el b/lisp/cus-start.el
index 7e251196d6c..dc40ca9321a 100644
--- a/lisp/cus-start.el
+++ b/lisp/cus-start.el
@@ -626,7 +626,7 @@ since it could result in memory overflow and make Emacs crash."
626 (if (not (boundp symbol)) 626 (if (not (boundp symbol))
627 ;; If variables are removed from C code, give an error here! 627 ;; If variables are removed from C code, give an error here!
628 (and native-p 628 (and native-p
629 (message "Note, built-in variable %S not bound" symbol)) 629 (message "Note, built-in variable `%S' not bound" symbol))
630 ;; Save the standard value, unless we already did. 630 ;; Save the standard value, unless we already did.
631 (or (get symbol 'standard-value) 631 (or (get symbol 'standard-value)
632 (put symbol 'standard-value (list standard))) 632 (put symbol 'standard-value (list standard)))
diff --git a/lisp/cus-theme.el b/lisp/cus-theme.el
index 7693c70aea9..3ec0811f218 100644
--- a/lisp/cus-theme.el
+++ b/lisp/cus-theme.el
@@ -492,10 +492,10 @@ It includes all faces in list FACES."
492 '("" "c"))) 492 '("" "c")))
493 doc) 493 doc)
494 (when fn 494 (when fn
495 (princ (substitute-command-keys " in ")) 495 (princ (substitute-command-keys " in `"))
496 (help-insert-xref-button (file-name-nondirectory fn) 496 (help-insert-xref-button (file-name-nondirectory fn)
497 'help-theme-def fn) 497 'help-theme-def fn)
498 (princ (substitute-command-keys ""))) 498 (princ (substitute-command-keys "'")))
499 (princ ".\n") 499 (princ ".\n")
500 (if (custom-theme-p theme) 500 (if (custom-theme-p theme)
501 (progn 501 (progn
diff --git a/lisp/custom.el b/lisp/custom.el
index f2b5d526bc5..ea5ab7a4773 100644
--- a/lisp/custom.el
+++ b/lisp/custom.el
@@ -548,13 +548,13 @@ VALUE should be a list of symbols. For each symbol in that list,
548this specifies that SYMBOL should be set after the specified symbol, 548this specifies that SYMBOL should be set after the specified symbol,
549if both appear in constructs like `custom-set-variables'." 549if both appear in constructs like `custom-set-variables'."
550 (unless (listp value) 550 (unless (listp value)
551 (error "Invalid custom dependency %s" value)) 551 (error "Invalid custom dependency `%s'" value))
552 (let* ((deps (get symbol 'custom-dependencies)) 552 (let* ((deps (get symbol 'custom-dependencies))
553 (new-deps deps)) 553 (new-deps deps))
554 (while value 554 (while value
555 (let ((dep (car value))) 555 (let ((dep (car value)))
556 (unless (symbolp dep) 556 (unless (symbolp dep)
557 (error "Invalid custom dependency %s" dep)) 557 (error "Invalid custom dependency `%s'" dep))
558 (unless (memq dep new-deps) 558 (unless (memq dep new-deps)
559 (setq new-deps (cons dep new-deps))) 559 (setq new-deps (cons dep new-deps)))
560 (setq value (cdr value)))) 560 (setq value (cdr value))))
@@ -830,7 +830,7 @@ to the front of this list.")
830(defsubst custom-check-theme (theme) 830(defsubst custom-check-theme (theme)
831 "Check whether THEME is valid, and signal an error if it is not." 831 "Check whether THEME is valid, and signal an error if it is not."
832 (unless (custom-theme-p theme) 832 (unless (custom-theme-p theme)
833 (error "Unknown theme %s" theme))) 833 (error "Unknown theme `%s'" theme)))
834 834
835(defun custom-push-theme (prop symbol theme mode &optional value) 835(defun custom-push-theme (prop symbol theme mode &optional value)
836 "Record VALUE for face or variable SYMBOL in custom theme THEME. 836 "Record VALUE for face or variable SYMBOL in custom theme THEME.
@@ -1043,7 +1043,7 @@ list, in which A occurs before B if B was defined with a
1043 (when elt 1043 (when elt
1044 (cond 1044 (cond
1045 ((eq (car elt) 'dependant) 1045 ((eq (car elt) 'dependant)
1046 (error "Circular custom dependency on %s" sym)) 1046 (error "Circular custom dependency on `%s'" sym))
1047 ((car elt) 1047 ((car elt)
1048 (setcar elt 'dependant) 1048 (setcar elt 'dependant)
1049 (dolist (dep (get sym 'custom-dependencies)) 1049 (dolist (dep (get sym 'custom-dependencies))
@@ -1201,7 +1201,7 @@ Return t if THEME was successfully loaded, nil otherwise."
1201 (custom-available-themes)))) 1201 (custom-available-themes))))
1202 nil nil)) 1202 nil nil))
1203 (unless (custom-theme-name-valid-p theme) 1203 (unless (custom-theme-name-valid-p theme)
1204 (error "Invalid theme name %s" theme)) 1204 (error "Invalid theme name `%s'" theme))
1205 ;; If THEME is already enabled, re-enable it after loading, even if 1205 ;; If THEME is already enabled, re-enable it after loading, even if
1206 ;; NO-ENABLE is t. 1206 ;; NO-ENABLE is t.
1207 (if no-enable 1207 (if no-enable
@@ -1217,7 +1217,7 @@ Return t if THEME was successfully loaded, nil otherwise."
1217 '("" "c"))) 1217 '("" "c")))
1218 hash) 1218 hash)
1219 (unless fn 1219 (unless fn
1220 (error "Unable to find theme file for %s" theme)) 1220 (error "Unable to find theme file for `%s'" theme))
1221 (with-temp-buffer 1221 (with-temp-buffer
1222 (insert-file-contents fn) 1222 (insert-file-contents fn)
1223 (setq hash (secure-hash 'sha256 (current-buffer))) 1223 (setq hash (secure-hash 'sha256 (current-buffer)))
diff --git a/lisp/descr-text.el b/lisp/descr-text.el
index 237cc00a36f..be69a0b27d8 100644
--- a/lisp/descr-text.el
+++ b/lisp/descr-text.el
@@ -161,7 +161,7 @@ otherwise."
161 ;; Buttons 161 ;; Buttons
162 (when (and button (not (widgetp wid-button))) 162 (when (and button (not (widgetp wid-button)))
163 (newline) 163 (newline)
164 (insert (format-message "Here is a %S button labeled %s.\n\n" 164 (insert (format-message "Here is a `%S' button labeled `%s'.\n\n"
165 button-type button-label))) 165 button-type button-label)))
166 ;; Overlays 166 ;; Overlays
167 (when overlays 167 (when overlays
@@ -724,25 +724,17 @@ relevant to POS."
724 (when disp-vector 724 (when disp-vector
725 (insert 725 (insert
726 "\nThe display table entry is displayed by ") 726 "\nThe display table entry is displayed by ")
727 (if (display-graphic-p (selected-frame)) 727 (insert "these fonts (glyph codes):\n")
728 (progn 728 (dotimes (i (length disp-vector))
729 (insert "these fonts (glyph codes):\n") 729 (insert (glyph-char (car (aref disp-vector i))) ?:
730 (dotimes (i (length disp-vector)) 730 (propertize " " 'display '(space :align-to 5))
731 (insert (glyph-char (car (aref disp-vector i))) ?: 731 (or (cdr (aref disp-vector i)) "-- no font --")
732 (propertize " " 'display '(space :align-to 5)) 732 "\n")
733 (or (cdr (aref disp-vector i)) "-- no font --") 733 (let ((face (glyph-face (car (aref disp-vector i)))))
734 "\n") 734 (when face
735 (let ((face (glyph-face (car (aref disp-vector i))))) 735 (insert (propertize " " 'display '(space :align-to 5))
736 (when face 736 "face: ")
737 (insert (propertize " " 'display '(space :align-to 5)) 737 (insert (format-message "`%s'\n" face))))))
738 "face: ")
739 (insert (format-message "‘%s’\n" face))))))
740 (insert "these terminal codes:\n")
741 (dotimes (i (length disp-vector))
742 (insert (car (aref disp-vector i))
743 (propertize " " 'display '(space :align-to 5))
744 (or (cdr (aref disp-vector i)) "-- not encodable --")
745 "\n"))))
746 738
747 (when composition 739 (when composition
748 (insert "\nComposed") 740 (insert "\nComposed")
diff --git a/lisp/dired-x.el b/lisp/dired-x.el
index 4903b152fac..1b6909141a6 100644
--- a/lisp/dired-x.el
+++ b/lisp/dired-x.el
@@ -687,8 +687,8 @@ to put saved Dired buffers automatically into Virtual Dired mode.
687 687
688Also useful for `auto-mode-alist' like this: 688Also useful for `auto-mode-alist' like this:
689 689
690 (add-to-list 'auto-mode-alist 690 (add-to-list \\='auto-mode-alist
691 '(\"[^/]\\\\.dired\\\\'\" . dired-virtual-mode))" 691 \\='(\"[^/]\\\\.dired\\\\\\='\" . dired-virtual-mode))"
692 (interactive) 692 (interactive)
693 (dired-virtual (dired-virtual-guess-dir))) 693 (dired-virtual (dired-virtual-guess-dir)))
694 694
@@ -1354,11 +1354,11 @@ otherwise."
1354 (let ((file (dired-get-filename t))) 1354 (let ((file (dired-get-filename t)))
1355 (if dired-bind-vm 1355 (if dired-bind-vm
1356 (if (y-or-n-p (format-message 1356 (if (y-or-n-p (format-message
1357 "Visit %s as a mail folder with VM?" file)) 1357 "Visit `%s' as a mail folder with VM?" file))
1358 (dired-vm)) 1358 (dired-vm))
1359 ;; Read mail folder using rmail. 1359 ;; Read mail folder using rmail.
1360 (if (y-or-n-p (format-message 1360 (if (y-or-n-p (format-message
1361 "Visit %s as a mailbox with RMAIL?" file)) 1361 "Visit `%s' as a mailbox with RMAIL?" file))
1362 (dired-rmail))))) 1362 (dired-rmail)))))
1363 1363
1364 1364
diff --git a/lisp/dired.el b/lisp/dired.el
index 206de373ade..b78b6324b71 100644
--- a/lisp/dired.el
+++ b/lisp/dired.el
@@ -91,7 +91,7 @@ spaces. You might want to install ls from GNU Coreutils, which does
91support this option. Alternatively, you might want to use Emacs's 91support this option. Alternatively, you might want to use Emacs's
92own emulation of \"ls\", by using: 92own emulation of \"ls\", by using:
93 (setq ls-lisp-use-insert-directory-program nil) 93 (setq ls-lisp-use-insert-directory-program nil)
94 (require 'ls-lisp) 94 (require \\='ls-lisp)
95This is used by default on MS Windows, which does not have an \"ls\" program. 95This is used by default on MS Windows, which does not have an \"ls\" program.
96Note that `ls-lisp' does not support as many options as GNU ls, though. 96Note that `ls-lisp' does not support as many options as GNU ls, though.
97For more details, see Info node `(emacs)ls in Lisp'." 97For more details, see Info node `(emacs)ls in Lisp'."
@@ -3567,7 +3567,7 @@ Thus, use \\[backward-page] to find the beginning of a group of errors."
3567 (unless (bolp) 3567 (unless (bolp)
3568 (insert "\n")) 3568 (insert "\n"))
3569 (insert (current-time-string) 3569 (insert (current-time-string)
3570 (format-message "\tBuffer %s\n" (buffer-name obuf))) 3570 (format-message "\tBuffer `%s'\n" (buffer-name obuf)))
3571 (goto-char (point-max)) 3571 (goto-char (point-max))
3572 (insert "\f\n"))))))) 3572 (insert "\f\n")))))))
3573 3573
@@ -4399,7 +4399,7 @@ instead.
4399 4399
4400;;;*** 4400;;;***
4401 4401
4402;;;### (autoloads nil "dired-x" "dired-x.el" "c1a6289ba8504b605595321436a9c04d") 4402;;;### (autoloads nil "dired-x" "dired-x.el" "63be23901985afd2a9aadc64f2aacf37")
4403;;; Generated autoloads from dired-x.el 4403;;; Generated autoloads from dired-x.el
4404 4404
4405(autoload 'dired-jump "dired-x" "\ 4405(autoload 'dired-jump "dired-x" "\
diff --git a/lisp/electric.el b/lisp/electric.el
index bef5bb9fec7..47cb020108c 100644
--- a/lisp/electric.el
+++ b/lisp/electric.el
@@ -434,12 +434,12 @@ The variable `electric-layout-rules' says when and how to insert newlines."
434 nil string)))) 434 nil string))))
435 435
436(defun electric-quote-post-self-insert-function () 436(defun electric-quote-post-self-insert-function ()
437 "Function that electric-quote-mode adds to post-self-insert-hook. 437 "Function that `electric-quote-mode' adds to `post-self-insert-hook'.
438This requotes when a quoting key is typed." 438This requotes when a quoting key is typed."
439 (when (and electric-quote-mode 439 (when (and electric-quote-mode
440 (memq last-command-event '(?\' ?\`))) 440 (memq last-command-event '(?\' ?\`)))
441 (let ((start 441 (let ((start
442 (if comment-start 442 (if (and comment-start comment-use-syntax)
443 (when (or electric-quote-comment electric-quote-string) 443 (when (or electric-quote-comment electric-quote-string)
444 (let ((syntax (syntax-ppss))) 444 (let ((syntax (syntax-ppss)))
445 (and (or (and electric-quote-comment (nth 4 syntax)) 445 (and (or (and electric-quote-comment (nth 4 syntax))
@@ -486,11 +486,11 @@ enable the mode if ARG is omitted or nil.
486When enabled, as you type this replaces \\=` with \\=‘, \\=' with \\=’, 486When enabled, as you type this replaces \\=` with \\=‘, \\=' with \\=’,
487\\=`\\=` with “, and \\='\\=' with ”. This occurs only in comments, strings, 487\\=`\\=` with “, and \\='\\=' with ”. This occurs only in comments, strings,
488and text paragraphs, and these are selectively controlled with 488and text paragraphs, and these are selectively controlled with
489electric-quote-comment, electric-quote-string, and 489`electric-quote-comment', `electric-quote-string', and
490electric-quote-paragraph. 490`electric-quote-paragraph'.
491 491
492This is a global minor mode. To toggle the mode in a single buffer, 492This is a global minor mode. To toggle the mode in a single buffer,
493use electric-quote-local-mode." 493use `electric-quote-local-mode'."
494 :global t :group 'electricity 494 :global t :group 'electricity
495 :initialize 'custom-initialize-delay 495 :initialize 'custom-initialize-delay
496 :init-value nil 496 :init-value nil
@@ -507,7 +507,7 @@ use ‘electric-quote-local-mode’."
507 507
508;;;###autoload 508;;;###autoload
509(define-minor-mode electric-quote-local-mode 509(define-minor-mode electric-quote-local-mode
510 "Toggle electric-quote-mode only in this buffer." 510 "Toggle `electric-quote-mode' only in this buffer."
511 :variable (buffer-local-value 'electric-quote-mode (current-buffer)) 511 :variable (buffer-local-value 'electric-quote-mode (current-buffer))
512 (cond 512 (cond
513 ((eq electric-quote-mode (default-value 'electric-quote-mode)) 513 ((eq electric-quote-mode (default-value 'electric-quote-mode))
diff --git a/lisp/emacs-lisp/advice.el b/lisp/emacs-lisp/advice.el
index bbff34db804..62330fca71b 100644
--- a/lisp/emacs-lisp/advice.el
+++ b/lisp/emacs-lisp/advice.el
@@ -1870,7 +1870,7 @@ function at point for which PREDICATE returns non-nil)."
1870 (if (equal function "") 1870 (if (equal function "")
1871 (if (ad-is-advised default) 1871 (if (ad-is-advised default)
1872 default 1872 default
1873 (error "ad-read-advised-function: %s is not advised" default)) 1873 (error "ad-read-advised-function: `%s' is not advised" default))
1874 (intern function)))) 1874 (intern function))))
1875 1875
1876(defvar ad-advice-class-completion-table 1876(defvar ad-advice-class-completion-table
@@ -1887,7 +1887,7 @@ class of FUNCTION)."
1887 (cl-dolist (class ad-advice-classes) 1887 (cl-dolist (class ad-advice-classes)
1888 (if (ad-get-advice-info-field function class) 1888 (if (ad-get-advice-info-field function class)
1889 (cl-return class))) 1889 (cl-return class)))
1890 (error "ad-read-advice-class: %s has no advices" function))) 1890 (error "ad-read-advice-class: `%s' has no advices" function)))
1891 (let ((class (completing-read 1891 (let ((class (completing-read
1892 (format "%s (default %s): " (or prompt "Class") default) 1892 (format "%s (default %s): " (or prompt "Class") default)
1893 ad-advice-class-completion-table nil t))) 1893 ad-advice-class-completion-table nil t)))
@@ -1904,7 +1904,7 @@ An optional PROMPT is used to prompt for the name."
1904 (ad-get-advice-info-field function class))) 1904 (ad-get-advice-info-field function class)))
1905 (default 1905 (default
1906 (if (null name-completion-table) 1906 (if (null name-completion-table)
1907 (error "ad-read-advice-name: %s has no %s advice" 1907 (error "ad-read-advice-name: `%s' has no %s advice"
1908 function class) 1908 function class)
1909 (car (car name-completion-table)))) 1909 (car (car name-completion-table))))
1910 (prompt (format "%s (default %s): " (or prompt "Name") default)) 1910 (prompt (format "%s (default %s): " (or prompt "Name") default))
@@ -1995,9 +1995,9 @@ FUNCTION was not advised)."
1995 (interactive (ad-read-advice-specification "Enable advice of")) 1995 (interactive (ad-read-advice-specification "Enable advice of"))
1996 (if (ad-is-advised function) 1996 (if (ad-is-advised function)
1997 (if (eq (ad-enable-advice-internal function class name t) 0) 1997 (if (eq (ad-enable-advice-internal function class name t) 0)
1998 (error "ad-enable-advice: %s has no %s advice matching %s" 1998 (error "ad-enable-advice: `%s' has no %s advice matching `%s'"
1999 function class name)) 1999 function class name))
2000 (error "ad-enable-advice: %s is not advised" function))) 2000 (error "ad-enable-advice: `%s' is not advised" function)))
2001 2001
2002;;;###autoload 2002;;;###autoload
2003(defun ad-disable-advice (function class name) 2003(defun ad-disable-advice (function class name)
@@ -2005,9 +2005,9 @@ FUNCTION was not advised)."
2005 (interactive (ad-read-advice-specification "Disable advice of")) 2005 (interactive (ad-read-advice-specification "Disable advice of"))
2006 (if (ad-is-advised function) 2006 (if (ad-is-advised function)
2007 (if (eq (ad-enable-advice-internal function class name nil) 0) 2007 (if (eq (ad-enable-advice-internal function class name nil) 0)
2008 (error "ad-disable-advice: %s has no %s advice matching %s" 2008 (error "ad-disable-advice: `%s' has no %s advice matching `%s'"
2009 function class name)) 2009 function class name))
2010 (error "ad-disable-advice: %s is not advised" function))) 2010 (error "ad-disable-advice: `%s' is not advised" function)))
2011 2011
2012(defun ad-enable-regexp-internal (regexp class flag) 2012(defun ad-enable-regexp-internal (regexp class flag)
2013 "Set enable FLAGs of all CLASS advices whose name contains a REGEXP match. 2013 "Set enable FLAGs of all CLASS advices whose name contains a REGEXP match.
@@ -2053,9 +2053,9 @@ in that CLASS."
2053 (ad-set-advice-info-field 2053 (ad-set-advice-info-field
2054 function class 2054 function class
2055 (delq advice-to-remove (ad-get-advice-info-field function class))) 2055 (delq advice-to-remove (ad-get-advice-info-field function class)))
2056 (error "ad-remove-advice: %s has no %s advice %s" 2056 (error "ad-remove-advice: `%s' has no %s advice `%s'"
2057 function class name))) 2057 function class name)))
2058 (error "ad-remove-advice: %s is not advised" function))) 2058 (error "ad-remove-advice: `%s' is not advised" function)))
2059 2059
2060;;;###autoload 2060;;;###autoload
2061(defun ad-add-advice (function advice class position) 2061(defun ad-add-advice (function advice class position)
@@ -2319,7 +2319,7 @@ INDEX counts from zero."
2319 ,value-form)) 2319 ,value-form))
2320 (argument-access 2320 (argument-access
2321 `(setq ,argument-access ,value-form)) 2321 `(setq ,argument-access ,value-form))
2322 (t (error "ad-set-argument: No argument at position %d of %s" 2322 (t (error "ad-set-argument: No argument at position %d of `%s'"
2323 index arglist))))) 2323 index arglist)))))
2324 2324
2325(defun ad-get-arguments (arglist index) 2325(defun ad-get-arguments (arglist index)
@@ -2361,7 +2361,7 @@ The assignment starts at position INDEX."
2361 (setq index (1+ index)) 2361 (setq index (1+ index))
2362 (setq values-index (1+ values-index))) 2362 (setq values-index (1+ values-index)))
2363 (if (null set-forms) 2363 (if (null set-forms)
2364 (error "ad-set-arguments: No argument at position %d of %s" 2364 (error "ad-set-arguments: No argument at position %d of `%s'"
2365 index arglist) 2365 index arglist)
2366 (if (= (length set-forms) 1) 2366 (if (= (length set-forms) 1)
2367 ;; For exactly one set-form we can use values-form directly,... 2367 ;; For exactly one set-form we can use values-form directly,...
@@ -2412,14 +2412,14 @@ The assignment starts at position INDEX."
2412;; The mapping should work for any two argument lists. 2412;; The mapping should work for any two argument lists.
2413 2413
2414(defun ad-map-arglists (source-arglist target-arglist) 2414(defun ad-map-arglists (source-arglist target-arglist)
2415 "Make funcall/apply form to map SOURCE-ARGLIST to TARGET-ARGLIST. 2415 "Make `funcall/apply' form to map SOURCE-ARGLIST to TARGET-ARGLIST.
2416The arguments supplied to TARGET-ARGLIST will be taken from SOURCE-ARGLIST just 2416The arguments supplied to TARGET-ARGLIST will be taken from SOURCE-ARGLIST just
2417as if they had been supplied to a function with TARGET-ARGLIST directly. 2417as if they had been supplied to a function with TARGET-ARGLIST directly.
2418Excess source arguments will be neglected, missing source arguments will be 2418Excess source arguments will be neglected, missing source arguments will be
2419supplied as nil. Returns a funcall or apply form with the second element 2419supplied as nil. Returns a `funcall' or `apply' form with the second element
2420being function which has to be replaced by an actual function argument. 2420being `function' which has to be replaced by an actual function argument.
2421Example: (ad-map-arglists '(a &rest args) '(w x y z)) will return 2421Example: (ad-map-arglists '(a &rest args) '(w x y z)) will return
2422 (funcall ad--addoit-function a (car args) (car (cdr args)) (nth 2 args))." 2422 (funcall ad--addoit-function a (car args) (car (cdr args)) (nth 2 args))."
2423 (let* ((parsed-source-arglist (ad-parse-arglist source-arglist)) 2423 (let* ((parsed-source-arglist (ad-parse-arglist source-arglist))
2424 (source-reqopt-args (append (nth 0 parsed-source-arglist) 2424 (source-reqopt-args (append (nth 0 parsed-source-arglist)
2425 (nth 1 parsed-source-arglist))) 2425 (nth 1 parsed-source-arglist)))
@@ -2911,14 +2911,14 @@ the value of `ad-redefinition-action' and de/activate again."
2911 (if (not (eq current-definition original-definition)) 2911 (if (not (eq current-definition original-definition))
2912 ;; We have a redefinition: 2912 ;; We have a redefinition:
2913 (if (not (memq ad-redefinition-action '(accept discard warn))) 2913 (if (not (memq ad-redefinition-action '(accept discard warn)))
2914 (error "ad-redefinition-action: %s %s" 2914 (error "ad-redefinition-action: `%s' %s"
2915 function "invalidly redefined") 2915 function "invalidly redefined")
2916 (if (eq ad-redefinition-action 'discard) 2916 (if (eq ad-redefinition-action 'discard)
2917 nil ;; Just drop it! 2917 nil ;; Just drop it!
2918 (funcall (or fsetfun #'fset) function newdef) 2918 (funcall (or fsetfun #'fset) function newdef)
2919 (ad-activate-internal function) 2919 (ad-activate-internal function)
2920 (if (eq ad-redefinition-action 'warn) 2920 (if (eq ad-redefinition-action 'warn)
2921 (message "ad-handle-definition: %s got redefined" 2921 (message "ad-handle-definition: `%s' got redefined"
2922 function)))) 2922 function))))
2923 ;; either advised def or correct original is in place: 2923 ;; either advised def or correct original is in place:
2924 nil) 2924 nil)
@@ -2953,7 +2953,7 @@ definition will always be cached for later usage."
2953 current-prefix-arg)) 2953 current-prefix-arg))
2954 (cond 2954 (cond
2955 ((not (ad-is-advised function)) 2955 ((not (ad-is-advised function))
2956 (error "ad-activate: %s is not advised" function)) 2956 (error "ad-activate: `%s' is not advised" function))
2957 ;; Just return for forward advised and not yet defined functions: 2957 ;; Just return for forward advised and not yet defined functions:
2958 ((not (ad-get-orig-definition function)) nil) 2958 ((not (ad-get-orig-definition function)) nil)
2959 ((not (ad-has-any-advice function)) (ad-unadvise function)) 2959 ((not (ad-has-any-advice function)) (ad-unadvise function))
@@ -2977,10 +2977,10 @@ a call to `ad-activate'."
2977 (interactive 2977 (interactive
2978 (list (ad-read-advised-function "Deactivate advice of" 'ad-is-active))) 2978 (list (ad-read-advised-function "Deactivate advice of" 'ad-is-active)))
2979 (if (not (ad-is-advised function)) 2979 (if (not (ad-is-advised function))
2980 (error "ad-deactivate: %s is not advised" function) 2980 (error "ad-deactivate: `%s' is not advised" function)
2981 (cond ((ad-is-active function) 2981 (cond ((ad-is-active function)
2982 (if (not (ad-get-orig-definition function)) 2982 (if (not (ad-get-orig-definition function))
2983 (error "ad-deactivate: %s has no original definition" 2983 (error "ad-deactivate: `%s' has no original definition"
2984 function) 2984 function)
2985 (ad-clear-advicefunname-definition function) 2985 (ad-clear-advicefunname-definition function)
2986 (ad-set-advice-info-field function 'active nil) 2986 (ad-set-advice-info-field function 'active nil)
diff --git a/lisp/emacs-lisp/byte-opt.el b/lisp/emacs-lisp/byte-opt.el
index 716e1c69c7b..c3c61d6c81e 100644
--- a/lisp/emacs-lisp/byte-opt.el
+++ b/lisp/emacs-lisp/byte-opt.el
@@ -255,11 +255,11 @@
255 (cdr (assq name byte-compile-function-environment))))) 255 (cdr (assq name byte-compile-function-environment)))))
256 (pcase fn 256 (pcase fn
257 (`nil 257 (`nil
258 (byte-compile-warn "attempt to inline %s before it was defined" 258 (byte-compile-warn "attempt to inline `%s' before it was defined"
259 name) 259 name)
260 form) 260 form)
261 (`(autoload . ,_) 261 (`(autoload . ,_)
262 (error "File %s didn't define %s" (nth 1 fn) name)) 262 (error "File `%s' didn't define `%s'" (nth 1 fn) name))
263 ((and (pred symbolp) (guard (not (eq fn t)))) ;A function alias. 263 ((and (pred symbolp) (guard (not (eq fn t)))) ;A function alias.
264 (byte-compile-inline-expand (cons fn (cdr form)))) 264 (byte-compile-inline-expand (cons fn (cdr form))))
265 ((pred byte-code-function-p) 265 ((pred byte-code-function-p)
@@ -336,7 +336,7 @@
336 bindings) 336 bindings)
337 values nil)) 337 values nil))
338 ((and (not optionalp) (null values)) 338 ((and (not optionalp) (null values))
339 (byte-compile-warn "attempt to open-code %s with too few arguments" name) 339 (byte-compile-warn "attempt to open-code `%s' with too few arguments" name)
340 (setq arglist nil values 'too-few)) 340 (setq arglist nil values 'too-few))
341 (t 341 (t
342 (setq bindings (cons (list (car arglist) (car values)) 342 (setq bindings (cons (list (car arglist) (car values))
@@ -347,7 +347,7 @@
347 (progn 347 (progn
348 (or (eq values 'too-few) 348 (or (eq values 'too-few)
349 (byte-compile-warn 349 (byte-compile-warn
350 "attempt to open-code %s with too many arguments" name)) 350 "attempt to open-code `%s' with too many arguments" name))
351 form) 351 form)
352 352
353 ;; The following leads to infinite recursion when loading a 353 ;; The following leads to infinite recursion when loading a
@@ -383,7 +383,7 @@
383 form)) 383 form))
384 ((eq fn 'quote) 384 ((eq fn 'quote)
385 (if (cdr (cdr form)) 385 (if (cdr (cdr form))
386 (byte-compile-warn "malformed quote form: %s" 386 (byte-compile-warn "malformed quote form: `%s'"
387 (prin1-to-string form))) 387 (prin1-to-string form)))
388 ;; map (quote nil) to nil to simplify optimizer logic. 388 ;; map (quote nil) to nil to simplify optimizer logic.
389 ;; map quoted constants to nil if for-effect (just because). 389 ;; map quoted constants to nil if for-effect (just because).
@@ -407,7 +407,7 @@
407 (if (symbolp binding) 407 (if (symbolp binding)
408 binding 408 binding
409 (if (cdr (cdr binding)) 409 (if (cdr (cdr binding))
410 (byte-compile-warn "malformed let binding: %s" 410 (byte-compile-warn "malformed let binding: `%s'"
411 (prin1-to-string binding))) 411 (prin1-to-string binding)))
412 (list (car binding) 412 (list (car binding)
413 (byte-optimize-form (nth 1 binding) nil)))) 413 (byte-optimize-form (nth 1 binding) nil))))
@@ -420,7 +420,7 @@
420 (cons 420 (cons
421 (byte-optimize-form (car clause) nil) 421 (byte-optimize-form (car clause) nil)
422 (byte-optimize-body (cdr clause) for-effect)) 422 (byte-optimize-body (cdr clause) for-effect))
423 (byte-compile-warn "malformed cond form: %s" 423 (byte-compile-warn "malformed cond form: `%s'"
424 (prin1-to-string clause)) 424 (prin1-to-string clause))
425 clause)) 425 clause))
426 (cdr form)))) 426 (cdr form))))
@@ -457,7 +457,7 @@
457 457
458 ((eq fn 'if) 458 ((eq fn 'if)
459 (when (< (length form) 3) 459 (when (< (length form) 3)
460 (byte-compile-warn "too few arguments for if")) 460 (byte-compile-warn "too few arguments for `if'"))
461 (cons fn 461 (cons fn
462 (cons (byte-optimize-form (nth 1 form) nil) 462 (cons (byte-optimize-form (nth 1 form) nil)
463 (cons 463 (cons
@@ -485,7 +485,7 @@
485 (cons fn (mapcar 'byte-optimize-form (cdr form))))) 485 (cons fn (mapcar 'byte-optimize-form (cdr form)))))
486 486
487 ((eq fn 'interactive) 487 ((eq fn 'interactive)
488 (byte-compile-warn "misplaced interactive spec: %s" 488 (byte-compile-warn "misplaced interactive spec: `%s'"
489 (prin1-to-string form)) 489 (prin1-to-string form))
490 nil) 490 nil)
491 491
@@ -539,7 +539,7 @@
539 (cons fn (mapcar #'byte-optimize-form (cdr form)))) 539 (cons fn (mapcar #'byte-optimize-form (cdr form))))
540 540
541 ((not (symbolp fn)) 541 ((not (symbolp fn))
542 (byte-compile-warn "%s is a malformed function" 542 (byte-compile-warn "`%s' is a malformed function"
543 (prin1-to-string fn)) 543 (prin1-to-string fn))
544 form) 544 form)
545 545
@@ -1054,7 +1054,7 @@
1054 1054
1055(defun byte-optimize-while (form) 1055(defun byte-optimize-while (form)
1056 (when (< (length form) 2) 1056 (when (< (length form) 2)
1057 (byte-compile-warn "too few arguments for while")) 1057 (byte-compile-warn "too few arguments for `while'"))
1058 (if (nth 1 form) 1058 (if (nth 1 form)
1059 form)) 1059 form))
1060 1060
@@ -1090,7 +1090,7 @@
1090 (nconc (list 'funcall fn) butlast 1090 (nconc (list 'funcall fn) butlast
1091 (mapcar (lambda (x) (list 'quote x)) (nth 1 last)))) 1091 (mapcar (lambda (x) (list 'quote x)) (nth 1 last))))
1092 (byte-compile-warn 1092 (byte-compile-warn
1093 "last arg to apply can't be a literal atom: %s" 1093 "last arg to apply can't be a literal atom: `%s'"
1094 (prin1-to-string last)) 1094 (prin1-to-string last))
1095 nil)) 1095 nil))
1096 form))) 1096 form)))
diff --git a/lisp/emacs-lisp/byte-run.el b/lisp/emacs-lisp/byte-run.el
index 3c561db4b81..73c2977e8eb 100644
--- a/lisp/emacs-lisp/byte-run.el
+++ b/lisp/emacs-lisp/byte-run.el
@@ -267,7 +267,7 @@ The return value is undefined.
267 (cdr body) 267 (cdr body)
268 body))) 268 body)))
269 nil) 269 nil)
270 (t (message "Warning: Unknown defun property %S in %S" 270 (t (message "Warning: Unknown defun property `%S' in %S"
271 (car x) name))))) 271 (car x) name)))))
272 decls)) 272 decls))
273 (def (list 'defalias 273 (def (list 'defalias
@@ -317,7 +317,7 @@ The return value is undefined.
317 (declare (debug defun) (doc-string 3)) 317 (declare (debug defun) (doc-string 3))
318 (or (memq (get name 'byte-optimizer) 318 (or (memq (get name 'byte-optimizer)
319 '(nil byte-compile-inline-expand)) 319 '(nil byte-compile-inline-expand))
320 (error "%s is a primitive" name)) 320 (error "`%s' is a primitive" name))
321 `(prog1 321 `(prog1
322 (defun ,name ,arglist ,@body) 322 (defun ,name ,arglist ,@body)
323 (eval-and-compile 323 (eval-and-compile
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el
index 7182c0b6372..279ffa37b7e 100644
--- a/lisp/emacs-lisp/bytecomp.el
+++ b/lisp/emacs-lisp/bytecomp.el
@@ -814,7 +814,7 @@ CONST2 may be evaluated multiple times."
814 off (cdr lap-entry)) 814 off (cdr lap-entry))
815 (cond 815 (cond
816 ((not (symbolp op)) 816 ((not (symbolp op))
817 (error "Non-symbolic opcode %s" op)) 817 (error "Non-symbolic opcode `%s'" op))
818 ((eq op 'TAG) 818 ((eq op 'TAG)
819 (setcar off pc)) 819 (setcar off pc))
820 (t 820 (t
@@ -1120,7 +1120,7 @@ Each function's symbol gets added to `byte-compile-noruntime-functions'."
1120 pt) 1120 pt)
1121 (when dir 1121 (when dir
1122 (unless was-same 1122 (unless was-same
1123 (insert (format-message "Leaving directory %s\n" 1123 (insert (format-message "Leaving directory `%s'\n"
1124 default-directory)))) 1124 default-directory))))
1125 (unless (bolp) 1125 (unless (bolp)
1126 (insert "\n")) 1126 (insert "\n"))
@@ -1136,7 +1136,7 @@ Each function's symbol gets added to `byte-compile-noruntime-functions'."
1136 (when dir 1136 (when dir
1137 (setq default-directory dir) 1137 (setq default-directory dir)
1138 (unless was-same 1138 (unless was-same
1139 (insert (format-message "Entering directory %s\n" 1139 (insert (format-message "Entering directory `%s'\n"
1140 default-directory)))) 1140 default-directory))))
1141 (setq byte-compile-last-logged-file byte-compile-current-file 1141 (setq byte-compile-last-logged-file byte-compile-current-file
1142 byte-compile-last-warned-form nil) 1142 byte-compile-last-warned-form nil)
@@ -1339,7 +1339,7 @@ extra args."
1339 (nargs (- (length form) 2))) 1339 (nargs (- (length form) 2)))
1340 (unless (= nargs nfields) 1340 (unless (= nargs nfields)
1341 (byte-compile-warn 1341 (byte-compile-warn
1342 "%s called with %d args to fill %d format field(s)" (car form) 1342 "`%s' called with %d args to fill %d format field(s)" (car form)
1343 nargs nfields))))) 1343 nargs nfields)))))
1344 1344
1345(dolist (elt '(format message error)) 1345(dolist (elt '(format message error))
@@ -1359,7 +1359,7 @@ extra args."
1359 (plist-get keyword-args :group) 1359 (plist-get keyword-args :group)
1360 (not (and (consp name) (eq (car name) 'quote))) 1360 (not (and (consp name) (eq (car name) 'quote)))
1361 (byte-compile-warn 1361 (byte-compile-warn
1362 "%s for %s fails to specify containing group" 1362 "%s for `%s' fails to specify containing group"
1363 (cdr (assq (car form) 1363 (cdr (assq (car form)
1364 '((custom-declare-group . defgroup) 1364 '((custom-declare-group . defgroup)
1365 (custom-declare-face . defface) 1365 (custom-declare-face . defface)
@@ -1378,7 +1378,7 @@ extra args."
1378 (let ((calls (assq name byte-compile-unresolved-functions)) 1378 (let ((calls (assq name byte-compile-unresolved-functions))
1379 nums sig min max) 1379 nums sig min max)
1380 (when (and calls macrop) 1380 (when (and calls macrop)
1381 (byte-compile-warn "macro %s defined too late" name)) 1381 (byte-compile-warn "macro `%s' defined too late" name))
1382 (setq byte-compile-unresolved-functions 1382 (setq byte-compile-unresolved-functions
1383 (delq calls byte-compile-unresolved-functions)) 1383 (delq calls byte-compile-unresolved-functions))
1384 (setq calls (delq t calls)) ;Ignore higher-order uses of the function. 1384 (setq calls (delq t calls)) ;Ignore higher-order uses of the function.
@@ -1386,7 +1386,7 @@ extra args."
1386 (when (and (symbolp name) 1386 (when (and (symbolp name)
1387 (eq (function-get name 'byte-optimizer) 1387 (eq (function-get name 'byte-optimizer)
1388 'byte-compile-inline-expand)) 1388 'byte-compile-inline-expand))
1389 (byte-compile-warn "defsubst %s was used before it was defined" 1389 (byte-compile-warn "defsubst `%s' was used before it was defined"
1390 name)) 1390 name))
1391 (setq sig (byte-compile-arglist-signature arglist) 1391 (setq sig (byte-compile-arglist-signature arglist)
1392 nums (sort (copy-sequence (cdr calls)) (function <)) 1392 nums (sort (copy-sequence (cdr calls)) (function <))
@@ -1465,7 +1465,7 @@ extra args."
1465 ;; so don't warn about them. 1465 ;; so don't warn about them.
1466 macroexpand 1466 macroexpand
1467 cl--compiling-file)))) 1467 cl--compiling-file))))
1468 (byte-compile-warn "function %s from cl package called at runtime" 1468 (byte-compile-warn "function `%s' from cl package called at runtime"
1469 func))) 1469 func)))
1470 form) 1470 form)
1471 1471
@@ -1507,12 +1507,12 @@ extra args."
1507 (if (fboundp f) (push f noruntime) (push f unresolved))) 1507 (if (fboundp f) (push f noruntime) (push f unresolved)))
1508 ;; Complain about the no-run-time functions 1508 ;; Complain about the no-run-time functions
1509 (byte-compile-print-syms 1509 (byte-compile-print-syms
1510 "the function %s might not be defined at runtime." 1510 "the function `%s' might not be defined at runtime."
1511 "the following functions might not be defined at runtime:" 1511 "the following functions might not be defined at runtime:"
1512 noruntime) 1512 noruntime)
1513 ;; Complain about the unresolved functions 1513 ;; Complain about the unresolved functions
1514 (byte-compile-print-syms 1514 (byte-compile-print-syms
1515 "the function %s is not known to be defined." 1515 "the function `%s' is not known to be defined."
1516 "the following functions are not known to be defined:" 1516 "the following functions are not known to be defined:"
1517 unresolved))) 1517 unresolved)))
1518 nil) 1518 nil)
@@ -1818,7 +1818,7 @@ The value is non-nil if there were no errors, nil if errors."
1818 ;; (byte-compile-abbreviate-file filename) 1818 ;; (byte-compile-abbreviate-file filename)
1819 ;; (with-current-buffer input-buffer no-byte-compile)) 1819 ;; (with-current-buffer input-buffer no-byte-compile))
1820 (when (file-exists-p target-file) 1820 (when (file-exists-p target-file)
1821 (message "%s deleted because of no-byte-compile: %s" 1821 (message "%s deleted because of `no-byte-compile: %s'"
1822 (byte-compile-abbreviate-file target-file) 1822 (byte-compile-abbreviate-file target-file)
1823 (buffer-local-value 'no-byte-compile input-buffer)) 1823 (buffer-local-value 'no-byte-compile input-buffer))
1824 (condition-case nil (delete-file target-file) (error nil))) 1824 (condition-case nil (delete-file target-file) (error nil)))
@@ -2301,12 +2301,12 @@ list that represents a doc string reference.
2301 (when (and (symbolp sym) 2301 (when (and (symbolp sym)
2302 (not (string-match "[-*/:$]" (symbol-name sym))) 2302 (not (string-match "[-*/:$]" (symbol-name sym)))
2303 (byte-compile-warning-enabled-p 'lexical)) 2303 (byte-compile-warning-enabled-p 'lexical))
2304 (byte-compile-warn "global/dynamic var %s lacks a prefix" 2304 (byte-compile-warn "global/dynamic var `%s' lacks a prefix"
2305 sym)) 2305 sym))
2306 (when (memq sym byte-compile-lexical-variables) 2306 (when (memq sym byte-compile-lexical-variables)
2307 (setq byte-compile-lexical-variables 2307 (setq byte-compile-lexical-variables
2308 (delq sym byte-compile-lexical-variables)) 2308 (delq sym byte-compile-lexical-variables))
2309 (byte-compile-warn "Variable %S declared after its first use" sym)) 2309 (byte-compile-warn "Variable `%S' declared after its first use" sym))
2310 (push sym byte-compile-bound-variables)) 2310 (push sym byte-compile-bound-variables))
2311 2311
2312(defun byte-compile-file-form-defvar (form) 2312(defun byte-compile-file-form-defvar (form)
@@ -2423,7 +2423,7 @@ not to take responsibility for the actual compilation of the code."
2423 ;; Don't warn when compiling the stubs in byte-run... 2423 ;; Don't warn when compiling the stubs in byte-run...
2424 (not (assq name byte-compile-initial-macro-environment))) 2424 (not (assq name byte-compile-initial-macro-environment)))
2425 (byte-compile-warn 2425 (byte-compile-warn
2426 "%s defined multiple times, as both function and macro" 2426 "`%s' defined multiple times, as both function and macro"
2427 name)) 2427 name))
2428 (setcdr that-one nil)) 2428 (setcdr that-one nil))
2429 (this-one 2429 (this-one
@@ -2431,13 +2431,13 @@ not to take responsibility for the actual compilation of the code."
2431 ;; Hack: Don't warn when compiling the magic internal 2431 ;; Hack: Don't warn when compiling the magic internal
2432 ;; byte-compiler macros in byte-run.el... 2432 ;; byte-compiler macros in byte-run.el...
2433 (not (assq name byte-compile-initial-macro-environment))) 2433 (not (assq name byte-compile-initial-macro-environment)))
2434 (byte-compile-warn "%s %s defined multiple times in this file" 2434 (byte-compile-warn "%s `%s' defined multiple times in this file"
2435 (if macro "macro" "function") 2435 (if macro "macro" "function")
2436 name))) 2436 name)))
2437 ((eq (car-safe (symbol-function name)) 2437 ((eq (car-safe (symbol-function name))
2438 (if macro 'lambda 'macro)) 2438 (if macro 'lambda 'macro))
2439 (when (byte-compile-warning-enabled-p 'redefine) 2439 (when (byte-compile-warning-enabled-p 'redefine)
2440 (byte-compile-warn "%s %s being redefined as a %s" 2440 (byte-compile-warn "%s `%s' being redefined as a %s"
2441 (if macro "function" "macro") 2441 (if macro "function" "macro")
2442 name 2442 name
2443 (if macro "macro" "function"))) 2443 (if macro "macro" "function")))
@@ -2454,7 +2454,7 @@ not to take responsibility for the actual compilation of the code."
2454 (stringp (car-safe (cdr-safe (cdr-safe body))))) 2454 (stringp (car-safe (cdr-safe (cdr-safe body)))))
2455 ;; FIXME: We've done that already just above, so this looks wrong! 2455 ;; FIXME: We've done that already just above, so this looks wrong!
2456 ;;(byte-compile-set-symbol-position name) 2456 ;;(byte-compile-set-symbol-position name)
2457 (byte-compile-warn "probable \" without \\ in doc string of %s" 2457 (byte-compile-warn "probable `\"' without `\\' in doc string of %s"
2458 name)) 2458 name))
2459 2459
2460 (if (not (listp body)) 2460 (if (not (listp body))
@@ -2585,7 +2585,9 @@ If FORM is a lambda or a macro, byte-compile it as a function."
2585 (if (symbolp form) form "provided")) 2585 (if (symbolp form) form "provided"))
2586 fun) 2586 fun)
2587 (t 2587 (t
2588 (when (symbolp form) 2588 (when (or (symbolp form) (eq (car-safe fun) 'closure))
2589 ;; `fun' is a function *value*, so try to recover its corresponding
2590 ;; source code.
2589 (setq lexical-binding (eq (car fun) 'closure)) 2591 (setq lexical-binding (eq (car fun) 'closure))
2590 (setq fun (byte-compile--reify-function fun))) 2592 (setq fun (byte-compile--reify-function fun)))
2591 ;; Expand macros. 2593 ;; Expand macros.
@@ -2980,13 +2982,13 @@ for symbols generated by the byte compiler itself."
2980 (`(',var . ,_) 2982 (`(',var . ,_)
2981 (when (assq var byte-compile-lexical-variables) 2983 (when (assq var byte-compile-lexical-variables)
2982 (byte-compile-log-warning 2984 (byte-compile-log-warning
2983 (format-message "%s cannot use lexical var %s" fn var) 2985 (format-message "%s cannot use lexical var `%s'" fn var)
2984 nil :error))))) 2986 nil :error)))))
2985 (when (macroexp--const-symbol-p fn) 2987 (when (macroexp--const-symbol-p fn)
2986 (byte-compile-warn "%s called as a function" fn)) 2988 (byte-compile-warn "`%s' called as a function" fn))
2987 (when (and (byte-compile-warning-enabled-p 'interactive-only) 2989 (when (and (byte-compile-warning-enabled-p 'interactive-only)
2988 interactive-only) 2990 interactive-only)
2989 (byte-compile-warn "%s is for interactive use only%s" 2991 (byte-compile-warn "`%s' is for interactive use only%s"
2990 fn 2992 fn
2991 (cond ((stringp interactive-only) 2993 (cond ((stringp interactive-only)
2992 (format "; %s" 2994 (format "; %s"
@@ -2994,7 +2996,7 @@ for symbols generated by the byte compiler itself."
2994 interactive-only))) 2996 interactive-only)))
2995 ((and (symbolp 'interactive-only) 2997 ((and (symbolp 'interactive-only)
2996 (not (eq interactive-only t))) 2998 (not (eq interactive-only t)))
2997 (format-message "; use %s instead." 2999 (format-message "; use `%s' instead."
2998 interactive-only)) 3000 interactive-only))
2999 (t ".")))) 3001 (t "."))))
3000 (if (eq (car-safe (symbol-function (car form))) 'macro) 3002 (if (eq (car-safe (symbol-function (car form))) 'macro)
@@ -3039,7 +3041,7 @@ for symbols generated by the byte compiler itself."
3039 (byte-compile-warning-enabled-p 'mapcar)) 3041 (byte-compile-warning-enabled-p 'mapcar))
3040 (byte-compile-set-symbol-position 'mapcar) 3042 (byte-compile-set-symbol-position 'mapcar)
3041 (byte-compile-warn 3043 (byte-compile-warn
3042 "mapcar called for effect; use mapc or dolist instead")) 3044 "`mapcar' called for effect; use `mapc' or `dolist' instead"))
3043 (byte-compile-push-constant (car form)) 3045 (byte-compile-push-constant (car form))
3044 (mapc 'byte-compile-form (cdr form)) ; wasteful, but faster. 3046 (mapc 'byte-compile-form (cdr form)) ; wasteful, but faster.
3045 (byte-compile-out 'byte-call (length (cdr form)))) 3047 (byte-compile-out 'byte-call (length (cdr form))))
@@ -3127,8 +3129,8 @@ for symbols generated by the byte compiler itself."
3127 (cond ((or (not (symbolp var)) (macroexp--const-symbol-p var)) 3129 (cond ((or (not (symbolp var)) (macroexp--const-symbol-p var))
3128 (when (byte-compile-warning-enabled-p 'constants) 3130 (when (byte-compile-warning-enabled-p 'constants)
3129 (byte-compile-warn (if (eq access-type 'let-bind) 3131 (byte-compile-warn (if (eq access-type 'let-bind)
3130 "attempt to let-bind %s %s" 3132 "attempt to let-bind %s `%s'"
3131 "variable reference to %s %s") 3133 "variable reference to %s `%s'")
3132 (if (symbolp var) "constant" "nonvariable") 3134 (if (symbolp var) "constant" "nonvariable")
3133 (prin1-to-string var)))) 3135 (prin1-to-string var))))
3134 ((let ((od (get var 'byte-obsolete-variable))) 3136 ((let ((od (get var 'byte-obsolete-variable)))
@@ -3166,7 +3168,7 @@ for symbols generated by the byte compiler itself."
3166 (boundp var) 3168 (boundp var)
3167 (memq var byte-compile-bound-variables) 3169 (memq var byte-compile-bound-variables)
3168 (memq var byte-compile-free-references)) 3170 (memq var byte-compile-free-references))
3169 (byte-compile-warn "reference to free variable %S" var) 3171 (byte-compile-warn "reference to free variable `%S'" var)
3170 (push var byte-compile-free-references)) 3172 (push var byte-compile-free-references))
3171 (byte-compile-dynamic-variable-op 'byte-varref var)))) 3173 (byte-compile-dynamic-variable-op 'byte-varref var))))
3172 3174
@@ -3182,7 +3184,7 @@ for symbols generated by the byte compiler itself."
3182 (boundp var) 3184 (boundp var)
3183 (memq var byte-compile-bound-variables) 3185 (memq var byte-compile-bound-variables)
3184 (memq var byte-compile-free-assignments)) 3186 (memq var byte-compile-free-assignments))
3185 (byte-compile-warn "assignment to free variable %s" var) 3187 (byte-compile-warn "assignment to free variable `%s'" var)
3186 (push var byte-compile-free-assignments)) 3188 (push var byte-compile-free-assignments))
3187 (byte-compile-dynamic-variable-op 'byte-varset var)))) 3189 (byte-compile-dynamic-variable-op 'byte-varset var))))
3188 3190
@@ -3363,7 +3365,7 @@ If it is nil, then the handler is \"byte-compile-SYMBOL.\""
3363 3365
3364(defun byte-compile-subr-wrong-args (form n) 3366(defun byte-compile-subr-wrong-args (form n)
3365 (byte-compile-set-symbol-position (car form)) 3367 (byte-compile-set-symbol-position (car form))
3366 (byte-compile-warn "%s called with %d arg%s, but requires %s" 3368 (byte-compile-warn "`%s' called with %d arg%s, but requires %s"
3367 (car form) (length (cdr form)) 3369 (car form) (length (cdr form))
3368 (if (= 1 (length (cdr form))) "" "s") n) 3370 (if (= 1 (length (cdr form))) "" "s") n)
3369 ;; Get run-time wrong-number-of-args error. 3371 ;; Get run-time wrong-number-of-args error.
@@ -3731,7 +3733,7 @@ discarding."
3731 (macroexp--const-symbol-p var t)) 3733 (macroexp--const-symbol-p var t))
3732 (byte-compile-warning-enabled-p 'constants) 3734 (byte-compile-warning-enabled-p 'constants)
3733 (byte-compile-warn 3735 (byte-compile-warn
3734 "variable assignment to %s %s" 3736 "variable assignment to %s `%s'"
3735 (if (symbolp var) "constant" "nonvariable") 3737 (if (symbolp var) "constant" "nonvariable")
3736 (prin1-to-string var))) 3738 (prin1-to-string var)))
3737 (byte-compile-normal-call `(set-default ',var ,@(cdr form))))))) 3739 (byte-compile-normal-call `(set-default ',var ,@(cdr form)))))))
@@ -4105,7 +4107,7 @@ binding slots have been popped."
4105 (list 'not 4107 (list 'not
4106 (cons (or (get (car form) 'byte-compile-negated-op) 4108 (cons (or (get (car form) 'byte-compile-negated-op)
4107 (error 4109 (error
4108 "Compiler error: %s has no byte-compile-negated-op property" 4110 "Compiler error: `%s' has no `byte-compile-negated-op' property"
4109 (car form))) 4111 (car form)))
4110 (cdr form)))) 4112 (cdr form))))
4111 4113
@@ -4168,7 +4170,7 @@ binding slots have been popped."
4168 (byte-compile-set-symbol-position 'condition-case) 4170 (byte-compile-set-symbol-position 'condition-case)
4169 (unless (symbolp var) 4171 (unless (symbolp var)
4170 (byte-compile-warn 4172 (byte-compile-warn
4171 "%s is not a variable-name or nil (in condition-case)" var)) 4173 "`%s' is not a variable-name or nil (in condition-case)" var))
4172 (if fun-bodies (setq var (make-symbol "err"))) 4174 (if fun-bodies (setq var (make-symbol "err")))
4173 (byte-compile-push-constant var) 4175 (byte-compile-push-constant var)
4174 (if fun-bodies 4176 (if fun-bodies
@@ -4187,7 +4189,7 @@ binding slots have been popped."
4187 (setq ok nil))) 4189 (setq ok nil)))
4188 ok)))) 4190 ok))))
4189 (byte-compile-warn 4191 (byte-compile-warn
4190 "%S is not a condition name or list of such (in condition-case)" 4192 "`%S' is not a condition name or list of such (in condition-case)"
4191 condition)) 4193 condition))
4192 ;; (not (or (eq condition 't) 4194 ;; (not (or (eq condition 't)
4193 ;; (and (stringp (get condition 'error-message)) 4195 ;; (and (stringp (get condition 'error-message))
@@ -4220,7 +4222,7 @@ binding slots have been popped."
4220 (byte-compile-set-symbol-position 'condition-case) 4222 (byte-compile-set-symbol-position 'condition-case)
4221 (unless (symbolp var) 4223 (unless (symbolp var)
4222 (byte-compile-warn 4224 (byte-compile-warn
4223 "%s is not a variable-name or nil (in condition-case)" var)) 4225 "`%s' is not a variable-name or nil (in condition-case)" var))
4224 4226
4225 (dolist (clause (reverse clauses)) 4227 (dolist (clause (reverse clauses))
4226 (let ((condition (nth 1 clause))) 4228 (let ((condition (nth 1 clause)))
@@ -4228,7 +4230,7 @@ binding slots have been popped."
4228 (dolist (c condition) 4230 (dolist (c condition)
4229 (unless (and c (symbolp c)) 4231 (unless (and c (symbolp c))
4230 (byte-compile-warn 4232 (byte-compile-warn
4231 "%S is not a condition name (in condition-case)" c)) 4233 "`%S' is not a condition name (in condition-case)" c))
4232 ;; In reality, the `error-conditions' property is only required 4234 ;; In reality, the `error-conditions' property is only required
4233 ;; for the argument to `signal', not to `condition-case'. 4235 ;; for the argument to `signal', not to `condition-case'.
4234 ;;(unless (consp (get c 'error-conditions)) 4236 ;;(unless (consp (get c 'error-conditions))
@@ -4270,7 +4272,7 @@ binding slots have been popped."
4270 (if (and (eq 'set-buffer (car-safe (car-safe (cdr form)))) 4272 (if (and (eq 'set-buffer (car-safe (car-safe (cdr form))))
4271 (byte-compile-warning-enabled-p 'suspicious)) 4273 (byte-compile-warning-enabled-p 'suspicious))
4272 (byte-compile-warn 4274 (byte-compile-warn
4273 "Use with-current-buffer rather than save-excursion+set-buffer")) 4275 "Use `with-current-buffer' rather than save-excursion+set-buffer"))
4274 (byte-compile-out 'byte-save-excursion 0) 4276 (byte-compile-out 'byte-save-excursion 0)
4275 (byte-compile-body-do-effect (cdr form)) 4277 (byte-compile-body-do-effect (cdr form))
4276 (byte-compile-out 'byte-unbind 1)) 4278 (byte-compile-out 'byte-unbind 1))
@@ -4310,7 +4312,7 @@ binding slots have been popped."
4310 (when (and (symbolp (nth 1 form)) 4312 (when (and (symbolp (nth 1 form))
4311 (not (string-match "[-*/:$]" (symbol-name (nth 1 form)))) 4313 (not (string-match "[-*/:$]" (symbol-name (nth 1 form))))
4312 (byte-compile-warning-enabled-p 'lexical)) 4314 (byte-compile-warning-enabled-p 'lexical))
4313 (byte-compile-warn "global/dynamic var %s lacks a prefix" 4315 (byte-compile-warn "global/dynamic var `%s' lacks a prefix"
4314 (nth 1 form))) 4316 (nth 1 form)))
4315 (let ((fun (nth 0 form)) 4317 (let ((fun (nth 0 form))
4316 (var (nth 1 form)) 4318 (var (nth 1 form))
@@ -4321,7 +4323,7 @@ binding slots have been popped."
4321 (and (eq fun 'defconst) (null (cddr form)))) 4323 (and (eq fun 'defconst) (null (cddr form))))
4322 (let ((ncall (length (cdr form)))) 4324 (let ((ncall (length (cdr form))))
4323 (byte-compile-warn 4325 (byte-compile-warn
4324 "%s called with %d argument%s, but %s %s" 4326 "`%s' called with %d argument%s, but %s %s"
4325 fun ncall 4327 fun ncall
4326 (if (= 1 ncall) "" "s") 4328 (if (= 1 ncall) "" "s")
4327 (if (< ncall 2) "requires" "accepts only") 4329 (if (< ncall 2) "requires" "accepts only")
@@ -4330,7 +4332,7 @@ binding slots have been popped."
4330 (if (eq fun 'defconst) 4332 (if (eq fun 'defconst)
4331 (push var byte-compile-const-variables)) 4333 (push var byte-compile-const-variables))
4332 (when (and string (not (stringp string))) 4334 (when (and string (not (stringp string)))
4333 (byte-compile-warn "third arg to %s %s is not a string: %s" 4335 (byte-compile-warn "third arg to `%s %s' is not a string: %s"
4334 fun var string)) 4336 fun var string))
4335 (byte-compile-form-do-effect 4337 (byte-compile-form-do-effect
4336 (if (cddr form) ; `value' provided 4338 (if (cddr form) ; `value' provided
@@ -4353,7 +4355,7 @@ binding slots have been popped."
4353 (not (fboundp (eval (nth 1 form)))) 4355 (not (fboundp (eval (nth 1 form))))
4354 (byte-compile-warn 4356 (byte-compile-warn
4355 "The compiler ignores `autoload' except at top level. You should 4357 "The compiler ignores `autoload' except at top level. You should
4356 probably put the autoload of the macro %s at top-level." 4358 probably put the autoload of the macro `%s' at top-level."
4357 (eval (nth 1 form)))) 4359 (eval (nth 1 form))))
4358 (byte-compile-normal-call form)) 4360 (byte-compile-normal-call form))
4359 4361
@@ -4361,7 +4363,7 @@ binding slots have been popped."
4361;; The ones that remain are errors. 4363;; The ones that remain are errors.
4362(defun byte-compile-lambda-form (_form) 4364(defun byte-compile-lambda-form (_form)
4363 (byte-compile-set-symbol-position 'lambda) 4365 (byte-compile-set-symbol-position 'lambda)
4364 (error "lambda used as function name is invalid")) 4366 (error "`lambda' used as function name is invalid"))
4365 4367
4366;; Compile normally, but deal with warnings for the function being defined. 4368;; Compile normally, but deal with warnings for the function being defined.
4367(put 'defalias 'byte-hunk-handler 'byte-compile-file-form-defalias) 4369(put 'defalias 'byte-hunk-handler 'byte-compile-file-form-defalias)
@@ -4433,7 +4435,7 @@ binding slots have been popped."
4433 (if (and (eq (car-safe (car-safe (cdr-safe form))) 'quote) 4435 (if (and (eq (car-safe (car-safe (cdr-safe form))) 'quote)
4434 (byte-compile-warning-enabled-p 'make-local)) 4436 (byte-compile-warning-enabled-p 'make-local))
4435 (byte-compile-warn 4437 (byte-compile-warn
4436 "make-variable-buffer-local not called at toplevel")) 4438 "`make-variable-buffer-local' not called at toplevel"))
4437 (byte-compile-normal-call form)) 4439 (byte-compile-normal-call form))
4438(put 'make-variable-buffer-local 4440(put 'make-variable-buffer-local
4439 'byte-hunk-handler 'byte-compile-form-make-variable-buffer-local) 4441 'byte-hunk-handler 'byte-compile-form-make-variable-buffer-local)
@@ -4565,7 +4567,7 @@ invoked interactively."
4565 (length (nth 2 y)))))) 4567 (length (nth 2 y))))))
4566 (`name 4568 (`name
4567 (lambda (x y) (string< (car x) (car y)))) 4569 (lambda (x y) (string< (car x) (car y))))
4568 (_ (error "byte-compile-call-tree-sort: %s - unknown sort mode" 4570 (_ (error "`byte-compile-call-tree-sort': `%s' - unknown sort mode"
4569 byte-compile-call-tree-sort)))))) 4571 byte-compile-call-tree-sort))))))
4570 (message "Generating call tree...") 4572 (message "Generating call tree...")
4571 (let ((rest byte-compile-call-tree) 4573 (let ((rest byte-compile-call-tree)
@@ -4678,7 +4680,7 @@ already up-to-date."
4678 ;; startup.el. 4680 ;; startup.el.
4679 (defvar command-line-args-left) ;Avoid 'free variable' warning 4681 (defvar command-line-args-left) ;Avoid 'free variable' warning
4680 (if (not noninteractive) 4682 (if (not noninteractive)
4681 (error "batch-byte-compile is to be used only with -batch")) 4683 (error "`batch-byte-compile' is to be used only with -batch"))
4682 (let ((error nil)) 4684 (let ((error nil))
4683 (while command-line-args-left 4685 (while command-line-args-left
4684 (if (file-directory-p (expand-file-name (car command-line-args-left))) 4686 (if (file-directory-p (expand-file-name (car command-line-args-left)))
diff --git a/lisp/emacs-lisp/cconv.el b/lisp/emacs-lisp/cconv.el
index a20e201add6..205ae6d711e 100644
--- a/lisp/emacs-lisp/cconv.el
+++ b/lisp/emacs-lisp/cconv.el
@@ -300,7 +300,7 @@ places where they originally did not directly appear."
300 (prog1 binder (setq binder (list binder))) 300 (prog1 binder (setq binder (list binder)))
301 (when (cddr binder) 301 (when (cddr binder)
302 (byte-compile-log-warning 302 (byte-compile-log-warning
303 (format-message "Malformed %S binding: %S" 303 (format-message "Malformed `%S' binding: %S"
304 letsym binder))) 304 letsym binder)))
305 (setq value (cadr binder)) 305 (setq value (cadr binder))
306 (car binder))) 306 (car binder)))
@@ -546,7 +546,7 @@ FORM is the parent form that binds this var."
546 (`((,(and var (guard (eq ?_ (aref (symbol-name var) 0)))) . ,_) 546 (`((,(and var (guard (eq ?_ (aref (symbol-name var) 0)))) . ,_)
547 ,_ ,_ ,_ ,_) 547 ,_ ,_ ,_ ,_)
548 (byte-compile-log-warning 548 (byte-compile-log-warning
549 (format-message "%s %S not left unused" varkind var)))) 549 (format-message "%s `%S' not left unused" varkind var))))
550 (pcase vardata 550 (pcase vardata
551 (`((,var . ,_) nil ,_ ,_ nil) 551 (`((,var . ,_) nil ,_ ,_ nil)
552 ;; FIXME: This gives warnings in the wrong order, with imprecise line 552 ;; FIXME: This gives warnings in the wrong order, with imprecise line
@@ -558,7 +558,7 @@ FORM is the parent form that binds this var."
558 (eq ?_ (aref (symbol-name var) 0)) 558 (eq ?_ (aref (symbol-name var) 0))
559 ;; As a special exception, ignore "ignore". 559 ;; As a special exception, ignore "ignore".
560 (eq var 'ignored)) 560 (eq var 'ignored))
561 (byte-compile-log-warning (format-message "Unused lexical %s %S" 561 (byte-compile-log-warning (format-message "Unused lexical %s `%S'"
562 varkind var)))) 562 varkind var))))
563 ;; If it's unused, there's no point converting it into a cons-cell, even if 563 ;; If it's unused, there's no point converting it into a cons-cell, even if
564 ;; it's captured and mutated. 564 ;; it's captured and mutated.
diff --git a/lisp/emacs-lisp/chart.el b/lisp/emacs-lisp/chart.el
index d97287960a8..06601252a4c 100644
--- a/lisp/emacs-lisp/chart.el
+++ b/lisp/emacs-lisp/chart.el
@@ -652,7 +652,7 @@ SORT-PRED if desired."
652 (set-buffer b) 652 (set-buffer b)
653 (erase-buffer) 653 (erase-buffer)
654 (insert "cd " d ";du -sk * \n") 654 (insert "cd " d ";du -sk * \n")
655 (message "Running cd %s;du -sk *..." d) 655 (message "Running `cd %s;du -sk *'..." d)
656 (call-process-region (point-min) (point-max) shell-file-name t 656 (call-process-region (point-min) (point-max) shell-file-name t
657 (current-buffer) nil) 657 (current-buffer) nil)
658 (goto-char (point-min)) 658 (goto-char (point-min))
diff --git a/lisp/emacs-lisp/check-declare.el b/lisp/emacs-lisp/check-declare.el
index bdcb4ec00a2..3b69e959282 100644
--- a/lisp/emacs-lisp/check-declare.el
+++ b/lisp/emacs-lisp/check-declare.el
@@ -106,7 +106,7 @@ don't know how to recognize (e.g. some macros)."
106 (symbolp (setq fileonly (nth 4 form)))) 106 (symbolp (setq fileonly (nth 4 form))))
107 (setq alist (cons (list fnfile fn arglist fileonly) alist)) 107 (setq alist (cons (list fnfile fn arglist fileonly) alist))
108 ;; FIXME make this more noticeable. 108 ;; FIXME make this more noticeable.
109 (if form (message "Malformed declaration for %s" (cadr form)))))) 109 (if form (message "Malformed declaration for `%s'" (cadr form))))))
110 (message "%sdone" m) 110 (message "%sdone" m)
111 alist)) 111 alist))
112 112
@@ -279,7 +279,7 @@ TYPE is a string giving the nature of the error. Warning is displayed in
279 entry)) 279 entry))
280 (warning-fill-prefix " ")) 280 (warning-fill-prefix " "))
281 (display-warning 'check-declare 281 (display-warning 'check-declare
282 (format-message "said %s was defined in %s: %s" 282 (format-message "said `%s' was defined in %s: %s"
283 fn (file-name-nondirectory fnfile) type) 283 fn (file-name-nondirectory fnfile) type)
284 nil check-declare-warning-buffer))) 284 nil check-declare-warning-buffer)))
285 285
@@ -318,7 +318,7 @@ Return a list of any errors found."
318See `check-declare-directory' for more information." 318See `check-declare-directory' for more information."
319 (interactive "fFile to check: ") 319 (interactive "fFile to check: ")
320 (or (file-exists-p file) 320 (or (file-exists-p file)
321 (error "File %s not found" file)) 321 (error "File `%s' not found" file))
322 (let ((m (format "Checking %s..." file)) 322 (let ((m (format "Checking %s..." file))
323 errlist) 323 errlist)
324 (message "%s" m) 324 (message "%s" m)
@@ -332,8 +332,8 @@ See `check-declare-directory' for more information."
332Returns non-nil if any false statements are found." 332Returns non-nil if any false statements are found."
333 (interactive "DDirectory to check: ") 333 (interactive "DDirectory to check: ")
334 (or (file-directory-p (setq root (expand-file-name root))) 334 (or (file-directory-p (setq root (expand-file-name root)))
335 (error "Directory %s not found" root)) 335 (error "Directory `%s' not found" root))
336 (let ((m "Checking declare-function statements...") 336 (let ((m "Checking `declare-function' statements...")
337 (m2 "Finding files with declarations...") 337 (m2 "Finding files with declarations...")
338 errlist files) 338 errlist files)
339 (message "%s" m) 339 (message "%s" m)
diff --git a/lisp/emacs-lisp/checkdoc.el b/lisp/emacs-lisp/checkdoc.el
index b2c81197968..4a9e16ae88e 100644
--- a/lisp/emacs-lisp/checkdoc.el
+++ b/lisp/emacs-lisp/checkdoc.el
@@ -1419,7 +1419,7 @@ regexp short cuts work. FP is the function defun information."
1419 (when (re-search-forward "^(" e t) 1419 (when (re-search-forward "^(" e t)
1420 (if (checkdoc-autofix-ask-replace (match-beginning 0) 1420 (if (checkdoc-autofix-ask-replace (match-beginning 0)
1421 (match-end 0) 1421 (match-end 0)
1422 "Escape this (? " 1422 (format-message "Escape this `('? ")
1423 "\\(") 1423 "\\(")
1424 nil 1424 nil
1425 (checkdoc-create-error 1425 (checkdoc-create-error
@@ -1715,7 +1715,7 @@ function,command,variable,option or symbol." ms1))))))
1715 (if (checkdoc-autofix-ask-replace 1715 (if (checkdoc-autofix-ask-replace
1716 (match-beginning 1) (match-end 1) 1716 (match-beginning 1) (match-end 1)
1717 (format-message 1717 (format-message
1718 "If this is the argument %s, it should appear as %s. Fix? " 1718 "If this is the argument `%s', it should appear as %s. Fix? "
1719 (car args) (upcase (car args))) 1719 (car args) (upcase (car args)))
1720 (upcase (car args)) t) 1720 (upcase (car args)) t)
1721 (setq found (match-beginning 1)))))) 1721 (setq found (match-beginning 1))))))
@@ -1741,7 +1741,7 @@ function,command,variable,option or symbol." ms1))))))
1741 nil) 1741 nil)
1742 (checkdoc-create-error 1742 (checkdoc-create-error
1743 (format-message 1743 (format-message
1744 "Argument %s should appear (as %s) in the doc string" 1744 "Argument `%s' should appear (as %s) in the doc string"
1745 (car args) (upcase (car args))) 1745 (car args) (upcase (car args)))
1746 s (marker-position e))) 1746 s (marker-position e)))
1747 (if (or (and order (eq order 'yes)) 1747 (if (or (and order (eq order 'yes))
@@ -1825,15 +1825,15 @@ Replace with \"%s\"? " original replace)
1825 (or (boundp found) (fboundp found))) 1825 (or (boundp found) (fboundp found)))
1826 (progn 1826 (progn
1827 (setq msg (format-message 1827 (setq msg (format-message
1828 "Add quotes around Lisp symbol %s? " ms)) 1828 "Add quotes around Lisp symbol `%s'? " ms))
1829 (if (checkdoc-autofix-ask-replace 1829 (if (checkdoc-autofix-ask-replace
1830 (match-beginning 1) (+ (match-beginning 1) 1830 (match-beginning 1) (+ (match-beginning 1)
1831 (length ms)) 1831 (length ms))
1832 msg (concat "" ms "’") t) 1832 msg (format-message "`%s'" ms) t)
1833 (setq msg nil) 1833 (setq msg nil)
1834 (setq msg 1834 (setq msg
1835 (format-message 1835 (format-message
1836 "Lisp symbol %s should appear in quotes" ms)))))) 1836 "Lisp symbol `%s' should appear in quotes" ms))))))
1837 (if msg 1837 (if msg
1838 (checkdoc-create-error msg (match-beginning 1) 1838 (checkdoc-create-error msg (match-beginning 1)
1839 (+ (match-beginning 1) 1839 (+ (match-beginning 1)
@@ -1849,7 +1849,7 @@ Replace with \"%s\"? " original replace)
1849 (match-string 2) t) 1849 (match-string 2) t)
1850 nil 1850 nil
1851 (checkdoc-create-error 1851 (checkdoc-create-error
1852 "Symbols t and nil should not appear in ‘...’ quotes" 1852 "Symbols t and nil should not appear in single quotes"
1853 (match-beginning 1) (match-end 1))))) 1853 (match-beginning 1) (match-end 1)))))
1854 ;; Here is some basic sentence formatting 1854 ;; Here is some basic sentence formatting
1855 (checkdoc-sentencespace-region-engine (point) e) 1855 (checkdoc-sentencespace-region-engine (point) e)
@@ -2487,22 +2487,24 @@ Argument TYPE specifies the type of question, such as `error' or `y-or-n-p'."
2487 ;; If we see a ?, then replace with "? ". 2487 ;; If we see a ?, then replace with "? ".
2488 (if (checkdoc-autofix-ask-replace 2488 (if (checkdoc-autofix-ask-replace
2489 (match-beginning 0) (match-end 0) 2489 (match-beginning 0) (match-end 0)
2490 "‘y-or-n-p’ argument should end with \"? \". Fix? " 2490 (format-message
2491 "`y-or-n-p' argument should end with \"? \". Fix? ")
2491 "? " t) 2492 "? " t)
2492 nil 2493 nil
2493 (checkdoc-create-error 2494 (checkdoc-create-error
2494 "y-or-n-p argument should end with \"? \"" 2495 "`y-or-n-p' argument should end with \"? \""
2495 (match-beginning 0) (match-end 0))) 2496 (match-beginning 0) (match-end 0)))
2496 (if (save-excursion (forward-sexp 1) 2497 (if (save-excursion (forward-sexp 1)
2497 (forward-char -2) 2498 (forward-char -2)
2498 (looking-at " ")) 2499 (looking-at " "))
2499 (if (checkdoc-autofix-ask-replace 2500 (if (checkdoc-autofix-ask-replace
2500 (match-beginning 0) (match-end 0) 2501 (match-beginning 0) (match-end 0)
2501 "‘y-or-n-p’ argument should end with \"? \". Fix? " 2502 (format-message
2503 "`y-or-n-p' argument should end with \"? \". Fix? ")
2502 "? " t) 2504 "? " t)
2503 nil 2505 nil
2504 (checkdoc-create-error 2506 (checkdoc-create-error
2505 "y-or-n-p argument should end with \"? \"" 2507 "`y-or-n-p' argument should end with \"? \""
2506 (match-beginning 0) (match-end 0))) 2508 (match-beginning 0) (match-end 0)))
2507 (if (and ;; if this isn't true, we have a problem. 2509 (if (and ;; if this isn't true, we have a problem.
2508 (save-excursion (forward-sexp 1) 2510 (save-excursion (forward-sexp 1)
@@ -2510,11 +2512,12 @@ Argument TYPE specifies the type of question, such as `error' or `y-or-n-p'."
2510 (looking-at "\"")) 2512 (looking-at "\""))
2511 (checkdoc-autofix-ask-replace 2513 (checkdoc-autofix-ask-replace
2512 (match-beginning 0) (match-end 0) 2514 (match-beginning 0) (match-end 0)
2513 "‘y-or-n-p’ argument should end with \"? \". Fix? " 2515 (format-message
2516 "`y-or-n-p' argument should end with \"? \". Fix? ")
2514 "? \"" t)) 2517 "? \"" t))
2515 nil 2518 nil
2516 (checkdoc-create-error 2519 (checkdoc-create-error
2517 "y-or-n-p argument should end with \"? \"" 2520 "`y-or-n-p' argument should end with \"? \""
2518 (match-beginning 0) (match-end 0))))))) 2521 (match-beginning 0) (match-end 0)))))))
2519 ;; Now, let's just run the spell checker on this guy. 2522 ;; Now, let's just run the spell checker on this guy.
2520 (checkdoc-ispell-docstring-engine (save-excursion (forward-sexp 1) 2523 (checkdoc-ispell-docstring-engine (save-excursion (forward-sexp 1)
diff --git a/lisp/emacs-lisp/cl-extra.el b/lisp/emacs-lisp/cl-extra.el
index 7a7712ac0d3..dddfca7ae83 100644
--- a/lisp/emacs-lisp/cl-extra.el
+++ b/lisp/emacs-lisp/cl-extra.el
@@ -415,7 +415,7 @@ as an integer unless JUNK-ALLOWED is non-nil."
415 (cond ((and junk-allowed (null sum)) sum) 415 (cond ((and junk-allowed (null sum)) sum)
416 (junk-allowed (* sign sum)) 416 (junk-allowed (* sign sum))
417 ((or (/= start end) (null sum)) 417 ((or (/= start end) (null sum))
418 (error "Not an integer string: %s" string)) 418 (error "Not an integer string: `%s'" string))
419 (t (* sign sum))))))) 419 (t (* sign sum)))))))
420 420
421 421
@@ -774,16 +774,16 @@ including `cl-block' and `cl-eval-when'."
774 ;; FIXME: Add a `cl-class-of' or `cl-typeof' or somesuch. 774 ;; FIXME: Add a `cl-class-of' or `cl-typeof' or somesuch.
775 (metatype (cl--class-name (symbol-value (aref class 0))))) 775 (metatype (cl--class-name (symbol-value (aref class 0)))))
776 (insert (symbol-name type) 776 (insert (symbol-name type)
777 (substitute-command-keys " is a type (of kind ")) 777 (substitute-command-keys " is a type (of kind `"))
778 (help-insert-xref-button (symbol-name metatype) 778 (help-insert-xref-button (symbol-name metatype)
779 'cl-help-type metatype) 779 'cl-help-type metatype)
780 (insert (substitute-command-keys ")")) 780 (insert (substitute-command-keys "')"))
781 (when location 781 (when location
782 (insert (substitute-command-keys " in ")) 782 (insert (substitute-command-keys " in `"))
783 (help-insert-xref-button 783 (help-insert-xref-button
784 (help-fns-short-filename location) 784 (help-fns-short-filename location)
785 'cl-type-definition type location 'define-type) 785 'cl-type-definition type location 'define-type)
786 (insert (substitute-command-keys ""))) 786 (insert (substitute-command-keys "'")))
787 (insert ".\n") 787 (insert ".\n")
788 788
789 ;; Parents. 789 ;; Parents.
@@ -793,10 +793,10 @@ including `cl-block' and `cl-eval-when'."
793 (insert " Inherits from ") 793 (insert " Inherits from ")
794 (while (setq cur (pop pl)) 794 (while (setq cur (pop pl))
795 (setq cur (cl--class-name cur)) 795 (setq cur (cl--class-name cur))
796 (insert (substitute-command-keys "")) 796 (insert (substitute-command-keys "`"))
797 (help-insert-xref-button (symbol-name cur) 797 (help-insert-xref-button (symbol-name cur)
798 'cl-help-type cur) 798 'cl-help-type cur)
799 (insert (substitute-command-keys (if pl ", " "")))) 799 (insert (substitute-command-keys (if pl "', " "'"))))
800 (insert ".\n"))) 800 (insert ".\n")))
801 801
802 ;; Children, if available. ¡For EIEIO! 802 ;; Children, if available. ¡For EIEIO!
@@ -807,10 +807,10 @@ including `cl-block' and `cl-eval-when'."
807 (when ch 807 (when ch
808 (insert " Children ") 808 (insert " Children ")
809 (while (setq cur (pop ch)) 809 (while (setq cur (pop ch))
810 (insert (substitute-command-keys "")) 810 (insert (substitute-command-keys "`"))
811 (help-insert-xref-button (symbol-name cur) 811 (help-insert-xref-button (symbol-name cur)
812 'cl-help-type cur) 812 'cl-help-type cur)
813 (insert (substitute-command-keys (if ch ", " "")))) 813 (insert (substitute-command-keys (if ch "', " "'"))))
814 (insert ".\n"))) 814 (insert ".\n")))
815 815
816 ;; Type's documentation. 816 ;; Type's documentation.
@@ -826,10 +826,10 @@ including `cl-block' and `cl-eval-when'."
826 (when generics 826 (when generics
827 (insert (propertize "Specialized Methods:\n\n" 'face 'bold)) 827 (insert (propertize "Specialized Methods:\n\n" 'face 'bold))
828 (dolist (generic generics) 828 (dolist (generic generics)
829 (insert (substitute-command-keys "")) 829 (insert (substitute-command-keys "`"))
830 (help-insert-xref-button (symbol-name generic) 830 (help-insert-xref-button (symbol-name generic)
831 'help-function generic) 831 'help-function generic)
832 (insert (substitute-command-keys "")) 832 (insert (substitute-command-keys "'"))
833 (pcase-dolist (`(,qualifiers ,args ,doc) 833 (pcase-dolist (`(,qualifiers ,args ,doc)
834 (cl--generic-method-documentation generic type)) 834 (cl--generic-method-documentation generic type))
835 (insert (format " %s%S\n" qualifiers args) 835 (insert (format " %s%S\n" qualifiers args)
diff --git a/lisp/emacs-lisp/cl-generic.el b/lisp/emacs-lisp/cl-generic.el
index 5d527619d6d..c012a30a41f 100644
--- a/lisp/emacs-lisp/cl-generic.el
+++ b/lisp/emacs-lisp/cl-generic.el
@@ -192,7 +192,7 @@ BODY, if present, is used as the body of a default method.
192 (when doc (error "Multiple doc strings for %S" name)) 192 (when doc (error "Multiple doc strings for %S" name))
193 (setq doc (cadr (pop options-and-methods)))) 193 (setq doc (cadr (pop options-and-methods))))
194 (`declare 194 (`declare
195 (when declarations (error "Multiple declare for %S" name)) 195 (when declarations (error "Multiple `declare' for %S" name))
196 (setq declarations (pop options-and-methods))) 196 (setq declarations (pop options-and-methods)))
197 (`:method (push (cdr (pop options-and-methods)) methods)) 197 (`:method (push (cdr (pop options-and-methods)) methods))
198 (_ (push (pop options-and-methods) options)))) 198 (_ (push (pop options-and-methods) options))))
@@ -208,7 +208,7 @@ BODY, if present, is used as the body of a default method.
208 defun-declarations-alist)))) 208 defun-declarations-alist))))
209 (cond 209 (cond
210 (f (apply (car f) name args (cdr declaration))) 210 (f (apply (car f) name args (cdr declaration)))
211 (t (message "Warning: Unknown defun property %S in %S" 211 (t (message "Warning: Unknown defun property `%S' in %S"
212 (car declaration) name) 212 (car declaration) name)
213 nil)))) 213 nil))))
214 (cdr declarations)) 214 (cdr declarations))
@@ -864,11 +864,11 @@ MET-NAME is a cons (SYMBOL . SPECIALIZERS)."
864 (cl--generic-method-specializers method))) 864 (cl--generic-method-specializers method)))
865 (file (find-lisp-object-file-name met-name 'cl-defmethod))) 865 (file (find-lisp-object-file-name met-name 'cl-defmethod)))
866 (when file 866 (when file
867 (insert (substitute-command-keys " in ")) 867 (insert (substitute-command-keys " in `"))
868 (help-insert-xref-button (help-fns-short-filename file) 868 (help-insert-xref-button (help-fns-short-filename file)
869 'help-function-def met-name file 869 'help-function-def met-name file
870 'cl-defmethod) 870 'cl-defmethod)
871 (insert (substitute-command-keys ".\n")))) 871 (insert (substitute-command-keys "'.\n"))))
872 (insert "\n" (or (nth 2 info) "Undocumented") "\n\n"))))))) 872 (insert "\n" (or (nth 2 info) "Undocumented") "\n\n")))))))
873 873
874(defun cl--generic-specializers-apply-to-type-p (specializers type) 874(defun cl--generic-specializers-apply-to-type-p (specializers type)
@@ -1070,7 +1070,7 @@ The value returned is a list of elements of the form
1070 (and (assq type cl--generic-typeof-types) 1070 (and (assq type cl--generic-typeof-types)
1071 (progn 1071 (progn
1072 (if (memq type '(vector array sequence)) 1072 (if (memq type '(vector array sequence))
1073 (message "%S also matches CL structs and EIEIO classes" type)) 1073 (message "`%S' also matches CL structs and EIEIO classes" type))
1074 (list cl--generic-typeof-generalizer))) 1074 (list cl--generic-typeof-generalizer)))
1075 (cl-call-next-method))) 1075 (cl-call-next-method)))
1076 1076
diff --git a/lisp/emacs-lisp/cl-macs.el b/lisp/emacs-lisp/cl-macs.el
index 06e75b36670..d5d8ef0a8a1 100644
--- a/lisp/emacs-lisp/cl-macs.el
+++ b/lisp/emacs-lisp/cl-macs.el
@@ -1132,7 +1132,7 @@ For more details, see Info node `(cl)Loop Facility'.
1132 (cond 1132 (cond
1133 1133
1134 ((null cl--loop-args) 1134 ((null cl--loop-args)
1135 (error "Malformed cl-loop macro")) 1135 (error "Malformed `cl-loop' macro"))
1136 1136
1137 ((eq word 'named) 1137 ((eq word 'named)
1138 (setq cl--loop-name (pop cl--loop-args))) 1138 (setq cl--loop-name (pop cl--loop-args)))
@@ -1140,7 +1140,7 @@ For more details, see Info node `(cl)Loop Facility'.
1140 ((eq word 'initially) 1140 ((eq word 'initially)
1141 (if (memq (car cl--loop-args) '(do doing)) (pop cl--loop-args)) 1141 (if (memq (car cl--loop-args) '(do doing)) (pop cl--loop-args))
1142 (or (consp (car cl--loop-args)) 1142 (or (consp (car cl--loop-args))
1143 (error "Syntax error on initially clause")) 1143 (error "Syntax error on `initially' clause"))
1144 (while (consp (car cl--loop-args)) 1144 (while (consp (car cl--loop-args))
1145 (push (pop cl--loop-args) cl--loop-initially))) 1145 (push (pop cl--loop-args) cl--loop-initially)))
1146 1146
@@ -1150,7 +1150,7 @@ For more details, see Info node `(cl)Loop Facility'.
1150 (or (cl--pop2 cl--loop-args) '(quote nil))) 1150 (or (cl--pop2 cl--loop-args) '(quote nil)))
1151 (if (memq (car cl--loop-args) '(do doing)) (pop cl--loop-args)) 1151 (if (memq (car cl--loop-args) '(do doing)) (pop cl--loop-args))
1152 (or (consp (car cl--loop-args)) 1152 (or (consp (car cl--loop-args))
1153 (error "Syntax error on finally clause")) 1153 (error "Syntax error on `finally' clause"))
1154 (if (and (eq (caar cl--loop-args) 'return) (null cl--loop-name)) 1154 (if (and (eq (caar cl--loop-args) 'return) (null cl--loop-name))
1155 (setq cl--loop-result-explicit 1155 (setq cl--loop-result-explicit
1156 (or (nth 1 (pop cl--loop-args)) '(quote nil))) 1156 (or (nth 1 (pop cl--loop-args)) '(quote nil)))
@@ -1177,7 +1177,7 @@ For more details, see Info node `(cl)Loop Facility'.
1177 above below by)) 1177 above below by))
1178 (push word cl--loop-args) 1178 (push word cl--loop-args)
1179 (if (memq (car cl--loop-args) '(downto above)) 1179 (if (memq (car cl--loop-args) '(downto above))
1180 (error "Must specify from value for downward cl-loop")) 1180 (error "Must specify `from' value for downward cl-loop"))
1181 (let* ((down (or (eq (car cl--loop-args) 'downfrom) 1181 (let* ((down (or (eq (car cl--loop-args) 'downfrom)
1182 (memq (nth 2 cl--loop-args) 1182 (memq (nth 2 cl--loop-args)
1183 '(downto above)))) 1183 '(downto above))))
@@ -1197,7 +1197,7 @@ For more details, see Info node `(cl)Loop Facility'.
1197 (step-var (and (not (macroexp-const-p step)) 1197 (step-var (and (not (macroexp-const-p step))
1198 (make-symbol "--cl-var--")))) 1198 (make-symbol "--cl-var--"))))
1199 (and step (numberp step) (<= step 0) 1199 (and step (numberp step) (<= step 0)
1200 (error "Loop by value is not positive: %s" step)) 1200 (error "Loop `by' value is not positive: %s" step))
1201 (push (list var (or start 0)) loop-for-bindings) 1201 (push (list var (or start 0)) loop-for-bindings)
1202 (if end-var (push (list end-var end) loop-for-bindings)) 1202 (if end-var (push (list end-var end) loop-for-bindings))
1203 (if step-var (push (list step-var step) 1203 (if step-var (push (list step-var step)
@@ -1276,7 +1276,7 @@ For more details, see Info node `(cl)Loop Facility'.
1276 ((memq word '(element elements)) 1276 ((memq word '(element elements))
1277 (let ((ref (or (memq (car cl--loop-args) '(in-ref of-ref)) 1277 (let ((ref (or (memq (car cl--loop-args) '(in-ref of-ref))
1278 (and (not (memq (car cl--loop-args) '(in of))) 1278 (and (not (memq (car cl--loop-args) '(in of)))
1279 (error "Expected of")))) 1279 (error "Expected `of'"))))
1280 (seq (cl--pop2 cl--loop-args)) 1280 (seq (cl--pop2 cl--loop-args))
1281 (temp-seq (make-symbol "--cl-seq--")) 1281 (temp-seq (make-symbol "--cl-seq--"))
1282 (temp-idx 1282 (temp-idx
@@ -1284,7 +1284,7 @@ For more details, see Info node `(cl)Loop Facility'.
1284 (if (and (= (length (cadr cl--loop-args)) 2) 1284 (if (and (= (length (cadr cl--loop-args)) 2)
1285 (eq (cl-caadr cl--loop-args) 'index)) 1285 (eq (cl-caadr cl--loop-args) 'index))
1286 (cadr (cl--pop2 cl--loop-args)) 1286 (cadr (cl--pop2 cl--loop-args))
1287 (error "Bad using clause")) 1287 (error "Bad `using' clause"))
1288 (make-symbol "--cl-idx--")))) 1288 (make-symbol "--cl-idx--"))))
1289 (push (list temp-seq seq) loop-for-bindings) 1289 (push (list temp-seq seq) loop-for-bindings)
1290 (push (list temp-idx 0) loop-for-bindings) 1290 (push (list temp-idx 0) loop-for-bindings)
@@ -1309,7 +1309,7 @@ For more details, see Info node `(cl)Loop Facility'.
1309 1309
1310 ((memq word hash-types) 1310 ((memq word hash-types)
1311 (or (memq (car cl--loop-args) '(in of)) 1311 (or (memq (car cl--loop-args) '(in of))
1312 (error "Expected of")) 1312 (error "Expected `of'"))
1313 (let* ((table (cl--pop2 cl--loop-args)) 1313 (let* ((table (cl--pop2 cl--loop-args))
1314 (other 1314 (other
1315 (if (eq (car cl--loop-args) 'using) 1315 (if (eq (car cl--loop-args) 'using)
@@ -1317,7 +1317,7 @@ For more details, see Info node `(cl)Loop Facility'.
1317 (memq (cl-caadr cl--loop-args) hash-types) 1317 (memq (cl-caadr cl--loop-args) hash-types)
1318 (not (eq (cl-caadr cl--loop-args) word))) 1318 (not (eq (cl-caadr cl--loop-args) word)))
1319 (cadr (cl--pop2 cl--loop-args)) 1319 (cadr (cl--pop2 cl--loop-args))
1320 (error "Bad using clause")) 1320 (error "Bad `using' clause"))
1321 (make-symbol "--cl-var--")))) 1321 (make-symbol "--cl-var--"))))
1322 (if (memq word '(hash-value hash-values)) 1322 (if (memq word '(hash-value hash-values))
1323 (setq var (prog1 other (setq other var)))) 1323 (setq var (prog1 other (setq other var))))
@@ -1372,7 +1372,7 @@ For more details, see Info node `(cl)Loop Facility'.
1372 1372
1373 ((memq word key-types) 1373 ((memq word key-types)
1374 (or (memq (car cl--loop-args) '(in of)) 1374 (or (memq (car cl--loop-args) '(in of))
1375 (error "Expected of")) 1375 (error "Expected `of'"))
1376 (let ((cl-map (cl--pop2 cl--loop-args)) 1376 (let ((cl-map (cl--pop2 cl--loop-args))
1377 (other 1377 (other
1378 (if (eq (car cl--loop-args) 'using) 1378 (if (eq (car cl--loop-args) 'using)
@@ -1380,7 +1380,7 @@ For more details, see Info node `(cl)Loop Facility'.
1380 (memq (cl-caadr cl--loop-args) key-types) 1380 (memq (cl-caadr cl--loop-args) key-types)
1381 (not (eq (cl-caadr cl--loop-args) word))) 1381 (not (eq (cl-caadr cl--loop-args) word)))
1382 (cadr (cl--pop2 cl--loop-args)) 1382 (cadr (cl--pop2 cl--loop-args))
1383 (error "Bad using clause")) 1383 (error "Bad `using' clause"))
1384 (make-symbol "--cl-var--")))) 1384 (make-symbol "--cl-var--"))))
1385 (if (memq word '(key-binding key-bindings)) 1385 (if (memq word '(key-binding key-bindings))
1386 (setq var (prog1 other (setq other var)))) 1386 (setq var (prog1 other (setq other var))))
@@ -1430,7 +1430,7 @@ For more details, see Info node `(cl)Loop Facility'.
1430 (get word 'cl-loop-for-handler)))) 1430 (get word 'cl-loop-for-handler))))
1431 (if handler 1431 (if handler
1432 (funcall handler var) 1432 (funcall handler var)
1433 (error "Expected a for preposition, found %s" word))))) 1433 (error "Expected a `for' preposition, found %s" word)))))
1434 (eq (car cl--loop-args) 'and)) 1434 (eq (car cl--loop-args) 'and))
1435 (setq ands t) 1435 (setq ands t)
1436 (pop cl--loop-args)) 1436 (pop cl--loop-args))
@@ -1569,7 +1569,7 @@ For more details, see Info node `(cl)Loop Facility'.
1569 1569
1570 ((memq word '(do doing)) 1570 ((memq word '(do doing))
1571 (let ((body nil)) 1571 (let ((body nil))
1572 (or (consp (car cl--loop-args)) (error "Syntax error on do clause")) 1572 (or (consp (car cl--loop-args)) (error "Syntax error on `do' clause"))
1573 (while (consp (car cl--loop-args)) (push (pop cl--loop-args) body)) 1573 (while (consp (car cl--loop-args)) (push (pop cl--loop-args) body))
1574 (push (cons 'progn (nreverse (cons t body))) cl--loop-body))) 1574 (push (cons 'progn (nreverse (cons t body))) cl--loop-body)))
1575 1575
@@ -1802,7 +1802,7 @@ Labels have lexical scope and dynamic extent."
1802 `((go . ,(lambda (label) 1802 `((go . ,(lambda (label)
1803 (let ((catch-tag (cdr (assq label cl--tagbody-alist)))) 1803 (let ((catch-tag (cdr (assq label cl--tagbody-alist))))
1804 (unless catch-tag 1804 (unless catch-tag
1805 (error "Unknown cl-tagbody go label %S" label)) 1805 (error "Unknown cl-tagbody go label `%S'" label))
1806 `(throw ',catch-tag ',label)))) 1806 `(throw ',catch-tag ',label))))
1807 ,@macroexpand-all-environment))))) 1807 ,@macroexpand-all-environment)))))
1808 1808
@@ -2101,7 +2101,7 @@ by EXPANSION, and (setq NAME ...) will act like (setf EXPANSION ...).
2101 macroexpand-all-environment)))) 2101 macroexpand-all-environment))))
2102 (if (or (null (cdar bindings)) (cl-cddar bindings)) 2102 (if (or (null (cdar bindings)) (cl-cddar bindings))
2103 (macroexp--warn-and-return 2103 (macroexp--warn-and-return
2104 (format-message "Malformed cl-symbol-macrolet binding: %S" 2104 (format-message "Malformed `cl-symbol-macrolet' binding: %S"
2105 (car bindings)) 2105 (car bindings))
2106 expansion) 2106 expansion)
2107 expansion))) 2107 expansion)))
@@ -2777,10 +2777,10 @@ non-nil value, that slot cannot be set via `setf'.
2777;;;###autoload 2777;;;###autoload
2778(pcase-defmacro cl-struct (type &rest fields) 2778(pcase-defmacro cl-struct (type &rest fields)
2779 "Pcase patterns to match cl-structs. 2779 "Pcase patterns to match cl-structs.
2780Elements of FIELDS can be of the form (NAME UPAT) in which case the contents of 2780Elements of FIELDS can be of the form (NAME PAT) in which case the contents of
2781field NAME is matched against UPAT, or they can be of the form NAME which 2781field NAME is matched against PAT, or they can be of the form NAME which
2782is a shorthand for (NAME NAME)." 2782is a shorthand for (NAME NAME)."
2783 (declare (debug (sexp &rest [&or (sexp pcase-UPAT) sexp]))) 2783 (declare (debug (sexp &rest [&or (sexp pcase-PAT) sexp])))
2784 `(and (pred (pcase--flip cl-typep ',type)) 2784 `(and (pred (pcase--flip cl-typep ',type))
2785 ,@(mapcar 2785 ,@(mapcar
2786 (lambda (field) 2786 (lambda (field)
diff --git a/lisp/emacs-lisp/cl.el b/lisp/emacs-lisp/cl.el
index ba50680e8b9..46472ccd257 100644
--- a/lisp/emacs-lisp/cl.el
+++ b/lisp/emacs-lisp/cl.el
@@ -86,7 +86,7 @@
86 86
87(defun cl-unload-function () 87(defun cl-unload-function ()
88 "Stop unloading of the Common Lisp extensions." 88 "Stop unloading of the Common Lisp extensions."
89 (message "Cannot unload the feature cl") 89 (message "Cannot unload the feature `cl'")
90 ;; Stop standard unloading! 90 ;; Stop standard unloading!
91 t) 91 t)
92 92
@@ -459,15 +459,15 @@ definitions, or lack thereof).
459 (if (or (and (fboundp (car x)) 459 (if (or (and (fboundp (car x))
460 (eq (car-safe (symbol-function (car x))) 'macro)) 460 (eq (car-safe (symbol-function (car x))) 'macro))
461 (cdr (assq (car x) macroexpand-all-environment))) 461 (cdr (assq (car x) macroexpand-all-environment)))
462 (error "Use labels, not flet, to rebind macro names")) 462 (error "Use `labels', not `flet', to rebind macro names"))
463 (let ((func `(cl-function 463 (let ((func `(cl-function
464 (lambda ,(cadr x) 464 (lambda ,(cadr x)
465 (cl-block ,(car x) ,@(cddr x)))))) 465 (cl-block ,(car x) ,@(cddr x))))))
466 (when (cl--compiling-file) 466 (when (cl--compiling-file)
467 ;; Bug#411. It would be nice to fix this. 467 ;; Bug#411. It would be nice to fix this.
468 (and (get (car x) 'byte-compile) 468 (and (get (car x) 'byte-compile)
469 (error "Byte-compiling a redefinition of %s \ 469 (error "Byte-compiling a redefinition of `%s' \
470will not work - use labels instead" (symbol-name (car x)))) 470will not work - use `labels' instead" (symbol-name (car x))))
471 ;; FIXME This affects the rest of the file, when it 471 ;; FIXME This affects the rest of the file, when it
472 ;; should be restricted to the flet body. 472 ;; should be restricted to the flet body.
473 (and (boundp 'byte-compile-function-environment) 473 (and (boundp 'byte-compile-function-environment)
diff --git a/lisp/emacs-lisp/copyright.el b/lisp/emacs-lisp/copyright.el
index ece6883ccbe..1317d699d25 100644
--- a/lisp/emacs-lisp/copyright.el
+++ b/lisp/emacs-lisp/copyright.el
@@ -350,7 +350,7 @@ independently replaces consecutive years with a range."
350 (or (getenv "ORGANIZATION") 350 (or (getenv "ORGANIZATION")
351 str) 351 str)
352 '(if (copyright-offset-too-large-p) 352 '(if (copyright-offset-too-large-p)
353 (message "Copyright extends beyond copyright-limit and won't be updated automatically.")) 353 (message "Copyright extends beyond `copyright-limit' and won't be updated automatically."))
354 comment-end \n) 354 comment-end \n)
355 355
356;; TODO: recurse, exclude COPYING etc. 356;; TODO: recurse, exclude COPYING etc.
@@ -361,7 +361,7 @@ If FIX is non-nil, run `copyright-fix-years' instead."
361 (interactive "DDirectory: \nMFilenames matching (regexp): ") 361 (interactive "DDirectory: \nMFilenames matching (regexp): ")
362 (dolist (file (directory-files directory t match nil)) 362 (dolist (file (directory-files directory t match nil))
363 (unless (file-directory-p file) 363 (unless (file-directory-p file)
364 (message "Updating file %s" file) 364 (message "Updating file `%s'" file)
365 ;; FIXME we should not use find-file+save+kill. 365 ;; FIXME we should not use find-file+save+kill.
366 (let ((enable-local-variables :safe) 366 (let ((enable-local-variables :safe)
367 (enable-local-eval nil)) 367 (enable-local-eval nil))
diff --git a/lisp/emacs-lisp/disass.el b/lisp/emacs-lisp/disass.el
index 15489fc2015..12cf605cce9 100644
--- a/lisp/emacs-lisp/disass.el
+++ b/lisp/emacs-lisp/disass.el
@@ -1,4 +1,4 @@
1;;; disass.el --- disassembler for compiled Emacs Lisp code 1;;; disass.el --- disassembler for compiled Emacs Lisp code -*- lexical-binding:t -*-
2 2
3;; Copyright (C) 1986, 1991, 2002-2015 Free Software Foundation, Inc. 3;; Copyright (C) 1986, 1991, 2002-2015 Free Software Foundation, Inc.
4 4
@@ -37,9 +37,9 @@
37 37
38(require 'macroexp) 38(require 'macroexp)
39 39
40;;; The variable byte-code-vector is defined by the new bytecomp.el. 40;; The variable byte-code-vector is defined by the new bytecomp.el.
41;;; The function byte-decompile-lapcode is defined in byte-opt.el. 41;; The function byte-decompile-lapcode is defined in byte-opt.el.
42;;; Since we don't use byte-decompile-lapcode, let's try not loading byte-opt. 42;; Since we don't use byte-decompile-lapcode, let's try not loading byte-opt.
43(require 'byte-compile "bytecomp") 43(require 'byte-compile "bytecomp")
44 44
45(defvar disassemble-column-1-indent 8 "*") 45(defvar disassemble-column-1-indent 8 "*")
@@ -57,8 +57,8 @@ redefine OBJECT if it is a symbol."
57 (interactive (list (intern (completing-read "Disassemble function: " 57 (interactive (list (intern (completing-read "Disassemble function: "
58 obarray 'fboundp t)) 58 obarray 'fboundp t))
59 nil 0 t)) 59 nil 0 t))
60 (if (and (consp object) (not (eq (car object) 'lambda))) 60 (if (and (consp object) (not (functionp object)))
61 (setq object (list 'lambda () object))) 61 (setq object `(lambda () ,object)))
62 (or indent (setq indent 0)) ;Default indent to zero 62 (or indent (setq indent 0)) ;Default indent to zero
63 (save-excursion 63 (save-excursion
64 (if (or interactive-p (null buffer)) 64 (if (or interactive-p (null buffer))
@@ -72,37 +72,34 @@ redefine OBJECT if it is a symbol."
72 72
73(defun disassemble-internal (obj indent interactive-p) 73(defun disassemble-internal (obj indent interactive-p)
74 (let ((macro 'nil) 74 (let ((macro 'nil)
75 (name 'nil) 75 (name (when (symbolp obj)
76 (doc 'nil) 76 (prog1 obj
77 (setq obj (indirect-function obj)))))
77 args) 78 args)
78 (while (symbolp obj) 79 (setq obj (autoload-do-load obj name))
79 (setq name obj
80 obj (symbol-function obj)))
81 (if (subrp obj) 80 (if (subrp obj)
82 (error "Can't disassemble #<subr %s>" name)) 81 (error "Can't disassemble #<subr %s>" name))
83 (setq obj (autoload-do-load obj name))
84 (if (eq (car-safe obj) 'macro) ;Handle macros. 82 (if (eq (car-safe obj) 'macro) ;Handle macros.
85 (setq macro t 83 (setq macro t
86 obj (cdr obj))) 84 obj (cdr obj)))
87 (if (and (listp obj) (eq (car obj) 'byte-code)) 85 (if (eq (car-safe obj) 'byte-code)
88 (setq obj (list 'lambda nil obj))) 86 (setq obj `(lambda () ,obj)))
89 (if (and (listp obj) (not (eq (car obj) 'lambda))) 87 (when (consp obj)
90 (error "not a function")) 88 (unless (functionp obj) (error "not a function"))
91 (if (consp obj) 89 (if (assq 'byte-code obj)
92 (if (assq 'byte-code obj) 90 nil
93 nil 91 (if interactive-p (message (if name
94 (if interactive-p (message (if name 92 "Compiling %s's definition..."
95 "Compiling %s's definition..." 93 "Compiling definition...")
96 "Compiling definition...") 94 name))
97 name)) 95 (setq obj (byte-compile obj))
98 (setq obj (byte-compile obj)) 96 (if interactive-p (message "Done compiling. Disassembling..."))))
99 (if interactive-p (message "Done compiling. Disassembling..."))))
100 (cond ((consp obj) 97 (cond ((consp obj)
98 (setq args (help-function-arglist obj)) ;save arg list
101 (setq obj (cdr obj)) ;throw lambda away 99 (setq obj (cdr obj)) ;throw lambda away
102 (setq args (car obj)) ;save arg list
103 (setq obj (cdr obj))) 100 (setq obj (cdr obj)))
104 ((byte-code-function-p obj) 101 ((byte-code-function-p obj)
105 (setq args (aref obj 0))) 102 (setq args (help-function-arglist obj)))
106 (t (error "Compilation failed"))) 103 (t (error "Compilation failed")))
107 (if (zerop indent) ; not a nested function 104 (if (zerop indent) ; not a nested function
108 (progn 105 (progn
@@ -127,10 +124,7 @@ redefine OBJECT if it is a symbol."
127 (insert " args: ") 124 (insert " args: ")
128 (prin1 args (current-buffer)) 125 (prin1 args (current-buffer))
129 (insert "\n") 126 (insert "\n")
130 (let ((interactive (cond ((consp obj) 127 (let ((interactive (interactive-form obj)))
131 (assq 'interactive obj))
132 ((> (length obj) 5)
133 (list 'interactive (aref obj 5))))))
134 (if interactive 128 (if interactive
135 (progn 129 (progn
136 (setq interactive (nth 1 interactive)) 130 (setq interactive (nth 1 interactive))
@@ -226,15 +220,16 @@ OBJ should be a call to BYTE-CODE generated by the byte compiler."
226 ;; but if the value of the constant is compiled code, then 220 ;; but if the value of the constant is compiled code, then
227 ;; recursively disassemble it. 221 ;; recursively disassemble it.
228 (cond ((or (byte-code-function-p arg) 222 (cond ((or (byte-code-function-p arg)
229 (and (eq (car-safe arg) 'lambda) 223 (and (consp arg) (functionp arg)
230 (assq 'byte-code arg)) 224 (assq 'byte-code arg))
231 (and (eq (car-safe arg) 'macro) 225 (and (eq (car-safe arg) 'macro)
232 (or (byte-code-function-p (cdr arg)) 226 (or (byte-code-function-p (cdr arg))
233 (and (eq (car-safe (cdr arg)) 'lambda) 227 (and (consp (cdr arg))
228 (functionp (cdr arg))
234 (assq 'byte-code (cdr arg)))))) 229 (assq 'byte-code (cdr arg))))))
235 (cond ((byte-code-function-p arg) 230 (cond ((byte-code-function-p arg)
236 (insert "<compiled-function>\n")) 231 (insert "<compiled-function>\n"))
237 ((eq (car-safe arg) 'lambda) 232 ((functionp arg)
238 (insert "<compiled lambda>")) 233 (insert "<compiled lambda>"))
239 (t (insert "<compiled macro>\n"))) 234 (t (insert "<compiled macro>\n")))
240 (disassemble-internal 235 (disassemble-internal
diff --git a/lisp/emacs-lisp/edebug.el b/lisp/emacs-lisp/edebug.el
index 3ad496ac203..0162a9a230a 100644
--- a/lisp/emacs-lisp/edebug.el
+++ b/lisp/emacs-lisp/edebug.el
@@ -880,7 +880,7 @@ Maybe clear the markers and delete the symbol's edebug property?"
880 (setq dotted-form (edebug-read-storing-offsets stream)) 880 (setq dotted-form (edebug-read-storing-offsets stream))
881 elements (nconc elements dotted-form) 881 elements (nconc elements dotted-form)
882 (if (not (eq (edebug-next-token-class) 'rparen)) 882 (if (not (eq (edebug-next-token-class) 'rparen))
883 (edebug-syntax-error "Expected )")) 883 (edebug-syntax-error "Expected `)'"))
884 (setq edebug-read-dotted-list (listp dotted-form)) 884 (setq edebug-read-dotted-list (listp dotted-form))
885 )) 885 ))
886 elements) 886 elements)
diff --git a/lisp/emacs-lisp/eieio-base.el b/lisp/emacs-lisp/eieio-base.el
index e1051b26e16..400bdb95c06 100644
--- a/lisp/emacs-lisp/eieio-base.el
+++ b/lisp/emacs-lisp/eieio-base.el
@@ -218,7 +218,7 @@ for CLASS. Optional ALLOW-SUBCLASS says that it is ok for
218`eieio-persistent-read' to load in subclasses of class instead of 218`eieio-persistent-read' to load in subclasses of class instead of
219being pedantic." 219being pedantic."
220 (unless class 220 (unless class
221 (message "Unsafe call to eieio-persistent-read.")) 221 (message "Unsafe call to `eieio-persistent-read'."))
222 (when class (cl-check-type class class)) 222 (when class (cl-check-type class class))
223 (let ((ret nil) 223 (let ((ret nil)
224 (buffstr nil)) 224 (buffstr nil))
diff --git a/lisp/emacs-lisp/eieio-core.el b/lisp/emacs-lisp/eieio-core.el
index 3b07c5dec4b..a2f5f8af8ea 100644
--- a/lisp/emacs-lisp/eieio-core.el
+++ b/lisp/emacs-lisp/eieio-core.el
@@ -219,7 +219,8 @@ It creates an autoload function for CNAME's constructor."
219 ;; turn this into a usable self-pointing symbol 219 ;; turn this into a usable self-pointing symbol
220 (when eieio-backward-compatibility 220 (when eieio-backward-compatibility
221 (set cname cname) 221 (set cname cname)
222 (make-obsolete-variable cname (format "use '%s instead" cname) "25.1")) 222 (make-obsolete-variable cname (format "use \\='%s instead" cname)
223 "25.1"))
223 224
224 ;; Store the new class vector definition into the symbol. We need to 225 ;; Store the new class vector definition into the symbol. We need to
225 ;; do this first so that we can call defmethod for the accessor. 226 ;; do this first so that we can call defmethod for the accessor.
@@ -338,7 +339,8 @@ See `defclass' for more information."
338 ;; turn this into a usable self-pointing symbol; FIXME: Why? 339 ;; turn this into a usable self-pointing symbol; FIXME: Why?
339 (when eieio-backward-compatibility 340 (when eieio-backward-compatibility
340 (set cname cname) 341 (set cname cname)
341 (make-obsolete-variable cname (format "use '%s instead" cname) "25.1")) 342 (make-obsolete-variable cname (format "use \\='%s instead" cname)
343 "25.1"))
342 344
343 ;; Create a handy list of the class test too 345 ;; Create a handy list of the class test too
344 (when eieio-backward-compatibility 346 (when eieio-backward-compatibility
@@ -357,8 +359,9 @@ See `defclass' for more information."
357 (object-of-class-p (car obj) ,cname))) 359 (object-of-class-p (car obj) ,cname)))
358 (setq obj (cdr obj))) 360 (setq obj (cdr obj)))
359 ans)))) 361 ans))))
360 (make-obsolete csym (format "use (cl-typep ... '(list-of %s)) instead" 362 (make-obsolete csym (format
361 cname) 363 "use (cl-typep ... \\='(list-of %s)) instead"
364 cname)
362 "25.1"))) 365 "25.1")))
363 366
364 ;; Before adding new slots, let's add all the methods and classes 367 ;; Before adding new slots, let's add all the methods and classes
@@ -407,7 +410,7 @@ See `defclass' for more information."
407 (progn 410 (progn
408 (set initarg initarg) 411 (set initarg initarg)
409 (make-obsolete-variable 412 (make-obsolete-variable
410 initarg (format "use '%s instead" initarg) "25.1")))) 413 initarg (format "use \\='%s instead" initarg) "25.1"))))
411 414
412 ;; The customgroup should be a list of symbols. 415 ;; The customgroup should be a list of symbols.
413 (cond ((and (null customg) custom) 416 (cond ((and (null customg) custom)
@@ -544,7 +547,7 @@ If SKIPNIL is non-nil, then if default value is nil return t instead."
544 (if (not (eq type t)) 547 (if (not (eq type t))
545 (if (not (equal type tp)) 548 (if (not (equal type tp))
546 (error 549 (error
547 "Child slot type %s does not match inherited type %s for %s" 550 "Child slot type `%s' does not match inherited type `%s' for `%s'"
548 type tp a)) 551 type tp a))
549 (setf (cl--slot-descriptor-type new) tp)) 552 (setf (cl--slot-descriptor-type new) tp))
550 ;; If we have a repeat, only update the initarg... 553 ;; If we have a repeat, only update the initarg...
@@ -564,7 +567,7 @@ If SKIPNIL is non-nil, then if default value is nil return t instead."
564 (let ((super-prot (alist-get :protection oprops)) 567 (let ((super-prot (alist-get :protection oprops))
565 (prot (alist-get :protection nprops))) 568 (prot (alist-get :protection nprops)))
566 (if (not (eq prot super-prot)) 569 (if (not (eq prot super-prot))
567 (error "Child slot protection %s does not match inherited protection %s for %s" 570 (error "Child slot protection `%s' does not match inherited protection `%s' for `%s'"
568 prot super-prot a))) 571 prot super-prot a)))
569 ;; End original PLN 572 ;; End original PLN
570 573
@@ -733,7 +736,7 @@ Argument FN is the function calling this verifier."
733 ((and (or `',name (and name (pred keywordp))) 736 ((and (or `',name (and name (pred keywordp)))
734 (guard (not (memq name eieio--known-slot-names)))) 737 (guard (not (memq name eieio--known-slot-names))))
735 (macroexp--warn-and-return 738 (macroexp--warn-and-return
736 (format-message "Unknown slot %S" name) exp 'compile-only)) 739 (format-message "Unknown slot `%S'" name) exp 'compile-only))
737 (_ exp))))) 740 (_ exp)))))
738 (cl-check-type slot symbol) 741 (cl-check-type slot symbol)
739 (cl-check-type obj (or eieio-object class)) 742 (cl-check-type obj (or eieio-object class))
diff --git a/lisp/emacs-lisp/eieio-opt.el b/lisp/emacs-lisp/eieio-opt.el
index 0b003360ed5..a5d8b6fcf89 100644
--- a/lisp/emacs-lisp/eieio-opt.el
+++ b/lisp/emacs-lisp/eieio-opt.el
@@ -141,11 +141,11 @@ are not abstract."
141 (setq location 141 (setq location
142 (find-lisp-object-file-name ctr def))) 142 (find-lisp-object-file-name ctr def)))
143 (when location 143 (when location
144 (insert (substitute-command-keys " in ")) 144 (insert (substitute-command-keys " in `"))
145 (help-insert-xref-button 145 (help-insert-xref-button
146 (help-fns-short-filename location) 146 (help-fns-short-filename location)
147 'cl-type-definition ctr location 'define-type) 147 'cl-type-definition ctr location 'define-type)
148 (insert (substitute-command-keys ""))) 148 (insert (substitute-command-keys "'")))
149 (insert ".\nCreates an object of class " (symbol-name ctr) ".") 149 (insert ".\nCreates an object of class " (symbol-name ctr) ".")
150 (goto-char (point-max)) 150 (goto-char (point-max))
151 (if (autoloadp def) 151 (if (autoloadp def)
diff --git a/lisp/emacs-lisp/eieio-speedbar.el b/lisp/emacs-lisp/eieio-speedbar.el
index ac8124a1927..a1eabcf9700 100644
--- a/lisp/emacs-lisp/eieio-speedbar.el
+++ b/lisp/emacs-lisp/eieio-speedbar.el
@@ -323,7 +323,7 @@ Argument DEPTH is the depth at which the tag line is inserted."
323 323
324(cl-defmethod eieio-speedbar-child-make-tag-lines ((object eieio-speedbar) _depth) 324(cl-defmethod eieio-speedbar-child-make-tag-lines ((object eieio-speedbar) _depth)
325 "Base method for creating tag lines for non-object children." 325 "Base method for creating tag lines for non-object children."
326 (error "You must implement eieio-speedbar-child-make-tag-lines for %s" 326 (error "You must implement `eieio-speedbar-child-make-tag-lines' for %s"
327 (eieio-object-name object))) 327 (eieio-object-name object)))
328 328
329(cl-defmethod eieio-speedbar-expand ((object eieio-speedbar) depth) 329(cl-defmethod eieio-speedbar-expand ((object eieio-speedbar) depth)
@@ -364,7 +364,7 @@ TOKEN is the object. INDENT is the current indentation level."
364 364
365(cl-defmethod eieio-speedbar-child-description ((obj eieio-speedbar)) 365(cl-defmethod eieio-speedbar-child-description ((obj eieio-speedbar))
366 "Return a description for a child of OBJ which is not an object." 366 "Return a description for a child of OBJ which is not an object."
367 (error "You must implement eieio-speedbar-child-description for %s" 367 (error "You must implement `eieio-speedbar-child-description' for %s"
368 (eieio-object-name obj))) 368 (eieio-object-name obj)))
369 369
370(defun eieio-speedbar-item-info () 370(defun eieio-speedbar-item-info ()
diff --git a/lisp/emacs-lisp/eieio.el b/lisp/emacs-lisp/eieio.el
index ad178c3a2c2..790e8bc9e0e 100644
--- a/lisp/emacs-lisp/eieio.el
+++ b/lisp/emacs-lisp/eieio.el
@@ -114,10 +114,10 @@ and reference them using the function `class-option'."
114 114
115 (cond ((and (stringp (car options-and-doc)) 115 (cond ((and (stringp (car options-and-doc))
116 (/= 1 (% (length options-and-doc) 2))) 116 (/= 1 (% (length options-and-doc) 2)))
117 (error "Too many arguments to defclass")) 117 (error "Too many arguments to `defclass'"))
118 ((and (symbolp (car options-and-doc)) 118 ((and (symbolp (car options-and-doc))
119 (/= 0 (% (length options-and-doc) 2))) 119 (/= 0 (% (length options-and-doc) 2)))
120 (error "Too many arguments to defclass"))) 120 (error "Too many arguments to `defclass'")))
121 121
122 (if (stringp (car options-and-doc)) 122 (if (stringp (car options-and-doc))
123 (setq options-and-doc 123 (setq options-and-doc
@@ -235,7 +235,8 @@ This method is obsolete."
235 (let ((f (intern (format "%s-child-p" name)))) 235 (let ((f (intern (format "%s-child-p" name))))
236 `((defalias ',f ',testsym2) 236 `((defalias ',f ',testsym2)
237 (make-obsolete 237 (make-obsolete
238 ',f ,(format "use (cl-typep ... '%s) instead" name) "25.1")))) 238 ',f ,(format "use (cl-typep ... \\='%s) instead" name)
239 "25.1"))))
239 240
240 ;; When using typep, (typep OBJ 'myclass) returns t for objects which 241 ;; When using typep, (typep OBJ 'myclass) returns t for objects which
241 ;; are subclasses of myclass. For our predicates, however, it is 242 ;; are subclasses of myclass. For our predicates, however, it is
@@ -348,10 +349,10 @@ variable name of the same name as the slot."
348 349
349(pcase-defmacro eieio (&rest fields) 350(pcase-defmacro eieio (&rest fields)
350 "Pcase patterns to match EIEIO objects. 351 "Pcase patterns to match EIEIO objects.
351Elements of FIELDS can be of the form (NAME UPAT) in which case the contents of 352Elements of FIELDS can be of the form (NAME PAT) in which case the contents of
352field NAME is matched against UPAT, or they can be of the form NAME which 353field NAME is matched against PAT, or they can be of the form NAME which
353is a shorthand for (NAME NAME)." 354is a shorthand for (NAME NAME)."
354 (declare (debug (&rest [&or (sexp pcase-UPAT) sexp]))) 355 (declare (debug (&rest [&or (sexp pcase-PAT) sexp])))
355 (let ((is (make-symbol "table"))) 356 (let ((is (make-symbol "table")))
356 ;; FIXME: This generates a horrendous mess of redundant let bindings. 357 ;; FIXME: This generates a horrendous mess of redundant let bindings.
357 ;; `pcase' needs to be improved somehow to introduce let-bindings more 358 ;; `pcase' needs to be improved somehow to introduce let-bindings more
@@ -941,7 +942,7 @@ this object."
941 "Change the class of OBJ to type CLASS. 942 "Change the class of OBJ to type CLASS.
942This may create or delete slots, but does not affect the return value 943This may create or delete slots, but does not affect the return value
943of `eq'." 944of `eq'."
944 (error "EIEIO: change-class is unimplemented")) 945 (error "EIEIO: `change-class' is unimplemented"))
945 946
946;; Hook ourselves into help system for describing classes and methods. 947;; Hook ourselves into help system for describing classes and methods.
947;; FIXME: This is not actually needed any more since we can click on the 948;; FIXME: This is not actually needed any more since we can click on the
@@ -983,7 +984,7 @@ Optional argument GROUP is the sub-group of slots to display.
983 984
984;;;*** 985;;;***
985 986
986;;;### (autoloads nil "eieio-opt" "eieio-opt.el" "694d44fcd869546592d35f3321f62667") 987;;;### (autoloads nil "eieio-opt" "eieio-opt.el" "d00419c898056fadf2f8e491f864aa1e")
987;;; Generated autoloads from eieio-opt.el 988;;; Generated autoloads from eieio-opt.el
988 989
989(autoload 'eieio-browse "eieio-opt" "\ 990(autoload 'eieio-browse "eieio-opt" "\
diff --git a/lisp/emacs-lisp/elint.el b/lisp/emacs-lisp/elint.el
index 15eeb49707b..86ac33c2600 100644
--- a/lisp/emacs-lisp/elint.el
+++ b/lisp/emacs-lisp/elint.el
@@ -249,9 +249,9 @@ This environment can be passed to `macroexpand'."
249 (elint-set-mode-line t) 249 (elint-set-mode-line t)
250 (with-current-buffer elint-log-buffer 250 (with-current-buffer elint-log-buffer
251 (unless (string-equal default-directory dir) 251 (unless (string-equal default-directory dir)
252 (elint-log-message (format-message " \nLeaving directory %s" 252 (elint-log-message (format-message " \nLeaving directory `%s'"
253 default-directory) t) 253 default-directory) t)
254 (elint-log-message (format-message "Entering directory %s" dir) t) 254 (elint-log-message (format-message "Entering directory `%s'" dir) t)
255 (setq default-directory dir)))) 255 (setq default-directory dir))))
256 (let ((str (format "Linting file %s" file))) 256 (let ((str (format "Linting file %s" file)))
257 (message "%s..." str) 257 (message "%s..." str)
@@ -374,7 +374,7 @@ Returns the forms."
374 ;; quoted check cannot be elsewhere, since quotes skipped. 374 ;; quoted check cannot be elsewhere, since quotes skipped.
375 (if (looking-back "'" (1- (point))) 375 (if (looking-back "'" (1- (point)))
376 ;; Eg cust-print.el uses ' as a comment syntax. 376 ;; Eg cust-print.el uses ' as a comment syntax.
377 (elint-warning "Skipping quoted form ‘'%.20s..." 377 (elint-warning "Skipping quoted form `%c%.20s...'" ?\'
378 (read (current-buffer))) 378 (read (current-buffer)))
379 (condition-case nil 379 (condition-case nil
380 (setq tops (cons 380 (setq tops (cons
@@ -383,7 +383,7 @@ Returns the forms."
383 tops)) 383 tops))
384 (end-of-file 384 (end-of-file
385 (goto-char elint-current-pos) 385 (goto-char elint-current-pos)
386 (error "Missing ) in top form: %s" 386 (error "Missing `)' in top form: %s"
387 (buffer-substring elint-current-pos 387 (buffer-substring elint-current-pos
388 (line-end-position)))))))) 388 (line-end-position))))))))
389 (nreverse tops)))) 389 (nreverse tops))))
@@ -401,7 +401,7 @@ Return nil if there are no more forms, t otherwise."
401 (cond 401 (cond
402 ;; Eg nnmaildir seems to use [] as a form of comment syntax. 402 ;; Eg nnmaildir seems to use [] as a form of comment syntax.
403 ((not (listp form)) 403 ((not (listp form))
404 (elint-warning "Skipping non-list form %s" form)) 404 (elint-warning "Skipping non-list form `%s'" form))
405 ;; Add defined variable 405 ;; Add defined variable
406 ((memq (car form) '(defvar defconst defcustom)) 406 ((memq (car form) '(defvar defconst defcustom))
407 (setq elint-env (elint-env-add-var elint-env (cadr form)))) 407 (setq elint-env (elint-env-add-var elint-env (cadr form))))
@@ -432,7 +432,7 @@ Return nil if there are no more forms, t otherwise."
432 (if (or (< (length form) 4) 432 (if (or (< (length form) 4)
433 (eq (nth 3 form) t) 433 (eq (nth 3 form) t)
434 (unless (stringp (nth 2 form)) 434 (unless (stringp (nth 2 form))
435 (elint-error "Malformed declaration for %s" 435 (elint-error "Malformed declaration for `%s'"
436 (cadr form)) 436 (cadr form))
437 t)) 437 t))
438 'unknown 438 'unknown
@@ -758,7 +758,7 @@ CODE can be a lambda expression, a macro, or byte-compiled code."
758 (and (eq (car-safe alias) 'quote) 758 (and (eq (car-safe alias) 'quote)
759 (eq (car-safe target) 'quote) 759 (eq (car-safe target) 'quote)
760 (eq (elint-get-args (cadr target) env) 'undefined) 760 (eq (elint-get-args (cadr target) env) 'undefined)
761 (elint-warning "Alias %s has unknown target %s" 761 (elint-warning "Alias `%s' has unknown target `%s'"
762 (cadr alias) (cadr target)))) 762 (cadr alias) (cadr target))))
763 (elint-form form env t)) 763 (elint-form form env t))
764 764
@@ -796,7 +796,7 @@ CODE can be a lambda expression, a macro, or byte-compiled code."
796 (setq newenv 796 (setq newenv
797 (elint-env-add-var newenv (car s)))) 797 (elint-env-add-var newenv (car s))))
798 (t (elint-error 798 (t (elint-error
799 "Malformed let declaration: %s" s)))) 799 "Malformed `let' declaration: %s" s))))
800 varlist) 800 varlist)
801 801
802 ;; Lint the body forms 802 ;; Lint the body forms
diff --git a/lisp/emacs-lisp/ert.el b/lisp/emacs-lisp/ert.el
index 91fc1572d50..d47e5d94b9d 100644
--- a/lisp/emacs-lisp/ert.el
+++ b/lisp/emacs-lisp/ert.el
@@ -121,7 +121,7 @@ Emacs bug 6581 at URL `http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6581'."
121 121
122(defun ert-get-test (symbol) 122(defun ert-get-test (symbol)
123 "If SYMBOL names a test, return that. Signal an error otherwise." 123 "If SYMBOL names a test, return that. Signal an error otherwise."
124 (unless (ert-test-boundp symbol) (error "No test named %S" symbol)) 124 (unless (ert-test-boundp symbol) (error "No test named `%S'" symbol))
125 (get symbol 'ert--test)) 125 (get symbol 'ert--test))
126 126
127(defun ert-set-test (symbol definition) 127(defun ert-set-test (symbol definition)
@@ -2065,7 +2065,7 @@ and how to display message."
2065 "--" 2065 "--"
2066 ["Show backtrace" ert-results-pop-to-backtrace-for-test-at-point] 2066 ["Show backtrace" ert-results-pop-to-backtrace-for-test-at-point]
2067 ["Show messages" ert-results-pop-to-messages-for-test-at-point] 2067 ["Show messages" ert-results-pop-to-messages-for-test-at-point]
2068 ["Show should forms" ert-results-pop-to-should-forms-for-test-at-point] 2068 ["Show `should' forms" ert-results-pop-to-should-forms-for-test-at-point]
2069 ["Describe test" ert-results-describe-test-at-point] 2069 ["Describe test" ert-results-describe-test-at-point]
2070 "--" 2070 "--"
2071 ["Delete test" ert-delete-test] 2071 ["Delete test" ert-delete-test]
@@ -2377,9 +2377,9 @@ To be used in the ERT results buffer."
2377 (ert--print-backtrace backtrace) 2377 (ert--print-backtrace backtrace)
2378 (debugger-make-xrefs) 2378 (debugger-make-xrefs)
2379 (goto-char (point-min)) 2379 (goto-char (point-min))
2380 (insert "Backtrace for test ") 2380 (insert (substitute-command-keys "Backtrace for test `"))
2381 (ert-insert-test-name-button (ert-test-name test)) 2381 (ert-insert-test-name-button (ert-test-name test))
2382 (insert ":\n"))))))) 2382 (insert (substitute-command-keys "':\n"))))))))
2383 2383
2384(defun ert-results-pop-to-messages-for-test-at-point () 2384(defun ert-results-pop-to-messages-for-test-at-point ()
2385 "Display the part of the *Messages* buffer generated during the test at point. 2385 "Display the part of the *Messages* buffer generated during the test at point.
@@ -2398,9 +2398,9 @@ To be used in the ERT results buffer."
2398 (ert-simple-view-mode) 2398 (ert-simple-view-mode)
2399 (insert (ert-test-result-messages result)) 2399 (insert (ert-test-result-messages result))
2400 (goto-char (point-min)) 2400 (goto-char (point-min))
2401 (insert "Messages for test ") 2401 (insert (substitute-command-keys "Messages for test `"))
2402 (ert-insert-test-name-button (ert-test-name test)) 2402 (ert-insert-test-name-button (ert-test-name test))
2403 (insert ":\n"))))) 2403 (insert (substitute-command-keys "':\n"))))))
2404 2404
2405(defun ert-results-pop-to-should-forms-for-test-at-point () 2405(defun ert-results-pop-to-should-forms-for-test-at-point ()
2406 "Display the list of `should' forms executed during the test at point. 2406 "Display the list of `should' forms executed during the test at point.
@@ -2428,9 +2428,10 @@ To be used in the ERT results buffer."
2428 (ert--pp-with-indentation-and-newline form-description) 2428 (ert--pp-with-indentation-and-newline form-description)
2429 (ert--make-xrefs-region begin (point))))) 2429 (ert--make-xrefs-region begin (point)))))
2430 (goto-char (point-min)) 2430 (goto-char (point-min))
2431 (insert "‘should’ forms executed during test ‘") 2431 (insert (substitute-command-keys
2432 "`should' forms executed during test `"))
2432 (ert-insert-test-name-button (ert-test-name test)) 2433 (ert-insert-test-name-button (ert-test-name test))
2433 (insert ":\n") 2434 (insert (substitute-command-keys "':\n"))
2434 (insert "\n") 2435 (insert "\n")
2435 (insert (concat "(Values are shallow copies and may have " 2436 (insert (concat "(Values are shallow copies and may have "
2436 "looked different during the test if they\n" 2437 "looked different during the test if they\n"
@@ -2507,9 +2508,11 @@ To be used in the ERT results buffer."
2507 (let ((file-name (and test-name 2508 (let ((file-name (and test-name
2508 (symbol-file test-name 'ert-deftest)))) 2509 (symbol-file test-name 'ert-deftest))))
2509 (when file-name 2510 (when file-name
2510 (insert " defined in ‘" (file-name-nondirectory file-name) "’") 2511 (insert (format-message " defined in `%s'"
2512 (file-name-nondirectory file-name)))
2511 (save-excursion 2513 (save-excursion
2512 (re-search-backward "‘\\([^‘’]+\\)’" nil t) 2514 (re-search-backward (substitute-command-keys "`\\([^`']+\\)'")
2515 nil t)
2513 (help-xref-button 1 'help-function-def test-name file-name))) 2516 (help-xref-button 1 'help-function-def test-name file-name)))
2514 (insert ".") 2517 (insert ".")
2515 (fill-region-as-paragraph (point-min) (point)) 2518 (fill-region-as-paragraph (point-min) (point))
diff --git a/lisp/emacs-lisp/find-func.el b/lisp/emacs-lisp/find-func.el
index 86a1f283238..026a4a749a9 100644
--- a/lisp/emacs-lisp/find-func.el
+++ b/lisp/emacs-lisp/find-func.el
@@ -296,7 +296,7 @@ Otherwise, TYPE specifies the kind of definition,
296and it is interpreted via `find-function-regexp-alist'. 296and it is interpreted via `find-function-regexp-alist'.
297The search is done in the source for library LIBRARY." 297The search is done in the source for library LIBRARY."
298 (if (null library) 298 (if (null library)
299 (error "Don't know where %s is defined" symbol)) 299 (error "Don't know where `%s' is defined" symbol))
300 ;; Some functions are defined as part of the construct 300 ;; Some functions are defined as part of the construct
301 ;; that defines something else. 301 ;; that defines something else.
302 (while (and (symbolp symbol) (get symbol 'definition-name)) 302 (while (and (symbolp symbol) (get symbol 'definition-name))
@@ -368,9 +368,9 @@ message about the whole chain of aliases."
368 (setq aliases (if aliases 368 (setq aliases (if aliases
369 (concat aliases 369 (concat aliases
370 (format-message 370 (format-message
371 ", which is an alias for %s" 371 ", which is an alias for `%s'"
372 (symbol-name def))) 372 (symbol-name def)))
373 (format-message "%s is an alias for %s" 373 (format-message "`%s' is an alias for `%s'"
374 function (symbol-name def))))) 374 function (symbol-name def)))))
375 (setq function (find-function-advised-original function) 375 (setq function (find-function-advised-original function)
376 def (find-function-advised-original function))) 376 def (find-function-advised-original function)))
diff --git a/lisp/emacs-lisp/generator.el b/lisp/emacs-lisp/generator.el
index 79e760d511c..123f64b9660 100644
--- a/lisp/emacs-lisp/generator.el
+++ b/lisp/emacs-lisp/generator.el
@@ -661,7 +661,7 @@ The caller of `iter-next' receives VALUE, and the next call to
661`iter-next' resumes execution at the previous 661`iter-next' resumes execution at the previous
662`iter-yield' point." 662`iter-yield' point."
663 (identity value) 663 (identity value)
664 (error "iter-yield used outside a generator")) 664 (error "`iter-yield' used outside a generator"))
665 665
666(defmacro iter-yield-from (value) 666(defmacro iter-yield-from (value)
667 "When used inside a generator function, delegate to a sub-iterator. 667 "When used inside a generator function, delegate to a sub-iterator.
diff --git a/lisp/emacs-lisp/gv.el b/lisp/emacs-lisp/gv.el
index 67609820a33..bbe6b36ab9a 100644
--- a/lisp/emacs-lisp/gv.el
+++ b/lisp/emacs-lisp/gv.el
@@ -239,7 +239,7 @@ instead the assignment is turned into something equivalent to
239so as to preserve the semantics of `setf'." 239so as to preserve the semantics of `setf'."
240 (declare (debug (sexp (&or symbolp lambda-expr) &optional sexp))) 240 (declare (debug (sexp (&or symbolp lambda-expr) &optional sexp)))
241 (when (eq 'lambda (car-safe setter)) 241 (when (eq 'lambda (car-safe setter))
242 (message "Use gv-define-setter or name %s's setter function" name)) 242 (message "Use `gv-define-setter' or name %s's setter function" name))
243 `(gv-define-setter ,name (val &rest args) 243 `(gv-define-setter ,name (val &rest args)
244 ,(if fix-return 244 ,(if fix-return
245 `(macroexp-let2 nil v val 245 `(macroexp-let2 nil v val
diff --git a/lisp/emacs-lisp/lisp-mnt.el b/lisp/emacs-lisp/lisp-mnt.el
index 6fdd348caab..393f0dd99e8 100644
--- a/lisp/emacs-lisp/lisp-mnt.el
+++ b/lisp/emacs-lisp/lisp-mnt.el
@@ -542,21 +542,21 @@ copyright notice is allowed."
542 ((null name) 542 ((null name)
543 "Can't find package name") 543 "Can't find package name")
544 ((not (lm-authors)) 544 ((not (lm-authors))
545 "Author: tag missing") 545 "`Author:' tag missing")
546 ((not (lm-maintainer)) 546 ((not (lm-maintainer))
547 "Maintainer: tag missing") 547 "`Maintainer:' tag missing")
548 ((not (lm-summary)) 548 ((not (lm-summary))
549 "Can't find the one-line summary description") 549 "Can't find the one-line summary description")
550 ((not (lm-keywords)) 550 ((not (lm-keywords))
551 "Keywords: tag missing") 551 "`Keywords:' tag missing")
552 ((not (lm-keywords-finder-p)) 552 ((not (lm-keywords-finder-p))
553 "Keywords: has no valid finder keywords (see finder-known-keywords)") 553 "`Keywords:' has no valid finder keywords (see `finder-known-keywords')")
554 ((not (lm-commentary-mark)) 554 ((not (lm-commentary-mark))
555 "Can't find a Commentary section marker") 555 "Can't find a `Commentary' section marker")
556 ((not (lm-history-mark)) 556 ((not (lm-history-mark))
557 "Can't find a History section marker") 557 "Can't find a `History' section marker")
558 ((not (lm-code-mark)) 558 ((not (lm-code-mark))
559 "Can't find a Code section marker") 559 "Can't find a `Code' section marker")
560 ((progn 560 ((progn
561 (goto-char (point-max)) 561 (goto-char (point-max))
562 (not 562 (not
diff --git a/lisp/emacs-lisp/macroexp.el b/lisp/emacs-lisp/macroexp.el
index 6189976e866..2c33d39c32f 100644
--- a/lisp/emacs-lisp/macroexp.el
+++ b/lisp/emacs-lisp/macroexp.el
@@ -147,10 +147,10 @@ and also to avoid outputting the warning during normal execution."
147 (let ((instead (car obsolescence-data)) 147 (let ((instead (car obsolescence-data))
148 (asof (nth 2 obsolescence-data))) 148 (asof (nth 2 obsolescence-data)))
149 (format-message 149 (format-message
150 "%s is an obsolete %s%s%s" fun type 150 "`%s' is an obsolete %s%s%s" fun type
151 (if asof (concat " (as of " asof ")") "") 151 (if asof (concat " (as of " asof ")") "")
152 (cond ((stringp instead) (concat "; " (substitute-command-keys instead))) 152 (cond ((stringp instead) (concat "; " (substitute-command-keys instead)))
153 (instead (format-message "; use %s instead." instead)) 153 (instead (format-message "; use `%s' instead." instead))
154 (t "."))))) 154 (t ".")))))
155 155
156(defun macroexpand-1 (form &optional environment) 156(defun macroexpand-1 (form &optional environment)
diff --git a/lisp/emacs-lisp/map-ynp.el b/lisp/emacs-lisp/map-ynp.el
index 3ac7094990d..43fd4ef57a6 100644
--- a/lisp/emacs-lisp/map-ynp.el
+++ b/lisp/emacs-lisp/map-ynp.el
@@ -199,9 +199,9 @@ Returns the number of actions taken."
199 (action (if help (nth 2 help) "act on"))) 199 (action (if help (nth 2 help) "act on")))
200 (concat 200 (concat
201 (format-message "\ 201 (format-message "\
202Type SPC or y to %s the current %s; 202Type SPC or `y' to %s the current %s;
203DEL or n to skip the current %s; 203DEL or `n' to skip the current %s;
204RET or q to give up on the %s (skip all remaining %s); 204RET or `q' to give up on the %s (skip all remaining %s);
205C-g to quit (cancel the whole command); 205C-g to quit (cancel the whole command);
206! to %s all remaining %s;\n" 206! to %s all remaining %s;\n"
207 action object object action objects action 207 action object object action objects action
diff --git a/lisp/emacs-lisp/map.el b/lisp/emacs-lisp/map.el
index 5014571a37b..ea56efefe97 100644
--- a/lisp/emacs-lisp/map.el
+++ b/lisp/emacs-lisp/map.el
@@ -249,21 +249,22 @@ MAP can be a list, hash-table or array."
249 :array (seq-empty-p map) 249 :array (seq-empty-p map)
250 :hash-table (zerop (hash-table-count map)))) 250 :hash-table (zerop (hash-table-count map))))
251 251
252(defun map-contains-key-p (map key &optional testfn) 252(defun map-contains-key (map key &optional testfn)
253 "Return non-nil if MAP contain the key KEY, nil otherwise. 253 "Return non-nil if MAP contain the key KEY, nil otherwise.
254Equality is defined by TESTFN if non-nil or by `equal' if nil. 254Equality is defined by TESTFN if non-nil or by `equal' if nil.
255 255
256MAP can be a list, hash-table or array." 256MAP can be a list, hash-table or array."
257 (seq-contains-p (map-keys map) key testfn)) 257 (seq-contains (map-keys map) key testfn))
258 258
259(defun map-some-p (pred map) 259(defun map-some (pred map)
260 "Return a key/value pair for which (PRED key val) is non-nil in MAP. 260 "Return a non-nil if (PRED key val) is non-nil for any key/value pair in MAP.
261 261
262MAP can be a list, hash-table or array." 262MAP can be a list, hash-table or array."
263 (catch 'map--break 263 (catch 'map--break
264 (map-apply (lambda (key value) 264 (map-apply (lambda (key value)
265 (when (funcall pred key value) 265 (let ((result (funcall pred key value)))
266 (throw 'map--break (cons key value)))) 266 (when result
267 (throw 'map--break result))))
267 map) 268 map)
268 nil)) 269 nil))
269 270
diff --git a/lisp/emacs-lisp/nadvice.el b/lisp/emacs-lisp/nadvice.el
index 7eebb5ebaf8..2cd34e12810 100644
--- a/lisp/emacs-lisp/nadvice.el
+++ b/lisp/emacs-lisp/nadvice.el
@@ -95,7 +95,7 @@ Each element has the form (WHERE BYTECODE STACK) where:
95 (propertize (format "%s advice: " where) 95 (propertize (format "%s advice: " where)
96 'face 'warning) 96 'face 'warning)
97 (let ((fun (advice--car flist))) 97 (let ((fun (advice--car flist)))
98 (if (symbolp fun) (format-message "%S" fun) 98 (if (symbolp fun) (format-message "`%S'" fun)
99 (let* ((name (cdr (assq 'name (advice--props flist)))) 99 (let* ((name (cdr (assq 'name (advice--props flist))))
100 (doc (documentation fun t)) 100 (doc (documentation fun t))
101 (usage (help-split-fundoc doc function))) 101 (usage (help-split-fundoc doc function)))
@@ -176,7 +176,7 @@ WHERE is a symbol to select an entry in `advice--where-alist'."
176 (advice--make-1 (aref main 1) (aref main 3) 176 (advice--make-1 (aref main 1) (aref main 3)
177 (advice--car main) rest (advice--props main))) 177 (advice--car main) rest (advice--props main)))
178 (let ((desc (assq where advice--where-alist))) 178 (let ((desc (assq where advice--where-alist)))
179 (unless desc (error "Unknown add-function location %S" where)) 179 (unless desc (error "Unknown add-function location `%S'" where))
180 (advice--make-1 (nth 1 desc) (nth 2 desc) 180 (advice--make-1 (nth 1 desc) (nth 2 desc)
181 function main props))))) 181 function main props)))))
182 182
@@ -461,7 +461,7 @@ otherwise it is named `SYMBOL@NAME'.
461 (advice (cond ((null name) `(lambda ,lambda-list ,@body)) 461 (advice (cond ((null name) `(lambda ,lambda-list ,@body))
462 ((or (stringp name) (symbolp name)) 462 ((or (stringp name) (symbolp name))
463 (intern (format "%s@%s" symbol name))) 463 (intern (format "%s@%s" symbol name)))
464 (t (error "Unrecognized name spec %S" name))))) 464 (t (error "Unrecognized name spec `%S'" name)))))
465 `(prog1 ,@(and (symbolp advice) `((defun ,advice ,lambda-list ,@body))) 465 `(prog1 ,@(and (symbolp advice) `((defun ,advice ,lambda-list ,@body)))
466 (advice-add ',symbol ,where #',advice ,@(and props `(',props)))))) 466 (advice-add ',symbol ,where #',advice ,@(and props `(',props))))))
467 467
diff --git a/lisp/emacs-lisp/package-x.el b/lisp/emacs-lisp/package-x.el
index 608bf734bef..81d0b834722 100644
--- a/lisp/emacs-lisp/package-x.el
+++ b/lisp/emacs-lisp/package-x.el
@@ -296,7 +296,7 @@ destination, prompt for one."
296 ((string-match "\\.tar\\'" file) 296 ((string-match "\\.tar\\'" file)
297 (tar-mode) (package-tar-file-info)) 297 (tar-mode) (package-tar-file-info))
298 ((string-match "\\.el\\'" file) (package-buffer-info)) 298 ((string-match "\\.el\\'" file) (package-buffer-info))
299 (t (error "Unrecognized extension %s" 299 (t (error "Unrecognized extension `%s'"
300 (file-name-extension file)))))) 300 (file-name-extension file))))))
301 (package-upload-buffer-internal pkg-desc (file-name-extension file))))) 301 (package-upload-buffer-internal pkg-desc (file-name-extension file)))))
302 302
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
index 7c4f21f603b..b0d2ff96629 100644
--- a/lisp/emacs-lisp/package.el
+++ b/lisp/emacs-lisp/package.el
@@ -234,7 +234,7 @@ of it available such that:
234 234
235This variable has three possible values: 235This variable has three possible values:
236 nil: no packages are hidden; 236 nil: no packages are hidden;
237 archive: only criteria (a) is used; 237 `archive': only criteria (a) is used;
238 t: both criteria are used. 238 t: both criteria are used.
239 239
240This variable has no effect if `package-menu--hide-packages' is 240This variable has no effect if `package-menu--hide-packages' is
@@ -456,13 +456,13 @@ This is, approximately, the inverse of `version-to-list'.
456 (push (int-to-string num) str-list) 456 (push (int-to-string num) str-list)
457 (push "." str-list)) 457 (push "." str-list))
458 ((< num -4) 458 ((< num -4)
459 (error "Invalid version list %s" vlist)) 459 (error "Invalid version list `%s'" vlist))
460 (t 460 (t
461 ;; pre, or beta, or alpha 461 ;; pre, or beta, or alpha
462 (cond ((equal "." (car str-list)) 462 (cond ((equal "." (car str-list))
463 (pop str-list)) 463 (pop str-list))
464 ((not (string-match "[0-9]+" (car str-list))) 464 ((not (string-match "[0-9]+" (car str-list)))
465 (error "Invalid version list %s" vlist))) 465 (error "Invalid version list `%s'" vlist)))
466 (push (cond ((= num -1) "pre") 466 (push (cond ((= num -1) "pre")
467 ((= num -2) "beta") 467 ((= num -2) "beta")
468 ((= num -3) "alpha") 468 ((= num -3) "alpha")
@@ -623,7 +623,7 @@ Return the max version (as a string) if the package is held at a lower version."
623 ((stringp force) ; held 623 ((stringp force) ; held
624 (unless (version-list-= version (version-to-list force)) 624 (unless (version-list-= version (version-to-list force))
625 force)) 625 force))
626 (t (error "Invalid element in package-load-list"))))) 626 (t (error "Invalid element in `package-load-list'")))))
627 627
628(defun package-built-in-p (package &optional min-version) 628(defun package-built-in-p (package &optional min-version)
629 "Return true if PACKAGE is built-in to Emacs. 629 "Return true if PACKAGE is built-in to Emacs.
@@ -639,6 +639,28 @@ specifying the minimum acceptable version."
639 (require 'finder-inf nil t) ; For `package--builtins'. 639 (require 'finder-inf nil t) ; For `package--builtins'.
640 (assq package package--builtins)))))) 640 (assq package package--builtins))))))
641 641
642(defun package--autoloads-file-name (pkg-desc)
643 "Return the absolute name of the autoloads file, sans extension.
644PKG-DESC is a `package-desc' object."
645 (expand-file-name
646 (format "%s-autoloads" (package-desc-name pkg-desc))
647 (package-desc-dir pkg-desc)))
648
649(defun package--activate-autoloads-and-load-path (pkg-desc)
650 "Load the autoloads file and add package dir to `load-path'.
651PKG-DESC is a `package-desc' object."
652 (let* ((old-lp load-path)
653 (pkg-dir (package-desc-dir pkg-desc))
654 (pkg-dir-dir (file-name-as-directory pkg-dir)))
655 (with-demoted-errors "Error loading autoloads: %s"
656 (load (package--autoloads-file-name pkg-desc) nil t))
657 (when (and (eq old-lp load-path)
658 (not (or (member pkg-dir load-path)
659 (member pkg-dir-dir load-path))))
660 ;; Old packages don't add themselves to the `load-path', so we have to
661 ;; do it ourselves.
662 (push pkg-dir load-path))))
663
642(defvar Info-directory-list) 664(defvar Info-directory-list)
643(declare-function info-initialize "info" ()) 665(declare-function info-initialize "info" ())
644 666
@@ -648,24 +670,14 @@ If RELOAD is non-nil, also `load' any files inside the package which
648correspond to previously loaded files (those returned by 670correspond to previously loaded files (those returned by
649`package--list-loaded-files')." 671`package--list-loaded-files')."
650 (let* ((name (package-desc-name pkg-desc)) 672 (let* ((name (package-desc-name pkg-desc))
651 (pkg-dir (package-desc-dir pkg-desc)) 673 (pkg-dir (package-desc-dir pkg-desc)))
652 (pkg-dir-dir (file-name-as-directory pkg-dir)))
653 (unless pkg-dir 674 (unless pkg-dir
654 (error "Internal error: unable to find directory for %s" 675 (error "Internal error: unable to find directory for `%s'"
655 (package-desc-full-name pkg-desc))) 676 (package-desc-full-name pkg-desc)))
656 ;; Add to load path, add autoloads, and activate the package. 677 (let* ((loaded-files-list (when reload
657 (let* ((old-lp load-path) 678 (package--list-loaded-files pkg-dir))))
658 (autoloads-file (expand-file-name 679 ;; Add to load path, add autoloads, and activate the package.
659 (format "%s-autoloads" name) pkg-dir)) 680 (package--activate-autoloads-and-load-path pkg-desc)
660 (loaded-files-list (and reload (package--list-loaded-files pkg-dir))))
661 (with-demoted-errors "Error in package-activate-1: %s"
662 (load autoloads-file nil t))
663 (when (and (eq old-lp load-path)
664 (not (or (member pkg-dir load-path)
665 (member pkg-dir-dir load-path))))
666 ;; Old packages don't add themselves to the `load-path', so we have to
667 ;; do it ourselves.
668 (push pkg-dir load-path))
669 ;; Call `load' on all files in `pkg-dir' already present in 681 ;; Call `load' on all files in `pkg-dir' already present in
670 ;; `load-history'. This is done so that macros in these files are updated 682 ;; `load-history'. This is done so that macros in these files are updated
671 ;; to their new definitions. If another package is being installed which 683 ;; to their new definitions. If another package is being installed which
@@ -674,7 +686,8 @@ correspond to previously loaded files (those returned by
674 (with-demoted-errors "Error in package-activate-1: %s" 686 (with-demoted-errors "Error in package-activate-1: %s"
675 (mapc (lambda (feature) (load feature nil t)) 687 (mapc (lambda (feature) (load feature nil t))
676 ;; Skip autoloads file since we already evaluated it above. 688 ;; Skip autoloads file since we already evaluated it above.
677 (remove (file-truename autoloads-file) loaded-files-list)))) 689 (remove (file-truename (package--autoloads-file-name pkg-desc))
690 loaded-files-list))))
678 ;; Add info node. 691 ;; Add info node.
679 (when (file-exists-p (expand-file-name "dir" pkg-dir)) 692 (when (file-exists-p (expand-file-name "dir" pkg-dir))
680 ;; FIXME: not the friendliest, but simple. 693 ;; FIXME: not the friendliest, but simple.
@@ -754,8 +767,8 @@ Newer versions are always activated, regardless of FORCE."
754 (unless (package-activate (car req)) 767 (unless (package-activate (car req))
755 (throw 'dep-failure req)))))) 768 (throw 'dep-failure req))))))
756 (if fail 769 (if fail
757 (warn "Unable to activate package %s. 770 (warn "Unable to activate package `%s'.
758Required package %s-%s is unavailable" 771Required package `%s-%s' is unavailable"
759 package (car fail) (package-version-join (cadr fail))) 772 package (car fail) (package-version-join (cadr fail)))
760 ;; If all goes well, activate the package itself. 773 ;; If all goes well, activate the package itself.
761 (package-activate-1 pkg-vec force))))))) 774 (package-activate-1 pkg-vec force)))))))
@@ -919,8 +932,9 @@ untar into a directory named DIR; otherwise, signal an error."
919(defun package--compile (pkg-desc) 932(defun package--compile (pkg-desc)
920 "Byte-compile installed package PKG-DESC." 933 "Byte-compile installed package PKG-DESC."
921 (let ((warning-minimum-level :error) 934 (let ((warning-minimum-level :error)
922 (save-silently inhibit-message)) 935 (save-silently inhibit-message)
923 (package-activate-1 pkg-desc) 936 (load-path load-path))
937 (package--activate-autoloads-and-load-path pkg-desc)
924 (byte-recompile-directory (package-desc-dir pkg-desc) 0 t))) 938 (byte-recompile-directory (package-desc-dir pkg-desc) 0 t)))
925 939
926;;;; Inferring package from current buffer 940;;;; Inferring package from current buffer
@@ -1372,13 +1386,18 @@ If successful, set `package-archive-contents'."
1372The variable `package-load-list' controls which packages to load. 1386The variable `package-load-list' controls which packages to load.
1373If optional arg NO-ACTIVATE is non-nil, don't activate packages. 1387If optional arg NO-ACTIVATE is non-nil, don't activate packages.
1374If `user-init-file' does not mention `(package-initialize)', add 1388If `user-init-file' does not mention `(package-initialize)', add
1375it to the file." 1389it to the file.
1390If called as part of loading `user-init-file', set
1391`package-enable-at-startup' to nil, to prevent accidentally
1392loading packages twice."
1376 (interactive) 1393 (interactive)
1377 (setq package-alist nil) 1394 (setq package-alist nil)
1378 (if (equal user-init-file load-file-name) 1395 (if (equal user-init-file load-file-name)
1379 ;; If `package-initialize' is being called as part of loading 1396 ;; If `package-initialize' is being called as part of loading
1380 ;; the init file, it's obvious we don't need to ensure-init. 1397 ;; the init file, it's obvious we don't need to ensure-init.
1381 (setq package--init-file-ensured t) 1398 (setq package--init-file-ensured t
1399 ;; And likely we don't need to run it again after init.
1400 package-enable-at-startup nil)
1382 (package--ensure-init-file)) 1401 (package--ensure-init-file))
1383 (package-load-all-descriptors) 1402 (package-load-all-descriptors)
1384 (package-read-all-archive-contents) 1403 (package-read-all-archive-contents)
@@ -1465,7 +1484,7 @@ similar to an entry in `package-alist'. Save the cached copy to
1465 ;; Even if the sig fails, this download is done, so 1484 ;; Even if the sig fails, this download is done, so
1466 ;; remove it from the in-progress list. 1485 ;; remove it from the in-progress list.
1467 (package--update-downloads-in-progress archive) 1486 (package--update-downloads-in-progress archive)
1468 (error "Unsigned archive %s" name)) 1487 (error "Unsigned archive `%s'" name))
1469 ;; Write out the archives file. 1488 ;; Write out the archives file.
1470 (write-region content nil local-file nil 'silent) 1489 (write-region content nil local-file nil 'silent)
1471 ;; Write out good signatures into archive-contents.signed file. 1490 ;; Write out good signatures into archive-contents.signed file.
@@ -1495,7 +1514,7 @@ perform the downloads asynchronously."
1495 (when async 1514 (when async
1496 ;; The t at the end means to propagate connection errors. 1515 ;; The t at the end means to propagate connection errors.
1497 (lambda () (package--update-downloads-in-progress archive) t))) 1516 (lambda () (package--update-downloads-in-progress archive) t)))
1498 (error (message "Failed to download %s archive." 1517 (error (message "Failed to download `%s' archive."
1499 (car archive)))))) 1518 (car archive))))))
1500 1519
1501;;;###autoload 1520;;;###autoload
@@ -1564,7 +1583,7 @@ SEEN is used internally to detect infinite recursion."
1564 (package-desc-full-name already)) 1583 (package-desc-full-name already))
1565 (setq packages (delq already packages)) 1584 (setq packages (delq already packages))
1566 (setq already nil)) 1585 (setq already nil))
1567 (error "Need package %s-%s, but only %s is being installed" 1586 (error "Need package `%s-%s', but only %s is being installed"
1568 next-pkg (package-version-join next-version) 1587 next-pkg (package-version-join next-version)
1569 (package-version-join (package-desc-version already))))) 1588 (package-version-join (package-desc-version already)))))
1570 (cond 1589 (cond
@@ -1593,20 +1612,20 @@ SEEN is used internally to detect infinite recursion."
1593 (setq problem 1612 (setq problem
1594 (if (stringp disabled) 1613 (if (stringp disabled)
1595 (format-message 1614 (format-message
1596 "Package %s held at version %s, but version %s required" 1615 "Package `%s' held at version %s, but version %s required"
1597 next-pkg disabled 1616 next-pkg disabled
1598 (package-version-join next-version)) 1617 (package-version-join next-version))
1599 (format-message "Required package %s is disabled" 1618 (format-message "Required package `%s' is disabled"
1600 next-pkg))))) 1619 next-pkg)))))
1601 (t (setq found pkg-desc))))) 1620 (t (setq found pkg-desc)))))
1602 (unless found 1621 (unless found
1603 (cond 1622 (cond
1604 (problem (error "%s" problem)) 1623 (problem (error "%s" problem))
1605 (found-something 1624 (found-something
1606 (error "Need package %s-%s, but only %s is available" 1625 (error "Need package `%s-%s', but only %s is available"
1607 next-pkg (package-version-join next-version) 1626 next-pkg (package-version-join next-version)
1608 found-something)) 1627 found-something))
1609 (t (error "Package %s-%s is unavailable" 1628 (t (error "Package `%s-%s' is unavailable"
1610 next-pkg (package-version-join next-version))))) 1629 next-pkg (package-version-join next-version)))))
1611 (setq packages 1630 (setq packages
1612 (package-compute-transaction (cons found packages) 1631 (package-compute-transaction (cons found packages)
@@ -1766,7 +1785,7 @@ if all the in-between dependencies are also in PACKAGE-LIST."
1766 (unless (or good-sigs (eq package-check-signature 'allow-unsigned)) 1785 (unless (or good-sigs (eq package-check-signature 'allow-unsigned))
1767 ;; Even if the sig fails, this download is done, so 1786 ;; Even if the sig fails, this download is done, so
1768 ;; remove it from the in-progress list. 1787 ;; remove it from the in-progress list.
1769 (error "Unsigned package: %s" 1788 (error "Unsigned package: `%s'"
1770 (package-desc-name pkg-desc))) 1789 (package-desc-name pkg-desc)))
1771 ;; Signature checked, unpack now. 1790 ;; Signature checked, unpack now.
1772 (with-temp-buffer (insert content) 1791 (with-temp-buffer (insert content)
@@ -1907,7 +1926,7 @@ to install it but still mark it as selected."
1907 (package-desc-reqs pkg))) 1926 (package-desc-reqs pkg)))
1908 (package-compute-transaction () (list (list pkg)))))) 1927 (package-compute-transaction () (list (list pkg))))))
1909 (package-download-transaction transaction) 1928 (package-download-transaction transaction)
1910 (message "%s is already installed" (package-desc-full-name pkg)))) 1929 (message "`%s' is already installed" (package-desc-full-name pkg))))
1911 1930
1912(defun package-strip-rcs-id (str) 1931(defun package-strip-rcs-id (str)
1913 "Strip RCS version ID from the version string STR. 1932 "Strip RCS version ID from the version string STR.
@@ -1982,7 +2001,7 @@ If some packages are not installed propose to install them."
1982 ;; using here, because the outcome is the same either way (nothing 2001 ;; using here, because the outcome is the same either way (nothing
1983 ;; gets installed). 2002 ;; gets installed).
1984 (if (not package-selected-packages) 2003 (if (not package-selected-packages)
1985 (message "package-selected-packages is empty, nothing to install") 2004 (message "`package-selected-packages' is empty, nothing to install")
1986 (cl-loop for p in package-selected-packages 2005 (cl-loop for p in package-selected-packages
1987 unless (package-installed-p p) 2006 unless (package-installed-p p)
1988 collect p into lst 2007 collect p into lst
@@ -2047,13 +2066,13 @@ If NOSAVE is non-nil, the package is not removed from
2047 (expand-file-name package-user-dir)) 2066 (expand-file-name package-user-dir))
2048 (expand-file-name dir))) 2067 (expand-file-name dir)))
2049 ;; Don't delete "system" packages. 2068 ;; Don't delete "system" packages.
2050 (error "Package %s is a system package, not deleting" 2069 (error "Package `%s' is a system package, not deleting"
2051 (package-desc-full-name pkg-desc))) 2070 (package-desc-full-name pkg-desc)))
2052 ((and (null force) 2071 ((and (null force)
2053 (setq pkg-used-elsewhere-by 2072 (setq pkg-used-elsewhere-by
2054 (package--used-elsewhere-p pkg-desc))) 2073 (package--used-elsewhere-p pkg-desc)))
2055 ;; Don't delete packages used as dependency elsewhere. 2074 ;; Don't delete packages used as dependency elsewhere.
2056 (error "Package %s is used by %s as dependency, not deleting" 2075 (error "Package `%s' is used by `%s' as dependency, not deleting"
2057 (package-desc-full-name pkg-desc) 2076 (package-desc-full-name pkg-desc)
2058 (package-desc-name pkg-used-elsewhere-by))) 2077 (package-desc-name pkg-used-elsewhere-by)))
2059 (t 2078 (t
@@ -2068,7 +2087,7 @@ If NOSAVE is non-nil, the package is not removed from
2068 (delete pkg-desc pkgs) 2087 (delete pkg-desc pkgs)
2069 (unless (cdr pkgs) 2088 (unless (cdr pkgs)
2070 (setq package-alist (delq pkgs package-alist)))) 2089 (setq package-alist (delq pkgs package-alist))))
2071 (message "Package %s deleted." (package-desc-full-name pkg-desc)))))) 2090 (message "Package `%s' deleted." (package-desc-full-name pkg-desc))))))
2072 2091
2073;;;###autoload 2092;;;###autoload
2074(defun package-reinstall (pkg) 2093(defun package-reinstall (pkg)
@@ -2097,7 +2116,8 @@ will be deleted."
2097 ;; do absolutely nothing. 2116 ;; do absolutely nothing.
2098 (when (or package-selected-packages 2117 (when (or package-selected-packages
2099 (yes-or-no-p 2118 (yes-or-no-p
2100 "‘package-selected-packages’ is empty! Really remove ALL packages? ")) 2119 (format-message
2120 "`package-selected-packages' is empty! Really remove ALL packages? ")))
2101 (let ((removable (package--removable-packages))) 2121 (let ((removable (package--removable-packages)))
2102 (if removable 2122 (if removable
2103 (when (y-or-n-p 2123 (when (y-or-n-p
@@ -2144,7 +2164,7 @@ will be deleted."
2144 (with-current-buffer standard-output 2164 (with-current-buffer standard-output
2145 (describe-package-1 package))))) 2165 (describe-package-1 package)))))
2146 2166
2147(defface package-help-section-name-face 2167(defface package-help-section-name
2148 '((t :inherit (bold font-lock-function-name-face))) 2168 '((t :inherit (bold font-lock-function-name-face)))
2149 "Face used on section names in package description buffers." 2169 "Face used on section names in package description buffers."
2150 :version "25.1") 2170 :version "25.1")
@@ -2155,7 +2175,7 @@ If more STRINGS are provided, insert them followed by a newline.
2155Otherwise no newline is inserted." 2175Otherwise no newline is inserted."
2156 (declare (indent 1)) 2176 (declare (indent 1))
2157 (insert (make-string (max 0 (- 11 (string-width name))) ?\s) 2177 (insert (make-string (max 0 (- 11 (string-width name))) ?\s)
2158 (propertize (concat name ": ") 'font-lock-face 'package-help-section-name-face)) 2178 (propertize (concat name ": ") 'font-lock-face 'package-help-section-name))
2159 (when strings 2179 (when strings
2160 (apply #'insert strings) 2180 (apply #'insert strings)
2161 (insert "\n"))) 2181 (insert "\n")))
@@ -2205,7 +2225,7 @@ Otherwise no newline is inserted."
2205 "Installed" 2225 "Installed"
2206 (capitalize status)) 2226 (capitalize status))
2207 'font-lock-face 'package-status-builtin-face)) 2227 'font-lock-face 'package-status-builtin-face))
2208 (insert (substitute-command-keys " in ")) 2228 (insert (substitute-command-keys " in `"))
2209 (let ((dir (abbreviate-file-name 2229 (let ((dir (abbreviate-file-name
2210 (file-name-as-directory 2230 (file-name-as-directory
2211 (if (file-in-directory-p pkg-dir package-user-dir) 2231 (if (file-in-directory-p pkg-dir package-user-dir)
@@ -2215,10 +2235,10 @@ Otherwise no newline is inserted."
2215 (if (and (package-built-in-p name) 2235 (if (and (package-built-in-p name)
2216 (not (package-built-in-p name version))) 2236 (not (package-built-in-p name version)))
2217 (insert (substitute-command-keys 2237 (insert (substitute-command-keys
2218 ",\n shadowing a ") 2238 "',\n shadowing a ")
2219 (propertize "built-in package" 2239 (propertize "built-in package"
2220 'font-lock-face 'package-status-builtin-face)) 2240 'font-lock-face 'package-status-builtin-face))
2221 (insert (substitute-command-keys ""))) 2241 (insert (substitute-command-keys "'")))
2222 (if signed 2242 (if signed
2223 (insert ".") 2243 (insert ".")
2224 (insert " (unsigned).")) 2244 (insert " (unsigned)."))
@@ -2366,7 +2386,7 @@ Otherwise no newline is inserted."
2366 2386
2367(defun package-install-button-action (button) 2387(defun package-install-button-action (button)
2368 (let ((pkg-desc (button-get button 'package-desc))) 2388 (let ((pkg-desc (button-get button 'package-desc)))
2369 (when (y-or-n-p (format-message "Install package %s? " 2389 (when (y-or-n-p (format-message "Install package `%s'? "
2370 (package-desc-full-name pkg-desc))) 2390 (package-desc-full-name pkg-desc)))
2371 (package-install pkg-desc nil) 2391 (package-install pkg-desc nil)
2372 (revert-buffer nil t) 2392 (revert-buffer nil t)
@@ -2374,7 +2394,7 @@ Otherwise no newline is inserted."
2374 2394
2375(defun package-delete-button-action (button) 2395(defun package-delete-button-action (button)
2376 (let ((pkg-desc (button-get button 'package-desc))) 2396 (let ((pkg-desc (button-get button 'package-desc)))
2377 (when (y-or-n-p (format-message "Delete package %s? " 2397 (when (y-or-n-p (format-message "Delete package `%s'? "
2378 (package-desc-full-name pkg-desc))) 2398 (package-desc-full-name pkg-desc)))
2379 (package-delete pkg-desc) 2399 (package-delete pkg-desc)
2380 (revert-buffer nil t) 2400 (revert-buffer nil t)
@@ -2759,68 +2779,68 @@ Return (PKG-DESC [NAME VERSION STATUS DOC])."
2759 2779
2760 2780
2761;;; Package menu faces 2781;;; Package menu faces
2762(defface package-name-face 2782(defface package-name
2763 '((t :inherit link)) 2783 '((t :inherit link))
2764 "Face used on package names in the package menu." 2784 "Face used on package names in the package menu."
2765 :version "25.1") 2785 :version "25.1")
2766 2786
2767(defface package-description-face 2787(defface package-description
2768 '((t :inherit default)) 2788 '((t :inherit default))
2769 "Face used on package description summaries in the package menu." 2789 "Face used on package description summaries in the package menu."
2770 :version "25.1") 2790 :version "25.1")
2771 2791
2772(defface package-status-built-in-face 2792(defface package-status-built-in
2773 '((t :inherit font-lock-builtin-face)) 2793 '((t :inherit font-lock-builtin-face))
2774 "Face used on the status and version of built-in packages." 2794 "Face used on the status and version of built-in packages."
2775 :version "25.1") 2795 :version "25.1")
2776 2796
2777(defface package-status-external-face 2797(defface package-status-external
2778 '((t :inherit package-status-builtin-face)) 2798 '((t :inherit package-status-builtin-face))
2779 "Face used on the status and version of external packages." 2799 "Face used on the status and version of external packages."
2780 :version "25.1") 2800 :version "25.1")
2781 2801
2782(defface package-status-available-face 2802(defface package-status-available
2783 '((t :inherit default)) 2803 '((t :inherit default))
2784 "Face used on the status and version of available packages." 2804 "Face used on the status and version of available packages."
2785 :version "25.1") 2805 :version "25.1")
2786 2806
2787(defface package-status-new-face 2807(defface package-status-new
2788 '((t :inherit (bold package-status-available-face))) 2808 '((t :inherit (bold package-status-available)))
2789 "Face used on the status and version of new packages." 2809 "Face used on the status and version of new packages."
2790 :version "25.1") 2810 :version "25.1")
2791 2811
2792(defface package-status-held-face 2812(defface package-status-held
2793 '((t :inherit font-lock-constant-face)) 2813 '((t :inherit font-lock-constant-face))
2794 "Face used on the status and version of held packages." 2814 "Face used on the status and version of held packages."
2795 :version "25.1") 2815 :version "25.1")
2796 2816
2797(defface package-status-disabled-face 2817(defface package-status-disabled
2798 '((t :inherit font-lock-warning-face)) 2818 '((t :inherit font-lock-warning-face))
2799 "Face used on the status and version of disabled packages." 2819 "Face used on the status and version of disabled packages."
2800 :version "25.1") 2820 :version "25.1")
2801 2821
2802(defface package-status-installed-face 2822(defface package-status-installed
2803 '((t :inherit font-lock-comment-face)) 2823 '((t :inherit font-lock-comment-face))
2804 "Face used on the status and version of installed packages." 2824 "Face used on the status and version of installed packages."
2805 :version "25.1") 2825 :version "25.1")
2806 2826
2807(defface package-status-dependency-face 2827(defface package-status-dependency
2808 '((t :inherit package-status-installed-face)) 2828 '((t :inherit package-status-installed))
2809 "Face used on the status and version of dependency packages." 2829 "Face used on the status and version of dependency packages."
2810 :version "25.1") 2830 :version "25.1")
2811 2831
2812(defface package-status-unsigned-face 2832(defface package-status-unsigned
2813 '((t :inherit font-lock-warning-face)) 2833 '((t :inherit font-lock-warning-face))
2814 "Face used on the status and version of unsigned packages." 2834 "Face used on the status and version of unsigned packages."
2815 :version "25.1") 2835 :version "25.1")
2816 2836
2817(defface package-status-incompat-face 2837(defface package-status-incompat
2818 '((t :inherit font-lock-comment-face)) 2838 '((t :inherit font-lock-comment-face))
2819 "Face used on the status and version of incompat packages." 2839 "Face used on the status and version of incompat packages."
2820 :version "25.1") 2840 :version "25.1")
2821 2841
2822(defface package-status-avail-obso-face 2842(defface package-status-avail-obso
2823 '((t :inherit package-status-incompat-face)) 2843 '((t :inherit package-status-incompat))
2824 "Face used on the status and version of avail-obso packages." 2844 "Face used on the status and version of avail-obso packages."
2825 :version "25.1") 2845 :version "25.1")
2826 2846
@@ -2832,22 +2852,22 @@ PKG is a package-desc object.
2832Return (PKG-DESC [NAME VERSION STATUS DOC])." 2852Return (PKG-DESC [NAME VERSION STATUS DOC])."
2833 (let* ((status (package-desc-status pkg)) 2853 (let* ((status (package-desc-status pkg))
2834 (face (pcase status 2854 (face (pcase status
2835 (`"built-in" 'package-status-built-in-face) 2855 (`"built-in" 'package-status-built-in)
2836 (`"external" 'package-status-external-face) 2856 (`"external" 'package-status-external)
2837 (`"available" 'package-status-available-face) 2857 (`"available" 'package-status-available)
2838 (`"avail-obso" 'package-status-avail-obso-face) 2858 (`"avail-obso" 'package-status-avail-obso)
2839 (`"new" 'package-status-new-face) 2859 (`"new" 'package-status-new)
2840 (`"held" 'package-status-held-face) 2860 (`"held" 'package-status-held)
2841 (`"disabled" 'package-status-disabled-face) 2861 (`"disabled" 'package-status-disabled)
2842 (`"installed" 'package-status-installed-face) 2862 (`"installed" 'package-status-installed)
2843 (`"dependency" 'package-status-dependency-face) 2863 (`"dependency" 'package-status-dependency)
2844 (`"unsigned" 'package-status-unsigned-face) 2864 (`"unsigned" 'package-status-unsigned)
2845 (`"incompat" 'package-status-incompat-face) 2865 (`"incompat" 'package-status-incompat)
2846 (_ 'font-lock-warning-face)))) ; obsolete. 2866 (_ 'font-lock-warning-face)))) ; obsolete.
2847 (list pkg 2867 (list pkg
2848 `[(,(symbol-name (package-desc-name pkg)) 2868 `[(,(symbol-name (package-desc-name pkg))
2849 face package-name-face 2869 face package-name
2850 font-lock-face package-name-face 2870 font-lock-face package-name
2851 follow-link t 2871 follow-link t
2852 package-desc ,pkg 2872 package-desc ,pkg
2853 action package-menu-describe-package) 2873 action package-menu-describe-package)
@@ -2859,7 +2879,7 @@ Return (PKG-DESC [NAME VERSION STATUS DOC])."
2859 (list (propertize (or (package-desc-archive pkg) "") 2879 (list (propertize (or (package-desc-archive pkg) "")
2860 'font-lock-face face))) 2880 'font-lock-face face)))
2861 ,(propertize (package-desc-summary pkg) 2881 ,(propertize (package-desc-summary pkg)
2862 'font-lock-face 'package-description-face)]))) 2882 'font-lock-face 'package-description)])))
2863 2883
2864(defvar package-menu--old-archive-contents nil 2884(defvar package-menu--old-archive-contents nil
2865 "`package-archive-contents' before the latest refresh.") 2885 "`package-archive-contents' before the latest refresh.")
@@ -2893,8 +2913,8 @@ If optional arg BUTTON is non-nil, describe its associated package."
2893 (cl-remove-if-not (lambda (e) (string-match re (symbol-name (car e)))) 2913 (cl-remove-if-not (lambda (e) (string-match re (symbol-name (car e))))
2894 package-archive-contents))) 2914 package-archive-contents)))
2895 (message (substitute-command-keys 2915 (message (substitute-command-keys
2896 (concat "Hiding %s packages, type \\[package-menu-toggle-hiding]" 2916 (concat "Hiding %s packages, type `\\[package-menu-toggle-hiding]'"
2897 " to toggle or \\[customize-variable] RET package-hidden-regexps" 2917 " to toggle or `\\[customize-variable] RET package-hidden-regexps'"
2898 " to customize it")) 2918 " to customize it"))
2899 (length hidden))))) 2919 (length hidden)))))
2900 2920
@@ -3078,7 +3098,7 @@ prompt (see `package-menu--prompt-transaction-p')."
3078 (length packages) 3098 (length packages)
3079 (mapconcat #'package-desc-full-name packages ", "))) 3099 (mapconcat #'package-desc-full-name packages ", ")))
3080 ;; Exactly 1 3100 ;; Exactly 1
3081 (t (format-message "package %s" 3101 (t (format-message "package `%s'"
3082 (package-desc-full-name (car packages)))))) 3102 (package-desc-full-name (car packages))))))
3083 3103
3084(defun package-menu--prompt-transaction-p (delete install upgrade) 3104(defun package-menu--prompt-transaction-p (delete install upgrade)
@@ -3134,7 +3154,7 @@ objects removed."
3134 (condition-case-unless-debug err 3154 (condition-case-unless-debug err
3135 (let ((inhibit-message package-menu-async)) 3155 (let ((inhibit-message package-menu-async))
3136 (package-delete elt nil 'nosave)) 3156 (package-delete elt nil 'nosave))
3137 (error (message "Error trying to delete %s: %S" 3157 (error (message "Error trying to delete `%s': %S"
3138 (package-desc-full-name elt) 3158 (package-desc-full-name elt)
3139 err)))))) 3159 err))))))
3140 3160
@@ -3265,7 +3285,7 @@ Store this list in `package-menu--new-package-list'."
3265(defun package-menu--find-and-notify-upgrades () 3285(defun package-menu--find-and-notify-upgrades ()
3266 "Notify the user of upgradable packages." 3286 "Notify the user of upgradable packages."
3267 (when-let ((upgrades (package-menu--find-upgrades))) 3287 (when-let ((upgrades (package-menu--find-upgrades)))
3268 (message "%d package%s can be upgraded; type %s to mark %s for upgrading." 3288 (message "%d package%s can be upgraded; type `%s' to mark %s for upgrading."
3269 (length upgrades) 3289 (length upgrades)
3270 (if (= (length upgrades) 1) "" "s") 3290 (if (= (length upgrades) 1) "" "s")
3271 (substitute-command-keys "\\[package-menu-mark-upgrades]") 3291 (substitute-command-keys "\\[package-menu-mark-upgrades]")
diff --git a/lisp/emacs-lisp/pcase.el b/lisp/emacs-lisp/pcase.el
index 5fe36bb92d4..ea4f38add76 100644
--- a/lisp/emacs-lisp/pcase.el
+++ b/lisp/emacs-lisp/pcase.el
@@ -164,7 +164,7 @@ Currently, the following patterns are provided this way:"
164 expansion)))) 164 expansion))))
165 165
166(declare-function help-fns--signature "help-fns" 166(declare-function help-fns--signature "help-fns"
167 (function doc real-def real-function raw)) 167 (function doc real-def real-function buffer))
168 168
169;; FIXME: Obviously, this will collide with nadvice's use of 169;; FIXME: Obviously, this will collide with nadvice's use of
170;; function-documentation if we happen to advise `pcase'. 170;; function-documentation if we happen to advise `pcase'.
@@ -184,7 +184,7 @@ Currently, the following patterns are provided this way:"
184 (insert "\n\n-- ") 184 (insert "\n\n-- ")
185 (let* ((doc (documentation me 'raw))) 185 (let* ((doc (documentation me 'raw)))
186 (setq doc (help-fns--signature symbol doc me 186 (setq doc (help-fns--signature symbol doc me
187 (indirect-function me) t)) 187 (indirect-function me) nil))
188 (insert "\n" (or doc "Not documented."))))))) 188 (insert "\n" (or doc "Not documented.")))))))
189 (let ((combined-doc (buffer-string))) 189 (let ((combined-doc (buffer-string)))
190 (if ud (help-add-fundoc-usage combined-doc (car ud)) combined-doc))))) 190 (if ud (help-add-fundoc-usage combined-doc (car ud)) combined-doc)))))
@@ -197,7 +197,7 @@ Currently, the following patterns are provided this way:"
197 (pcase--dontwarn-upats (cons x pcase--dontwarn-upats))) 197 (pcase--dontwarn-upats (cons x pcase--dontwarn-upats)))
198 (pcase--expand 198 (pcase--expand
199 ;; FIXME: Could we add the FILE:LINE data in the error message? 199 ;; FIXME: Could we add the FILE:LINE data in the error message?
200 exp (append cases `((,x (error "No clause matching %S" ,x))))))) 200 exp (append cases `((,x (error "No clause matching `%S'" ,x)))))))
201 201
202;;;###autoload 202;;;###autoload
203(defmacro pcase-lambda (lambda-list &rest body) 203(defmacro pcase-lambda (lambda-list &rest body)
@@ -775,7 +775,7 @@ Otherwise, it defers to REST which is a list of branches of the form
775 (let ((code (pcase--u1 matches code vars rest))) 775 (let ((code (pcase--u1 matches code vars rest)))
776 (if (eq upat '_) code 776 (if (eq upat '_) code
777 (macroexp--warn-and-return 777 (macroexp--warn-and-return
778 "Pattern t is deprecated. Use _ instead" 778 "Pattern t is deprecated. Use `_' instead"
779 code)))) 779 code))))
780 ((eq upat 'pcase--dontcare) :pcase--dontcare) 780 ((eq upat 'pcase--dontcare) :pcase--dontcare)
781 ((memq (car-safe upat) '(guard pred)) 781 ((memq (car-safe upat) '(guard pred))
@@ -860,7 +860,7 @@ Otherwise, it defers to REST which is a list of branches of the form
860 (pcase--u rest)) 860 (pcase--u rest))
861 vars 861 vars
862 (list `((and . ,matches) ,code . ,vars)))) 862 (list `((and . ,matches) ,code . ,vars))))
863 (t (error "Unknown pattern %S" upat))))) 863 (t (error "Unknown pattern `%S'" upat)))))
864 (t (error "Incorrect MATCH %S" (car matches))))) 864 (t (error "Incorrect MATCH %S" (car matches)))))
865 865
866(def-edebug-spec 866(def-edebug-spec
diff --git a/lisp/emacs-lisp/re-builder.el b/lisp/emacs-lisp/re-builder.el
index de1f6d15a75..a499b038b93 100644
--- a/lisp/emacs-lisp/re-builder.el
+++ b/lisp/emacs-lisp/re-builder.el
@@ -458,7 +458,7 @@ matching parts of the target buffer will be highlighted."
458 (setq reb-subexp-mode t) 458 (setq reb-subexp-mode t)
459 (reb-update-modestring) 459 (reb-update-modestring)
460 (use-local-map reb-subexp-mode-map) 460 (use-local-map reb-subexp-mode-map)
461 (message "0-9 to display subexpressions q to quit subexp mode")) 461 (message "`0'-`9' to display subexpressions `q' to quit subexp mode"))
462 462
463(defun reb-show-subexp (subexp &optional pause) 463(defun reb-show-subexp (subexp &optional pause)
464 "Visually show limit of subexpression SUBEXP of recent search. 464 "Visually show limit of subexpression SUBEXP of recent search.
diff --git a/lisp/emacs-lisp/regexp-opt.el b/lisp/emacs-lisp/regexp-opt.el
index b0fb23dbcc9..9888e920219 100644
--- a/lisp/emacs-lisp/regexp-opt.el
+++ b/lisp/emacs-lisp/regexp-opt.el
@@ -92,7 +92,7 @@ is enclosed by at least one regexp grouping construct.
92The returned regexp is typically more efficient than the equivalent regexp: 92The returned regexp is typically more efficient than the equivalent regexp:
93 93
94 (let ((open (if PAREN \"\\\\(\" \"\")) (close (if PAREN \"\\\\)\" \"\"))) 94 (let ((open (if PAREN \"\\\\(\" \"\")) (close (if PAREN \"\\\\)\" \"\")))
95 (concat open (mapconcat 'regexp-quote STRINGS \"\\\\|\") close)) 95 (concat open (mapconcat \\='regexp-quote STRINGS \"\\\\|\") close))
96 96
97If PAREN is `words', then the resulting regexp is additionally surrounded 97If PAREN is `words', then the resulting regexp is additionally surrounded
98by \\=\\< and \\>. 98by \\=\\< and \\>.
diff --git a/lisp/emacs-lisp/ring.el b/lisp/emacs-lisp/ring.el
index 8badac391c7..2447dfa8e38 100644
--- a/lisp/emacs-lisp/ring.el
+++ b/lisp/emacs-lisp/ring.el
@@ -175,14 +175,14 @@ Comparison is done via `equal'. The index is 0-based."
175 "Return the next item in the RING, after ITEM. 175 "Return the next item in the RING, after ITEM.
176Raise error if ITEM is not in the RING." 176Raise error if ITEM is not in the RING."
177 (let ((curr-index (ring-member ring item))) 177 (let ((curr-index (ring-member ring item)))
178 (unless curr-index (error "Item is not in the ring: %s" item)) 178 (unless curr-index (error "Item is not in the ring: `%s'" item))
179 (ring-ref ring (ring-plus1 curr-index (ring-length ring))))) 179 (ring-ref ring (ring-plus1 curr-index (ring-length ring)))))
180 180
181(defun ring-previous (ring item) 181(defun ring-previous (ring item)
182 "Return the previous item in the RING, before ITEM. 182 "Return the previous item in the RING, before ITEM.
183Raise error if ITEM is not in the RING." 183Raise error if ITEM is not in the RING."
184 (let ((curr-index (ring-member ring item))) 184 (let ((curr-index (ring-member ring item)))
185 (unless curr-index (error "Item is not in the ring: %s" item)) 185 (unless curr-index (error "Item is not in the ring: `%s'" item))
186 (ring-ref ring (ring-minus1 curr-index (ring-length ring))))) 186 (ring-ref ring (ring-minus1 curr-index (ring-length ring)))))
187 187
188(defun ring-extend (ring x) 188(defun ring-extend (ring x)
diff --git a/lisp/emacs-lisp/rx.el b/lisp/emacs-lisp/rx.el
index 7b0de6edb69..a21ac7a2835 100644
--- a/lisp/emacs-lisp/rx.el
+++ b/lisp/emacs-lisp/rx.el
@@ -324,7 +324,7 @@ a standalone symbol."
324(defun rx-check (form) 324(defun rx-check (form)
325 "Check FORM according to its car's parsing info." 325 "Check FORM according to its car's parsing info."
326 (unless (listp form) 326 (unless (listp form)
327 (error "rx %s needs argument(s)" form)) 327 (error "rx `%s' needs argument(s)" form))
328 (let* ((rx (rx-info (car form) 'head)) 328 (let* ((rx (rx-info (car form) 'head))
329 (nargs (1- (length form))) 329 (nargs (1- (length form)))
330 (min-args (nth 1 rx)) 330 (min-args (nth 1 rx))
@@ -332,16 +332,16 @@ a standalone symbol."
332 (type-pred (nth 3 rx))) 332 (type-pred (nth 3 rx)))
333 (when (and (not (null min-args)) 333 (when (and (not (null min-args))
334 (< nargs min-args)) 334 (< nargs min-args))
335 (error "rx form %s requires at least %d args" 335 (error "rx form `%s' requires at least %d args"
336 (car form) min-args)) 336 (car form) min-args))
337 (when (and (not (null max-args)) 337 (when (and (not (null max-args))
338 (> nargs max-args)) 338 (> nargs max-args))
339 (error "rx form %s accepts at most %d args" 339 (error "rx form `%s' accepts at most %d args"
340 (car form) max-args)) 340 (car form) max-args))
341 (when (not (null type-pred)) 341 (when (not (null type-pred))
342 (dolist (sub-form (cdr form)) 342 (dolist (sub-form (cdr form))
343 (unless (funcall type-pred sub-form) 343 (unless (funcall type-pred sub-form)
344 (error "rx form %s requires args satisfying %s" 344 (error "rx form `%s' requires args satisfying `%s'"
345 (car form) type-pred)))))) 345 (car form) type-pred))))))
346 346
347 347
@@ -395,7 +395,7 @@ FORM is of the form `(and FORM1 ...)'."
395(defun rx-anything (form) 395(defun rx-anything (form)
396 "Match any character." 396 "Match any character."
397 (if (consp form) 397 (if (consp form)
398 (error "rx anything syntax error: %s" form)) 398 (error "rx `anything' syntax error: %s" form))
399 (rx-or (list 'or 'not-newline ?\n))) 399 (rx-or (list 'or 'not-newline ?\n)))
400 400
401 401
@@ -452,7 +452,7 @@ Only both edges of each range is checked."
452 (let ((i 0) 452 (let ((i 0)
453 c1 c2 l) 453 c1 c2 l)
454 (if (= 0 (length str)) 454 (if (= 0 (length str))
455 (error "String arg for Rx any must not be empty")) 455 (error "String arg for Rx `any' must not be empty"))
456 (while (string-match ".-." str i) 456 (while (string-match ".-." str i)
457 ;; string before range: convert it to characters 457 ;; string before range: convert it to characters
458 (if (< i (match-beginning 0)) 458 (if (< i (match-beginning 0))
@@ -482,13 +482,13 @@ Only both edges of each range is checked."
482 (error nil)))) 482 (error nil))))
483 (if (or (null translation) 483 (if (or (null translation)
484 (null (string-match "\\`\\[\\[:[-a-z]+:\\]\\]\\'" translation))) 484 (null (string-match "\\`\\[\\[:[-a-z]+:\\]\\]\\'" translation)))
485 (error "Invalid char class %s in Rx any" arg)) 485 (error "Invalid char class `%s' in Rx `any'" arg))
486 (list (substring translation 1 -1)))) ; strip outer brackets 486 (list (substring translation 1 -1)))) ; strip outer brackets
487 ((and (integerp (car-safe arg)) (integerp (cdr-safe arg))) 487 ((and (integerp (car-safe arg)) (integerp (cdr-safe arg)))
488 (list arg)) 488 (list arg))
489 ((stringp arg) (rx-check-any-string arg)) 489 ((stringp arg) (rx-check-any-string arg))
490 ((error 490 ((error
491 "rx any requires string, character, char pair or char class args")))) 491 "rx `any' requires string, character, char pair or char class args"))))
492 492
493 493
494(defun rx-any (form) 494(defun rx-any (form)
@@ -581,7 +581,7 @@ ARG is optional."
581 (eq arg 'word-boundary) 581 (eq arg 'word-boundary)
582 (and (consp arg) 582 (and (consp arg)
583 (memq (car arg) '(not any in syntax category)))) 583 (memq (car arg) '(not any in syntax category))))
584 (error "rx not syntax error: %s" arg)) 584 (error "rx `not' syntax error: %s" arg))
585 t) 585 t)
586 586
587 587
@@ -640,7 +640,7 @@ If SKIP is non-nil, allow that number of items after the head, i.e.
640 (setq form (rx-trans-forms form 1)) 640 (setq form (rx-trans-forms form 1))
641 (unless (and (integerp (nth 1 form)) 641 (unless (and (integerp (nth 1 form))
642 (> (nth 1 form) 0)) 642 (> (nth 1 form) 0))
643 (error "rx = requires positive integer first arg")) 643 (error "rx `=' requires positive integer first arg"))
644 (format "%s\\{%d\\}" (rx-form (nth 2 form) '*) (nth 1 form))) 644 (format "%s\\{%d\\}" (rx-form (nth 2 form) '*) (nth 1 form)))
645 645
646 646
@@ -650,7 +650,7 @@ If SKIP is non-nil, allow that number of items after the head, i.e.
650 (setq form (rx-trans-forms form 1)) 650 (setq form (rx-trans-forms form 1))
651 (unless (and (integerp (nth 1 form)) 651 (unless (and (integerp (nth 1 form))
652 (> (nth 1 form) 0)) 652 (> (nth 1 form) 0))
653 (error "rx >= requires positive integer first arg")) 653 (error "rx `>=' requires positive integer first arg"))
654 (format "%s\\{%d,\\}" (rx-form (nth 2 form) '*) (nth 1 form))) 654 (format "%s\\{%d,\\}" (rx-form (nth 2 form) '*) (nth 1 form)))
655 655
656 656
@@ -671,14 +671,14 @@ FORM is either `(repeat N FORM1)' or `(repeat N M FORMS...)'."
671 (cond ((= (length form) 3) 671 (cond ((= (length form) 3)
672 (unless (and (integerp (nth 1 form)) 672 (unless (and (integerp (nth 1 form))
673 (> (nth 1 form) 0)) 673 (> (nth 1 form) 0))
674 (error "rx repeat requires positive integer first arg")) 674 (error "rx `repeat' requires positive integer first arg"))
675 (format "%s\\{%d\\}" (rx-form (nth 2 form) '*) (nth 1 form))) 675 (format "%s\\{%d\\}" (rx-form (nth 2 form) '*) (nth 1 form)))
676 ((or (not (integerp (nth 2 form))) 676 ((or (not (integerp (nth 2 form)))
677 (< (nth 2 form) 0) 677 (< (nth 2 form) 0)
678 (not (integerp (nth 1 form))) 678 (not (integerp (nth 1 form)))
679 (< (nth 1 form) 0) 679 (< (nth 1 form) 0)
680 (< (nth 2 form) (nth 1 form))) 680 (< (nth 2 form) (nth 1 form)))
681 (error "rx repeat range error")) 681 (error "rx `repeat' range error"))
682 (t 682 (t
683 (format "%s\\{%d,%d\\}" (rx-form (nth 3 form) '*) 683 (format "%s\\{%d,%d\\}" (rx-form (nth 3 form) '*)
684 (nth 1 form) (nth 2 form))))) 684 (nth 1 form) (nth 2 form)))))
@@ -713,7 +713,7 @@ FORM is either `(repeat N FORM1)' or `(repeat N M FORMS...)'."
713(defun rx-check-backref (arg) 713(defun rx-check-backref (arg)
714 "Check arg ARG for Rx `backref'." 714 "Check arg ARG for Rx `backref'."
715 (or (and (integerp arg) (>= arg 1) (<= arg 9)) 715 (or (and (integerp arg) (>= arg 1) (<= arg 9))
716 (error "rx backref requires numeric 1<=arg<=9: %s" arg))) 716 (error "rx `backref' requires numeric 1<=arg<=9: %s" arg)))
717 717
718(defun rx-kleene (form) 718(defun rx-kleene (form)
719 "Parse and produce code from FORM. 719 "Parse and produce code from FORM.
@@ -786,7 +786,7 @@ of all atomic regexps."
786 (if (= 1 (length name)) 786 (if (= 1 (length name))
787 (setq syntax (aref name 0)))))) 787 (setq syntax (aref name 0))))))
788 (unless syntax 788 (unless syntax
789 (error "Unknown rx syntax %s" sym))) 789 (error "Unknown rx syntax `%s'" sym)))
790 (format "\\s%c" syntax))) 790 (format "\\s%c" syntax)))
791 791
792 792
@@ -794,7 +794,7 @@ of all atomic regexps."
794 "Check the argument FORM of a `(category FORM)'." 794 "Check the argument FORM of a `(category FORM)'."
795 (unless (or (integerp form) 795 (unless (or (integerp form)
796 (cdr (assq form rx-categories))) 796 (cdr (assq form rx-categories)))
797 (error "Unknown category %s" form)) 797 (error "Unknown category `%s'" form))
798 t) 798 t)
799 799
800 800
@@ -846,16 +846,16 @@ shy groups around the result and some more in other functions."
846 (cond ((stringp info) 846 (cond ((stringp info)
847 info) 847 info)
848 ((null info) 848 ((null info)
849 (error "Unknown rx form %s" form)) 849 (error "Unknown rx form `%s'" form))
850 (t 850 (t
851 (funcall (nth 0 info) form))))) 851 (funcall (nth 0 info) form)))))
852 ((consp form) 852 ((consp form)
853 (let ((info (rx-info (car form) 'head))) 853 (let ((info (rx-info (car form) 'head)))
854 (unless (consp info) 854 (unless (consp info)
855 (error "Unknown rx form %s" (car form))) 855 (error "Unknown rx form `%s'" (car form)))
856 (funcall (nth 0 info) form))) 856 (funcall (nth 0 info) form)))
857 (t 857 (t
858 (error "rx syntax error at %s" form)))) 858 (error "rx syntax error at `%s'" form))))
859 859
860 860
861;;;###autoload 861;;;###autoload
diff --git a/lisp/emacs-lisp/seq.el b/lisp/emacs-lisp/seq.el
index a17b0a8f1b9..8dc91471312 100644
--- a/lisp/emacs-lisp/seq.el
+++ b/lisp/emacs-lisp/seq.el
@@ -252,14 +252,6 @@ If SEQ is empty, return INITIAL-VALUE and FUNCTION is not called."
252 (setq acc (funcall function acc elt))) 252 (setq acc (funcall function acc elt)))
253 acc))) 253 acc)))
254 254
255(cl-defgeneric seq-some-p (pred seq)
256 "Return any element for which (PRED element) is non-nil in SEQ, nil otherwise."
257 (catch 'seq--break
258 (seq-doseq (elt seq)
259 (when (funcall pred elt)
260 (throw 'seq--break elt)))
261 nil))
262
263(cl-defgeneric seq-every-p (pred seq) 255(cl-defgeneric seq-every-p (pred seq)
264 "Return non-nil if (PRED element) is non-nil for all elements of the sequence SEQ." 256 "Return non-nil if (PRED element) is non-nil for all elements of the sequence SEQ."
265 (catch 'seq--break 257 (catch 'seq--break
@@ -268,6 +260,16 @@ If SEQ is empty, return INITIAL-VALUE and FUNCTION is not called."
268 (throw 'seq--break nil))) 260 (throw 'seq--break nil)))
269 t)) 261 t))
270 262
263(cl-defgeneric seq-some (pred seq)
264 "Return non-nil if (PRED element) is non-nil for any element in SEQ, nil otherwise.
265If so, return the non-nil value returned by PRED."
266 (catch 'seq--break
267 (seq-doseq (elt seq)
268 (let ((result (funcall pred elt)))
269 (when result
270 (throw 'seq--break result))))
271 nil))
272
271(cl-defgeneric seq-count (pred seq) 273(cl-defgeneric seq-count (pred seq)
272 "Return the number of elements for which (PRED element) is non-nil in SEQ." 274 "Return the number of elements for which (PRED element) is non-nil in SEQ."
273 (let ((count 0)) 275 (let ((count 0))
@@ -276,19 +278,19 @@ If SEQ is empty, return INITIAL-VALUE and FUNCTION is not called."
276 (setq count (+ 1 count)))) 278 (setq count (+ 1 count))))
277 count)) 279 count))
278 280
279(cl-defgeneric seq-contains-p (seq elt &optional testfn) 281(cl-defgeneric seq-contains (seq elt &optional testfn)
280 "Return the first element in SEQ that equals to ELT. 282 "Return the first element in SEQ that equals to ELT.
281Equality is defined by TESTFN if non-nil or by `equal' if nil." 283Equality is defined by TESTFN if non-nil or by `equal' if nil."
282 (seq-some-p (lambda (e) 284 (seq-some (lambda (e)
283 (funcall (or testfn #'equal) elt e)) 285 (funcall (or testfn #'equal) elt e))
284 seq)) 286 seq))
285 287
286(cl-defgeneric seq-uniq (seq &optional testfn) 288(cl-defgeneric seq-uniq (seq &optional testfn)
287 "Return a list of the elements of SEQ with duplicates removed. 289 "Return a list of the elements of SEQ with duplicates removed.
288TESTFN is used to compare elements, or `equal' if TESTFN is nil." 290TESTFN is used to compare elements, or `equal' if TESTFN is nil."
289 (let ((result '())) 291 (let ((result '()))
290 (seq-doseq (elt seq) 292 (seq-doseq (elt seq)
291 (unless (seq-contains-p result elt testfn) 293 (unless (seq-contains result elt testfn)
292 (setq result (cons elt result)))) 294 (setq result (cons elt result))))
293 (nreverse result))) 295 (nreverse result)))
294 296
@@ -313,7 +315,7 @@ negative integer or 0, nil is returned."
313 "Return a list of the elements that appear in both SEQ1 and SEQ2. 315 "Return a list of the elements that appear in both SEQ1 and SEQ2.
314Equality is defined by TESTFN if non-nil or by `equal' if nil." 316Equality is defined by TESTFN if non-nil or by `equal' if nil."
315 (seq-reduce (lambda (acc elt) 317 (seq-reduce (lambda (acc elt)
316 (if (seq-contains-p seq2 elt testfn) 318 (if (seq-contains seq2 elt testfn)
317 (cons elt acc) 319 (cons elt acc)
318 acc)) 320 acc))
319 (seq-reverse seq1) 321 (seq-reverse seq1)
@@ -323,7 +325,7 @@ Equality is defined by TESTFN if non-nil or by `equal' if nil."
323 "Return a list of the elements that appear in SEQ1 but not in SEQ2. 325 "Return a list of the elements that appear in SEQ1 but not in SEQ2.
324Equality is defined by TESTFN if non-nil or by `equal' if nil." 326Equality is defined by TESTFN if non-nil or by `equal' if nil."
325 (seq-reduce (lambda (acc elt) 327 (seq-reduce (lambda (acc elt)
326 (if (not (seq-contains-p seq2 elt testfn)) 328 (if (not (seq-contains seq2 elt testfn))
327 (cons elt acc) 329 (cons elt acc)
328 acc)) 330 acc))
329 (seq-reverse seq1) 331 (seq-reverse seq1)
diff --git a/lisp/emacs-lisp/smie.el b/lisp/emacs-lisp/smie.el
index 9678cfa39b6..0c24f796d19 100644
--- a/lisp/emacs-lisp/smie.el
+++ b/lisp/emacs-lisp/smie.el
@@ -2213,13 +2213,13 @@ One way to generate local rules is the command `smie-config-guess'."
2213 (let* ((existing (assq major-mode smie-config)) 2213 (let* ((existing (assq major-mode smie-config))
2214 (config 2214 (config
2215 (cond ((null existing) 2215 (cond ((null existing)
2216 (message "Local rules saved in smie-config") 2216 (message "Local rules saved in `smie-config'")
2217 smie-config--buffer-local) 2217 smie-config--buffer-local)
2218 ((y-or-n-p "Replace the existing mode's config? ") 2218 ((y-or-n-p "Replace the existing mode's config? ")
2219 (message "Mode rules replaced in smie-config") 2219 (message "Mode rules replaced in `smie-config'")
2220 smie-config--buffer-local) 2220 smie-config--buffer-local)
2221 ((y-or-n-p "Merge with existing mode's config? ") 2221 ((y-or-n-p "Merge with existing mode's config? ")
2222 (message "Mode rules adjusted in smie-config") 2222 (message "Mode rules adjusted in `smie-config'")
2223 (append smie-config--buffer-local (cdr existing))) 2223 (append smie-config--buffer-local (cdr existing)))
2224 (t (error "Abort"))))) 2224 (t (error "Abort")))))
2225 (if existing 2225 (if existing
diff --git a/lisp/emacs-lisp/subr-x.el b/lisp/emacs-lisp/subr-x.el
index 9637e42c879..e6d451ac62e 100644
--- a/lisp/emacs-lisp/subr-x.el
+++ b/lisp/emacs-lisp/subr-x.el
@@ -90,7 +90,7 @@ threading."
90 (when (> (length binding) 2) 90 (when (> (length binding) 2)
91 (signal 91 (signal
92 'error 92 'error
93 (cons "let bindings can have only one value-form" binding))) 93 (cons "`let' bindings can have only one value-form" binding)))
94 binding) 94 binding)
95 95
96(defsubst internal--build-binding-value-form (binding prev-var) 96(defsubst internal--build-binding-value-form (binding prev-var)
diff --git a/lisp/emacs-lisp/tabulated-list.el b/lisp/emacs-lisp/tabulated-list.el
index 404dbd1dc17..cd61eb9ae56 100644
--- a/lisp/emacs-lisp/tabulated-list.el
+++ b/lisp/emacs-lisp/tabulated-list.el
@@ -129,7 +129,7 @@ no entry at POS. POS, if omitted or nil, defaults to point."
129TAG should be a string, with length <= `tabulated-list-padding'. 129TAG should be a string, with length <= `tabulated-list-padding'.
130If ADVANCE is non-nil, move forward by one line afterwards." 130If ADVANCE is non-nil, move forward by one line afterwards."
131 (unless (stringp tag) 131 (unless (stringp tag)
132 (error "Invalid argument to tabulated-list-put-tag")) 132 (error "Invalid argument to `tabulated-list-put-tag'"))
133 (unless (> tabulated-list-padding 0) 133 (unless (> tabulated-list-padding 0)
134 (error "Unable to tag the current line")) 134 (error "Unable to tag the current line"))
135 (save-excursion 135 (save-excursion
diff --git a/lisp/emacs-lisp/testcover.el b/lisp/emacs-lisp/testcover.el
index 3e6039ee9fd..110c63f777a 100644
--- a/lisp/emacs-lisp/testcover.el
+++ b/lisp/emacs-lisp/testcover.el
@@ -475,7 +475,7 @@ same value during coverage testing."
475 (aset testcover-vector idx (cons '1value val))) 475 (aset testcover-vector idx (cons '1value val)))
476 ((not (and (eq (car-safe (aref testcover-vector idx)) '1value) 476 ((not (and (eq (car-safe (aref testcover-vector idx)) '1value)
477 (equal (cdr (aref testcover-vector idx)) val))) 477 (equal (cdr (aref testcover-vector idx)) val)))
478 (error "Value of form marked with 1value does vary: %s" val))) 478 (error "Value of form marked with `1value' does vary: %s" val)))
479 val) 479 val)
480 480
481 481
diff --git a/lisp/emacs-lisp/timer.el b/lisp/emacs-lisp/timer.el
index 0a0296fc9fb..dca459f2bf6 100644
--- a/lisp/emacs-lisp/timer.el
+++ b/lisp/emacs-lisp/timer.el
@@ -324,7 +324,7 @@ This function is called, by name, directly by the C code."
324 (apply (timer--function timer) (timer--args timer))) 324 (apply (timer--function timer) (timer--args timer)))
325 (error (message "Error running timer%s: %S" 325 (error (message "Error running timer%s: %S"
326 (if (symbolp (timer--function timer)) 326 (if (symbolp (timer--function timer))
327 (format-message " %s" (timer--function timer)) 327 (format-message " `%s'" (timer--function timer))
328 "") 328 "")
329 err))) 329 err)))
330 (when (and retrigger 330 (when (and retrigger
diff --git a/lisp/emulation/viper-cmd.el b/lisp/emulation/viper-cmd.el
index 8b3f6b46507..93fcec865a7 100644
--- a/lisp/emulation/viper-cmd.el
+++ b/lisp/emulation/viper-cmd.el
@@ -3449,7 +3449,7 @@ controlled by the sign of prefix numeric value."
3449 (setq viper-parse-sexp-ignore-comments 3449 (setq viper-parse-sexp-ignore-comments
3450 (not viper-parse-sexp-ignore-comments)) 3450 (not viper-parse-sexp-ignore-comments))
3451 (princ (format-message 3451 (princ (format-message
3452 "From now on, %% will %signore parentheses inside comment fields" 3452 "From now on, `%%' will %signore parentheses inside comment fields"
3453 (if viper-parse-sexp-ignore-comments "" "NOT ")))) 3453 (if viper-parse-sexp-ignore-comments "" "NOT "))))
3454 3454
3455 3455
@@ -3641,7 +3641,7 @@ the Emacs binding of `/'."
3641 (cond ((or (eq arg 1) 3641 (cond ((or (eq arg 1)
3642 (and (null arg) 3642 (and (null arg)
3643 (y-or-n-p (format-message 3643 (y-or-n-p (format-message
3644 "Search style: %s. Want %s? " 3644 "Search style: `%s'. Want `%s'? "
3645 (if viper-case-fold-search 3645 (if viper-case-fold-search
3646 "case-insensitive" "case-sensitive") 3646 "case-insensitive" "case-sensitive")
3647 (if viper-case-fold-search 3647 (if viper-case-fold-search
@@ -3654,7 +3654,7 @@ the Emacs binding of `/'."
3654 ((or (eq arg 2) 3654 ((or (eq arg 2)
3655 (and (null arg) 3655 (and (null arg)
3656 (y-or-n-p (format-message 3656 (y-or-n-p (format-message
3657 "Search style: %s. Want %s? " 3657 "Search style: `%s'. Want `%s'? "
3658 (if viper-re-search 3658 (if viper-re-search
3659 "regexp-search" "vanilla-search") 3659 "regexp-search" "vanilla-search")
3660 (if viper-re-search 3660 (if viper-re-search
@@ -3990,7 +3990,7 @@ Null string will repeat previous search."
3990 (if (or (not (buffer-modified-p buffer)) 3990 (if (or (not (buffer-modified-p buffer))
3991 (y-or-n-p 3991 (y-or-n-p
3992 (format-message 3992 (format-message
3993 "Buffer %s is modified, are you sure you want to kill it? " 3993 "Buffer `%s' is modified, are you sure you want to kill it? "
3994 buffer-name))) 3994 buffer-name)))
3995 (kill-buffer buffer) 3995 (kill-buffer buffer)
3996 (error "Buffer not killed")))) 3996 (error "Buffer not killed"))))
@@ -4640,7 +4640,7 @@ One can use \\=`\\=` and \\='\\=' to temporarily jump 1 step back."
4640 reg (substring text (- pos s))))) 4640 reg (substring text (- pos s)))))
4641 (princ 4641 (princ
4642 (format-message 4642 (format-message
4643 "Textmarker %c is in buffer %s at line %d.\n" 4643 "Textmarker `%c' is in buffer `%s' at line %d.\n"
4644 reg (buffer-name buf) line-no)) 4644 reg (buffer-name buf) line-no))
4645 (princ (format "Here is some text around %c:\n\n %s" 4645 (princ (format "Here is some text around %c:\n\n %s"
4646 reg text))) 4646 reg text)))
diff --git a/lisp/emulation/viper-init.el b/lisp/emulation/viper-init.el
index e28c67a5315..092de55e70e 100644
--- a/lisp/emulation/viper-init.el
+++ b/lisp/emulation/viper-init.el
@@ -583,7 +583,7 @@ the Insert state."
583 583
584(defcustom viper-keep-point-on-repeat t 584(defcustom viper-keep-point-on-repeat t
585 "If t, don't move point when repeating previous command. 585 "If t, don't move point when repeating previous command.
586This is useful for doing repeated changes with the . key. 586This is useful for doing repeated changes with the `.' key.
587The user can change this to nil, if she likes when the cursor moves 587The user can change this to nil, if she likes when the cursor moves
588to a new place after repeating previous Vi command." 588to a new place after repeating previous Vi command."
589 :type 'boolean 589 :type 'boolean
diff --git a/lisp/emulation/viper-keym.el b/lisp/emulation/viper-keym.el
index 250c292d72e..272556d3bae 100644
--- a/lisp/emulation/viper-keym.el
+++ b/lisp/emulation/viper-keym.el
@@ -502,7 +502,7 @@ ALIST is of the form ((key . func) (key . func) ...)
502Normally, this would be called from a hook to a major mode or 502Normally, this would be called from a hook to a major mode or
503on a per buffer basis. 503on a per buffer basis.
504Usage: 504Usage:
505 (viper-add-local-keys state '((key-str . func) (key-str . func)...)) " 505 (viper-add-local-keys state \\='((key-str . func) (key-str . func)...)) "
506 506
507 (let (map) 507 (let (map)
508 (cond ((eq state 'vi-state) 508 (cond ((eq state 'vi-state)
diff --git a/lisp/emulation/viper-macs.el b/lisp/emulation/viper-macs.el
index 4b33b423740..4fa07792334 100644
--- a/lisp/emulation/viper-macs.el
+++ b/lisp/emulation/viper-macs.el
@@ -370,11 +370,11 @@ If SCOPE is nil, the user is asked to specify the scope."
370 (cond 370 (cond
371 ((y-or-n-p 371 ((y-or-n-p
372 (format-message 372 (format-message
373 "Map this macro for buffer %s only? " 373 "Map this macro for buffer `%s' only? "
374 (buffer-name))) 374 (buffer-name)))
375 (setq msg 375 (setq msg
376 (format-message 376 (format-message
377 "%S is mapped to %s for %s in %s" 377 "%S is mapped to %s for %s in `%s'"
378 (viper-display-macro macro-name) 378 (viper-display-macro macro-name)
379 (viper-abbreviate-string 379 (viper-abbreviate-string
380 (format 380 (format
@@ -386,11 +386,11 @@ If SCOPE is nil, the user is asked to specify the scope."
386 (buffer-name)) 386 (buffer-name))
387 ((y-or-n-p 387 ((y-or-n-p
388 (format-message 388 (format-message
389 "Map this macro for the major mode %S only? " 389 "Map this macro for the major mode `%S' only? "
390 major-mode)) 390 major-mode))
391 (setq msg 391 (setq msg
392 (format-message 392 (format-message
393 "%S is mapped to %s for %s in %S" 393 "%S is mapped to %s for %s in `%S'"
394 (viper-display-macro macro-name) 394 (viper-display-macro macro-name)
395 (viper-abbreviate-string 395 (viper-abbreviate-string
396 (format 396 (format
diff --git a/lisp/env.el b/lisp/env.el
index f50ed12398e..3966ab14f7e 100644
--- a/lisp/env.el
+++ b/lisp/env.el
@@ -175,7 +175,7 @@ a side-effect."
175 (let ((codings (find-coding-systems-string (concat variable value)))) 175 (let ((codings (find-coding-systems-string (concat variable value))))
176 (unless (or (eq 'undecided (car codings)) 176 (unless (or (eq 'undecided (car codings))
177 (memq (coding-system-base locale-coding-system) codings)) 177 (memq (coding-system-base locale-coding-system) codings))
178 (error "Can't encode %s=%s with locale-coding-system" 178 (error "Can't encode `%s=%s' with `locale-coding-system'"
179 variable (or value ""))))) 179 variable (or value "")))))
180 (and value 180 (and value
181 substitute-env-vars 181 substitute-env-vars
@@ -185,7 +185,7 @@ a side-effect."
185 (if (and value (multibyte-string-p value)) 185 (if (and value (multibyte-string-p value))
186 (setq value (encode-coding-string value locale-coding-system))) 186 (setq value (encode-coding-string value locale-coding-system)))
187 (if (string-match "=" variable) 187 (if (string-match "=" variable)
188 (error "Environment variable name %s contains =" variable)) 188 (error "Environment variable name `%s' contains `='" variable))
189 (if (string-equal "TZ" variable) 189 (if (string-equal "TZ" variable)
190 (set-time-zone-rule value)) 190 (set-time-zone-rule value))
191 (setq process-environment (setenv-internal process-environment 191 (setq process-environment (setenv-internal process-environment
diff --git a/lisp/erc/erc-backend.el b/lisp/erc/erc-backend.el
index eec69256db6..958c5ef8b62 100644
--- a/lisp/erc/erc-backend.el
+++ b/lisp/erc/erc-backend.el
@@ -1100,12 +1100,12 @@ Would expand to:
1100 add things to `erc-server-311-functions' instead.\" 1100 add things to `erc-server-311-functions' instead.\"
1101 (do-stuff-with-whois proc parsed)) 1101 (do-stuff-with-whois proc parsed))
1102 1102
1103 (puthash \"311\" 'erc-server-311-functions erc-server-responses) 1103 (puthash \"311\" \\='erc-server-311-functions erc-server-responses)
1104 (puthash \"WHOIS\" 'erc-server-WHOIS-functions erc-server-responses) 1104 (puthash \"WHOIS\" \\='erc-server-WHOIS-functions erc-server-responses)
1105 (puthash \"WI\" 'erc-server-WI-functions erc-server-responses) 1105 (puthash \"WI\" \\='erc-server-WI-functions erc-server-responses)
1106 1106
1107 (defalias 'erc-server-WHOIS 'erc-server-311) 1107 (defalias \\='erc-server-WHOIS \\='erc-server-311)
1108 (defvar erc-server-WHOIS-functions 'erc-server-311 1108 (defvar erc-server-WHOIS-functions \\='erc-server-311
1109 \"Some non-generic variable documentation. 1109 \"Some non-generic variable documentation.
1110 1110
1111 Hook called upon receiving a WHOIS server response. 1111 Hook called upon receiving a WHOIS server response.
@@ -1116,8 +1116,8 @@ Would expand to:
1116 1116
1117 See also `erc-server-311'.\") 1117 See also `erc-server-311'.\")
1118 1118
1119 (defalias 'erc-server-WI 'erc-server-311) 1119 (defalias \\='erc-server-WI \\='erc-server-311)
1120 (defvar erc-server-WI-functions 'erc-server-311 1120 (defvar erc-server-WI-functions \\='erc-server-311
1121 \"Some non-generic variable documentation. 1121 \"Some non-generic variable documentation.
1122 1122
1123 Hook called upon receiving a WI server response. 1123 Hook called upon receiving a WI server response.
diff --git a/lisp/erc/erc-button.el b/lisp/erc/erc-button.el
index 6139e939924..0e4c70944bb 100644
--- a/lisp/erc/erc-button.el
+++ b/lisp/erc/erc-button.el
@@ -512,7 +512,7 @@ Examples:
512(defun erc-nick-popup (nick) 512(defun erc-nick-popup (nick)
513 (let* ((completion-ignore-case t) 513 (let* ((completion-ignore-case t)
514 (action (completing-read (format-message 514 (action (completing-read (format-message
515 "What action to take on %s? " nick) 515 "What action to take on `%s'? " nick)
516 erc-nick-popup-alist)) 516 erc-nick-popup-alist))
517 (code (cdr (assoc action erc-nick-popup-alist)))) 517 (code (cdr (assoc action erc-nick-popup-alist))))
518 (when code 518 (when code
diff --git a/lisp/erc/erc-dcc.el b/lisp/erc/erc-dcc.el
index bb6e3115b49..0a9932ddc95 100644
--- a/lisp/erc/erc-dcc.el
+++ b/lisp/erc/erc-dcc.el
@@ -166,7 +166,7 @@ All values of the list must be uppercase strings.")
166 "Return the first matching entry in `erc-dcc-list' which satisfies the 166 "Return the first matching entry in `erc-dcc-list' which satisfies the
167constraints given as a plist in ARGS. Returns nil on no match. 167constraints given as a plist in ARGS. Returns nil on no match.
168 168
169The property :nick is treated specially, if it contains a ! character, 169The property :nick is treated specially, if it contains a `!' character,
170it is treated as a nick!user@host string, and compared with the :nick property 170it is treated as a nick!user@host string, and compared with the :nick property
171value of the individual elements using string-equal. Otherwise it is 171value of the individual elements using string-equal. Otherwise it is
172compared with `erc-nick-equal-p' which is IRC case-insensitive." 172compared with `erc-nick-equal-p' which is IRC case-insensitive."
diff --git a/lisp/erc/erc.el b/lisp/erc/erc.el
index 726e9ed9a21..62be63e9aa4 100644
--- a/lisp/erc/erc.el
+++ b/lisp/erc/erc.el
@@ -230,7 +230,7 @@ prompt you for it.")
230(defcustom erc-hide-prompt nil 230(defcustom erc-hide-prompt nil
231 "If non-nil, do not display the prompt for commands. 231 "If non-nil, do not display the prompt for commands.
232 232
233\(A command is any input starting with a /). 233\(A command is any input starting with a `/').
234 234
235See also the variables `erc-prompt' and `erc-command-indicator'." 235See also the variables `erc-prompt' and `erc-command-indicator'."
236 :group 'erc-display 236 :group 'erc-display
@@ -667,7 +667,7 @@ See also the variable `erc-prompt'."
667 "Indicator used by ERC for showing commands. 667 "Indicator used by ERC for showing commands.
668 668
669If non-nil, this will be used in the ERC buffer to indicate 669If non-nil, this will be used in the ERC buffer to indicate
670commands (i.e., input starting with a /). 670commands (i.e., input starting with a `/').
671 671
672If nil, the prompt will be constructed from the variable `erc-prompt'." 672If nil, the prompt will be constructed from the variable `erc-prompt'."
673 :group 'erc-display 673 :group 'erc-display
@@ -2789,7 +2789,7 @@ this function from interpreting the line as a command."
2789(defun erc-cmd-SAY (line) 2789(defun erc-cmd-SAY (line)
2790 "Send LINE to the current query or channel as a message, not a command. 2790 "Send LINE to the current query or channel as a message, not a command.
2791 2791
2792Use this when you want to send a message with a leading /. Note 2792Use this when you want to send a message with a leading `/'. Note
2793that since multi-line messages are never a command, you don't 2793that since multi-line messages are never a command, you don't
2794need this when pasting multiple lines of text." 2794need this when pasting multiple lines of text."
2795 (if (string-match "^\\s-*$" line) 2795 (if (string-match "^\\s-*$" line)
@@ -3119,9 +3119,9 @@ a script after exceeding the flood threshold."
3119 (erc-display-message nil 'error (current-buffer) 3119 (erc-display-message nil 'error (current-buffer)
3120 'cannot-read-file ?f file)) 3120 'cannot-read-file ?f file))
3121 (t 3121 (t
3122 (message "Loading %s..." file) 3122 (message "Loading `%s'..." file)
3123 (erc-load-script file) 3123 (erc-load-script file)
3124 (message "Loading %s...done" file)))) 3124 (message "Loading `%s'...done" file))))
3125 t) 3125 t)
3126 (t nil))) 3126 (t nil)))
3127 3127
@@ -3259,7 +3259,7 @@ The lines are shown in a buffer named `*Occur*'.
3259It serves as a menu to find any of the occurrences in this buffer. 3259It serves as a menu to find any of the occurrences in this buffer.
3260\\[describe-mode] in that buffer will explain how. 3260\\[describe-mode] in that buffer will explain how.
3261 3261
3262If LINE contains upper case characters (excluding those preceded by \\), 3262If LINE contains upper case characters (excluding those preceded by `\\'),
3263the matching is case-sensitive." 3263the matching is case-sensitive."
3264 (occur line) 3264 (occur line)
3265 t) 3265 t)
@@ -4466,7 +4466,7 @@ See also: `erc-echo-notice-in-user-buffers',
4466 "Handle the logging in process of connection." 4466 "Handle the logging in process of connection."
4467 (unless erc-logged-in 4467 (unless erc-logged-in
4468 (setq erc-logged-in t) 4468 (setq erc-logged-in t)
4469 (message "Logging in as %s... done" (erc-current-nick)) 4469 (message "Logging in as `%s'... done" (erc-current-nick))
4470 ;; execute a startup script 4470 ;; execute a startup script
4471 (let ((f (erc-select-startup-file))) 4471 (let ((f (erc-select-startup-file)))
4472 (when f 4472 (when f
@@ -5203,7 +5203,7 @@ So far the following TYPE/L pairs are supported:
5203 5203
5204 Event TYPE L 5204 Event TYPE L
5205 5205
5206 nickname change 'nick (NEW-NICK)" 5206 nickname change `nick' (NEW-NICK)"
5207 (erc-log (format "user-change: type: %S nlh: %S l: %S" type nlh l)) 5207 (erc-log (format "user-change: type: %S nlh: %S l: %S" type nlh l))
5208 (cond 5208 (cond
5209 ;; nickname change 5209 ;; nickname change
@@ -6512,7 +6512,7 @@ All windows are opened in the current frame."
6512 . "\n\nConnection failed! Not re-establishing connection.\n") 6512 . "\n\nConnection failed! Not re-establishing connection.\n")
6513 (finished . "\n\n*** ERC finished ***\n") 6513 (finished . "\n\n*** ERC finished ***\n")
6514 (terminated . "\n\n*** ERC terminated: %e\n") 6514 (terminated . "\n\n*** ERC terminated: %e\n")
6515 (login . "Logging in as %n...") 6515 (login . "Logging in as `%n'...")
6516 (nick-in-use . "%n is in use. Choose new nickname: ") 6516 (nick-in-use . "%n is in use. Choose new nickname: ")
6517 (nick-too-long 6517 (nick-too-long
6518 . "WARNING: Nick length (%i) exceeds max NICKLEN(%l) defined by server") 6518 . "WARNING: Nick length (%i) exceeds max NICKLEN(%l) defined by server")
diff --git a/lisp/eshell/em-dirs.el b/lisp/eshell/em-dirs.el
index 1bd7fbcb90f..3960cd7b229 100644
--- a/lisp/eshell/em-dirs.el
+++ b/lisp/eshell/em-dirs.el
@@ -301,7 +301,7 @@ Thus, this does not include the current directory.")
301 eshell-user-names))))))) 301 eshell-user-names)))))))
302 302
303(defun eshell/pwd (&rest args) 303(defun eshell/pwd (&rest args)
304 "Change output from pwd to be cleaner." 304 "Change output from `pwd' to be cleaner."
305 (let* ((path default-directory) 305 (let* ((path default-directory)
306 (len (length path))) 306 (len (length path)))
307 (if (and (> len 1) 307 (if (and (> len 1)
@@ -365,7 +365,7 @@ in the minibuffer:
365 (let ((curdir (eshell/pwd))) 365 (let ((curdir (eshell/pwd)))
366 (if (string-match path curdir) 366 (if (string-match path curdir)
367 (setq path (replace-match subpath nil nil curdir)) 367 (setq path (replace-match subpath nil nil curdir))
368 (error "Path substring %s not found" path)))) 368 (error "Path substring `%s' not found" path))))
369 ((and path (string-match "^-\\([0-9]*\\)$" path)) 369 ((and path (string-match "^-\\([0-9]*\\)$" path))
370 (let ((index (match-string 1 path))) 370 (let ((index (match-string 1 path)))
371 (setq path 371 (setq path
diff --git a/lisp/eshell/em-glob.el b/lisp/eshell/em-glob.el
index 976882c14e2..f2e67cc8c32 100644
--- a/lisp/eshell/em-glob.el
+++ b/lisp/eshell/em-glob.el
@@ -193,7 +193,7 @@ The basic syntax is:
193 * .* matches any group of characters (or none) 193 * .* matches any group of characters (or none)
194 # * matches zero or more occurrences of preceding 194 # * matches zero or more occurrences of preceding
195 ## + matches one or more occurrences of preceding 195 ## + matches one or more occurrences of preceding
196 (x) \(x\) makes x a regular expression group 196 (x) \(x\) makes `x' a regular expression group
197 | \| boolean OR within an expression group 197 | \| boolean OR within an expression group
198 [a-b] [a-b] matches a character or range 198 [a-b] [a-b] matches a character or range
199 [^a] [^a] excludes a character or range 199 [^a] [^a] excludes a character or range
@@ -220,7 +220,7 @@ resulting regular expression."
220 matched-in-pattern (1+ op-begin)) 220 matched-in-pattern (1+ op-begin))
221 (let ((xlat (assq op-char eshell-glob-translate-alist))) 221 (let ((xlat (assq op-char eshell-glob-translate-alist)))
222 (if (not xlat) 222 (if (not xlat)
223 (error "Unrecognized globbing character %c" op-char) 223 (error "Unrecognized globbing character `%c'" op-char)
224 (if (stringp (cdr xlat)) 224 (if (stringp (cdr xlat))
225 (setq regexp (concat regexp (cdr xlat)) 225 (setq regexp (concat regexp (cdr xlat))
226 matched-in-pattern (1+ op-begin)) 226 matched-in-pattern (1+ op-begin))
@@ -289,7 +289,7 @@ the form:
289 glob (car globs) 289 glob (car globs)
290 len (length glob))))) 290 len (length glob)))))
291 (if (and recurse-p (not glob)) 291 (if (and recurse-p (not glob))
292 (error "** cannot end a globbing pattern")) 292 (error "`**' cannot end a globbing pattern"))
293 (let ((index 1)) 293 (let ((index 1))
294 (setq incl glob) 294 (setq incl glob)
295 (while (and (eq incl glob) 295 (while (and (eq incl glob)
diff --git a/lisp/eshell/em-pred.el b/lisp/eshell/em-pred.el
index 539080f35c4..102795fc16b 100644
--- a/lisp/eshell/em-pred.el
+++ b/lisp/eshell/em-pred.el
@@ -172,18 +172,18 @@ PERMISSION BITS (for owner/group/world):
172 172
173OWNERSHIP: 173OWNERSHIP:
174 U owned by effective uid 174 U owned by effective uid
175 u(UID|'user') owned by UID/user 175 u(UID|\\='user\\=') owned by UID/user
176 g(GID|'group') owned by GID/group 176 g(GID|\\='group\\=') owned by GID/group
177 177
178FILE ATTRIBUTES: 178FILE ATTRIBUTES:
179 l[+-]N +/-/= N links 179 l[+-]N +/-/= N links
180 a[Mwhms][+-](N|'FILE') access time +/-/= N months/weeks/hours/mins/secs 180 a[Mwhms][+-](N|\\='FILE\\=') access time +/-/= N months/weeks/hours/mins/secs
181 (days if unspecified) if FILE specified, 181 (days if unspecified) if FILE specified,
182 use as comparison basis; so a+'file.c' 182 use as comparison basis; so a+\\='file.c\\='
183 shows files accessed before file.c was 183 shows files accessed before file.c was
184 last accessed 184 last accessed
185 m[Mwhms][+-](N|'FILE') modification time... 185 m[Mwhms][+-](N|\\='FILE\\=') modification time...
186 c[Mwhms][+-](N|'FILE') change time... 186 c[Mwhms][+-](N|\\='FILE\\=') change time...
187 L[kmp][+-]N file size +/-/= N Kb/Mb/blocks 187 L[kmp][+-]N file size +/-/= N Kb/Mb/blocks
188 188
189EXAMPLES: 189EXAMPLES:
@@ -193,7 +193,7 @@ EXAMPLES:
193 ***/*~f*(-/) recursively (though not traversing symlinks), 193 ***/*~f*(-/) recursively (though not traversing symlinks),
194 find all directories (or symlinks referring to 194 find all directories (or symlinks referring to
195 directories) whose names do not begin with f. 195 directories) whose names do not begin with f.
196 e*(*Lk+50) executables 50k or larger beginning with e") 196 e*(*Lk+50) executables 50k or larger beginning with `e'")
197 197
198(defvar eshell-modifier-help-string 198(defvar eshell-modifier-help-string
199 "Eshell modifier quick reference: 199 "Eshell modifier quick reference:
@@ -318,7 +318,7 @@ resultant list of strings."
318 (if (and func (functionp func)) 318 (if (and func (functionp func))
319 (setq preds (eshell-add-pred-func func preds 319 (setq preds (eshell-add-pred-func func preds
320 negate follow)) 320 negate follow))
321 (error "Invalid function predicate %s" 321 (error "Invalid function predicate `%s'"
322 (eshell-stringify func)))) 322 (eshell-stringify func))))
323 (error "Invalid function predicate"))) 323 (error "Invalid function predicate")))
324 ((eq char ?^) 324 ((eq char ?^)
@@ -336,20 +336,20 @@ resultant list of strings."
336 (cons `(lambda (lst) 336 (cons `(lambda (lst)
337 (mapcar (function ,func) lst)) 337 (mapcar (function ,func) lst))
338 mods)) 338 mods))
339 (error "Invalid function modifier %s" 339 (error "Invalid function modifier `%s'"
340 (eshell-stringify func)))) 340 (eshell-stringify func))))
341 (error "Invalid function modifier"))) 341 (error "Invalid function modifier")))
342 ((eq char ?:) 342 ((eq char ?:)
343 (forward-char) 343 (forward-char)
344 (let ((mod (assq (char-after) eshell-modifier-alist))) 344 (let ((mod (assq (char-after) eshell-modifier-alist)))
345 (if (not mod) 345 (if (not mod)
346 (error "Unknown modifier character %c" (char-after)) 346 (error "Unknown modifier character `%c'" (char-after))
347 (forward-char) 347 (forward-char)
348 (setq mods (cons (eval (cdr mod)) mods))))) 348 (setq mods (cons (eval (cdr mod)) mods)))))
349 (t 349 (t
350 (let ((pred (assq char eshell-predicate-alist))) 350 (let ((pred (assq char eshell-predicate-alist)))
351 (if (not pred) 351 (if (not pred)
352 (error "Unknown predicate character %c" char) 352 (error "Unknown predicate character `%c'" char)
353 (forward-char) 353 (forward-char)
354 (setq preds 354 (setq preds
355 (eshell-add-pred-func (eval (cdr pred)) preds 355 (eshell-add-pred-func (eval (cdr pred)) preds
diff --git a/lisp/eshell/em-script.el b/lisp/eshell/em-script.el
index 8e65e440417..1a16e5e7a0f 100644
--- a/lisp/eshell/em-script.el
+++ b/lisp/eshell/em-script.el
@@ -45,7 +45,7 @@ commands, as a script file."
45(defcustom eshell-login-script (expand-file-name "login" eshell-directory-name) 45(defcustom eshell-login-script (expand-file-name "login" eshell-directory-name)
46 "If non-nil, a file to invoke when starting up Eshell interactively. 46 "If non-nil, a file to invoke when starting up Eshell interactively.
47This file should be a file containing Eshell commands, where comment 47This file should be a file containing Eshell commands, where comment
48lines begin with #." 48lines begin with `#'."
49 :type 'file 49 :type 'file
50 :group 'eshell-script) 50 :group 'eshell-script)
51 51
@@ -89,7 +89,7 @@ This includes when running `eshell-command'."
89 89
90(defun eshell-source-file (file &optional args subcommand-p) 90(defun eshell-source-file (file &optional args subcommand-p)
91 "Execute a series of Eshell commands in FILE, passing ARGS. 91 "Execute a series of Eshell commands in FILE, passing ARGS.
92Comments begin with #." 92Comments begin with `#'."
93 (interactive "f") 93 (interactive "f")
94 (let ((orig (point)) 94 (let ((orig (point))
95 (here (point-max)) 95 (here (point-max))
diff --git a/lisp/eshell/esh-opt.el b/lisp/eshell/esh-opt.el
index 4d28208b234..96d485beca1 100644
--- a/lisp/eshell/esh-opt.el
+++ b/lisp/eshell/esh-opt.el
@@ -180,7 +180,7 @@ This code doesn't really need to be macro expanded everywhere."
180 (concat usage 180 (concat usage
181 (format-message " 181 (format-message "
182This command is implemented in Lisp. If an unrecognized option is 182This command is implemented in Lisp. If an unrecognized option is
183passed to this command, the external version %s 183passed to this command, the external version `%s'
184will be called instead." extcmd))))) 184will be called instead." extcmd)))))
185 (throw 'eshell-usage usage))) 185 (throw 'eshell-usage usage)))
186 186
diff --git a/lisp/eshell/esh-util.el b/lisp/eshell/esh-util.el
index 170779fc5cd..2565842706e 100644
--- a/lisp/eshell/esh-util.el
+++ b/lisp/eshell/esh-util.el
@@ -88,7 +88,7 @@ specification of filenames (for example, in calling `find-file', or
88some other Lisp function that deals with files, not numbers), add the 88some other Lisp function that deals with files, not numbers), add the
89following in your init file: 89following in your init file:
90 90
91 (put 'find-file 'eshell-no-numeric-conversions t) 91 (put \\='find-file \\='eshell-no-numeric-conversions t)
92 92
93Any function with the property `eshell-no-numeric-conversions' set to 93Any function with the property `eshell-no-numeric-conversions' set to
94a non-nil value, will be passed strings, not numbers, even when an 94a non-nil value, will be passed strings, not numbers, even when an
diff --git a/lisp/eshell/esh-var.el b/lisp/eshell/esh-var.el
index f5110c38475..0d94186cb9a 100644
--- a/lisp/eshell/esh-var.el
+++ b/lisp/eshell/esh-var.el
@@ -116,7 +116,7 @@
116(require 'ring) 116(require 'ring)
117 117
118(defgroup eshell-var nil 118(defgroup eshell-var nil
119 "Variable interpolation is introduced whenever the $ character 119 "Variable interpolation is introduced whenever the `$' character
120appears unquoted in any argument (except when that argument is 120appears unquoted in any argument (except when that argument is
121surrounded by single quotes). It may be used to interpolate a 121surrounded by single quotes). It may be used to interpolate a
122variable value, a subcommand, or even the result of a Lisp form." 122variable value, a subcommand, or even the result of a Lisp form."
diff --git a/lisp/facemenu.el b/lisp/facemenu.el
index a90794f6c7b..3d5894309df 100644
--- a/lisp/facemenu.el
+++ b/lisp/facemenu.el
@@ -797,10 +797,10 @@ This is called whenever you create a new face, and at other times."
797 symbol (intern name))) 797 symbol (intern name)))
798 (setq menu 'facemenu-face-menu) 798 (setq menu 'facemenu-face-menu)
799 (setq docstring 799 (setq docstring
800 (purecopy (format-message "Select face %s for subsequent insertion. 800 (purecopy (format "Select face `%s' for subsequent insertion.
801If the mark is active and there is no prefix argument, 801If the mark is active and there is no prefix argument,
802apply face %s to the region instead. 802apply face `%s' to the region instead.
803This command was defined by facemenu-add-new-face." 803This command was defined by `facemenu-add-new-face'."
804 name name))) 804 name name)))
805 (cond ((facemenu-iterate ; check if equivalent face is already in the menu 805 (cond ((facemenu-iterate ; check if equivalent face is already in the menu
806 (lambda (m) (and (listp m) 806 (lambda (m) (and (listp m)
@@ -846,12 +846,12 @@ Return the event type (a symbol) of the added menu entry.
846This is called whenever you use a new color." 846This is called whenever you use a new color."
847 (let (symbol) 847 (let (symbol)
848 (unless (color-defined-p color) 848 (unless (color-defined-p color)
849 (error "Color %s undefined" color)) 849 (error "Color `%s' undefined" color))
850 (cond ((eq menu 'facemenu-foreground-menu) 850 (cond ((eq menu 'facemenu-foreground-menu)
851 (setq symbol (intern (concat "fg:" color)))) 851 (setq symbol (intern (concat "fg:" color))))
852 ((eq menu 'facemenu-background-menu) 852 ((eq menu 'facemenu-background-menu)
853 (setq symbol (intern (concat "bg:" color)))) 853 (setq symbol (intern (concat "bg:" color))))
854 (t (error "MENU should be facemenu-foreground-menu or facemenu-background-menu"))) 854 (t (error "MENU should be `facemenu-foreground-menu' or `facemenu-background-menu'")))
855 (unless (facemenu-iterate ; Check if color is already in the menu. 855 (unless (facemenu-iterate ; Check if color is already in the menu.
856 (lambda (m) (and (listp m) 856 (lambda (m) (and (listp m)
857 (eq (car m) symbol))) 857 (eq (car m) symbol)))
diff --git a/lisp/faces.el b/lisp/faces.el
index 9e879c1e188..5485d80c926 100644
--- a/lisp/faces.el
+++ b/lisp/faces.el
@@ -574,7 +574,7 @@ If FACE is a face-alias, get the documentation for the target face."
574 (let ((alias (get face 'face-alias))) 574 (let ((alias (get face 'face-alias)))
575 (if alias 575 (if alias
576 (let ((doc (get alias 'face-documentation))) 576 (let ((doc (get alias 'face-documentation)))
577 (format-message "%s is an alias for the face %s.%s" face alias 577 (format "%s is an alias for the face `%s'.%s" face alias
578 (if doc (format "\n%s" doc) 578 (if doc (format "\n%s" doc)
579 ""))) 579 "")))
580 (get face 'face-documentation)))) 580 (get face 'face-documentation))))
@@ -1005,7 +1005,7 @@ a single face name."
1005 (setq default (car (split-string default crm-separator t)))) 1005 (setq default (car (split-string default crm-separator t))))
1006 1006
1007 (let ((prompt (if default 1007 (let ((prompt (if default
1008 (format-message "%s (default %s): " prompt default) 1008 (format-message "%s (default `%s'): " prompt default)
1009 (format "%s: " prompt))) 1009 (format "%s: " prompt)))
1010 aliasfaces nonaliasfaces faces) 1010 aliasfaces nonaliasfaces faces)
1011 ;; Build up the completion tables. 1011 ;; Build up the completion tables.
@@ -1137,8 +1137,8 @@ Value is the new attribute value."
1137 (let* ((completion-ignore-case t) 1137 (let* ((completion-ignore-case t)
1138 (value (completing-read 1138 (value (completing-read
1139 (format-message (if default 1139 (format-message (if default
1140 "%s for face %s (default %s): " 1140 "%s for face `%s' (default %s): "
1141 "%s for face %s: ") 1141 "%s for face `%s': ")
1142 name face default) 1142 name face default)
1143 completion-alist nil nil nil nil default))) 1143 completion-alist nil nil nil nil default)))
1144 (if (equal value "") default value))) 1144 (if (equal value "") default value)))
@@ -1225,7 +1225,7 @@ of a global face. Value is the new attribute value."
1225If optional argument FRAME is nil or omitted, use the selected frame." 1225If optional argument FRAME is nil or omitted, use the selected frame."
1226 (let ((completion-ignore-case t)) 1226 (let ((completion-ignore-case t))
1227 (completing-read (format-message 1227 (completing-read (format-message
1228 "Set font attributes of face %s from font: " face) 1228 "Set font attributes of face `%s' from font: " face)
1229 (append (fontset-list) (x-list-fonts "*" nil frame))))) 1229 (append (fontset-list) (x-list-fonts "*" nil frame)))))
1230 1230
1231 1231
@@ -1437,11 +1437,11 @@ If FRAME is omitted or nil, use the selected frame."
1437 (setq face alias) 1437 (setq face alias)
1438 (insert 1438 (insert
1439 (format-message 1439 (format-message
1440 "\n %s is an alias for the face %s.\n%s" 1440 "\n %s is an alias for the face `%s'.\n%s"
1441 f alias 1441 f alias
1442 (if (setq obsolete (get f 'obsolete-face)) 1442 (if (setq obsolete (get f 'obsolete-face))
1443 (format-message 1443 (format-message
1444 " This face is obsolete%s; use %s instead.\n" 1444 " This face is obsolete%s; use `%s' instead.\n"
1445 (if (stringp obsolete) 1445 (if (stringp obsolete)
1446 (format " since %s" obsolete) 1446 (format " since %s" obsolete)
1447 "") 1447 "")
@@ -1459,13 +1459,13 @@ If FRAME is omitted or nil, use the selected frame."
1459 (help-xref-button 1 'help-customize-face f))) 1459 (help-xref-button 1 'help-customize-face f)))
1460 (setq file-name (find-lisp-object-file-name f 'defface)) 1460 (setq file-name (find-lisp-object-file-name f 'defface))
1461 (when file-name 1461 (when file-name
1462 (princ (substitute-command-keys "Defined in ")) 1462 (princ (substitute-command-keys "Defined in `"))
1463 (princ (file-name-nondirectory file-name)) 1463 (princ (file-name-nondirectory file-name))
1464 (princ (substitute-command-keys "")) 1464 (princ (substitute-command-keys "'"))
1465 ;; Make a hyperlink to the library. 1465 ;; Make a hyperlink to the library.
1466 (save-excursion 1466 (save-excursion
1467 (re-search-backward 1467 (re-search-backward
1468 (substitute-command-keys "\\([^‘’]+\\)") nil t) 1468 (substitute-command-keys "`\\([^`']+\\)'") nil t)
1469 (help-xref-button 1 'help-face-def f file-name)) 1469 (help-xref-button 1 'help-face-def f file-name))
1470 (princ ".") 1470 (princ ".")
1471 (terpri) 1471 (terpri)
@@ -1552,7 +1552,7 @@ If FRAME is nil, the current FRAME is used."
1552 options)) 1552 options))
1553 ((eq req 'supports) 1553 ((eq req 'supports)
1554 (display-supports-face-attributes-p options frame)) 1554 (display-supports-face-attributes-p options frame))
1555 (t (error "Unknown req %S with options %S" 1555 (t (error "Unknown req `%S' with options `%S'"
1556 req options))))) 1556 req options)))))
1557 match)) 1557 match))
1558 1558
@@ -1925,7 +1925,7 @@ resulting color name in the echo area."
1925 (logand 65535 (nth 0 components)) 1925 (logand 65535 (nth 0 components))
1926 (logand 65535 (nth 1 components)) 1926 (logand 65535 (nth 1 components))
1927 (logand 65535 (nth 2 components)))))))) 1927 (logand 65535 (nth 2 components))))))))
1928 (when msg (message "Color: %s" color)) 1928 (when msg (message "Color: `%s'" color))
1929 color)) 1929 color))
1930 1930
1931(defun face-at-point (&optional thing multiple) 1931(defun face-at-point (&optional thing multiple)
@@ -2778,13 +2778,13 @@ also the same size as FACE on FRAME, or fail."
2778 (if (string-match-p "\\*" pattern) 2778 (if (string-match-p "\\*" pattern)
2779 (if (null (face-font face)) 2779 (if (null (face-font face))
2780 (error "No matching fonts are the same height as the frame default font") 2780 (error "No matching fonts are the same height as the frame default font")
2781 (error "No matching fonts are the same height as face %s" face)) 2781 (error "No matching fonts are the same height as face `%s'" face))
2782 (if (null (face-font face)) 2782 (if (null (face-font face))
2783 (error "Height of font %s doesn't match the frame default font" 2783 (error "Height of font `%s' doesn't match the frame default font"
2784 pattern) 2784 pattern)
2785 (error "Height of font %s doesn't match face %s" 2785 (error "Height of font `%s' doesn't match face `%s'"
2786 pattern face))) 2786 pattern face)))
2787 (error "No fonts match %s" pattern))) 2787 (error "No fonts match `%s'" pattern)))
2788 (car fonts)) 2788 (car fonts))
2789 (cdr (assq 'font (frame-parameters (selected-frame)))))) 2789 (cdr (assq 'font (frame-parameters (selected-frame))))))
2790 2790
diff --git a/lisp/ffap.el b/lisp/ffap.el
index 975f7269192..8d3f8bfc37d 100644
--- a/lisp/ffap.el
+++ b/lisp/ffap.el
@@ -412,9 +412,9 @@ Optional SERVICE specifies the port used (default \"discard\").
412Optional QUIET flag suppresses the \"Pinging...\" message. 412Optional QUIET flag suppresses the \"Pinging...\" message.
413Optional STRATEGY overrides the three variables above. 413Optional STRATEGY overrides the three variables above.
414Returned values: 414Returned values:
415 t means that HOST answered. 415 t means that HOST answered.
416'accept means the relevant variable told us to accept. 416`accept' means the relevant variable told us to accept.
417\"mesg\" means HOST exists, but does not respond for some reason." 417\"mesg\" means HOST exists, but does not respond for some reason."
418 ;; Try some (Emory local): 418 ;; Try some (Emory local):
419 ;; (ffap-machine-p "ftp" nil nil 'ping) 419 ;; (ffap-machine-p "ftp" nil nil 'ping)
420 ;; (ffap-machine-p "nonesuch" nil nil 'ping) 420 ;; (ffap-machine-p "nonesuch" nil nil 'ping)
diff --git a/lisp/filenotify.el b/lisp/filenotify.el
index c94f631dde8..5822cf0cc7e 100644
--- a/lisp/filenotify.el
+++ b/lisp/filenotify.el
@@ -54,7 +54,7 @@ different files from the same directory are watched.")
54 "Handle file system monitoring event. 54 "Handle file system monitoring event.
55If EVENT is a filewatch event, call its callback. It has the format 55If EVENT is a filewatch event, call its callback. It has the format
56 56
57 \(file-notify (DESCRIPTOR ACTIONS FILE COOKIE) CALLBACK) 57 \(file-notify (DESCRIPTOR ACTIONS FILE [FILE1-OR-COOKIE]) CALLBACK)
58 58
59Otherwise, signal a `file-notify-error'." 59Otherwise, signal a `file-notify-error'."
60 (interactive "e") 60 (interactive "e")
@@ -64,10 +64,10 @@ Otherwise, signal a `file-notify-error'."
64 (signal 'file-notify-error 64 (signal 'file-notify-error
65 (cons "Not a valid file-notify event" event)))) 65 (cons "Not a valid file-notify event" event))))
66 66
67(defvar file-notify--pending-events nil 67;; Needed for `inotify' and `w32notify'. In the latter case, COOKIE is nil.
68 "List of pending file notification events for a future `renamed' action. 68(defvar file-notify--pending-event nil
69The entries are a list (DESCRIPTOR ACTION FILE COOKIE). ACTION 69 "A pending file notification events for a future `renamed' action.
70is either `moved-from' or `renamed-from'.") 70It is a form ((DESCRIPTOR ACTION FILE [FILE1-OR-COOKIE]) CALLBACK).")
71 71
72(defun file-notify--event-file-name (event) 72(defun file-notify--event-file-name (event)
73 "Return file name of file notification event, or nil." 73 "Return file name of file notification event, or nil."
@@ -92,26 +92,26 @@ This is available in case a file has been moved."
92;; `inotify' returns the same descriptor when the file (directory) 92;; `inotify' returns the same descriptor when the file (directory)
93;; uses the same inode. We want to distinguish, and apply a virtual 93;; uses the same inode. We want to distinguish, and apply a virtual
94;; descriptor which make the difference. 94;; descriptor which make the difference.
95(defun file-notify--descriptor (descriptor file) 95(defun file-notify--descriptor (descriptor)
96 "Return the descriptor to be used in `file-notify-*-watch'. 96 "Return the descriptor to be used in `file-notify-*-watch'.
97For `gfilenotify' and `w32notify' it is the same descriptor as 97For `gfilenotify' and `w32notify' it is the same descriptor as
98used in the low-level file notification package." 98used in the low-level file notification package."
99 (if (and (natnump descriptor) (eq file-notify--library 'inotify)) 99 (if (and (natnump descriptor) (eq file-notify--library 'inotify))
100 (cons descriptor file) 100 (cons descriptor
101 (car (cadr (gethash descriptor file-notify-descriptors))))
101 descriptor)) 102 descriptor))
102 103
103;; The callback function used to map between specific flags of the 104;; The callback function used to map between specific flags of the
104;; respective file notifications, and the ones we return. 105;; respective file notifications, and the ones we return.
105(defun file-notify-callback (event) 106(defun file-notify-callback (event)
106 "Handle an EVENT returned from file notification. 107 "Handle an EVENT returned from file notification.
107EVENT is the cdr of the event in `file-notify-handle-event' 108EVENT is the cadr of the event in `file-notify-handle-event'
108\(DESCRIPTOR ACTIONS FILE COOKIE)." 109\(DESCRIPTOR ACTIONS FILE [FILE1-OR-COOKIE])."
109 (let* ((desc (car event)) 110 (let* ((desc (car event))
110 (registered (gethash desc file-notify-descriptors)) 111 (registered (gethash desc file-notify-descriptors))
111 (pending-event (assoc desc file-notify--pending-events))
112 (actions (nth 1 event)) 112 (actions (nth 1 event))
113 (file (file-notify--event-file-name event)) 113 (file (file-notify--event-file-name event))
114 file1 callback) 114 file1 callback pending-event)
115 115
116 ;; Make actions a list. 116 ;; Make actions a list.
117 (unless (consp actions) (setq actions (cons actions nil))) 117 (unless (consp actions) (setq actions (cons actions nil)))
@@ -129,22 +129,23 @@ EVENT is the cdr of the event in `file-notify-handle-event'
129 (dolist (action actions) 129 (dolist (action actions)
130 130
131 ;; Send pending event, if it doesn't match. 131 ;; Send pending event, if it doesn't match.
132 (when (and pending-event 132 (when (and file-notify--pending-event
133 ;; The cookie doesn't match. 133 ;; The cookie doesn't match.
134 (not (eq (file-notify--event-cookie pending-event) 134 (not (eq (file-notify--event-cookie
135 (car file-notify--pending-event))
135 (file-notify--event-cookie event))) 136 (file-notify--event-cookie event)))
136 (or 137 (or
137 ;; inotify. 138 ;; inotify.
138 (and (eq (nth 1 pending-event) 'moved-from) 139 (and (eq (nth 1 (car file-notify--pending-event))
140 'moved-from)
139 (not (eq action 'moved-to))) 141 (not (eq action 'moved-to)))
140 ;; w32notify. 142 ;; w32notify.
141 (and (eq (nth 1 pending-event) 'renamed-from) 143 (and (eq (nth 1 (car file-notify--pending-event))
144 'renamed-from)
142 (not (eq action 'renamed-to))))) 145 (not (eq action 'renamed-to)))))
143 (funcall callback 146 (setq pending-event file-notify--pending-event
144 (list desc 'deleted 147 file-notify--pending-event nil)
145 (file-notify--event-file-name pending-event))) 148 (setcar (cdar pending-event) 'deleted))
146 (setq file-notify--pending-events
147 (delete pending-event file-notify--pending-events)))
148 149
149 ;; Map action. We ignore all events which cannot be mapped. 150 ;; Map action. We ignore all events which cannot be mapped.
150 (setq action 151 (setq action
@@ -156,46 +157,42 @@ EVENT is the cdr of the event in `file-notify-handle-event'
156 (setq file1 (file-notify--event-file1-name event)) 157 (setq file1 (file-notify--event-file1-name event))
157 'renamed) 158 'renamed)
158 159
159 ;; inotify. 160 ;; inotify, w32notify.
160 ((eq action 'attrib) 'attribute-changed) 161 ((eq action 'attrib) 'attribute-changed)
161 ((eq action 'create) 'created) 162 ((memq action '(create added)) 'created)
162 ((eq action 'modify) 'changed) 163 ((memq action '(modify modified)) 'changed)
163 ((memq action '(delete 'delete-self move-self)) 'deleted) 164 ((memq action '(delete 'delete-self move-self removed)) 'deleted)
164 ;; Make the event pending. 165 ;; Make the event pending.
165 ((eq action 'moved-from) 166 ((memq action '(moved-from renamed-from))
166 (add-to-list 'file-notify--pending-events 167 (setq file-notify--pending-event
167 (list desc action file 168 `((,desc ,action ,file ,(file-notify--event-cookie event))
168 (file-notify--event-cookie event))) 169 ,callback))
169 nil) 170 nil)
170 ;; Look for pending event. 171 ;; Look for pending event.
171 ((eq action 'moved-to) 172 ((memq action '(moved-to renamed-to))
172 (if (null pending-event) 173 (if (null file-notify--pending-event)
173 'created 174 'created
174 (setq file1 file 175 (setq file1 file
175 file (file-notify--event-file-name pending-event) 176 file (file-notify--event-file-name
176 file-notify--pending-events 177 (car file-notify--pending-event)))
177 (delete pending-event file-notify--pending-events)) 178 ;; If the source is handled by another watch, we
178 'renamed)) 179 ;; must fire the rename event there as well.
179 180 (when (not (eq (file-notify--descriptor desc)
180 ;; w32notify. 181 (file-notify--descriptor
181 ((eq action 'added) 'created) 182 (caar file-notify--pending-event))))
182 ((eq action 'modified) 'changed) 183 (setq pending-event
183 ((eq action 'removed) 'deleted) 184 `((,(caar file-notify--pending-event)
184 ;; Make the event pending. 185 renamed ,file ,file1)
185 ((eq action 'renamed-from) 186 ,(cadr file-notify--pending-event))))
186 (add-to-list 'file-notify--pending-events 187 (setq file-notify--pending-event nil)
187 (list desc action file 188 'renamed))))
188 (file-notify--event-cookie event))) 189
189 nil) 190 ;; Apply pending callback.
190 ;; Look for pending event. 191 (when pending-event
191 ((eq action 'renamed-to) 192 (setcar
192 (if (null pending-event) 193 (car pending-event) (file-notify--descriptor (caar pending-event)))
193 'created 194 (funcall (cadr pending-event) (car pending-event))
194 (setq file1 file 195 (setq pending-event nil))
195 file (file-notify--event-file-name pending-event)
196 file-notify--pending-events
197 (delete pending-event file-notify--pending-events))
198 'renamed))))
199 196
200 ;; Apply callback. 197 ;; Apply callback.
201 (when (and action 198 (when (and action
@@ -213,12 +210,10 @@ EVENT is the cdr of the event in `file-notify-handle-event'
213 (if file1 210 (if file1
214 (funcall 211 (funcall
215 callback 212 callback
216 `(,(file-notify--descriptor desc (nth 0 entry)) 213 `(,(file-notify--descriptor desc) ,action ,file ,file1))
217 ,action ,file ,file1))
218 (funcall 214 (funcall
219 callback 215 callback
220 `(,(file-notify--descriptor desc (nth 0 entry)) 216 `(,(file-notify--descriptor desc) ,action ,file))))))))
221 ,action ,file))))))))
222 217
223;; `gfilenotify' and `w32notify' return a unique descriptor for every 218;; `gfilenotify' and `w32notify' return a unique descriptor for every
224;; `file-notify-add-watch', while `inotify' returns a unique 219;; `file-notify-add-watch', while `inotify' returns a unique
@@ -325,8 +320,7 @@ FILE is the name of the file whose event is being reported."
325 file-notify-descriptors) 320 file-notify-descriptors)
326 321
327 ;; Return descriptor. 322 ;; Return descriptor.
328 (file-notify--descriptor 323 (file-notify--descriptor desc)))
329 desc (unless (file-directory-p file) (file-name-nondirectory file)))))
330 324
331(defun file-notify-rm-watch (descriptor) 325(defun file-notify-rm-watch (descriptor)
332 "Remove an existing watch specified by its DESCRIPTOR. 326 "Remove an existing watch specified by its DESCRIPTOR.
diff --git a/lisp/files-x.el b/lisp/files-x.el
index 524ad492174..a130ffcf928 100644
--- a/lisp/files-x.el
+++ b/lisp/files-x.el
@@ -189,7 +189,7 @@ from the Local Variables list ignoring the input argument VALUE."
189 (unless (let ((case-fold-search t)) 189 (unless (let ((case-fold-search t))
190 (goto-char beg) 190 (goto-char beg)
191 (search-forward "Local Variables:" nil t)) 191 (search-forward "Local Variables:" nil t))
192 (throw 'exit (message "Cant add file-local variables")))) 192 (throw 'exit (message "Can't add file-local variables"))))
193 193
194 ;; prefix is what comes before "local variables:" in its line. 194 ;; prefix is what comes before "local variables:" in its line.
195 ;; suffix is what comes after "local variables:" in its line. 195 ;; suffix is what comes after "local variables:" in its line.
diff --git a/lisp/files.el b/lisp/files.el
index f96ac09f5e6..c309f86f85b 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -995,10 +995,10 @@ directory if it does not exist."
995 (put 'user-emacs-directory-warning 'this-session t) 995 (put 'user-emacs-directory-warning 'this-session t)
996 (display-warning 'initialization 996 (display-warning 'initialization
997 (format "\ 997 (format "\
998Unable to %s user-emacs-directory (%s). 998Unable to %s `user-emacs-directory' (%s).
999Any data that would normally be written there may be lost! 999Any data that would normally be written there may be lost!
1000If you never want to see this message again, 1000If you never want to see this message again,
1001customize the variable user-emacs-directory-warning." 1001customize the variable `user-emacs-directory-warning'."
1002 errtype user-emacs-directory))))) 1002 errtype user-emacs-directory)))))
1003 bestname)))) 1003 bestname))))
1004 1004
@@ -1641,7 +1641,7 @@ killed."
1641 (user-error "Aborted")) 1641 (user-error "Aborted"))
1642 (and (buffer-modified-p) buffer-file-name 1642 (and (buffer-modified-p) buffer-file-name
1643 (not (yes-or-no-p 1643 (not (yes-or-no-p
1644 (format-message "Kill and replace buffer %s without saving it? " 1644 (format-message "Kill and replace buffer `%s' without saving it? "
1645 (buffer-name)))) 1645 (buffer-name))))
1646 (user-error "Aborted")) 1646 (user-error "Aborted"))
1647 (let ((obuf (current-buffer)) 1647 (let ((obuf (current-buffer))
@@ -2789,7 +2789,7 @@ we don't actually set it to the same mode the buffer already has."
2789 (catch 'nop 2789 (catch 'nop
2790 (dolist (mode (nreverse modes)) 2790 (dolist (mode (nreverse modes))
2791 (if (not (functionp mode)) 2791 (if (not (functionp mode))
2792 (message "Ignoring unknown mode %s" mode) 2792 (message "Ignoring unknown mode `%s'" mode)
2793 (setq done t) 2793 (setq done t)
2794 (or (set-auto-mode-0 mode keep-mode-if-same) 2794 (or (set-auto-mode-0 mode keep-mode-if-same)
2795 ;; continuing would call minor modes again, toggling them off 2795 ;; continuing would call minor modes again, toggling them off
@@ -2803,7 +2803,7 @@ we don't actually set it to the same mode the buffer already has."
2803 (setq mode (hack-local-variables t)) 2803 (setq mode (hack-local-variables t))
2804 (not (memq mode modes)) ; already tried and failed 2804 (not (memq mode modes)) ; already tried and failed
2805 (if (not (functionp mode)) 2805 (if (not (functionp mode))
2806 (message "Ignoring unknown mode %s" mode) 2806 (message "Ignoring unknown mode `%s'" mode)
2807 (setq done t) 2807 (setq done t)
2808 (set-auto-mode-0 mode keep-mode-if-same))) 2808 (set-auto-mode-0 mode keep-mode-if-same)))
2809 ;; If we didn't, look for an interpreter specified in the first line. 2809 ;; If we didn't, look for an interpreter specified in the first line.
@@ -3420,7 +3420,7 @@ local variables, but directory-local variables may still be applied."
3420 (display-warning 3420 (display-warning
3421 :warning 3421 :warning
3422 (format-message 3422 (format-message
3423 "%s: lexical-binding at end of file unreliable" 3423 "%s: `lexical-binding' at end of file unreliable"
3424 (file-name-nondirectory 3424 (file-name-nondirectory
3425 (or buffer-file-name "")))))) 3425 (or buffer-file-name ""))))))
3426 (t 3426 (t
@@ -3557,7 +3557,7 @@ It is dangerous if either of these conditions are met:
3557 var (if since (format " (since %s)" since)) 3557 var (if since (format " (since %s)" since))
3558 (if (stringp instead) 3558 (if (stringp instead)
3559 (substitute-command-keys instead) 3559 (substitute-command-keys instead)
3560 (format-message "use %s instead" instead))))))) 3560 (format-message "use `%s' instead" instead)))))))
3561 3561
3562(defun hack-one-local-variable (var val) 3562(defun hack-one-local-variable (var val)
3563 "Set local variable VAR with value VAL. 3563 "Set local variable VAR with value VAL.
@@ -3674,7 +3674,7 @@ variables from CLASS are applied to the buffer. The variables
3674for a class are defined using `dir-locals-set-class-variables'." 3674for a class are defined using `dir-locals-set-class-variables'."
3675 (setq directory (file-name-as-directory (expand-file-name directory))) 3675 (setq directory (file-name-as-directory (expand-file-name directory)))
3676 (unless (assq class dir-locals-class-alist) 3676 (unless (assq class dir-locals-class-alist)
3677 (error "No such class %s" (symbol-name class))) 3677 (error "No such class `%s'" (symbol-name class)))
3678 (push (list directory class mtime) dir-locals-directory-cache)) 3678 (push (list directory class mtime) dir-locals-directory-cache))
3679 3679
3680(defun dir-locals-set-class-variables (class variables) 3680(defun dir-locals-set-class-variables (class variables)
@@ -4030,7 +4030,7 @@ Interactively, confirmation is required unless you supply a prefix argument."
4030 (listp last-nonmenu-event) 4030 (listp last-nonmenu-event)
4031 use-dialog-box)) 4031 use-dialog-box))
4032 (or (y-or-n-p (format-message 4032 (or (y-or-n-p (format-message
4033 "File %s exists; overwrite? " filename)) 4033 "File `%s' exists; overwrite? " filename))
4034 (user-error "Canceled"))) 4034 (user-error "Canceled")))
4035 (set-visited-file-name filename (not confirm)))) 4035 (set-visited-file-name filename (not confirm))))
4036 (set-buffer-modified-p t) 4036 (set-buffer-modified-p t)
@@ -4736,7 +4736,7 @@ Before and after saving the buffer, this function runs
4736 ;; existing directory. 4736 ;; existing directory.
4737 (error "%s is a directory" filename) 4737 (error "%s is a directory" filename)
4738 (unless (y-or-n-p (format-message 4738 (unless (y-or-n-p (format-message
4739 "File %s exists; overwrite? " 4739 "File `%s' exists; overwrite? "
4740 filename)) 4740 filename))
4741 (error "Canceled")))) 4741 (error "Canceled"))))
4742 (set-visited-file-name filename))) 4742 (set-visited-file-name filename)))
@@ -4778,7 +4778,7 @@ Before and after saving the buffer, this function runs
4778 (unless (file-exists-p dir) 4778 (unless (file-exists-p dir)
4779 (if (y-or-n-p 4779 (if (y-or-n-p
4780 (format-message 4780 (format-message
4781 "Directory %s does not exist; create? " dir)) 4781 "Directory `%s' does not exist; create? " dir))
4782 (make-directory dir t) 4782 (make-directory dir t)
4783 (error "Canceled"))) 4783 (error "Canceled")))
4784 (setq setmodes (basic-save-buffer-1)))) 4784 (setq setmodes (basic-save-buffer-1))))
@@ -5221,7 +5221,7 @@ given. With a prefix argument, TRASH is nil."
5221 (list dir 5221 (list dir
5222 (if (directory-files dir nil directory-files-no-dot-files-regexp) 5222 (if (directory-files dir nil directory-files-no-dot-files-regexp)
5223 (y-or-n-p 5223 (y-or-n-p
5224 (format-message "Directory %s is not empty, really %s? " 5224 (format-message "Directory `%s' is not empty, really %s? "
5225 dir (if trashing "trash" "delete"))) 5225 dir (if trashing "trash" "delete")))
5226 nil) 5226 nil)
5227 (null current-prefix-arg)))) 5227 (null current-prefix-arg))))
@@ -5327,7 +5327,7 @@ directly into NEWNAME instead."
5327 default-directory default-directory nil nil) 5327 default-directory default-directory nil nil)
5328 current-prefix-arg t nil))) 5328 current-prefix-arg t nil)))
5329 (when (file-in-directory-p newname directory) 5329 (when (file-in-directory-p newname directory)
5330 (error "Cannot copy %s into its subdirectory %s" 5330 (error "Cannot copy `%s' into its subdirectory `%s'"
5331 directory newname)) 5331 directory newname))
5332 ;; If default-directory is a remote directory, make sure we find its 5332 ;; If default-directory is a remote directory, make sure we find its
5333 ;; copy-directory handler. 5333 ;; copy-directory handler.
@@ -5699,7 +5699,7 @@ To choose one, move point to the proper line and then type C-c C-c.
5699Then you'll be asked about a number of files to recover." 5699Then you'll be asked about a number of files to recover."
5700 (interactive) 5700 (interactive)
5701 (if (null auto-save-list-file-prefix) 5701 (if (null auto-save-list-file-prefix)
5702 (error "You set auto-save-list-file-prefix to disable making session files")) 5702 (error "You set `auto-save-list-file-prefix' to disable making session files"))
5703 (let ((dir (file-name-directory auto-save-list-file-prefix)) 5703 (let ((dir (file-name-directory auto-save-list-file-prefix))
5704 (nd (file-name-nondirectory auto-save-list-file-prefix))) 5704 (nd (file-name-nondirectory auto-save-list-file-prefix)))
5705 (unless (file-directory-p dir) 5705 (unless (file-directory-p dir)
@@ -5793,7 +5793,7 @@ This command is used in the special Dired buffer created by
5793 (condition-case nil 5793 (condition-case nil
5794 (save-excursion (recover-file file)) 5794 (save-excursion (recover-file file))
5795 (error 5795 (error
5796 "Failed to recover %s" file))) 5796 "Failed to recover `%s'" file)))
5797 files 5797 files
5798 '("file" "files" "recover")) 5798 '("file" "files" "recover"))
5799 (message "No files can be recovered from this session now"))) 5799 (message "No files can be recovered from this session now")))
@@ -6478,7 +6478,7 @@ normally equivalent short `-D' option is just passed on to
6478 file result) 6478 file result)
6479 ;; Unix. Access the file to get a suitable error. 6479 ;; Unix. Access the file to get a suitable error.
6480 (access-file file "Reading directory") 6480 (access-file file "Reading directory")
6481 (error "Listing directory failed but access-file worked"))) 6481 (error "Listing directory failed but `access-file' worked")))
6482 6482
6483 (when (if (stringp switches) 6483 (when (if (stringp switches)
6484 (string-match "--dired\\>" switches) 6484 (string-match "--dired\\>" switches)
@@ -6771,7 +6771,7 @@ for the specified category of users."
6771 ((= char ?g) #o2070) 6771 ((= char ?g) #o2070)
6772 ((= char ?o) #o1007) 6772 ((= char ?o) #o1007)
6773 ((= char ?a) #o7777) 6773 ((= char ?a) #o7777)
6774 (t (error "%c: bad who character" char)))) 6774 (t (error "%c: bad `who' character" char))))
6775 6775
6776(defun file-modes-char-to-right (char &optional from) 6776(defun file-modes-char-to-right (char &optional from)
6777 "Convert CHAR to a numeric value of mode bits. 6777 "Convert CHAR to a numeric value of mode bits.
@@ -6843,7 +6843,7 @@ as in \"og+rX-w\"."
6843 (file-modes-rights-to-number (substring modes (match-end 1)) 6843 (file-modes-rights-to-number (substring modes (match-end 1))
6844 num-who num-modes) 6844 num-who num-modes)
6845 modes (substring modes (match-end 3)))) 6845 modes (substring modes (match-end 3))))
6846 (error "Parse error in modes near %s" (substring modes 0)))) 6846 (error "Parse error in modes near `%s'" (substring modes 0))))
6847 num-modes))) 6847 num-modes)))
6848 6848
6849(defun read-file-modes (&optional prompt orig-file) 6849(defun read-file-modes (&optional prompt orig-file)
@@ -6912,7 +6912,7 @@ Otherwise, trash FILENAME using the freedesktop.org conventions,
6912 trash-dir))) 6912 trash-dir)))
6913 ;; We can't trash a parent directory of trash-directory. 6913 ;; We can't trash a parent directory of trash-directory.
6914 (if (string-prefix-p fn trash-dir) 6914 (if (string-prefix-p fn trash-dir)
6915 (error "Trash directory %s is a subdirectory of %s" 6915 (error "Trash directory `%s' is a subdirectory of `%s'"
6916 trash-dir filename)) 6916 trash-dir filename))
6917 (unless (file-directory-p trash-dir) 6917 (unless (file-directory-p trash-dir)
6918 (make-directory trash-dir t)) 6918 (make-directory trash-dir t))
diff --git a/lisp/filesets.el b/lisp/filesets.el
index c098879d49d..464c7c3eec5 100644
--- a/lisp/filesets.el
+++ b/lisp/filesets.el
@@ -679,14 +679,14 @@ variables my-ps-viewer, my-pdf-viewer, my-dvi-viewer, my-pic-viewer.
679In order to view pdf or rtf files in an Emacs buffer, you could use these: 679In order to view pdf or rtf files in an Emacs buffer, you could use these:
680 680
681 681
682 \(\"^.+\\\\.pdf\\\\'\" \"pdftotext\" 682 \(\"^.+\\\\.pdf\\\\\\='\" \"pdftotext\"
683 \((:capture-output t) 683 \((:capture-output t)
684 \(:args (\"%S - | fmt -w \" window-width)) 684 \(:args (\"%S - | fmt -w \" window-width))
685 \(:ignore-on-read-text t) 685 \(:ignore-on-read-text t)
686 \(:constraintp (lambda () 686 \(:constraintp (lambda ()
687 \(and \(filesets-which-command-p \"pdftotext\") 687 \(and \(filesets-which-command-p \"pdftotext\")
688 \(filesets-which-command-p \"fmt\")))))) 688 \(filesets-which-command-p \"fmt\"))))))
689 \(\"^.+\\\\.rtf\\\\'\" \"rtf2htm\" 689 \(\"^.+\\\\.rtf\\\\\\='\" \"rtf2htm\"
690 \((:capture-output t) 690 \((:capture-output t)
691 \(:args (\"%S 2> /dev/null | w3m -dump -T text/html\")) 691 \(:args (\"%S 2> /dev/null | w3m -dump -T text/html\"))
692 \(:ignore-on-read-text t) 692 \(:ignore-on-read-text t)
@@ -1799,7 +1799,7 @@ User will be queried, if no fileset name is provided."
1799 (current-buffer))) 1799 (current-buffer)))
1800 (name (or name 1800 (name (or name
1801 (completing-read 1801 (completing-read
1802 (format-message "Add %s to fileset: " buffer) 1802 (format-message "Add `%s' to fileset: " buffer)
1803 filesets-data nil))) 1803 filesets-data nil)))
1804 (entry (or (assoc name filesets-data) 1804 (entry (or (assoc name filesets-data)
1805 (when (y-or-n-p 1805 (when (y-or-n-p
@@ -1819,13 +1819,13 @@ User will be queried, if no fileset name is provided."
1819 :test 'filesets-files-equalp))) 1819 :test 'filesets-files-equalp)))
1820 (cond 1820 (cond
1821 (inlist 1821 (inlist
1822 (message "Filesets: %s is already in %s" this name)) 1822 (message "Filesets: `%s' is already in `%s'" this name))
1823 ((and (equal (filesets-entry-mode entry) ':files) 1823 ((and (equal (filesets-entry-mode entry) ':files)
1824 this) 1824 this)
1825 (filesets-entry-set-files entry (cons this files) t) 1825 (filesets-entry-set-files entry (cons this files) t)
1826 (filesets-set-config name 'filesets-data filesets-data)) 1826 (filesets-set-config name 'filesets-data filesets-data))
1827 (t 1827 (t
1828 (message "Filesets: Can't add %s to fileset %s" this name))))))) 1828 (message "Filesets: Can't add `%s' to fileset `%s'" this name)))))))
1829 1829
1830(defun filesets-remove-buffer (&optional name buffer) 1830(defun filesets-remove-buffer (&optional name buffer)
1831 "Remove BUFFER (or current buffer) to fileset NAME. 1831 "Remove BUFFER (or current buffer) to fileset NAME.
@@ -1835,7 +1835,7 @@ User will be queried, if no fileset name is provided."
1835 (current-buffer))) 1835 (current-buffer)))
1836 (name (or name 1836 (name (or name
1837 (completing-read 1837 (completing-read
1838 (format-message "Remove %s from fileset: " buffer) 1838 (format-message "Remove `%s' from fileset: " buffer)
1839 filesets-data nil t))) 1839 filesets-data nil t)))
1840 (entry (assoc name filesets-data))) 1840 (entry (assoc name filesets-data)))
1841 (if entry 1841 (if entry
@@ -1848,7 +1848,7 @@ User will be queried, if no fileset name is provided."
1848 (let ((new (list (cons ':files (delete (car inlist) files))))) 1848 (let ((new (list (cons ':files (delete (car inlist) files)))))
1849 (setcdr entry new) 1849 (setcdr entry new)
1850 (filesets-set-config name 'filesets-data filesets-data)) 1850 (filesets-set-config name 'filesets-data filesets-data))
1851 (message "Filesets: Can't remove %s from fileset %s" 1851 (message "Filesets: Can't remove `%s' from fileset `%s'"
1852 this 1852 this
1853 name)))))) 1853 name))))))
1854 1854
@@ -2441,30 +2441,30 @@ fileset thinks this is necessary or not."
2441"Filesets: manual editing of user data required! 2441"Filesets: manual editing of user data required!
2442 2442
2443Filesets has detected that you were using an older version before, 2443Filesets has detected that you were using an older version before,
2444which requires some manual updating. Type y for editing the startup 2444which requires some manual updating. Type `y' for editing the startup
2445file now. 2445file now.
2446 2446
2447The layout of filesets-data has changed. Please delete your cache file 2447The layout of `filesets-data' has changed. Please delete your cache file
2448and edit your startup file as shown below: 2448and edit your startup file as shown below:
2449 2449
24501. filesets-data: Edit all :pattern filesets in your startup file and 24501. `filesets-data': Edit all :pattern filesets in your startup file and
2451transform all entries as shown in this example: 2451transform all entries as shown in this example:
2452 2452
2453 \(\"Test\" (:pattern \"~/dir/^pattern$\")) 2453 \(\"Test\" (:pattern \"~/dir/^pattern$\"))
2454 --> \(\"Test\" (:pattern \"~/dir/\" \"^pattern$\")) 2454 --> \(\"Test\" (:pattern \"~/dir/\" \"^pattern$\"))
2455 2455
24562. filesets-data: Change all occurrences of \":document\" to \":ingroup\": 24562. `filesets-data': Change all occurrences of \":document\" to \":ingroup\":
2457 2457
2458 \(\(\"Test\" \(:document \"~/dir/file\")) 2458 \(\(\"Test\" \(:document \"~/dir/file\"))
2459 --> \(\(\"Test\" \(:ingroup \"~/dir/file\")) 2459 --> \(\(\"Test\" \(:ingroup \"~/dir/file\"))
2460 2460
24613. filesets-subdocument-patterns: If you already modified the variable 24613. `filesets-subdocument-patterns': If you already modified the variable
2462previously called filesets-subdocument-patterns, change its name to 2462previously called `filesets-subdocument-patterns', change its name to
2463filesets-ingroup-patterns. 2463`filesets-ingroup-patterns'.
2464 2464
24654. filesets-menu-cache-contents: If you already modified this 24654. `filesets-menu-cache-contents': If you already modified this
2466variable, change the entry filesets-subdocument--cache to 2466variable, change the entry `filesets-subdocument--cache' to
2467filesets-ingroup-cache. 2467`filesets-ingroup-cache'.
2468 2468
24695. Type M-x filesets-update-cleanup and restart Emacs. 24695. Type M-x filesets-update-cleanup and restart Emacs.
2470 2470
diff --git a/lisp/find-cmd.el b/lisp/find-cmd.el
index 8e419064c1b..d78a0b35fab 100644
--- a/lisp/find-cmd.el
+++ b/lisp/find-cmd.el
@@ -209,7 +209,7 @@ args that OPTION can receive and ARGS are the arguments for OPTION.
209If DONT-QUOTE is non-nil, arguments are quoted for passing them to 209If DONT-QUOTE is non-nil, arguments are quoted for passing them to
210the shell." 210the shell."
211 (when (and (numberp argcount) (< (length args) argcount)) 211 (when (and (numberp argcount) (< (length args) argcount))
212 (error "%s needs at least %d arguments" option argcount)) 212 (error "`%s' needs at least %d arguments" option argcount))
213 (let ((oper (or oper 'find-or))) 213 (let ((oper (or oper 'find-or)))
214 (if (and args (length args)) 214 (if (and args (length args))
215 (funcall oper (mapcar (lambda (x) 215 (funcall oper (mapcar (lambda (x)
@@ -247,7 +247,7 @@ them into valid switches. The result is -and(ed) together."
247 (find-to-string 247 (find-to-string
248 (find-generic option oper argcnt (cdr form) dont-quote)))) 248 (find-generic option oper argcnt (cdr form) dont-quote))))
249 (t 249 (t
250 (error "Sorry I don't know how to handle %s" (car form)))))))) 250 (error "Sorry I don't know how to handle `%s'" (car form))))))))
251 251
252(provide 'find-cmd) 252(provide 'find-cmd)
253 253
diff --git a/lisp/finder.el b/lisp/finder.el
index 51226aebb50..715dd9499fa 100644
--- a/lisp/finder.el
+++ b/lisp/finder.el
@@ -393,7 +393,7 @@ FILE should be in a form suitable for passing to `locate-library'."
393 (if (locate-library (match-string 1)) 393 (if (locate-library (match-string 1))
394 (make-text-button (match-beginning 1) (match-end 1) 394 (make-text-button (match-beginning 1) (match-end 1)
395 'xref (match-string-no-properties 1) 395 'xref (match-string-no-properties 1)
396 'help-echo "Read this files commentary" 396 'help-echo "Read this file's commentary"
397 :type 'finder-xref))) 397 :type 'finder-xref)))
398 (goto-char (point-min)) 398 (goto-char (point-min))
399 (setq buffer-read-only t) 399 (setq buffer-read-only t)
diff --git a/lisp/font-lock.el b/lisp/font-lock.el
index b74b60341bd..cec95bf259c 100644
--- a/lisp/font-lock.el
+++ b/lisp/font-lock.el
@@ -538,12 +538,13 @@ and what they do:
538 dollar-sign character. Hash characters in other contexts will still 538 dollar-sign character. Hash characters in other contexts will still
539 follow whatever the syntax table says about the hash character. 539 follow whatever the syntax table says about the hash character.
540 540
541 (\"\\\\('\\\\).\\\\('\\\\)\" 541 (\"\\\\(\\='\\\\).\\\\(\\='\\\\)\"
542 (1 \"\\\"\") 542 (1 \"\\\"\")
543 (2 \"\\\"\")) 543 (2 \"\\\"\"))
544 544
545 gives a pair single-quotes, which surround a single character, a SYNTAX of 545 gives a pair of apostrophes, which surround a single character, a
546 \"\\\"\" (meaning string quote syntax). Single-quote characters in other 546 SYNTAX of \"\\\"\" (meaning string quote syntax). Apostrophes in other
547
547 contexts will not be affected. 548 contexts will not be affected.
548 549
549This is normally set via `font-lock-defaults'.") 550This is normally set via `font-lock-defaults'.")
@@ -1051,7 +1052,7 @@ The region it returns may start or end in the middle of a line.")
1051 ;; Of course, this function doesn't do all of the above in all situations 1052 ;; Of course, this function doesn't do all of the above in all situations
1052 ;; (e.g. depending on whether jit-lock is in use) and it can't guess what 1053 ;; (e.g. depending on whether jit-lock is in use) and it can't guess what
1053 ;; the caller wants. 1054 ;; the caller wants.
1054 (interactive-only "use font-lock-ensure or font-lock-flush instead.")) 1055 (interactive-only "use `font-lock-ensure' or `font-lock-flush' instead."))
1055 (interactive "p") 1056 (interactive "p")
1056 (font-lock-set-defaults) 1057 (font-lock-set-defaults)
1057 (let ((font-lock-verbose (or font-lock-verbose interactively))) 1058 (let ((font-lock-verbose (or font-lock-verbose interactively)))
diff --git a/lisp/format.el b/lisp/format.el
index 7ab68c8a04e..dbc814e5b01 100644
--- a/lisp/format.el
+++ b/lisp/format.el
@@ -395,7 +395,7 @@ unless you supply a prefix argument."
395 (cdr (assq 'default-directory 395 (cdr (assq 'default-directory
396 (buffer-local-variables))) 396 (buffer-local-variables)))
397 nil nil (buffer-name)))) 397 nil nil (buffer-name))))
398 (fmt (format-read (format-message "Write file %s in format: " 398 (fmt (format-read (format-message "Write file `%s' in format: "
399 (file-name-nondirectory file))))) 399 (file-name-nondirectory file)))))
400 (list file fmt (not current-prefix-arg)))) 400 (list file fmt (not current-prefix-arg))))
401 (let ((old-formats buffer-file-format) 401 (let ((old-formats buffer-file-format)
@@ -416,7 +416,7 @@ If FORMAT is nil then do not do any format conversion."
416 (interactive 416 (interactive
417 ;; Same interactive spec as write-file, plus format question. 417 ;; Same interactive spec as write-file, plus format question.
418 (let* ((file (read-file-name "Find file: ")) 418 (let* ((file (read-file-name "Find file: "))
419 (fmt (format-read (format-message "Read file %s in format: " 419 (fmt (format-read (format-message "Read file `%s' in format: "
420 (file-name-nondirectory file))))) 420 (file-name-nondirectory file)))))
421 (list file fmt))) 421 (list file fmt)))
422 (let ((format-alist nil)) 422 (let ((format-alist nil))
@@ -435,7 +435,7 @@ a list (ABSOLUTE-FILE-NAME SIZE)."
435 (interactive 435 (interactive
436 ;; Same interactive spec as write-file, plus format question. 436 ;; Same interactive spec as write-file, plus format question.
437 (let* ((file (read-file-name "Find file: ")) 437 (let* ((file (read-file-name "Find file: "))
438 (fmt (format-read (format-message "Read file %s in format: " 438 (fmt (format-read (format-message "Read file `%s' in format: "
439 (file-name-nondirectory file))))) 439 (file-name-nondirectory file)))))
440 (list file fmt))) 440 (list file fmt)))
441 (let (value size old-undo) 441 (let (value size old-undo)
diff --git a/lisp/frame.el b/lisp/frame.el
index 3abb72cb859..bbf0a63c057 100644
--- a/lisp/frame.el
+++ b/lisp/frame.el
@@ -743,7 +743,7 @@ the name of an X display device (HOST.SERVER.SCREEN) or a tty device file."
743 (frame-terminal f))) 743 (frame-terminal f)))
744 ((terminal-live-p device) device) 744 ((terminal-live-p device) device)
745 (t 745 (t
746 (error "Invalid argument %s in get-device-terminal" device)))) 746 (error "Invalid argument %s in `get-device-terminal'" device))))
747 747
748(defun frames-on-display-list (&optional device) 748(defun frames-on-display-list (&optional device)
749 "Return a list of all frames on DEVICE. 749 "Return a list of all frames on DEVICE.
@@ -894,7 +894,7 @@ If there is no frame by that name, signal an error."
894 (frame (cdr (assoc name frame-names-alist)))) 894 (frame (cdr (assoc name frame-names-alist))))
895 (if frame 895 (if frame
896 (select-frame-set-input-focus frame) 896 (select-frame-set-input-focus frame)
897 (error "There is no frame named %s" name)))) 897 (error "There is no frame named `%s'" name))))
898 898
899 899
900;;;; Background mode. 900;;;; Background mode.
diff --git a/lisp/fringe.el b/lisp/fringe.el
index f982b3557e6..8f40c46c3d3 100644
--- a/lisp/fringe.el
+++ b/lisp/fringe.el
@@ -122,7 +122,7 @@ See `fringe-mode' for possible values and their effect."
122 (and (consp style) 122 (and (consp style)
123 (or (null (car style)) (integerp (car style))) 123 (or (null (car style)) (integerp (car style)))
124 (or (null (cdr style)) (integerp (cdr style)))) 124 (or (null (cdr style)) (integerp (cdr style))))
125 (error "Invalid fringe style %s" style))) 125 (error "Invalid fringe style `%s'" style)))
126 126
127;; For initialization of fringe-mode, take account of changes 127;; For initialization of fringe-mode, take account of changes
128;; made explicitly to default-frame-alist. 128;; made explicitly to default-frame-alist.
diff --git a/lisp/gnus/gmm-utils.el b/lisp/gnus/gmm-utils.el
index 325623139fe..ab22ab8b88a 100644
--- a/lisp/gnus/gmm-utils.el
+++ b/lisp/gnus/gmm-utils.el
@@ -328,7 +328,7 @@ compatibility with versions of Emacs that lack the variable
328 328
329 (let* ((load-path (image-load-path-for-library \"mh-e\" \"mh-logo.xpm\")) 329 (let* ((load-path (image-load-path-for-library \"mh-e\" \"mh-logo.xpm\"))
330 (image-load-path (cons (car load-path) 330 (image-load-path (cons (car load-path)
331 (when (boundp 'image-load-path) 331 (when (boundp \\='image-load-path)
332 image-load-path)))) 332 image-load-path))))
333 (mh-tool-bar-folder-buttons-init))" 333 (mh-tool-bar-folder-buttons-init))"
334 (unless library (error "No library specified")) 334 (unless library (error "No library specified"))
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el
index 01eb6c5cd48..8ad81c9fc3e 100644
--- a/lisp/gnus/gnus-art.el
+++ b/lisp/gnus/gnus-art.el
@@ -195,16 +195,16 @@ this list."
195 "Headers that are only to be displayed if they have interesting data. 195 "Headers that are only to be displayed if they have interesting data.
196Possible values in this list are: 196Possible values in this list are:
197 197
198 'empty Headers with no content. 198 `empty' Headers with no content.
199 'newsgroups Newsgroup identical to Gnus group. 199 `newsgroups' Newsgroup identical to Gnus group.
200 'to-address To identical to To-address. 200 `to-address' To identical to To-address.
201 'to-list To identical to To-list. 201 `to-list' To identical to To-list.
202 'cc-list CC identical to To-list. 202 `cc-list' CC identical to To-list.
203 'followup-to Followup-to identical to Newsgroups. 203 `followup-to' Followup-to identical to Newsgroups.
204 'reply-to Reply-to identical to From. 204 `reply-to' Reply-to identical to From.
205 'date Date less than four days old. 205 `date' Date less than four days old.
206 'long-to To and/or Cc longer than 1024 characters. 206 `long-to' To and/or Cc longer than 1024 characters.
207 'many-to Multiple To and/or Cc." 207 `many-to' Multiple To and/or Cc."
208 :type '(set (const :tag "Headers with no content." empty) 208 :type '(set (const :tag "Headers with no content." empty)
209 (const :tag "Newsgroups identical to Gnus group." newsgroups) 209 (const :tag "Newsgroups identical to Gnus group." newsgroups)
210 (const :tag "To identical to To-address." to-address) 210 (const :tag "To identical to To-address." to-address)
@@ -661,7 +661,7 @@ For instance, if you would like to save articles related to Gnus in
661the file \"gnus-stuff\", and articles related to VM in \"vm-stuff\", 661the file \"gnus-stuff\", and articles related to VM in \"vm-stuff\",
662you could set this variable to something like: 662you could set this variable to something like:
663 663
664 '((\"^Subject:.*gnus\\|^Newsgroups:.*gnus\" \"gnus-stuff\") 664 ((\"^Subject:.*gnus\\|^Newsgroups:.*gnus\" \"gnus-stuff\")
665 (\"^Subject:.*vm\\|^Xref:.*vm\" \"vm-stuff\")) 665 (\"^Subject:.*vm\\|^Xref:.*vm\" \"vm-stuff\"))
666 666
667This variable is an alist where the key is the match and the 667This variable is an alist where the key is the match and the
diff --git a/lisp/gnus/gnus-registry.el b/lisp/gnus/gnus-registry.el
index b233ad71868..23c79cbdb15 100644
--- a/lisp/gnus/gnus-registry.el
+++ b/lisp/gnus/gnus-registry.el
@@ -194,17 +194,17 @@ are tracked this way by default."
194 "The splitting strategy applied to the keys in `gnus-registry-track-extra'. 194 "The splitting strategy applied to the keys in `gnus-registry-track-extra'.
195 195
196Given a set of unique found groups G and counts for each element 196Given a set of unique found groups G and counts for each element
197of G, and a key K (typically 'sender or 'subject): 197of G, and a key K (typically `sender' or `subject'):
198 198
199When nil, if G has only one element, use it. Otherwise give up. 199When nil, if G has only one element, use it. Otherwise give up.
200This is the fastest but also least useful strategy. 200This is the fastest but also least useful strategy.
201 201
202When 'majority, use the majority by count. So if there is a 202When `majority', use the majority by count. So if there is a
203group with the most articles counted by K, use that. Ties are 203group with the most articles counted by K, use that. Ties are
204resolved in no particular order, simply the first one found wins. 204resolved in no particular order, simply the first one found wins.
205This is the slowest strategy but also the most accurate one. 205This is the slowest strategy but also the most accurate one.
206 206
207When 'first, the first element of G wins. This is fast and 207When `first', the first element of G wins. This is fast and
208should be OK if your senders and subjects don't \"bleed\" across 208should be OK if your senders and subjects don't \"bleed\" across
209groups." 209groups."
210 :group 'gnus-registry 210 :group 'gnus-registry
diff --git a/lisp/gnus/gnus-start.el b/lisp/gnus/gnus-start.el
index 82a2c987dbb..e267b6ae30c 100644
--- a/lisp/gnus/gnus-start.el
+++ b/lisp/gnus/gnus-start.el
@@ -122,9 +122,10 @@ This variable can be a list of select methods which Gnus will query with
122the `ask-server' method in addition to the primary, secondary, and archive 122the `ask-server' method in addition to the primary, secondary, and archive
123servers. 123servers.
124 124
125
125E.g.: 126E.g.:
126 (setq gnus-check-new-newsgroups 127 (setq gnus-check-new-newsgroups
127 '((nntp \"some.server\") (nntp \"other.server\"))) 128 \\='((nntp \"some.server\") (nntp \"other.server\")))
128 129
129If this variable is nil, then you have to tell Gnus explicitly to 130If this variable is nil, then you have to tell Gnus explicitly to
130check for new newsgroups with \\<gnus-group-mode-map>\\[gnus-find-new-newsgroups]." 131check for new newsgroups with \\<gnus-group-mode-map>\\[gnus-find-new-newsgroups]."
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el
index 6b90204beb6..d4ca6555b66 100644
--- a/lisp/gnus/gnus-sum.el
+++ b/lisp/gnus/gnus-sum.el
@@ -997,7 +997,7 @@ following hook:
997 (mail-header-set-subject 997 (mail-header-set-subject
998 header 998 header
999 (gnus-simplify-subject 999 (gnus-simplify-subject
1000 (mail-header-subject header) 're-only))) 1000 (mail-header-subject header) \\='re-only)))
1001 gnus-newsgroup-headers)))" 1001 gnus-newsgroup-headers)))"
1002 :group 'gnus-group-select 1002 :group 'gnus-group-select
1003 :type 'hook) 1003 :type 'hook)
diff --git a/lisp/gnus/gnus-uu.el b/lisp/gnus/gnus-uu.el
index 881ff4ee1ba..f2164665529 100644
--- a/lisp/gnus/gnus-uu.el
+++ b/lisp/gnus/gnus-uu.el
@@ -143,7 +143,7 @@ details."
143To use, for instance, `untar' to unpack tar files and `zip -x' to 143To use, for instance, `untar' to unpack tar files and `zip -x' to
144unpack zip files, say the following: 144unpack zip files, say the following:
145 (setq gnus-uu-user-archive-rules 145 (setq gnus-uu-user-archive-rules
146 '((\"\\\\.tar$\" \"untar\") 146 \\='((\"\\\\.tar$\" \"untar\")
147 (\"\\\\.zip$\" \"zip -x\")))" 147 (\"\\\\.zip$\" \"zip -x\")))"
148 :group 'gnus-extract-archive 148 :group 'gnus-extract-archive
149 :type '(repeat (group regexp (string :tag "Command")))) 149 :type '(repeat (group regexp (string :tag "Command"))))
diff --git a/lisp/gnus/gnus.el b/lisp/gnus/gnus.el
index 6362d9a951b..ea26216faca 100644
--- a/lisp/gnus/gnus.el
+++ b/lisp/gnus/gnus.el
@@ -1362,7 +1362,7 @@ If you want to save your mail in one group and the news articles you
1362write in another group, you could say something like: 1362write in another group, you could say something like:
1363 1363
1364 \(setq gnus-message-archive-group 1364 \(setq gnus-message-archive-group
1365 '((if (message-news-p) 1365 \\='((if (message-news-p)
1366 \"misc-news\" 1366 \"misc-news\"
1367 \"misc-mail\"))) 1367 \"misc-mail\")))
1368 1368
@@ -2396,7 +2396,7 @@ less space and be faster as a result.
2396This variable can also be a list of visual elements to switch on. For 2396This variable can also be a list of visual elements to switch on. For
2397instance, to switch off all visual things except menus, you can say: 2397instance, to switch off all visual things except menus, you can say:
2398 2398
2399 (setq gnus-visual '(menu)) 2399 (setq gnus-visual \\='(menu))
2400 2400
2401Valid elements include `summary-highlight', `group-highlight', 2401Valid elements include `summary-highlight', `group-highlight',
2402`article-highlight', `mouse-face', `summary-menu', `group-menu', 2402`article-highlight', `mouse-face', `summary-menu', `group-menu',
diff --git a/lisp/gnus/mail-source.el b/lisp/gnus/mail-source.el
index ad135d4c2ed..cf18fbea17d 100644
--- a/lisp/gnus/mail-source.el
+++ b/lisp/gnus/mail-source.el
@@ -1090,10 +1090,13 @@ This only works when `display-time' is enabled."
1090 (if (and (imap-open server port stream authentication buf) 1090 (if (and (imap-open server port stream authentication buf)
1091 (imap-authenticate 1091 (imap-authenticate
1092 user (or (cdr (assoc from mail-source-password-cache)) 1092 user (or (cdr (assoc from mail-source-password-cache))
1093 password) buf) 1093 password) buf))
1094 (imap-mailbox-select mailbox nil buf)) 1094 (let ((mailbox-list (if (listp mailbox) mailbox (list mailbox))))
1095 (dolist (mailbox mailbox-list)
1096 (when (imap-mailbox-select mailbox nil buf)
1095 (let ((coding-system-for-write mail-source-imap-file-coding-system) 1097 (let ((coding-system-for-write mail-source-imap-file-coding-system)
1096 str) 1098 str)
1099 (message "Fetching from %s..." mailbox)
1097 (with-temp-file mail-source-crash-box 1100 (with-temp-file mail-source-crash-box
1098 ;; Avoid converting 8-bit chars from inserted strings to 1101 ;; Avoid converting 8-bit chars from inserted strings to
1099 ;; multibyte. 1102 ;; multibyte.
@@ -1128,8 +1131,8 @@ This only works when `display-time' is enabled."
1128 fetchflag nil buf)) 1131 fetchflag nil buf))
1129 (if dontexpunge 1132 (if dontexpunge
1130 (imap-mailbox-unselect buf) 1133 (imap-mailbox-unselect buf)
1131 (imap-mailbox-close nil buf)) 1134 (imap-mailbox-close nil buf)))))
1132 (imap-close buf)) 1135 (imap-close buf))
1133 (imap-close buf) 1136 (imap-close buf)
1134 ;; We nix out the password in case the error 1137 ;; We nix out the password in case the error
1135 ;; was because of a wrong password being given. 1138 ;; was because of a wrong password being given.
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el
index 0f6f63ea37d..5ede15b0538 100644
--- a/lisp/gnus/message.el
+++ b/lisp/gnus/message.el
@@ -1131,7 +1131,7 @@ Presets to impersonate popular mail agents are found in the
1131message-cite-style-* variables. This variable is intended for 1131message-cite-style-* variables. This variable is intended for
1132use in `gnus-posting-styles', such as: 1132use in `gnus-posting-styles', such as:
1133 1133
1134 ((posting-from-work-p) (eval (set (make-local-variable 'message-cite-style) message-cite-style-outlook)))" 1134 ((posting-from-work-p) (eval (set (make-local-variable \\='message-cite-style) message-cite-style-outlook)))"
1135 :version "24.1" 1135 :version "24.1"
1136 :group 'message-insertion 1136 :group 'message-insertion
1137 :type '(choice (const :tag "Do not override variables" :value nil) 1137 :type '(choice (const :tag "Do not override variables" :value nil)
diff --git a/lisp/gnus/nnimap.el b/lisp/gnus/nnimap.el
index 20ba0a310f8..ac228f9c04e 100644
--- a/lisp/gnus/nnimap.el
+++ b/lisp/gnus/nnimap.el
@@ -807,6 +807,7 @@ textual parts.")
807 nil 807 nil
808 group) 808 group)
809 server)) 809 server))
810 (info (when info (list info)))
810 active) 811 active)
811 (with-current-buffer nntp-server-buffer 812 (with-current-buffer nntp-server-buffer
812 (when result 813 (when result
@@ -814,10 +815,11 @@ textual parts.")
814 (not (setq active 815 (not (setq active
815 (nth 2 (assoc group nnimap-current-infos))))) 816 (nth 2 (assoc group nnimap-current-infos)))))
816 (let ((sequences (nnimap-retrieve-group-data-early 817 (let ((sequences (nnimap-retrieve-group-data-early
817 server (list info)))) 818 server info)))
818 (nnimap-finish-retrieve-group-infos server (list info) sequences 819 (nnimap-finish-retrieve-group-infos server info sequences
819 t) 820 t)
820 (setq active (nth 2 (assoc group nnimap-current-infos))))) 821 (setq active (nth 2 (assoc group nnimap-current-infos)))))
822 (setq active (or active '(0 . 1)))
821 (erase-buffer) 823 (erase-buffer)
822 (insert (format "211 %d %d %d %S\n" 824 (insert (format "211 %d %d %d %S\n"
823 (- (cdr active) (car active)) 825 (- (cdr active) (car active))
diff --git a/lisp/gnus/nnir.el b/lisp/gnus/nnir.el
index 15ccc4725d7..9784f1bd879 100644
--- a/lisp/gnus/nnir.el
+++ b/lisp/gnus/nnir.el
@@ -350,10 +350,10 @@ result, `gnus-retrieve-headers' will be called instead."
350(defcustom nnir-swish++-additional-switches '() 350(defcustom nnir-swish++-additional-switches '()
351 "*A list of strings, to be given as additional arguments to swish++. 351 "*A list of strings, to be given as additional arguments to swish++.
352 352
353Note that this should be a list. Ie, do NOT use the following: 353Note that this should be a list. I.e., do NOT use the following:
354 (setq nnir-swish++-additional-switches \"-i -w\") ; wrong 354 (setq nnir-swish++-additional-switches \"-i -w\") ; wrong
355Instead, use this: 355Instead, use this:
356 (setq nnir-swish++-additional-switches '(\"-i\" \"-w\"))" 356 (setq nnir-swish++-additional-switches \\='(\"-i\" \"-w\"))"
357 :type '(repeat (string)) 357 :type '(repeat (string))
358 :group 'nnir) 358 :group 'nnir)
359 359
@@ -399,10 +399,10 @@ This cannot be a server parameter."
399(defcustom nnir-swish-e-additional-switches '() 399(defcustom nnir-swish-e-additional-switches '()
400 "*A list of strings, to be given as additional arguments to swish-e. 400 "*A list of strings, to be given as additional arguments to swish-e.
401 401
402Note that this should be a list. Ie, do NOT use the following: 402Note that this should be a list. I.e., do NOT use the following:
403 (setq nnir-swish-e-additional-switches \"-i -w\") ; wrong 403 (setq nnir-swish-e-additional-switches \"-i -w\") ; wrong
404Instead, use this: 404Instead, use this:
405 (setq nnir-swish-e-additional-switches '(\"-i\" \"-w\")) 405 (setq nnir-swish-e-additional-switches \\='(\"-i\" \"-w\"))
406 406
407This could be a server parameter." 407This could be a server parameter."
408 :type '(repeat (string)) 408 :type '(repeat (string))
@@ -429,10 +429,10 @@ This could be a server parameter."
429 429
430(defcustom nnir-hyrex-additional-switches '() 430(defcustom nnir-hyrex-additional-switches '()
431 "*A list of strings, to be given as additional arguments for nnir-search. 431 "*A list of strings, to be given as additional arguments for nnir-search.
432Note that this should be a list. Ie, do NOT use the following: 432Note that this should be a list. I.e., do NOT use the following:
433 (setq nnir-hyrex-additional-switches \"-ddl ddl.xml -c nnir\") ; wrong ! 433 (setq nnir-hyrex-additional-switches \"-ddl ddl.xml -c nnir\") ; wrong !
434Instead, use this: 434Instead, use this:
435 (setq nnir-hyrex-additional-switches '(\"-ddl\" \"ddl.xml\" \"-c\" \"nnir\"))" 435 (setq nnir-hyrex-additional-switches \\='(\"-ddl\" \"ddl.xml\" \"-c\" \"nnir\"))"
436 :type '(repeat (string)) 436 :type '(repeat (string))
437 :group 'nnir) 437 :group 'nnir)
438 438
@@ -471,10 +471,10 @@ arrive at the correct group name, \"mail.misc\"."
471The switches `-q', `-a', and `-s' are always used, very few other switches 471The switches `-q', `-a', and `-s' are always used, very few other switches
472make any sense in this context. 472make any sense in this context.
473 473
474Note that this should be a list. Ie, do NOT use the following: 474Note that this should be a list. I.e., do NOT use the following:
475 (setq nnir-namazu-additional-switches \"-i -w\") ; wrong 475 (setq nnir-namazu-additional-switches \"-i -w\") ; wrong
476Instead, use this: 476Instead, use this:
477 (setq nnir-namazu-additional-switches '(\"-i\" \"-w\"))" 477 (setq nnir-namazu-additional-switches \\='(\"-i\" \"-w\"))"
478 :type '(repeat (string)) 478 :type '(repeat (string))
479 :group 'nnir) 479 :group 'nnir)
480 480
@@ -500,10 +500,10 @@ arrive at the correct group name, \"mail.misc\"."
500(defcustom nnir-notmuch-additional-switches '() 500(defcustom nnir-notmuch-additional-switches '()
501 "*A list of strings, to be given as additional arguments to notmuch. 501 "*A list of strings, to be given as additional arguments to notmuch.
502 502
503Note that this should be a list. Ie, do NOT use the following: 503Note that this should be a list. I.e., do NOT use the following:
504 (setq nnir-notmuch-additional-switches \"-i -w\") ; wrong 504 (setq nnir-notmuch-additional-switches \"-i -w\") ; wrong
505Instead, use this: 505Instead, use this:
506 (setq nnir-notmuch-additional-switches '(\"-i\" \"-w\"))" 506 (setq nnir-notmuch-additional-switches \\='(\"-i\" \"-w\"))"
507 :version "24.1" 507 :version "24.1"
508 :type '(repeat (string)) 508 :type '(repeat (string))
509 :group 'nnir) 509 :group 'nnir)
diff --git a/lisp/gnus/nnmail.el b/lisp/gnus/nnmail.el
index 681116017ba..7efb1543815 100644
--- a/lisp/gnus/nnmail.el
+++ b/lisp/gnus/nnmail.el
@@ -83,7 +83,7 @@ If you'd like, for instance, one mail group for mail from the
83else, you could do something like this: 83else, you could do something like this:
84 84
85 (setq nnmail-split-methods 85 (setq nnmail-split-methods
86 '((\"mail.4ad\" \"From:.*4ad\") 86 \\='((\"mail.4ad\" \"From:.*4ad\")
87 (\"mail.junk\" \"From:.*Lars\\\\|Subject:.*buy\") 87 (\"mail.junk\" \"From:.*Lars\\\\|Subject:.*buy\")
88 (\"mail.misc\" \"\"))) 88 (\"mail.misc\" \"\")))
89 89
@@ -180,7 +180,7 @@ E.g.:
180 (lambda (newsgroup) 180 (lambda (newsgroup)
181 (cond ((string-match \"private\" newsgroup) 31) 181 (cond ((string-match \"private\" newsgroup) 31)
182 ((string-match \"junk\" newsgroup) 1) 182 ((string-match \"junk\" newsgroup) 1)
183 ((string-match \"important\" newsgroup) 'never) 183 ((string-match \"important\" newsgroup) \\='never)
184 (t 7))))" 184 (t 7))))"
185 :group 'nnmail-expire 185 :group 'nnmail-expire
186 :type '(choice (const :tag "nnmail-expiry-wait" nil) 186 :type '(choice (const :tag "nnmail-expiry-wait" nil)
diff --git a/lisp/gnus/nnmairix.el b/lisp/gnus/nnmairix.el
index e34b708a29c..ccfc5996e79 100644
--- a/lisp/gnus/nnmairix.el
+++ b/lisp/gnus/nnmairix.el
@@ -1943,7 +1943,9 @@ Fill in VALUES if based on an article."
1943 (kill-all-local-variables) 1943 (kill-all-local-variables)
1944 (erase-buffer) 1944 (erase-buffer)
1945 (widget-insert "Specify your query for Mairix (check boxes for activating fields):\n\n") 1945 (widget-insert "Specify your query for Mairix (check boxes for activating fields):\n\n")
1946 (widget-insert "(Whitespaces will be converted to ‘,’ (i.e. AND). Use ‘/’ for OR.)\n\n") 1946 (widget-insert
1947 (substitute-command-keys
1948 "(Whitespaces will be converted to `,' (i.e. AND). Use `/' for OR.)\n\n"))
1947; (make-local-variable 'nnmairix-widgets) 1949; (make-local-variable 'nnmairix-widgets)
1948 (setq nnmairix-widgets (nnmairix-widget-build-editable-fields values)) 1950 (setq nnmairix-widgets (nnmairix-widget-build-editable-fields values))
1949 (when (member 'flags nnmairix-widget-other) 1951 (when (member 'flags nnmairix-widget-other)
diff --git a/lisp/gnus/nntp.el b/lisp/gnus/nntp.el
index 8d09781cd79..6c97cecdcdb 100644
--- a/lisp/gnus/nntp.el
+++ b/lisp/gnus/nntp.el
@@ -72,7 +72,7 @@ For instance, if you want Gnus to beep every time you connect
72to innd, you could say something like: 72to innd, you could say something like:
73 73
74\(setq nntp-server-action-alist 74\(setq nntp-server-action-alist
75 '((\"innd\" (ding)))) 75 \\='((\"innd\" (ding))))
76 76
77You probably don't want to do that, though.") 77You probably don't want to do that, though.")
78 78
diff --git a/lisp/help-fns.el b/lisp/help-fns.el
index a1d121c457f..77ef21d4af1 100644
--- a/lisp/help-fns.el
+++ b/lisp/help-fns.el
@@ -319,7 +319,7 @@ suitable file is found, return nil."
319 (when remapped 319 (when remapped
320 (princ "Its keys are remapped to ") 320 (princ "Its keys are remapped to ")
321 (princ (if (symbolp remapped) 321 (princ (if (symbolp remapped)
322 (format-message "%s" remapped) 322 (format-message "`%s'" remapped)
323 "an anonymous command")) 323 "an anonymous command"))
324 (princ ".\n")) 324 (princ ".\n"))
325 325
@@ -353,22 +353,22 @@ suitable file is found, return nil."
353 (insert "\nThis function has a compiler macro") 353 (insert "\nThis function has a compiler macro")
354 (if (symbolp handler) 354 (if (symbolp handler)
355 (progn 355 (progn
356 (insert (format-message " %s" handler)) 356 (insert (format-message " `%s'" handler))
357 (save-excursion 357 (save-excursion
358 (re-search-backward (substitute-command-keys "\\([^‘’]+\\)") 358 (re-search-backward (substitute-command-keys "`\\([^`']+\\)'")
359 nil t) 359 nil t)
360 (help-xref-button 1 'help-function handler))) 360 (help-xref-button 1 'help-function handler)))
361 ;; FIXME: Obsolete since 24.4. 361 ;; FIXME: Obsolete since 24.4.
362 (let ((lib (get function 'compiler-macro-file))) 362 (let ((lib (get function 'compiler-macro-file)))
363 (when (stringp lib) 363 (when (stringp lib)
364 (insert (format-message " in %s" lib)) 364 (insert (format-message " in `%s'" lib))
365 (save-excursion 365 (save-excursion
366 (re-search-backward (substitute-command-keys "\\([^‘’]+\\)") 366 (re-search-backward (substitute-command-keys "`\\([^`']+\\)'")
367 nil t) 367 nil t)
368 (help-xref-button 1 'help-function-cmacro function lib))))) 368 (help-xref-button 1 'help-function-cmacro function lib)))))
369 (insert ".\n")))) 369 (insert ".\n"))))
370 370
371(defun help-fns--signature (function doc real-def real-function raw) 371(defun help-fns--signature (function doc real-def real-function buffer)
372 "Insert usage at point and return docstring. With highlighting." 372 "Insert usage at point and return docstring. With highlighting."
373 (if (keymapp function) 373 (if (keymapp function)
374 doc ; If definition is a keymap, skip arglist note. 374 doc ; If definition is a keymap, skip arglist note.
@@ -402,10 +402,13 @@ suitable file is found, return nil."
402 (use1 (replace-regexp-in-string 402 (use1 (replace-regexp-in-string
403 "\\`(\\\\=\\\\\\\\=` \\([^\n ]*\\))\\'" 403 "\\`(\\\\=\\\\\\\\=` \\([^\n ]*\\))\\'"
404 "\\\\=`\\1" use t)) 404 "\\\\=`\\1" use t))
405 (high (if raw 405 (high (if buffer
406 (cons use1 doc) 406 (let (subst-use1 subst-doc)
407 (help-highlight-arguments (substitute-command-keys use1) 407 (with-current-buffer buffer
408 (substitute-command-keys doc))))) 408 (setq subst-use1 (substitute-command-keys use1))
409 (setq subst-doc (substitute-command-keys doc)))
410 (help-highlight-arguments subst-use1 subst-doc))
411 (cons use1 doc))))
409 (let ((fill-begin (point)) 412 (let ((fill-begin (point))
410 (high-usage (car high)) 413 (high-usage (car high))
411 (high-doc (cdr high))) 414 (high-doc (cdr high)))
@@ -419,13 +422,13 @@ suitable file is found, return nil."
419 (get function 422 (get function
420 'derived-mode-parent)))) 423 'derived-mode-parent))))
421 (when parent-mode 424 (when parent-mode
422 (insert (substitute-command-keys "\nParent mode: ")) 425 (insert (substitute-command-keys "\nParent mode: `"))
423 (let ((beg (point))) 426 (let ((beg (point)))
424 (insert (format "%s" parent-mode)) 427 (insert (format "%s" parent-mode))
425 (make-text-button beg (point) 428 (make-text-button beg (point)
426 'type 'help-function 429 'type 'help-function
427 'help-args (list parent-mode))) 430 'help-args (list parent-mode)))
428 (insert (substitute-command-keys ".\n"))))) 431 (insert (substitute-command-keys "'.\n")))))
429 432
430(defun help-fns--obsolete (function) 433(defun help-fns--obsolete (function)
431 ;; Ignore lambda constructs, keyboard macros, etc. 434 ;; Ignore lambda constructs, keyboard macros, etc.
@@ -441,7 +444,7 @@ suitable file is found, return nil."
441 (when (nth 2 obsolete) 444 (when (nth 2 obsolete)
442 (insert (format " since %s" (nth 2 obsolete)))) 445 (insert (format " since %s" (nth 2 obsolete))))
443 (insert (cond ((stringp use) (concat ";\n" use)) 446 (insert (cond ((stringp use) (concat ";\n" use))
444 (use (format-message ";\nuse %s instead." use)) 447 (use (format-message ";\nuse `%s' instead." use))
445 (t ".")) 448 (t "."))
446 "\n")))) 449 "\n"))))
447 450
@@ -477,7 +480,7 @@ FILE is the file where FUNCTION was probably defined."
477 (format ";\nin Lisp code %s" interactive-only)) 480 (format ";\nin Lisp code %s" interactive-only))
478 ((and (symbolp 'interactive-only) 481 ((and (symbolp 'interactive-only)
479 (not (eq interactive-only t))) 482 (not (eq interactive-only t)))
480 (format-message ";\nin Lisp code use %s instead." 483 (format-message ";\nin Lisp code use `%s' instead."
481 interactive-only)) 484 interactive-only))
482 (t ".")) 485 (t "."))
483 "\n"))))) 486 "\n")))))
@@ -546,7 +549,7 @@ FILE is the file where FUNCTION was probably defined."
546 ;; Aliases are Lisp functions, so we need to check 549 ;; Aliases are Lisp functions, so we need to check
547 ;; aliases before functions. 550 ;; aliases before functions.
548 (aliased 551 (aliased
549 (format-message "an alias for %s" real-def)) 552 (format-message "an alias for `%s'" real-def))
550 ((autoloadp def) 553 ((autoloadp def)
551 (format "%s autoloaded %s" 554 (format "%s autoloaded %s"
552 (if (commandp def) "an interactive" "an") 555 (if (commandp def) "an interactive" "an")
@@ -581,21 +584,21 @@ FILE is the file where FUNCTION was probably defined."
581 (save-excursion 584 (save-excursion
582 (save-match-data 585 (save-match-data
583 (when (re-search-backward (substitute-command-keys 586 (when (re-search-backward (substitute-command-keys
584 "alias for \\([^‘’]+\\)") 587 "alias for `\\([^`']+\\)'")
585 nil t) 588 nil t)
586 (help-xref-button 1 'help-function real-def))))) 589 (help-xref-button 1 'help-function real-def)))))
587 590
588 (when file-name 591 (when file-name
589 ;; We used to add .el to the file name, 592 ;; We used to add .el to the file name,
590 ;; but that's completely wrong when the user used load-file. 593 ;; but that's completely wrong when the user used load-file.
591 (princ (format-message " in %s" 594 (princ (format-message " in `%s'"
592 (if (eq file-name 'C-source) 595 (if (eq file-name 'C-source)
593 "C source code" 596 "C source code"
594 (help-fns-short-filename file-name)))) 597 (help-fns-short-filename file-name))))
595 ;; Make a hyperlink to the library. 598 ;; Make a hyperlink to the library.
596 (with-current-buffer standard-output 599 (with-current-buffer standard-output
597 (save-excursion 600 (save-excursion
598 (re-search-backward (substitute-command-keys "\\([^‘’]+\\)") 601 (re-search-backward (substitute-command-keys "`\\([^`']+\\)'")
599 nil t) 602 nil t)
600 (help-xref-button 1 'help-function-def function file-name)))) 603 (help-xref-button 1 'help-function-def function file-name))))
601 (princ ".") 604 (princ ".")
@@ -604,7 +607,8 @@ FILE is the file where FUNCTION was probably defined."
604 (point))) 607 (point)))
605 (terpri)(terpri) 608 (terpri)(terpri)
606 609
607 (let ((doc-raw (documentation function t))) 610 (let ((doc-raw (documentation function t))
611 (key-bindings-buffer (current-buffer)))
608 612
609 ;; If the function is autoloaded, and its docstring has 613 ;; If the function is autoloaded, and its docstring has
610 ;; key substitution constructs, load the library. 614 ;; key substitution constructs, load the library.
@@ -615,11 +619,11 @@ FILE is the file where FUNCTION was probably defined."
615 619
616 (help-fns--key-bindings function) 620 (help-fns--key-bindings function)
617 (with-current-buffer standard-output 621 (with-current-buffer standard-output
618 (let ((doc (help-fns--signature function doc-raw sig-key 622 (let ((doc (help-fns--signature function doc-raw sig-key
619 real-function nil))) 623 real-function key-bindings-buffer)))
620 (run-hook-with-args 'help-fns-describe-function-functions function) 624 (run-hook-with-args 'help-fns-describe-function-functions function)
621 (insert "\n" 625 (insert "\n"
622 (or doc "Not documented.")))))))) 626 (or doc "Not documented."))))))))
623 627
624;; Add defaults to `help-fns-describe-function-functions'. 628;; Add defaults to `help-fns-describe-function-functions'.
625(add-hook 'help-fns-describe-function-functions #'help-fns--obsolete) 629(add-hook 'help-fns-describe-function-functions #'help-fns--obsolete)
@@ -730,14 +734,14 @@ it is displayed along with the global value."
730 (if file-name 734 (if file-name
731 (progn 735 (progn
732 (princ (format-message 736 (princ (format-message
733 " is a variable defined in %s.\n" 737 " is a variable defined in `%s'.\n"
734 (if (eq file-name 'C-source) 738 (if (eq file-name 'C-source)
735 "C source code" 739 "C source code"
736 (file-name-nondirectory file-name)))) 740 (file-name-nondirectory file-name))))
737 (with-current-buffer standard-output 741 (with-current-buffer standard-output
738 (save-excursion 742 (save-excursion
739 (re-search-backward (substitute-command-keys 743 (re-search-backward (substitute-command-keys
740 "\\([^‘’]+\\)") 744 "`\\([^`']+\\)'")
741 nil t) 745 nil t)
742 (help-xref-button 1 'help-variable-def 746 (help-xref-button 1 'help-variable-def
743 variable file-name))) 747 variable file-name)))
@@ -746,7 +750,7 @@ it is displayed along with the global value."
746 (princ "Its "))) 750 (princ "Its ")))
747 (if valvoid 751 (if valvoid
748 (princ " is void as a variable.") 752 (princ " is void as a variable.")
749 (princ (substitute-command-keys "s "))))) 753 (princ (substitute-command-keys "'s ")))))
750 (unless valvoid 754 (unless valvoid
751 (with-current-buffer standard-output 755 (with-current-buffer standard-output
752 (setq val-start-pos (point)) 756 (setq val-start-pos (point))
@@ -872,7 +876,7 @@ if it is given a local binding.\n"))))
872 (unless (eq alias variable) 876 (unless (eq alias variable)
873 (setq extra-line t) 877 (setq extra-line t)
874 (princ (format-message 878 (princ (format-message
875 " This variable is an alias for %s.\n" 879 " This variable is an alias for `%s'.\n"
876 alias))) 880 alias)))
877 881
878 (when obsolete 882 (when obsolete
@@ -881,7 +885,7 @@ if it is given a local binding.\n"))))
881 (if (nth 2 obsolete) 885 (if (nth 2 obsolete)
882 (princ (format " since %s" (nth 2 obsolete)))) 886 (princ (format " since %s" (nth 2 obsolete))))
883 (princ (cond ((stringp use) (concat ";\n " use)) 887 (princ (cond ((stringp use) (concat ";\n " use))
884 (use (format-message ";\n use %s instead." 888 (use (format-message ";\n use `%s' instead."
885 (car obsolete))) 889 (car obsolete)))
886 (t "."))) 890 (t ".")))
887 (terpri)) 891 (terpri))
@@ -915,13 +919,13 @@ if it is given a local binding.\n"))))
915 dir-file nil))) 919 dir-file nil)))
916 (princ (substitute-command-keys 920 (princ (substitute-command-keys
917 (if dir-file 921 (if dir-file
918 "by the file\n " 922 "by the file\n `"
919 "for the directory\n "))) 923 "for the directory\n `")))
920 (with-current-buffer standard-output 924 (with-current-buffer standard-output
921 (insert-text-button 925 (insert-text-button
922 file 'type 'help-dir-local-var-def 926 file 'type 'help-dir-local-var-def
923 'help-args (list variable file))) 927 'help-args (list variable file)))
924 (princ (substitute-command-keys ".\n")))) 928 (princ (substitute-command-keys "'.\n"))))
925 (princ (substitute-command-keys 929 (princ (substitute-command-keys
926 " This variable's value is file-local.\n")))) 930 " This variable's value is file-local.\n"))))
927 931
@@ -938,7 +942,7 @@ file-local variable.\n")
938 (when (assq variable safe-local-variable-values) 942 (when (assq variable safe-local-variable-values)
939 (princ (substitute-command-keys 943 (princ (substitute-command-keys
940 " However, you have added it to \ 944 " However, you have added it to \
941safe-local-variable-values.\n")))) 945`safe-local-variable-values'.\n"))))
942 946
943 (when safe-var 947 (when safe-var
944 (setq extra-line t) 948 (setq extra-line t)
@@ -946,7 +950,7 @@ file-local variable.\n")
946 (princ "if its value\n satisfies the predicate ") 950 (princ "if its value\n satisfies the predicate ")
947 (princ (if (byte-code-function-p safe-var) 951 (princ (if (byte-code-function-p safe-var)
948 "which is a byte-compiled expression.\n" 952 "which is a byte-compiled expression.\n"
949 (format-message "%s.\n" safe-var)))) 953 (format-message "`%s'.\n" safe-var))))
950 954
951 (if extra-line (terpri)) 955 (if extra-line (terpri))
952 (princ "Documentation:\n") 956 (princ "Documentation:\n")
diff --git a/lisp/help.el b/lisp/help.el
index 2fcb52e2e25..66df6b08037 100644
--- a/lisp/help.el
+++ b/lisp/help.el
@@ -964,12 +964,12 @@ documentation for the major and minor modes of that buffer."
964 (let* ((mode major-mode) 964 (let* ((mode major-mode)
965 (file-name (find-lisp-object-file-name mode nil))) 965 (file-name (find-lisp-object-file-name mode nil)))
966 (when file-name 966 (when file-name
967 (princ (format-message " defined in %s" 967 (princ (format-message " defined in `%s'"
968 (file-name-nondirectory file-name))) 968 (file-name-nondirectory file-name)))
969 ;; Make a hyperlink to the library. 969 ;; Make a hyperlink to the library.
970 (with-current-buffer standard-output 970 (with-current-buffer standard-output
971 (save-excursion 971 (save-excursion
972 (re-search-backward (substitute-command-keys "\\([^‘’]+\\)") 972 (re-search-backward (substitute-command-keys "`\\([^`']+\\)'")
973 nil t) 973 nil t)
974 (help-xref-button 1 'help-function-def mode file-name))))) 974 (help-xref-button 1 'help-function-def mode file-name)))))
975 (princ ":\n") 975 (princ ":\n")
@@ -1041,7 +1041,7 @@ is currently activated with completion."
1041 (let ((minor-mode (lookup-minor-mode-from-indicator indicator))) 1041 (let ((minor-mode (lookup-minor-mode-from-indicator indicator)))
1042 (if minor-mode 1042 (if minor-mode
1043 (describe-minor-mode-from-symbol minor-mode) 1043 (describe-minor-mode-from-symbol minor-mode)
1044 (error "Cannot find minor mode for %s" indicator)))) 1044 (error "Cannot find minor mode for `%s'" indicator))))
1045 1045
1046(defun lookup-minor-mode-from-indicator (indicator) 1046(defun lookup-minor-mode-from-indicator (indicator)
1047 "Return a minor mode symbol from its indicator on the mode line." 1047 "Return a minor mode symbol from its indicator on the mode line."
@@ -1352,8 +1352,8 @@ the help window if the current value of the user option
1352 1352
1353(defun help--docstring-quote (string) 1353(defun help--docstring-quote (string)
1354 "Return a doc string that represents STRING. 1354 "Return a doc string that represents STRING.
1355The result, when formatted by substitute-command-keys, should equal STRING." 1355The result, when formatted by `substitute-command-keys', should equal STRING."
1356 (replace-regexp-in-string "['\\`]" "\\\\=\\&" string)) 1356 (replace-regexp-in-string "['\\`‘’]" "\\\\=\\&" string))
1357 1357
1358;; The following functions used to be in help-fns.el, which is not preloaded. 1358;; The following functions used to be in help-fns.el, which is not preloaded.
1359;; But for various reasons, they are more widely needed, so they were 1359;; But for various reasons, they are more widely needed, so they were
diff --git a/lisp/hi-lock.el b/lisp/hi-lock.el
index 0255585f532..89b1204ad11 100644
--- a/lisp/hi-lock.el
+++ b/lisp/hi-lock.el
@@ -362,7 +362,7 @@ Hi-lock: end is found. A mode is excluded if it's in the list
362 (setq hi-lock-archaic-interface-message-used t) 362 (setq hi-lock-archaic-interface-message-used t)
363 (if hi-lock-archaic-interface-deduce 363 (if hi-lock-archaic-interface-deduce
364 (global-hi-lock-mode hi-lock-mode) 364 (global-hi-lock-mode hi-lock-mode)
365 (warn 365 (warn "%s"
366 "Possible archaic use of (hi-lock-mode). 366 "Possible archaic use of (hi-lock-mode).
367Use (global-hi-lock-mode 1) in .emacs to enable hi-lock for all buffers, 367Use (global-hi-lock-mode 1) in .emacs to enable hi-lock for all buffers,
368use (hi-lock-mode 1) for individual buffers. For compatibility with Emacs 368use (hi-lock-mode 1) for individual buffers. For compatibility with Emacs
diff --git a/lisp/htmlfontify.el b/lisp/htmlfontify.el
index 310a074adb1..74cdfe13f58 100644
--- a/lisp/htmlfontify.el
+++ b/lisp/htmlfontify.el
@@ -133,10 +133,10 @@ main-content <=MAIN_CONTENT;\\n\" rtfm-section file style rtfm-section file))
133\(defun rtfm-build-source-docs (section srcdir destdir) 133\(defun rtfm-build-source-docs (section srcdir destdir)
134 (interactive 134 (interactive
135 \"s section[eg- emacs / p4-blame]:\\nD source-dir: \\nD output-dir: \") 135 \"s section[eg- emacs / p4-blame]:\\nD source-dir: \\nD output-dir: \")
136 (require 'htmlfontify) 136 (require \\='htmlfontify)
137 (hfy-load-tags-cache srcdir) 137 (hfy-load-tags-cache srcdir)
138 (let ((hfy-page-header 'rtfm-build-page-header) 138 (let ((hfy-page-header \\='rtfm-build-page-header)
139 (hfy-page-footer 'rtfm-build-page-footer) 139 (hfy-page-footer \\='rtfm-build-page-footer)
140 (rtfm-section section) 140 (rtfm-section section)
141 (hfy-index-file \"index\")) 141 (hfy-index-file \"index\"))
142 (htmlfontify-run-etags srcdir) 142 (htmlfontify-run-etags srcdir)
@@ -187,13 +187,13 @@ It takes only one argument, the filename."
187 :type '(string)) 187 :type '(string))
188 188
189(defcustom hfy-src-doc-link-style "text-decoration: underline;" 189(defcustom hfy-src-doc-link-style "text-decoration: underline;"
190 "String to add to the <style> a variant of an htmlfontify CSS class." 190 "String to add to the `<style> a' variant of an htmlfontify CSS class."
191 :group 'htmlfontify 191 :group 'htmlfontify
192 :tag "src-doc-link-style" 192 :tag "src-doc-link-style"
193 :type '(string)) 193 :type '(string))
194 194
195(defcustom hfy-src-doc-link-unstyle " text-decoration: none;" 195(defcustom hfy-src-doc-link-unstyle " text-decoration: none;"
196 "Regex to remove from the <style> a variant of an htmlfontify CSS class." 196 "Regex to remove from the `<style> a' variant of an htmlfontify CSS class."
197 :group 'htmlfontify 197 :group 'htmlfontify
198 :tag "src-doc-link-unstyle" 198 :tag "src-doc-link-unstyle"
199 :type '(string)) 199 :type '(string))
diff --git a/lisp/ibuffer.el b/lisp/ibuffer.el
index 3e973431044..718471b7993 100644
--- a/lisp/ibuffer.el
+++ b/lisp/ibuffer.el
@@ -2303,7 +2303,7 @@ buffers which are visiting a file."
2303(defun ibuffer (&optional other-window-p name qualifiers noselect 2303(defun ibuffer (&optional other-window-p name qualifiers noselect
2304 shrink filter-groups formats) 2304 shrink filter-groups formats)
2305 "Begin using Ibuffer to edit a list of buffers. 2305 "Begin using Ibuffer to edit a list of buffers.
2306Type h after entering ibuffer for more information. 2306Type `h' after entering ibuffer for more information.
2307 2307
2308All arguments are optional. 2308All arguments are optional.
2309OTHER-WINDOW-P says to use another window. 2309OTHER-WINDOW-P says to use another window.
diff --git a/lisp/ido.el b/lisp/ido.el
index 95be6566ea6..13b6d52e75c 100644
--- a/lisp/ido.el
+++ b/lisp/ido.el
@@ -378,7 +378,7 @@ use either \\[customize] or the function `ido-mode'."
378 '("\\` ") 378 '("\\` ")
379 "List of regexps or functions matching buffer names to ignore. 379 "List of regexps or functions matching buffer names to ignore.
380For example, traditional behavior is not to list buffers whose names begin 380For example, traditional behavior is not to list buffers whose names begin
381with a space, for which the regexp is \\\\=` . See the source file for 381with a space, for which the regexp is `\\\\=` '. See the source file for
382example functions that filter buffer names." 382example functions that filter buffer names."
383 :type '(repeat (choice regexp function)) 383 :type '(repeat (choice regexp function))
384 :group 'ido) 384 :group 'ido)
@@ -387,7 +387,7 @@ example functions that filter buffer names."
387 '("\\`CVS/" "\\`#" "\\`.#" "\\`\\.\\./" "\\`\\./") 387 '("\\`CVS/" "\\`#" "\\`.#" "\\`\\.\\./" "\\`\\./")
388 "List of regexps or functions matching file names to ignore. 388 "List of regexps or functions matching file names to ignore.
389For example, traditional behavior is not to list files whose names begin 389For example, traditional behavior is not to list files whose names begin
390with a #, for which the regexp is \\\\=`#. See the source file for 390with a #, for which the regexp is `\\\\=`#'. See the source file for
391example functions that filter filenames." 391example functions that filter filenames."
392 :type '(repeat (choice regexp function)) 392 :type '(repeat (choice regexp function))
393 :group 'ido) 393 :group 'ido)
diff --git a/lisp/image.el b/lisp/image.el
index 99a65e3258f..0c62088ca5d 100644
--- a/lisp/image.el
+++ b/lisp/image.el
@@ -343,7 +343,7 @@ of image data. If that doesn't work, and SOURCE is a file name,
343use its file extension as image type. 343use its file extension as image type.
344Optional DATA-P non-nil means SOURCE is a string containing image data." 344Optional DATA-P non-nil means SOURCE is a string containing image data."
345 (when (and (not data-p) (not (stringp source))) 345 (when (and (not data-p) (not (stringp source)))
346 (error "Invalid image file name %s" source)) 346 (error "Invalid image file name `%s'" source))
347 (unless type 347 (unless type
348 (setq type (if data-p 348 (setq type (if data-p
349 (image-type-from-data source) 349 (image-type-from-data source)
@@ -351,7 +351,7 @@ Optional DATA-P non-nil means SOURCE is a string containing image data."
351 (image-type-from-file-name source)))) 351 (image-type-from-file-name source))))
352 (or type (error "Cannot determine image type"))) 352 (or type (error "Cannot determine image type")))
353 (or (memq type (and (boundp 'image-types) image-types)) 353 (or (memq type (and (boundp 'image-types) image-types))
354 (error "Invalid image type %s" type)) 354 (error "Invalid image type `%s'" type))
355 type) 355 type)
356 356
357 357
diff --git a/lisp/info.el b/lisp/info.el
index 2c92df4ec16..a5a2c559e0d 100644
--- a/lisp/info.el
+++ b/lisp/info.el
@@ -3460,7 +3460,7 @@ MATCHES is a list of index matches found by `Info-index'.")
3460 (when (equal (car (nth 0 nodeinfo)) (or filename Info-current-file)) 3460 (when (equal (car (nth 0 nodeinfo)) (or filename Info-current-file))
3461 (insert 3461 (insert
3462 (format "* %-20s %s.\n" 3462 (format "* %-20s %s.\n"
3463 (format-message "*Index for ‘%s’*::" (cdr (nth 0 nodeinfo))) 3463 (format "*Index for ‘%s’*::" (cdr (nth 0 nodeinfo)))
3464 (cdr (nth 0 nodeinfo))))))))) 3464 (cdr (nth 0 nodeinfo)))))))))
3465 3465
3466(defun Info-virtual-index (topic) 3466(defun Info-virtual-index (topic)
@@ -3496,7 +3496,7 @@ search results."
3496 (Info-goto-node orignode) 3496 (Info-goto-node orignode)
3497 (message ""))) 3497 (message "")))
3498 (Info-find-node Info-current-file 3498 (Info-find-node Info-current-file
3499 (format-message "*Index for ‘%s’*" topic)))) 3499 (format "*Index for ‘%s’*" topic))))
3500 3500
3501(add-to-list 'Info-virtual-files 3501(add-to-list 'Info-virtual-files
3502 '("\\`\\*Apropos\\*\\'" 3502 '("\\`\\*Apropos\\*\\'"
@@ -3635,7 +3635,7 @@ Build a menu of the possible matches."
3635 (setq nodes (cdr nodes))) 3635 (setq nodes (cdr nodes)))
3636 (if nodes 3636 (if nodes
3637 (Info-find-node Info-apropos-file (car (car nodes))) 3637 (Info-find-node Info-apropos-file (car (car nodes)))
3638 (setq nodename (format-message "Index for ‘%s’" string)) 3638 (setq nodename (format "Index for ‘%s’" string))
3639 (push (list nodename string (Info-apropos-matches string)) 3639 (push (list nodename string (Info-apropos-matches string))
3640 Info-apropos-nodes) 3640 Info-apropos-nodes)
3641 (Info-find-node Info-apropos-file nodename))))) 3641 (Info-find-node Info-apropos-file nodename)))))
diff --git a/lisp/international/ccl.el b/lisp/international/ccl.el
index 08c18e1fdc7..daba2b6ed09 100644
--- a/lisp/international/ccl.el
+++ b/lisp/international/ccl.el
@@ -967,8 +967,7 @@ is a list of CCL-BLOCKs."
967 (let ((len (length ccl-code)) 967 (let ((len (length ccl-code))
968 (buffer-mag (aref ccl-code 0))) 968 (buffer-mag (aref ccl-code 0)))
969 (cond ((= buffer-mag 0) 969 (cond ((= buffer-mag 0)
970 (insert (substitute-command-keys 970 (insert (substitute-command-keys "Don't output anything.\n")))
971 "Don’t output anything.\n")))
972 ((= buffer-mag 1) 971 ((= buffer-mag 1)
973 (insert "Out-buffer must be as large as in-buffer.\n")) 972 (insert "Out-buffer must be as large as in-buffer.\n"))
974 (t 973 (t
diff --git a/lisp/international/fontset.el b/lisp/international/fontset.el
index 4667a003b1d..cdbaade73ab 100644
--- a/lisp/international/fontset.el
+++ b/lisp/international/fontset.el
@@ -1070,7 +1070,7 @@ Value is name of that font."
1070 (condition-case nil 1070 (condition-case nil
1071 (setq ascii-font (x-resolve-font-name pattern)) 1071 (setq ascii-font (x-resolve-font-name pattern))
1072 (error 1072 (error
1073 (message "Warning: no fonts matching %s available" pattern) 1073 (message "Warning: no fonts matching `%s' available" pattern)
1074 (aset xlfd-fields index "*") 1074 (aset xlfd-fields index "*")
1075 (setq index (1+ index)))))) 1075 (setq index (1+ index))))))
1076 (unless ascii-font 1076 (unless ascii-font
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el
index 5934919d42e..4fd4b906b05 100644
--- a/lisp/international/mule-cmds.el
+++ b/lisp/international/mule-cmds.el
@@ -400,9 +400,9 @@ To prefer, for instance, utf-8, say the following:
400 \(prefer-coding-system \\='utf-8)" 400 \(prefer-coding-system \\='utf-8)"
401 (interactive "zPrefer coding system: ") 401 (interactive "zPrefer coding system: ")
402 (if (not (and coding-system (coding-system-p coding-system))) 402 (if (not (and coding-system (coding-system-p coding-system)))
403 (error "Invalid coding system %s" coding-system)) 403 (error "Invalid coding system `%s'" coding-system))
404 (if (memq (coding-system-type coding-system) '(raw-text undecided)) 404 (if (memq (coding-system-type coding-system) '(raw-text undecided))
405 (error "Can't prefer the coding system %s" coding-system)) 405 (error "Can't prefer the coding system `%s'" coding-system))
406 (let ((base (coding-system-base coding-system)) 406 (let ((base (coding-system-base coding-system))
407 (eol-type (coding-system-eol-type coding-system))) 407 (eol-type (coding-system-eol-type coding-system)))
408 (set-coding-system-priority base) 408 (set-coding-system-priority base)
@@ -417,7 +417,7 @@ To prefer, for instance, utf-8, say the following:
417 (set-default-coding-systems base) 417 (set-default-coding-systems base)
418 (if (called-interactively-p 'interactive) 418 (if (called-interactively-p 'interactive)
419 (or (eq base default-file-name-coding-system) 419 (or (eq base default-file-name-coding-system)
420 (message "The default value of ‘file-name-coding-system’ was not changed because the specified coding system is not suitable for file names."))))) 420 (message "The default value of `file-name-coding-system' was not changed because the specified coding system is not suitable for file names.")))))
421 421
422(defvar sort-coding-systems-predicate nil 422(defvar sort-coding-systems-predicate nil
423 "If non-nil, a predicate function to sort coding systems. 423 "If non-nil, a predicate function to sort coding systems.
@@ -719,14 +719,14 @@ DEFAULT is the coding system to use by default in the query."
719 (insert "No default coding systems to try for " 719 (insert "No default coding systems to try for "
720 (if (stringp from) 720 (if (stringp from)
721 (format "string \"%s\"." from) 721 (format "string \"%s\"." from)
722 (format-message "buffer %s." bufname))) 722 (format-message "buffer `%s'." bufname)))
723 (insert 723 (insert
724 "These default coding systems were tried to encode" 724 "These default coding systems were tried to encode"
725 (if (stringp from) 725 (if (stringp from)
726 (concat " \"" (if (> (length from) 10) 726 (concat " \"" (if (> (length from) 10)
727 (concat (substring from 0 10) "...\"") 727 (concat (substring from 0 10) "...\"")
728 (concat from "\""))) 728 (concat from "\"")))
729 (format-message " text\nin the buffer %s" bufname)) 729 (format-message " text\nin the buffer `%s'" bufname))
730 ":\n") 730 ":\n")
731 (let ((pos (point)) 731 (let ((pos (point))
732 (fill-prefix " ")) 732 (fill-prefix " "))
@@ -876,13 +876,13 @@ and TO is ignored."
876 (setq auto-cs (car auto-cs)) 876 (setq auto-cs (car auto-cs))
877 (display-warning 877 (display-warning
878 'mule 878 'mule
879 (format "\ 879 (format-message "\
880Invalid coding system %s is specified 880Invalid coding system `%s' is specified
881for the current buffer/file by the %s. 881for the current buffer/file by the %s.
882It is highly recommended to fix it before writing to a file." 882It is highly recommended to fix it before writing to a file."
883 (car auto-cs) 883 (car auto-cs)
884 (if (eq (cdr auto-cs) :coding) ":coding tag" 884 (if (eq (cdr auto-cs) :coding) ":coding tag"
885 (format-message "variable %s" (cdr auto-cs)))) 885 (format-message "variable `%s'" (cdr auto-cs))))
886 :warning) 886 :warning)
887 (or (yes-or-no-p "Really proceed with writing? ") 887 (or (yes-or-no-p "Really proceed with writing? ")
888 (error "Save aborted")) 888 (error "Save aborted"))
@@ -1452,7 +1452,7 @@ If INPUT-METHOD is nil, deactivate any current input method."
1452 (unless (or current-input-method (null input-method)) 1452 (unless (or current-input-method (null input-method))
1453 (let ((slot (assoc input-method input-method-alist))) 1453 (let ((slot (assoc input-method input-method-alist)))
1454 (if (null slot) 1454 (if (null slot)
1455 (error "Can't activate input method %s" input-method)) 1455 (error "Can't activate input method `%s'" input-method))
1456 (setq current-input-method-title nil) 1456 (setq current-input-method-title nil)
1457 (let ((func (nth 2 slot))) 1457 (let ((func (nth 2 slot)))
1458 (if (functionp func) 1458 (if (functionp func)
@@ -1461,7 +1461,7 @@ If INPUT-METHOD is nil, deactivate any current input method."
1461 (progn 1461 (progn
1462 (require (cdr func)) 1462 (require (cdr func))
1463 (apply (car func) input-method (nthcdr 5 slot))) 1463 (apply (car func) input-method (nthcdr 5 slot)))
1464 (error "Can't activate input method %s" input-method)))) 1464 (error "Can't activate input method `%s'" input-method))))
1465 (setq current-input-method input-method) 1465 (setq current-input-method input-method)
1466 (or (stringp current-input-method-title) 1466 (or (stringp current-input-method-title)
1467 (setq current-input-method-title (nth 3 slot))) 1467 (setq current-input-method-title (nth 3 slot)))
@@ -1539,7 +1539,7 @@ which marks the variable `default-input-method' as set for Custom buffers."
1539 1539
1540 (interactive "P\np") 1540 (interactive "P\np")
1541 (if toggle-input-method-active 1541 (if toggle-input-method-active
1542 (error "Recursive use of toggle-input-method")) 1542 (error "Recursive use of `toggle-input-method'"))
1543 (if (and current-input-method (not arg)) 1543 (if (and current-input-method (not arg))
1544 (deactivate-input-method) 1544 (deactivate-input-method)
1545 (let ((toggle-input-method-active t) 1545 (let ((toggle-input-method-active t)
@@ -1589,7 +1589,7 @@ which marks the variable `default-input-method' as set for Custom buffers."
1589 (with-output-to-temp-buffer (help-buffer) 1589 (with-output-to-temp-buffer (help-buffer)
1590 (let ((elt (assoc input-method input-method-alist))) 1590 (let ((elt (assoc input-method input-method-alist)))
1591 (princ (format-message 1591 (princ (format-message
1592 "Input method: %s (%s in mode line) for %s\n %s\n" 1592 "Input method: %s (`%s' in mode line) for %s\n %s\n"
1593 input-method (nth 3 elt) (nth 1 elt) (nth 4 elt)))))))))) 1593 input-method (nth 3 elt) (nth 1 elt) (nth 4 elt))))))))))
1594 1594
1595(defun describe-current-input-method () 1595(defun describe-current-input-method ()
@@ -1599,7 +1599,7 @@ This is a subroutine for `describe-input-method'."
1599 (if (and (symbolp describe-current-input-method-function) 1599 (if (and (symbolp describe-current-input-method-function)
1600 (fboundp describe-current-input-method-function)) 1600 (fboundp describe-current-input-method-function))
1601 (funcall describe-current-input-method-function) 1601 (funcall describe-current-input-method-function)
1602 (message "No way to describe the current input method %s" 1602 (message "No way to describe the current input method `%s'"
1603 current-input-method) 1603 current-input-method)
1604 (ding)) 1604 (ding))
1605 (error "No input method is activated now"))) 1605 (error "No input method is activated now")))
@@ -2174,9 +2174,9 @@ See `set-language-info-alist' for use in programs."
2174 (search-backward (symbol-name (car l))) 2174 (search-backward (symbol-name (car l)))
2175 (help-xref-button 0 'help-coding-system (car l)) 2175 (help-xref-button 0 'help-coding-system (car l))
2176 (goto-char (point-max)) 2176 (goto-char (point-max))
2177 (insert " (" 2177 (insert (substitute-command-keys " (`")
2178 (coding-system-mnemonic (car l)) 2178 (coding-system-mnemonic (car l))
2179 " in mode line):\n\t" 2179 (substitute-command-keys "' in mode line):\n\t")
2180 (substitute-command-keys 2180 (substitute-command-keys
2181 (coding-system-doc-string (car l))) 2181 (coding-system-doc-string (car l)))
2182 "\n") 2182 "\n")
diff --git a/lisp/international/mule-conf.el b/lisp/international/mule-conf.el
index 063b873726a..ecbc4f48caa 100644
--- a/lisp/international/mule-conf.el
+++ b/lisp/international/mule-conf.el
@@ -904,8 +904,8 @@
904 (dolist (script '(devanagari sanskrit bengali tamil telugu assamese 904 (dolist (script '(devanagari sanskrit bengali tamil telugu assamese
905 oriya kannada malayalam gujarati punjabi)) 905 oriya kannada malayalam gujarati punjabi))
906 (define-charset (intern (format "%s-cdac" script)) 906 (define-charset (intern (format "%s-cdac" script))
907 (format-message 907 (format
908 "Glyphs of %s script for CDAC font. Subset of indian-glyph." 908 "Glyphs of %s script for CDAC font. Subset of `indian-glyph'."
909 (capitalize (symbol-name script))) 909 (capitalize (symbol-name script)))
910 :short-name (format "CDAC %s glyphs" (capitalize (symbol-name script))) 910 :short-name (format "CDAC %s glyphs" (capitalize (symbol-name script)))
911 :supplementary-p t 911 :supplementary-p t
@@ -916,8 +916,8 @@
916 (dolist (script '(devanagari bengali punjabi gujarati 916 (dolist (script '(devanagari bengali punjabi gujarati
917 oriya tamil telugu kannada malayalam)) 917 oriya tamil telugu kannada malayalam))
918 (define-charset (intern (format "%s-akruti" script)) 918 (define-charset (intern (format "%s-akruti" script))
919 (format-message 919 (format
920 "Glyphs of %s script for AKRUTI font. Subset of indian-glyph." 920 "Glyphs of %s script for AKRUTI font. Subset of `indian-glyph'."
921 (capitalize (symbol-name script))) 921 (capitalize (symbol-name script)))
922 :short-name (format "AKRUTI %s glyphs" (capitalize (symbol-name script))) 922 :short-name (format "AKRUTI %s glyphs" (capitalize (symbol-name script)))
923 :supplementary-p t 923 :supplementary-p t
diff --git a/lisp/international/mule-diag.el b/lisp/international/mule-diag.el
index 57b6d62e4aa..fa5a7ebe7c3 100644
--- a/lisp/international/mule-diag.el
+++ b/lisp/international/mule-diag.el
@@ -332,7 +332,7 @@ meanings of these arguments."
332 (let ((char (charset-iso-final-char charset))) 332 (let ((char (charset-iso-final-char charset)))
333 (when (> char 0) 333 (when (> char 0)
334 (insert "Final char of ISO2022 designation sequence: ") 334 (insert "Final char of ISO2022 designation sequence: ")
335 (insert (format-message "%c\n" char)))) 335 (insert (format-message "`%c'\n" char))))
336 (let (aliases) 336 (let (aliases)
337 (dolist (c charset-list) 337 (dolist (c charset-list)
338 (if (and (not (eq c charset)) 338 (if (and (not (eq c charset))
@@ -770,7 +770,7 @@ but still contains full information about each coding system."
770# MNEMONIC-LETTER -- CODING-SYSTEM-NAME 770# MNEMONIC-LETTER -- CODING-SYSTEM-NAME
771# DOC-STRING 771# DOC-STRING
772") 772")
773 (princ "\ 773 (princ (substitute-command-keys "\
774######################### 774#########################
775## LIST OF CODING SYSTEMS 775## LIST OF CODING SYSTEMS
776## Each line corresponds to one coding system 776## Each line corresponds to one coding system
@@ -794,7 +794,7 @@ but still contains full information about each coding system."
794## 0 794## 0
795## POST-READ-CONVERSION, PRE-WRITE-CONVERSION = function name to be called 795## POST-READ-CONVERSION, PRE-WRITE-CONVERSION = function name to be called
796## 796##
797")) 797")))
798 (dolist (coding-system (sort-coding-systems (coding-system-list 'base-only))) 798 (dolist (coding-system (sort-coding-systems (coding-system-list 'base-only)))
799 (if (null arg) 799 (if (null arg)
800 (print-coding-system-briefly coding-system 'tightly) 800 (print-coding-system-briefly coding-system 'tightly)
@@ -1038,7 +1038,8 @@ see the function `describe-fontset' for the format of the list."
1038 (save-excursion 1038 (save-excursion
1039 (goto-char (point-min)) 1039 (goto-char (point-min))
1040 (while (re-search-forward 1040 (while (re-search-forward
1041 "^ \\([^ ]+\\) (‘.*’ in mode line)$" nil t) 1041 (substitute-command-keys "^ \\([^ ]+\\) (`.*' in mode line)$")
1042 nil t)
1042 (help-xref-button 1 'help-input-method (match-string 1))))))) 1043 (help-xref-button 1 'help-input-method (match-string 1)))))))
1043 1044
1044(defun list-input-methods-1 () 1045(defun list-input-methods-1 ()
@@ -1046,7 +1047,8 @@ see the function `describe-fontset' for the format of the list."
1046 (princ " 1047 (princ "
1047No input method is available, perhaps because you have not 1048No input method is available, perhaps because you have not
1048installed LEIM (Libraries of Emacs Input Methods).") 1049installed LEIM (Libraries of Emacs Input Methods).")
1049 (princ "LANGUAGE\n NAME (‘TITLE’ in mode line)\n") 1050 (princ (substitute-command-keys
1051 "LANGUAGE\n NAME (`TITLE' in mode line)\n"))
1050 (princ " SHORT-DESCRIPTION\n------------------------------\n") 1052 (princ " SHORT-DESCRIPTION\n------------------------------\n")
1051 (setq input-method-alist 1053 (setq input-method-alist
1052 (sort input-method-alist 1054 (sort input-method-alist
@@ -1059,7 +1061,7 @@ installed LEIM (Libraries of Emacs Input Methods).")
1059 (princ language) 1061 (princ language)
1060 (terpri)) 1062 (terpri))
1061 (princ (format-message 1063 (princ (format-message
1062 " %s (%s in mode line)\n %s\n" 1064 " %s (`%s' in mode line)\n %s\n"
1063 (car elt) 1065 (car elt)
1064 (let ((title (nth 3 elt))) 1066 (let ((title (nth 3 elt)))
1065 (if (and (consp title) (stringp (car title))) 1067 (if (and (consp title) (stringp (car title)))
diff --git a/lisp/international/ogonek.el b/lisp/international/ogonek.el
index 7caa5d4b30c..01cbe1e5222 100644
--- a/lisp/international/ogonek.el
+++ b/lisp/international/ogonek.el
@@ -133,10 +133,10 @@ znak/ow diakrytycznych. Funkcje te mo/zna pogrupowa/c nast/epuj/aco.
133 `~/.emacs' za/z/ada/c wczytania wybranych funkcji, na dodatek dopiero 133 `~/.emacs' za/z/ada/c wczytania wybranych funkcji, na dodatek dopiero
134 w chwili ich rzeczywistego u/zycia: 134 w chwili ich rzeczywistego u/zycia:
135 135
136 (autoload 'ogonek-jak \"ogonek\") 136 (autoload \\='ogonek-jak \"ogonek\")
137 (autoload 'ogonek-recode-region \"ogonek\") 137 (autoload \\='ogonek-recode-region \"ogonek\")
138 (autoload 'ogonek-prefixify-region \"ogonek\") 138 (autoload \\='ogonek-prefixify-region \"ogonek\")
139 (autoload 'ogonek-deprefixify-region \"ogonek\") 139 (autoload \\='ogonek-deprefixify-region \"ogonek\")
140 140
141 Cz/esto wyst/epuj/ace kombinacje wywo/la/n funkcji mo/zna dla wygody 141 Cz/esto wyst/epuj/ace kombinacje wywo/la/n funkcji mo/zna dla wygody
142 skr/oci/c i przypisa/c klawiszom. Oto praktyczne przyk/lady: 142 skr/oci/c i przypisa/c klawiszom. Oto praktyczne przyk/lady:
@@ -144,17 +144,17 @@ znak/ow diakrytycznych. Funkcje te mo/zna pogrupowa/c nast/epuj/aco.
144 (defun deprefixify-iso8859-2-region (start end) 144 (defun deprefixify-iso8859-2-region (start end)
145 (interactive \"*r\") 145 (interactive \"*r\")
146 (ogonek-deprefixify-region start end ?/ \"iso8859-2\")) 146 (ogonek-deprefixify-region start end ?/ \"iso8859-2\"))
147 (global-set-key \"\\C-cd\" 'deprefixify-iso8859-2-region) ; ctrl-c d 147 (global-set-key \"\\C-cd\" \\='deprefixify-iso8859-2-region) ; ctrl-c d
148 148
149 (defun mazovia-to-iso8859-2 (start end) 149 (defun mazovia-to-iso8859-2 (start end)
150 (interactive \"*r\") 150 (interactive \"*r\")
151 (ogonek-recode-region start end \"mazovia\" \"iso8859-2\")) 151 (ogonek-recode-region start end \"mazovia\" \"iso8859-2\"))
152 (global-set-key \"\\C-cr\" 'mazovia-to-iso8859-2) ; ctrl-c r 152 (global-set-key \"\\C-cr\" \\='mazovia-to-iso8859-2) ; ctrl-c r
153 153
154 (defun prefixify-iso8859-2-region (start end) 154 (defun prefixify-iso8859-2-region (start end)
155 (interactive \"*r\") 155 (interactive \"*r\")
156 (ogonek-prefixify-region start end \"iso8859-2\" ?/)) 156 (ogonek-prefixify-region start end \"iso8859-2\" ?/))
157 (global-set-key \"\\C-cp\" 'prefixify-iso8859-2-region) ; ctrl-c p 157 (global-set-key \"\\C-cp\" \\='prefixify-iso8859-2-region) ; ctrl-c p
158 158
159 Ka/zd/a operacj/e przekodowania mo/zna w ca/lo/sci odwo/la/c 159 Ka/zd/a operacj/e przekodowania mo/zna w ca/lo/sci odwo/la/c
160 przez wykonanie polecenia `undo'.") 160 przez wykonanie polecenia `undo'.")
@@ -163,7 +163,7 @@ znak/ow diakrytycznych. Funkcje te mo/zna pogrupowa/c nast/epuj/aco.
163 "Display `ogonek-informacja' in an auxiliary *ogonek-jak* buffer." 163 "Display `ogonek-informacja' in an auxiliary *ogonek-jak* buffer."
164 (interactive) 164 (interactive)
165 (set-buffer (get-buffer-create " *ogonek-jak*")) 165 (set-buffer (get-buffer-create " *ogonek-jak*"))
166 (insert ogonek-informacja) 166 (insert (substitute-command-keys ogonek-informacja))
167 (switch-to-buffer " *ogonek-jak*") 167 (switch-to-buffer " *ogonek-jak*")
168 (goto-char (point-min))) 168 (goto-char (point-min)))
169 169
@@ -233,10 +233,10 @@ The functions come in the following groups.
233 to autoload the needed functions, for example by adding the 233 to autoload the needed functions, for example by adding the
234 following lines to your init file: 234 following lines to your init file:
235 235
236 (autoload 'ogonek-how \"ogonek\") 236 (autoload \\='ogonek-how \"ogonek\")
237 (autoload 'ogonek-recode-region \"ogonek\") 237 (autoload \\='ogonek-recode-region \"ogonek\")
238 (autoload 'ogonek-prefixify-region \"ogonek\") 238 (autoload \\='ogonek-prefixify-region \"ogonek\")
239 (autoload 'ogonek-deprefixify-region \"ogonek\") 239 (autoload \\='ogonek-deprefixify-region \"ogonek\")
240 240
241 The most frequent function calls can be abbreviated and assigned to 241 The most frequent function calls can be abbreviated and assigned to
242 keyboard keys. Here are a few practical examples: 242 keyboard keys. Here are a few practical examples:
@@ -262,7 +262,7 @@ The functions come in the following groups.
262 "Display `ogonek-information' in an auxiliary *recode-how* buffer." 262 "Display `ogonek-information' in an auxiliary *recode-how* buffer."
263 (interactive "*") 263 (interactive "*")
264 (set-buffer (get-buffer-create " *ogonek-how*")) 264 (set-buffer (get-buffer-create " *ogonek-how*"))
265 (insert ogonek-information) 265 (insert (substitute-command-keys ogonek-information))
266 (switch-to-buffer " *ogonek-how*") 266 (switch-to-buffer " *ogonek-how*")
267 (goto-char (point-min))) 267 (goto-char (point-min)))
268 268
diff --git a/lisp/json.el b/lisp/json.el
index 5392a13f9e0..daa0c94da28 100644
--- a/lisp/json.el
+++ b/lisp/json.el
@@ -286,7 +286,7 @@ representation will be parsed correctly."
286(defun json-read-string () 286(defun json-read-string ()
287 "Read the JSON string at point." 287 "Read the JSON string at point."
288 (unless (char-equal (json-peek) ?\") 288 (unless (char-equal (json-peek) ?\")
289 (signal 'json-string-format (list "doesnt start with \"!"))) 289 (signal 'json-string-format (list "doesn't start with `\"'!")))
290 ;; Skip over the '"' 290 ;; Skip over the '"'
291 (json-advance) 291 (json-advance)
292 (let ((characters '()) 292 (let ((characters '())
diff --git a/lisp/kermit.el b/lisp/kermit.el
index d4a21f42430..9b464ab04b1 100644
--- a/lisp/kermit.el
+++ b/lisp/kermit.el
@@ -135,7 +135,7 @@ In this state, use LFD to send a line and end it with a carriage-return."
135(defun kermit-clean-on () 135(defun kermit-clean-on ()
136 "Delete all null characters and ^M's from the kermit output. 136 "Delete all null characters and ^M's from the kermit output.
137Note that another (perhaps better) way to do this is to use the 137Note that another (perhaps better) way to do this is to use the
138command kermit | tr -d '\\015'." 138command `kermit | tr -d \\='\\015\\=''."
139 (interactive) 139 (interactive)
140 (set-process-filter (get-buffer-process (current-buffer)) 140 (set-process-filter (get-buffer-process (current-buffer))
141 'kermit-clean-filter)) 141 'kermit-clean-filter))
diff --git a/lisp/leim/quail/cyrillic.el b/lisp/leim/quail/cyrillic.el
index 89a58cfba79..7c443857d44 100644
--- a/lisp/leim/quail/cyrillic.el
+++ b/lisp/leim/quail/cyrillic.el
@@ -839,7 +839,7 @@ Sorry, but `ghe with upturn' is not included in ISO 8859-5."
839 "ЯВЕРТЫ Roman transcription 839 "ЯВЕРТЫ Roman transcription
840 840
841This layout is based on Roman transcription by phonemic resemblance. 841This layout is based on Roman transcription by phonemic resemblance.
842When preceded by a /, the second and the third rows (number key row) change 842When preceded by a `/', the second and the third rows (number key row) change
843as follows. 843as follows.
844 844
845 keytop | Q W E R T Y U I O P A S D 845 keytop | Q W E R T Y U I O P A S D
@@ -1244,8 +1244,8 @@ Unicode based."
1244This phonetic layout replaces all the Latin letters with Bulgarian 1244This phonetic layout replaces all the Latin letters with Bulgarian
1245\(Cyrillic) letters based on similarities in their pronunciation or look. 1245\(Cyrillic) letters based on similarities in their pronunciation or look.
1246 1246
1247Note that, since the letters щ, ь, ю and я are attached to the 1247Note that, since the letters `щ', `ь', `ю' and `я' are attached to the
1248], \, \\=` and [ keys respectively, Caps Lock does not affect them." 1248`]', `\', `\\=`' and `[' keys respectively, Caps Lock does not affect them."
1249nil t t t t nil nil nil nil nil t) 1249nil t t t t nil nil nil nil nil t)
1250 1250
1251;; Ю 1! 2@ 3№ 4$ 5% 6€ 7§ 8* 9( 0) -– =+ ьѝ 1251;; Ю 1! 2@ 3№ 4$ 5% 6€ 7§ 8* 9( 0) -– =+ ьѝ
diff --git a/lisp/leim/quail/hebrew.el b/lisp/leim/quail/hebrew.el
index ac67fbfe5a7..d90b362407b 100644
--- a/lisp/leim/quail/hebrew.el
+++ b/lisp/leim/quail/hebrew.el
@@ -36,8 +36,8 @@
36 36
37Based on SI-1452 keyboard layout. 37Based on SI-1452 keyboard layout.
38Only Hebrew-related characters are considered. 38Only Hebrew-related characters are considered.
39 q is used to switch levels instead of Alt-Gr. 39 `q' is used to switch levels instead of Alt-Gr.
40 Maqaaf (־) is mapped to . 40 Maqaaf (־) is mapped to `'.
41" nil t t t t nil nil nil nil nil t) 41" nil t t t t nil nil nil nil nil t)
42 42
43(quail-define-rules 43(quail-define-rules
@@ -113,8 +113,8 @@ Only Hebrew-related characters are considered.
113 113
114Based on latest draft of SI-1452 keyboard layout. 114Based on latest draft of SI-1452 keyboard layout.
115Only Hebrew-related characters are considered. 115Only Hebrew-related characters are considered.
116 \\=` is used to switch levels instead of Alt-Gr. 116 `\\=`' is used to switch levels instead of Alt-Gr.
117Geresh is mapped to \\=`k. 117Geresh is mapped to `\\=`k'.
118" nil t t t t nil nil nil nil nil t) 118" nil t t t t nil nil nil nil nil t)
119 119
120(quail-define-rules 120(quail-define-rules
@@ -457,8 +457,8 @@ Provides access to all Hebrew characters suitable to Modern Hebrew.
457 457
458Based on Society of Biblical Literature's Tiro keyboard layout. 458Based on Society of Biblical Literature's Tiro keyboard layout.
459Not suitable for modern Hebrew input. 459Not suitable for modern Hebrew input.
460 q is used to switch levels instead of Alt-Gr. 460 `q' is used to switch levels instead of Alt-Gr.
461 Combining dot above (Called Masora dot) (̇) is mapped to q1. 461 Combining dot above (Called Masora dot) (̇) is mapped to `q1'.
462" nil t t t t nil nil nil nil nil t) 462" nil t t t t nil nil nil nil nil t)
463 463
464(quail-define-rules 464(quail-define-rules
@@ -603,8 +603,8 @@ Not suitable for modern Hebrew input.
603 603
604Based on Society of Biblical Literature's SIL keyboard layout. 604Based on Society of Biblical Literature's SIL keyboard layout.
605Phonetic and not suitable for modern Hebrew input. 605Phonetic and not suitable for modern Hebrew input.
606 \\=` is used to switch levels instead of Alt-Gr. 606 `\\=`' is used to switch levels instead of Alt-Gr.
607 Euro Sign (€) is mapped to Z. 607 Euro Sign (€) is mapped to `Z'.
608" nil t t t t nil nil nil nil nil t) 608" nil t t t t nil nil nil nil nil t)
609 609
610(quail-define-rules 610(quail-define-rules
diff --git a/lisp/leim/quail/latin-ltx.el b/lisp/leim/quail/latin-ltx.el
index 82c0aa3324e..3c84ba8348a 100644
--- a/lisp/leim/quail/latin-ltx.el
+++ b/lisp/leim/quail/latin-ltx.el
@@ -36,7 +36,7 @@
36 "LaTeX-like input method for many characters. 36 "LaTeX-like input method for many characters.
37These characters are from the charsets used by the `utf-8' coding 37These characters are from the charsets used by the `utf-8' coding
38system, including many technical ones. Examples: 38system, including many technical ones. Examples:
39 \\'a -> á \\`{a} -> à 39 \\\\='a -> á \\\\=`{a} -> à
40 \\pi -> π \\int -> ∫ ^1 -> ¹" 40 \\pi -> π \\int -> ∫ ^1 -> ¹"
41 41
42 '(("\t" . quail-completion)) 42 '(("\t" . quail-completion))
@@ -184,7 +184,7 @@ system, including many technical ones. Examples:
184 ("\\H" ?̋) 184 ("\\H" ?̋)
185 ("\\H{}" ?˝) 185 ("\\H{}" ?˝)
186 ("\\U{o}" ?ő) ("\\Uo" ?ő) ;; FIXME: Was it just a typo? 186 ("\\U{o}" ?ő) ("\\Uo" ?ő) ;; FIXME: Was it just a typo?
187 187
188 ("\\OE" ?Œ) ;; ("{\\OE}" ?Œ) 188 ("\\OE" ?Œ) ;; ("{\\OE}" ?Œ)
189 ("\\oe" ?œ) ;; ("{\\oe}" ?œ) 189 ("\\oe" ?œ) ;; ("{\\oe}" ?œ)
190 190
@@ -216,7 +216,7 @@ system, including many technical ones. Examples:
216 (name (if (match-end 1) (capitalize basename) (downcase basename)))) 216 (name (if (match-end 1) (capitalize basename) (downcase basename))))
217 (concat "^" (if (> (length name) 1) "\\") name))) 217 (concat "^" (if (> (length name) 1) "\\") name)))
218 "\\`MODIFIER LETTER \\(?:SMALL\\|CAPITA\\(L\\)\\) \\([[:ascii:]]+\\)\\'") 218 "\\`MODIFIER LETTER \\(?:SMALL\\|CAPITA\\(L\\)\\) \\([[:ascii:]]+\\)\\'")
219 219
220 ;; ((lambda (name char) (format "^%s" (downcase (match-string 1 name)))) 220 ;; ((lambda (name char) (format "^%s" (downcase (match-string 1 name))))
221 ;; "\\`MODIFIER LETTER SMALL \\(.\\)\\'") 221 ;; "\\`MODIFIER LETTER SMALL \\(.\\)\\'")
222 ;; ("^\\1" "\\`MODIFIER LETTER CAPITAL \\(.\\)\\'") 222 ;; ("^\\1" "\\`MODIFIER LETTER CAPITAL \\(.\\)\\'")
@@ -694,7 +694,7 @@ system, including many technical ones. Examples:
694 ("\\defs" ?≙) ; per fuzz/zed 694 ("\\defs" ?≙) ; per fuzz/zed
695 ;; ("\\sqrt[3]" ?∛) 695 ;; ("\\sqrt[3]" ?∛)
696 ("\\llbracket" ?\〚) ; stmaryrd 696 ("\\llbracket" ?\〚) ; stmaryrd
697 ("\\rrbracket" ?\〛) 697 ("\\rrbracket" ?\〛)
698 ;; ("\\lbag" ?\〚) ; fuzz 698 ;; ("\\lbag" ?\〚) ; fuzz
699 ;; ("\\rbag" ?\〛) 699 ;; ("\\rbag" ?\〛)
700 ("\\ldata" ?\《) ; fuzz/zed 700 ("\\ldata" ?\《) ; fuzz/zed
diff --git a/lisp/leim/quail/thai.el b/lisp/leim/quail/thai.el
index 72e5020f36f..7d0949ee529 100644
--- a/lisp/leim/quail/thai.el
+++ b/lisp/leim/quail/thai.el
@@ -46,9 +46,9 @@
46 "Thai Kesmanee input method with TIS620 keyboard layout 46 "Thai Kesmanee input method with TIS620 keyboard layout
47 47
48The difference from the ordinal Thai keyboard: 48The difference from the ordinal Thai keyboard:
49 ฿ and are assigned to \\ and | respectively, 49 `฿' and `' are assigned to `\\' and `|' respectively,
50 and are assigned to \\=` and ~ respectively, 50 `' and `' are assigned to `\\=`' and `~' respectively,
51 Don't know where to assign characters and ." 51 Don't know where to assign characters `' and `'."
52 nil t t t t nil nil nil nil nil t) 52 nil t t t t nil nil nil nil nil t)
53 53
54(thai-generate-quail-map 54(thai-generate-quail-map
diff --git a/lisp/leim/quail/tibetan.el b/lisp/leim/quail/tibetan.el
index d5a92ca480b..93cb65b8d43 100644
--- a/lisp/leim/quail/tibetan.el
+++ b/lisp/leim/quail/tibetan.el
@@ -155,7 +155,7 @@
155 and to get da-drag in -r-d, -l-d .) 155 and to get da-drag in -r-d, -l-d .)
156 | : Special signs. 156 | : Special signs.
157 157
158 Tsheg is assigned to SPC. Space is assigned to period .. 158 Tsheg is assigned to SPC. Space is assigned to period `.'.
159" 159"
160 nil nil nil nil nil nil nil nil 160 nil nil nil nil nil nil nil nil
161 'quail-tibetan-update-translation) 161 'quail-tibetan-update-translation)
@@ -411,7 +411,7 @@
411 +---------------------------------------------+ 411 +---------------------------------------------+
412 |zཞ|xཟ|cའ|vཡ|bར|nལ|mཤ|,ས|.ཧ|/ཨ| 412 |zཞ|xཟ|cའ|vཡ|bར|nལ|mཤ|,ས|.ཧ|/ཨ|
413 +---------------------------------------+ 413 +---------------------------------------+
414 The key h is used for consonant stacking. 414 The key `h' is used for consonant stacking.
415 415
416 [SHIFTED] 416 [SHIFTED]
417 417
@@ -427,14 +427,14 @@
427 427
428 DIFFERENCE FROM THE ORIGINAL TIBKEY: 428 DIFFERENCE FROM THE ORIGINAL TIBKEY:
429 429
430 1. Vowel a should be typed explicitly by the key A. 430 1. Vowel `a' should be typed explicitly by the key `A'.
431 This is really inconvenient. But to make the coding 431 This is really inconvenient. But to make the coding
432 scheme clear, it is desirable to have an explicit 432 scheme clear, it is desirable to have an explicit
433 vowel sign for a. 433 vowel sign for `a'.
434 2. Tsheg is assigned to SPC key. You can input a space 434 2. Tsheg is assigned to SPC key. You can input a space
435 by typing >. 435 by typing `>'.
436 4. To avoid the default stacking and to obtain གཡ, 436 4. To avoid the default stacking and to obtain གཡ,
437 type E instead of v (=ཡ). 437 type `E' instead of `v' (=ཡ).
438 3. There are many characters that are not supported in the 438 3. There are many characters that are not supported in the
439 current implementation (especially special signs). 439 current implementation (especially special signs).
440 I hope I'll complete in a future revision. 440 I hope I'll complete in a future revision.
diff --git a/lisp/ls-lisp.el b/lisp/ls-lisp.el
index 70307f6dcac..87f12ba673e 100644
--- a/lisp/ls-lisp.el
+++ b/lisp/ls-lisp.el
@@ -222,7 +222,7 @@ current year. The OLD-TIME-FORMAT is used for older files. To use ISO
2228601 dates, you could set: 2228601 dates, you could set:
223 223
224\(setq ls-lisp-format-time-list 224\(setq ls-lisp-format-time-list
225 '(\"%Y-%m-%d %H:%M\" 225 \\='(\"%Y-%m-%d %H:%M\"
226 \"%Y-%m-%d \"))" 226 \"%Y-%m-%d \"))"
227 :type '(list (string :tag "Early time format") 227 :type '(list (string :tag "Early time format")
228 (string :tag "Old time format")) 228 (string :tag "Old time format"))
diff --git a/lisp/mail/feedmail.el b/lisp/mail/feedmail.el
index ccd892640ec..368e2ab8982 100644
--- a/lisp/mail/feedmail.el
+++ b/lisp/mail/feedmail.el
@@ -418,9 +418,9 @@ cases. You can give a timeout for the prompt; see variable
418If nil, the prepped message will be shown, for confirmation or 418If nil, the prepped message will be shown, for confirmation or
419otherwise, in some window in the current frame without resizing 419otherwise, in some window in the current frame without resizing
420anything. That may or may not display enough of the message to 420anything. That may or may not display enough of the message to
421distinguish it from others. If set to the symbol queued, take 421distinguish it from others. If set to the symbol `queued', take
422this action only when running the queue. If set to the symbol 422this action only when running the queue. If set to the symbol
423immediate, take this action only when sending immediately. For 423`immediate', take this action only when sending immediately. For
424any other non-nil value, take the action in both cases. Even if 424any other non-nil value, take the action in both cases. Even if
425you're not confirming the sending of immediate or queued messages, 425you're not confirming the sending of immediate or queued messages,
426it can still be interesting to see a lot about them as they are 426it can still be interesting to see a lot about them as they are
@@ -471,9 +471,9 @@ Addresses for the message envelope are deduced by examining
471appropriate address headers in the message. Generally, they will show 471appropriate address headers in the message. Generally, they will show
472up in the list of deduced addresses in the order that the headers 472up in the list of deduced addresses in the order that the headers
473happen to appear (duplicate addresses are eliminated in any case). 473happen to appear (duplicate addresses are eliminated in any case).
474This variable can be set to the symbol first, in which case the 474This variable can be set to the symbol `first', in which case the
475Bcc:/Resent-Bcc: addresses will appear at the beginning in the list; 475Bcc:/Resent-Bcc: addresses will appear at the beginning in the list;
476or, it can be set to the symbol last, in which case they will appear 476or, it can be set to the symbol `last', in which case they will appear
477at the end of the list. 477at the end of the list.
478 478
479Why should you care? Well, maybe you don't, and certainly the same 479Why should you care? Well, maybe you don't, and certainly the same
@@ -484,7 +484,7 @@ addresses are not handled first, there can be substantial delays in
484seeing the message again. Some configurations of sendmail, for example, 484seeing the message again. Some configurations of sendmail, for example,
485seem to try to deliver to each addressee at least once, immediately 485seem to try to deliver to each addressee at least once, immediately
486and serially, so slow SMTP conversations can add up to a delay. There 486and serially, so slow SMTP conversations can add up to a delay. There
487is an option for either first or last because you might have a 487is an option for either `first' or `last' because you might have a
488delivery agent that processes the addresses backwards." 488delivery agent that processes the addresses backwards."
489 :group 'feedmail-headers 489 :group 'feedmail-headers
490 :type '(choice (const nil) 490 :type '(choice (const nil)
@@ -566,7 +566,7 @@ but common in some proprietary systems."
566 "If non-nil and the email has no Sender: header, use this value. 566 "If non-nil and the email has no Sender: header, use this value.
567May be nil, in which case nothing in particular is done with respect 567May be nil, in which case nothing in particular is done with respect
568to Sender: lines. By design, will not replace an existing Sender: 568to Sender: lines. By design, will not replace an existing Sender:
569line, but you can achieve that with a fiddle-plex 'replace action. 569line, but you can achieve that with a fiddle-plex replace action.
570NB: it makes no sense to use the value t since there is no sensible 570NB: it makes no sense to use the value t since there is no sensible
571default for Sender:. 571default for Sender:.
572 572
@@ -1745,7 +1745,7 @@ applied to a file after you've just read it from disk: for example, a
1745feedmail FQM message file from a queue. You could use something like 1745feedmail FQM message file from a queue. You could use something like
1746this: 1746this:
1747 1747
1748\(setq auto-mode-alist \(cons \'\(\"\\\\.fqm$\" . feedmail-vm-mail-mode\) auto-mode-alist\)\) 1748\(setq auto-mode-alist \(cons \\='\(\"\\\\.fqm$\" . feedmail-vm-mail-mode\) auto-mode-alist\)\)
1749" 1749"
1750 (feedmail-say-debug ">in-> feedmail-vm-mail-mode") 1750 (feedmail-say-debug ">in-> feedmail-vm-mail-mode")
1751 (let ((the-buf (current-buffer))) 1751 (let ((the-buf (current-buffer)))
@@ -2054,7 +2054,7 @@ backup file names and the like)."
2054 ;; the handler for the condition-case 2054 ;; the handler for the condition-case
2055 (error (setq messages-skipped (1+ messages-skipped)) 2055 (error (setq messages-skipped (1+ messages-skipped))
2056 (ding t) 2056 (ding t)
2057 (message "FQM: Trapped %s, message left in queue." (car signal-stuff)) 2057 (message "FQM: Trapped `%s', message left in queue." (car signal-stuff))
2058 (sit-for 3) 2058 (sit-for 3)
2059 (message "FQM: Trap details: \"%s\"" 2059 (message "FQM: Trap details: \"%s\""
2060 (mapconcat 'identity (cdr signal-stuff) "\" \"")) 2060 (mapconcat 'identity (cdr signal-stuff) "\" \""))
diff --git a/lisp/mail/mailalias.el b/lisp/mail/mailalias.el
index 577cec0fd86..cd9df1f638a 100644
--- a/lisp/mail/mailalias.el
+++ b/lisp/mail/mailalias.el
@@ -119,11 +119,11 @@ completed. `pattern' is nil when `mail-directory-requery' is nil.
119 119
120The value might look like this: 120The value might look like this:
121 121
122 '(remote-shell-program \"HOST\" \"-nl\" \"USER\" \"COMMAND\") 122 (remote-shell-program \"HOST\" \"-nl\" \"USER\" \"COMMAND\")
123 123
124or like this: 124or like this:
125 125
126 '(remote-shell-program \"HOST\" \"-n\" \"COMMAND '^\" pattern \"'\")" 126 (remote-shell-program \"HOST\" \"-n\" \"COMMAND \\='^\" pattern \"\\='\")"
127 :type 'sexp 127 :type 'sexp
128 :group 'mailalias) 128 :group 'mailalias)
129(put 'mail-directory-process 'risky-local-variable t) 129(put 'mail-directory-process 'risky-local-variable t)
@@ -512,7 +512,7 @@ PREFIX is the string we want to complete."
512 mail-aliases)) 512 mail-aliases))
513 (if (consp mail-local-names) 513 (if (consp mail-local-names)
514 mail-local-names) 514 mail-local-names)
515 (or directory 515 (or directory
516 (when (consp mail-directory-names) 516 (when (consp mail-directory-names)
517 mail-directory-names))) 517 mail-directory-names)))
518 (lambda (a b) 518 (lambda (a b)
diff --git a/lisp/mail/rfc2368.el b/lisp/mail/rfc2368.el
index 3c4e9b212b3..50ff2cfb8ea 100644
--- a/lisp/mail/rfc2368.el
+++ b/lisp/mail/rfc2368.el
@@ -66,16 +66,16 @@
66 66
67;; describes 'mailto:' 67;; describes 'mailto:'
68(defconst rfc2368-mailto-scheme-index 1 68(defconst rfc2368-mailto-scheme-index 1
69 "Describes the mailto: portion of the url.") 69 "Describes the `mailto:' portion of the url.")
70;; i'm going to call this part the 'prequery' 70;; i'm going to call this part the 'prequery'
71(defconst rfc2368-mailto-prequery-index 2 71(defconst rfc2368-mailto-prequery-index 2
72 "Describes the portion of the url between mailto: and ?.") 72 "Describes the portion of the url between `mailto:' and `?'.")
73;; i'm going to call this part the 'query' 73;; i'm going to call this part the 'query'
74(defconst rfc2368-mailto-query-index 4 74(defconst rfc2368-mailto-query-index 4
75 "Describes the portion of the url after ?.") 75 "Describes the portion of the url after `?'.")
76 76
77(defun rfc2368-unhexify-string (string) 77(defun rfc2368-unhexify-string (string)
78 "Unhexify STRING -- e.g. hello%20there -> hello there." 78 "Unhexify STRING -- e.g. `hello%20there' -> `hello there'."
79 (replace-regexp-in-string "%[[:xdigit:]]\\{2\\}" 79 (replace-regexp-in-string "%[[:xdigit:]]\\{2\\}"
80 (lambda (match) 80 (lambda (match)
81 (string (string-to-number (substring match 1) 81 (string (string-to-number (substring match 1)
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el
index 5b5ee4ec2c5..4c0f2b98257 100644
--- a/lisp/mail/sendmail.el
+++ b/lisp/mail/sendmail.el
@@ -525,31 +525,33 @@ This also saves the value of `send-mail-function' via Customize."
525 ;; Query the user. 525 ;; Query the user.
526 (with-temp-buffer 526 (with-temp-buffer
527 (rename-buffer "*Emacs Mail Setup Help*" t) 527 (rename-buffer "*Emacs Mail Setup Help*" t)
528 (insert "\ 528 (insert (substitute-command-keys "\
529 Emacs is about to send an email message, but it has not been 529 Emacs is about to send an email message, but it has not been
530 configured for sending email. To tell Emacs how to send email: 530 configured for sending email. To tell Emacs how to send email:
531 531
532 - Type `" 532 - Type `")
533 (propertize "mail client" 'face 'bold) 533 (propertize "mail client" 'face 'bold)
534 "' to start your default email client and 534 (substitute-command-keys "\
535 pass it the message text.\n\n") 535' to start your default email client and
536 pass it the message text.\n\n"))
536 (and sendmail-program 537 (and sendmail-program
537 (executable-find sendmail-program) 538 (executable-find sendmail-program)
538 (insert "\ 539 (insert (substitute-command-keys "\
539 - Type `" 540 - Type `")
540 (propertize "transport" 'face 'bold) 541 (propertize "transport" 'face 'bold)
541 "' to invoke the system's mail transport agent 542 (substitute-command-keys "\
542 (the `" 543' to invoke the system's mail transport agent
544 (the `")
543 sendmail-program 545 sendmail-program
544 "' program).\n\n")) 546 (substitute-command-keys "' program).\n\n")))
545 (insert "\ 547 (insert (substitute-command-keys "\
546 - Type `" 548 - Type `")
547 (propertize "smtp" 'face 'bold) 549 (propertize "smtp" 'face 'bold)
548 "' to send mail directly to an \"outgoing mail\" server. 550 (substitute-command-keys "' to send mail directly to an \"outgoing mail\" server.
549 (Emacs may prompt you for SMTP settings). 551 (Emacs may prompt you for SMTP settings).
550 552
551 Emacs will record your selection and will use it thereafter. 553 Emacs will record your selection and will use it thereafter.
552 To change it later, customize the option `send-mail-function'.\n") 554 To change it later, customize the option `send-mail-function'.\n"))
553 (goto-char (point-min)) 555 (goto-char (point-min))
554 (display-buffer (current-buffer)) 556 (display-buffer (current-buffer))
555 (let ((completion-ignore-case t)) 557 (let ((completion-ignore-case t))
diff --git a/lisp/man.el b/lisp/man.el
index c5dbcba83a1..23b2110a4ec 100644
--- a/lisp/man.el
+++ b/lisp/man.el
@@ -104,7 +104,7 @@
104 "Manpage cleaning filter command phrases. 104 "Manpage cleaning filter command phrases.
105This variable contains a list of the following form: 105This variable contains a list of the following form:
106 106
107'((command-string phrase-string*)*) 107 ((command-string phrase-string*)*)
108 108
109Each phrase-string is concatenated onto the command-string to form a 109Each phrase-string is concatenated onto the command-string to form a
110command filter. The (standard) output (and standard error) of the Un*x 110command filter. The (standard) output (and standard error) of the Un*x
diff --git a/lisp/mh-e/mh-comp.el b/lisp/mh-e/mh-comp.el
index a8c5e339908..700d22c3862 100644
--- a/lisp/mh-e/mh-comp.el
+++ b/lisp/mh-e/mh-comp.el
@@ -91,7 +91,7 @@ user's MH directory, then in the system MH lib directory.")
91Default is \"replgroupcomps\". 91Default is \"replgroupcomps\".
92 92
93This file is used to form replies to the sender and all recipients of 93This file is used to form replies to the sender and all recipients of
94a message. Only used if (mh-variant-p 'nmh) is non-nil. 94a message. Only used if (mh-variant-p \\='nmh) is non-nil.
95If not an absolute file name, the file is searched for first in the 95If not an absolute file name, the file is searched for first in the
96user's MH directory, then in the system MH lib directory.") 96user's MH directory, then in the system MH lib directory.")
97 97
diff --git a/lisp/mh-e/mh-compat.el b/lisp/mh-e/mh-compat.el
index 82c7a4dc1c1..9865d085444 100644
--- a/lisp/mh-e/mh-compat.el
+++ b/lisp/mh-e/mh-compat.el
@@ -162,7 +162,7 @@ compatibility with versions of Emacs that lack the variable
162 162
163 (let* ((load-path (image-load-path-for-library \"mh-e\" \"mh-logo.xpm\")) 163 (let* ((load-path (image-load-path-for-library \"mh-e\" \"mh-logo.xpm\"))
164 (image-load-path (cons (car load-path) 164 (image-load-path (cons (car load-path)
165 (when (boundp 'image-load-path) 165 (when (boundp \\='image-load-path)
166 image-load-path)))) 166 image-load-path))))
167 (mh-tool-bar-folder-buttons-init))" 167 (mh-tool-bar-folder-buttons-init))"
168 (unless library (error "No library specified")) 168 (unless library (error "No library specified"))
diff --git a/lisp/mh-e/mh-e.el b/lisp/mh-e/mh-e.el
index 22e4cd737ec..7cdf67cc150 100644
--- a/lisp/mh-e/mh-e.el
+++ b/lisp/mh-e/mh-e.el
@@ -1353,8 +1353,8 @@ show window is toggled off."
1353This option is consulted when a prefix argument is used with 1353This option is consulted when a prefix argument is used with
1354\\[mh-sort-folder]. Normally default arguments to \"sortm\" are 1354\\[mh-sort-folder]. Normally default arguments to \"sortm\" are
1355specified in the MH profile. This option may be used to provide 1355specified in the MH profile. This option may be used to provide
1356an alternate view. For example, (\"-nolimit\" \"-textfield\" 1356an alternate view. For example, (\"-nolimit\" \"-textfield\"
1357\"subject\") is a useful setting." 1357\"subject\") is a useful setting."
1358 :type '(repeat string) 1358 :type '(repeat string)
1359 :group 'mh-folder 1359 :group 'mh-folder
1360 :package-version '(MH-E . "8.0")) 1360 :package-version '(MH-E . "8.0"))
@@ -1657,7 +1657,7 @@ using the Emacs 22 command \"emacsclient\" as follows:
1657 origMode 1657 origMode
1658 polltime 10 1658 polltime 10
1659 headertime 0 1659 headertime 0
1660 command emacsclient --eval '(mh-inc-spool-mh-e)' 1660 command emacsclient --eval \\='(mh-inc-spool-mh-e)\\='
1661 1661
1662In XEmacs, the command \"gnuclient\" is used in a similar 1662In XEmacs, the command \"gnuclient\" is used in a similar
1663fashion." 1663fashion."
diff --git a/lisp/mh-e/mh-seq.el b/lisp/mh-e/mh-seq.el
index 2e73f62b6d0..259f60de2d5 100644
--- a/lisp/mh-e/mh-seq.el
+++ b/lisp/mh-e/mh-seq.el
@@ -390,7 +390,7 @@ then a non-empty sequence is read."
390 "Read and return a sequence name. 390 "Read and return a sequence name.
391Prompt with PROMPT, raise an error if the sequence is empty and 391Prompt with PROMPT, raise an error if the sequence is empty and
392the NOT-EMPTY flag is non-nil, and supply an optional DEFAULT 392the NOT-EMPTY flag is non-nil, and supply an optional DEFAULT
393sequence. A reply of % defaults to the first sequence 393sequence. A reply of `%' defaults to the first sequence
394containing the current message." 394containing the current message."
395 (let* ((input (completing-read (format "%s sequence%s: " prompt 395 (let* ((input (completing-read (format "%s sequence%s: " prompt
396 (if default 396 (if default
@@ -766,7 +766,7 @@ completion is over."
766 "Parse LINE to generate folder name, unseen messages and total messages. 766 "Parse LINE to generate folder name, unseen messages and total messages.
767If CURRENT-FOLDER is non-nil then it contains the current folder 767If CURRENT-FOLDER is non-nil then it contains the current folder
768name and it is used to avoid problems in corner cases involving 768name and it is used to avoid problems in corner cases involving
769folders whose names end with a + character." 769folders whose names end with a `+' character."
770 (with-temp-buffer 770 (with-temp-buffer
771 (insert line) 771 (insert line)
772 (goto-char (point-max)) 772 (goto-char (point-max))
diff --git a/lisp/mh-e/mh-utils.el b/lisp/mh-e/mh-utils.el
index 060da464663..643674a4523 100644
--- a/lisp/mh-e/mh-utils.el
+++ b/lisp/mh-e/mh-utils.el
@@ -419,21 +419,21 @@ names and the function is called when OUTPUT is available."
419 return-nil-if-folder-empty) 419 return-nil-if-folder-empty)
420 "Normalizes FOLDER name. 420 "Normalizes FOLDER name.
421 421
422Makes sure that two / characters never occur next to each 422Makes sure that two `/' characters never occur next to each
423other. Also all occurrences of .. and . are suitably 423other. Also all occurrences of `..' and `.' are suitably
424processed. So \"+inbox/../news\" will be normalized to \"+news\". 424processed. So \"+inbox/../news\" will be normalized to \"+news\".
425 425
426If optional argument EMPTY-STRING-OKAY is nil then a + is added 426If optional argument EMPTY-STRING-OKAY is nil then a `+' is added
427at the front if FOLDER lacks one. If non-nil and FOLDER is the 427at the front if FOLDER lacks one. If non-nil and FOLDER is the
428empty string then nothing is added. 428empty string then nothing is added.
429 429
430If optional argument DONT-REMOVE-TRAILING-SLASH is non-nil then a 430If optional argument DONT-REMOVE-TRAILING-SLASH is non-nil then a
431trailing / if present is retained (if present), otherwise it is 431trailing `/' if present is retained (if present), otherwise it is
432removed. 432removed.
433 433
434If optional argument RETURN-NIL-IF-FOLDER-EMPTY is non-nil, then 434If optional argument RETURN-NIL-IF-FOLDER-EMPTY is non-nil, then
435return nil if FOLDER is \"\" or \"+\". This is useful when 435return nil if FOLDER is \"\" or \"+\". This is useful when
436normalizing the folder for the folders command which displays 436normalizing the folder for the `folders' command which displays
437the directories in / if passed \"+\". This is usually not 437the directories in / if passed \"+\". This is usually not
438desired. If this argument is non-nil, then EMPTY-STRING-OKAY has 438desired. If this argument is non-nil, then EMPTY-STRING-OKAY has
439no effect." 439no effect."
diff --git a/lisp/mouse-copy.el b/lisp/mouse-copy.el
index d3c3c80fd99..6198a125433 100644
--- a/lisp/mouse-copy.el
+++ b/lisp/mouse-copy.el
@@ -154,7 +154,7 @@ If you have the bug (or the real fix :-), please let me know."
154 "Drag out a secondary selection, then paste it at the current point. 154 "Drag out a secondary selection, then paste it at the current point.
155 155
156To test this function, evaluate: 156To test this function, evaluate:
157 (global-set-key [M-down-mouse-1] 'mouse-drag-secondary-pasting) 157 (global-set-key [M-down-mouse-1] \\='mouse-drag-secondary-pasting)
158put the point at one place, then click and drag over some other region." 158put the point at one place, then click and drag over some other region."
159 (interactive "e") 159 (interactive "e")
160 ;; Work-around: We see and react to each part of a multi-click event 160 ;; Work-around: We see and react to each part of a multi-click event
diff --git a/lisp/mouse-drag.el b/lisp/mouse-drag.el
index 945c305db7d..2b61096d86b 100644
--- a/lisp/mouse-drag.el
+++ b/lisp/mouse-drag.el
@@ -206,7 +206,7 @@ about which direction is natural. Perhaps it has to do with which
206hemisphere you're in.) 206hemisphere you're in.)
207 207
208To test this function, evaluate: 208To test this function, evaluate:
209 (global-set-key [down-mouse-2] 'mouse-drag-throw)" 209 (global-set-key [down-mouse-2] \\='mouse-drag-throw)"
210 (interactive "e") 210 (interactive "e")
211 ;; we want to do save-selected-window, but that requires 19.29 211 ;; we want to do save-selected-window, but that requires 19.29
212 (let* ((start-posn (event-start start-event)) 212 (let* ((start-posn (event-start start-event))
@@ -266,7 +266,7 @@ Drag scrolling is identical to the \"hand\" option in MacPaint, or the
266middle button in Tk text widgets. 266middle button in Tk text widgets.
267 267
268To test this function, evaluate: 268To test this function, evaluate:
269 (global-set-key [down-mouse-2] 'mouse-drag-drag)" 269 (global-set-key [down-mouse-2] \\='mouse-drag-drag)"
270 (interactive "e") 270 (interactive "e")
271 ;; we want to do save-selected-window, but that requires 19.29 271 ;; we want to do save-selected-window, but that requires 19.29
272 (let* ((start-posn (event-start start-event)) 272 (let* ((start-posn (event-start start-event))
diff --git a/lisp/mouse.el b/lisp/mouse.el
index f52b83b05c8..6584733a860 100644
--- a/lisp/mouse.el
+++ b/lisp/mouse.el
@@ -146,7 +146,7 @@ items `Turn Off' and `Help'."
146 (describe-minor-mode-completion-table-for-indicator)))) 146 (describe-minor-mode-completion-table-for-indicator))))
147 (let* ((minor-mode (lookup-minor-mode-from-indicator indicator)) 147 (let* ((minor-mode (lookup-minor-mode-from-indicator indicator))
148 (mm-fun (or (get minor-mode :minor-mode-function) minor-mode))) 148 (mm-fun (or (get minor-mode :minor-mode-function) minor-mode)))
149 (unless minor-mode (error "Cannot find minor mode for %s" indicator)) 149 (unless minor-mode (error "Cannot find minor mode for `%s'" indicator))
150 (let* ((map (cdr-safe (assq minor-mode minor-mode-map-alist))) 150 (let* ((map (cdr-safe (assq minor-mode minor-mode-map-alist)))
151 (menu (and (keymapp map) (lookup-key map [menu-bar])))) 151 (menu (and (keymapp map) (lookup-key map [menu-bar]))))
152 (setq menu 152 (setq menu
diff --git a/lisp/mpc.el b/lisp/mpc.el
index 59581f3d687..b7c19a967fa 100644
--- a/lisp/mpc.el
+++ b/lisp/mpc.el
@@ -253,6 +253,7 @@ defaults to 6600 and HOST defaults to localhost."
253 253
254(defun mpc--proc-connect (host) 254(defun mpc--proc-connect (host)
255 (let ((port 6600) 255 (let ((port 6600)
256 local
256 pass) 257 pass)
257 258
258 (when (string-match "\\`\\(?:\\(.*\\)@\\)?\\(.*?\\)\\(?::\\(.*\\)\\)?\\'" 259 (when (string-match "\\`\\(?:\\(.*\\)@\\)?\\(.*?\\)\\(?::\\(.*\\)\\)?\\'"
@@ -267,6 +268,8 @@ defaults to 6600 and HOST defaults to localhost."
267 (if (string-match "[^[:digit:]]" v) 268 (if (string-match "[^[:digit:]]" v)
268 (string-to-number v) 269 (string-to-number v)
269 v))))) 270 v)))))
271 (when (string-prefix-p "/" host) ;FIXME: Use file-name-absolute-p?
272 (setq local t))
270 273
271 (mpc--debug "Connecting to %s:%s..." host port) 274 (mpc--debug "Connecting to %s:%s..." host port)
272 (with-current-buffer (get-buffer-create (format " *mpc-%s:%s*" host port)) 275 (with-current-buffer (get-buffer-create (format " *mpc-%s:%s*" host port))
@@ -279,7 +282,10 @@ defaults to 6600 and HOST defaults to localhost."
279 (let* ((coding-system-for-read 'utf-8-unix) 282 (let* ((coding-system-for-read 'utf-8-unix)
280 (coding-system-for-write 'utf-8-unix) 283 (coding-system-for-write 'utf-8-unix)
281 (proc (condition-case err 284 (proc (condition-case err
282 (open-network-stream "MPC" (current-buffer) host port) 285 (make-network-process :name "MPC" :buffer (current-buffer)
286 :host (unless local host)
287 :service (if local host port)
288 :family (if local 'local))
283 (error (user-error (error-message-string err)))))) 289 (error (user-error (error-message-string err))))))
284 (when (processp mpc-proc) 290 (when (processp mpc-proc)
285 ;; Inherit the properties of the previous connection. 291 ;; Inherit the properties of the previous connection.
@@ -1751,7 +1757,7 @@ A value of t means the main playlist.")
1751 (completing-read "Rename playlist: " 1757 (completing-read "Rename playlist: "
1752 (mpc-cmd-list 'Playlist) 1758 (mpc-cmd-list 'Playlist)
1753 nil 'require-match))) 1759 nil 'require-match)))
1754 (newname (read-string (format-message "Rename %s to: " oldname)))) 1760 (newname (read-string (format-message "Rename `%s' to: " oldname))))
1755 (if (zerop (length newname)) 1761 (if (zerop (length newname))
1756 (error "Aborted") 1762 (error "Aborted")
1757 (list oldname newname)))) 1763 (list oldname newname))))
@@ -2630,6 +2636,8 @@ This is used so that they can be compared with `eq', which is needed for
2630 (interactive 2636 (interactive
2631 (progn 2637 (progn
2632 (if current-prefix-arg 2638 (if current-prefix-arg
2639 ;; FIXME: We should provide some completion here, especially for the
2640 ;; case where the user specifies a local socket/file name.
2633 (setq mpc-host (read-string "MPD host and port: " nil nil mpc-host))) 2641 (setq mpc-host (read-string "MPD host and port: " nil nil mpc-host)))
2634 nil)) 2642 nil))
2635 (let* ((song-buf (mpc-songs-buf)) 2643 (let* ((song-buf (mpc-songs-buf))
diff --git a/lisp/msb.el b/lisp/msb.el
index b717dcc8cd9..0351bda0e42 100644
--- a/lisp/msb.el
+++ b/lisp/msb.el
@@ -746,7 +746,7 @@ to the buffer-list variable in FUNCTION-INFO."
746 (error (unless msb--error 746 (error (unless msb--error
747 (setq msb--error 747 (setq msb--error
748 (format-message 748 (format-message
749 "In msb-menu-cond, error for buffer %s." 749 "In msb-menu-cond, error for buffer `%s'."
750 (buffer-name buffer))) 750 (buffer-name buffer)))
751 (error "%s" msb--error)))))) 751 (error "%s" msb--error))))))
752 752
diff --git a/lisp/net/ange-ftp.el b/lisp/net/ange-ftp.el
index 38b1604efbb..bb8351437d7 100644
--- a/lisp/net/ange-ftp.el
+++ b/lisp/net/ange-ftp.el
@@ -4626,7 +4626,7 @@ NEWNAME should be the name to give the new compressed or uncompressed file.")
4626 (format "%s %s \"%s\"" ; remsh -l USER does not work well 4626 (format "%s %s \"%s\"" ; remsh -l USER does not work well
4627 ; on a hp-ux machine I tried 4627 ; on a hp-ux machine I tried
4628 remote-shell-program host command)) 4628 remote-shell-program host command))
4629 (ange-ftp-message "Remote command %s ..." command) 4629 (ange-ftp-message "Remote command `%s' ..." command)
4630 ;; Cannot call ange-ftp-real-dired-run-shell-command here as it 4630 ;; Cannot call ange-ftp-real-dired-run-shell-command here as it
4631 ;; would prepend "cd default-directory" --- which bombs because 4631 ;; would prepend "cd default-directory" --- which bombs because
4632 ;; default-directory is in ange-ftp syntax for remote file names. 4632 ;; default-directory is in ange-ftp syntax for remote file names.
@@ -5978,7 +5978,7 @@ Other orders of $ and _ seem to all work just fine.")
5978 5978
5979(defcustom ange-ftp-bs2000-special-prefix 5979(defcustom ange-ftp-bs2000-special-prefix
5980 "X" 5980 "X"
5981 "Prefix used for filenames starting with # or @." 5981 "Prefix used for filenames starting with `#' or `@'."
5982 :group 'ange-ftp 5982 :group 'ange-ftp
5983 :type 'string) 5983 :type 'string)
5984 5984
diff --git a/lisp/net/browse-url.el b/lisp/net/browse-url.el
index 3f8cb841c6f..757e368317a 100644
--- a/lisp/net/browse-url.el
+++ b/lisp/net/browse-url.el
@@ -439,7 +439,7 @@ For example, adding to the default a specific translation of an ange-ftp
439address to an HTTP URL: 439address to an HTTP URL:
440 440
441 (setq browse-url-filename-alist 441 (setq browse-url-filename-alist
442 '((\"/webmaster@webserver:/home/www/html/\" . 442 \\='((\"/webmaster@webserver:/home/www/html/\" .
443 \"http://www.acme.co.uk/\") 443 \"http://www.acme.co.uk/\")
444 (\"^/\\(ftp@\\|anonymous@\\)?\\([^:]+\\):/*\" . \"ftp://\\2/\") 444 (\"^/\\(ftp@\\|anonymous@\\)?\\([^:]+\\):/*\" . \"ftp://\\2/\")
445 (\"^/\\([^:@]+@\\)?\\([^:]+\\):/*\" . \"ftp://\\1\\2/\") 445 (\"^/\\([^:@]+@\\)?\\([^:]+\\):/*\" . \"ftp://\\1\\2/\")
diff --git a/lisp/net/imap.el b/lisp/net/imap.el
index cc53e0432b6..b559ff65908 100644
--- a/lisp/net/imap.el
+++ b/lisp/net/imap.el
@@ -851,14 +851,14 @@ t if it successfully authenticates, nil otherwise."
851 (setq user (or imap-username 851 (setq user (or imap-username
852 (read-from-minibuffer 852 (read-from-minibuffer
853 (format-message 853 (format-message
854 "imap: username for %s (using stream %s): " 854 "imap: username for %s (using stream `%s'): "
855 imap-server imap-stream) 855 imap-server imap-stream)
856 (or user imap-default-user)))) 856 (or user imap-default-user))))
857 (setq passwd 857 (setq passwd
858 (or imap-password 858 (or imap-password
859 (read-passwd 859 (read-passwd
860 (format-message 860 (format-message
861 "imap: password for %s@%s (using authenticator %s): " 861 "imap: password for %s@%s (using authenticator `%s'): "
862 user imap-server imap-auth)))) 862 user imap-server imap-auth))))
863 (when (and user passwd) 863 (when (and user passwd)
864 (if (funcall loginfunc user passwd) 864 (if (funcall loginfunc user passwd)
diff --git a/lisp/net/mairix.el b/lisp/net/mairix.el
index 8a9236c1eef..a73b4dfa921 100644
--- a/lisp/net/mairix.el
+++ b/lisp/net/mairix.el
@@ -398,7 +398,7 @@ Overwrite existing entry? ")
398 (concat "\n\n" (make-string 65 ?=) 398 (concat "\n\n" (make-string 65 ?=)
399"\nYou can now customize your saved Mairix searches by modifying\n\ 399"\nYou can now customize your saved Mairix searches by modifying\n\
400the variable mairix-saved-searches. Don't forget to save your\nchanges \ 400the variable mairix-saved-searches. Don't forget to save your\nchanges \
401in your .emacs by pressing Save for Future Sessions.\n" 401in your .emacs by pressing `Save for Future Sessions'.\n"
402(make-string 65 ?=) "\n"))) 402(make-string 65 ?=) "\n")))
403 403
404(autoload 'mail-strip-quoted-names "mail-utils") 404(autoload 'mail-strip-quoted-names "mail-utils")
@@ -668,7 +668,7 @@ Fill in VALUES if based on an article."
668 " ^substring= to match the substring at the beginning of a word.\n")) 668 " ^substring= to match the substring at the beginning of a word.\n"))
669 (widget-insert 669 (widget-insert
670 (format-message 670 (format-message
671 "Whitespace will be converted to , (i.e. AND). Use / for OR.\n\n")) 671 "Whitespace will be converted to `,' (i.e. AND). Use `/' for OR.\n\n"))
672 (setq mairix-widgets (mairix-widget-build-editable-fields values)) 672 (setq mairix-widgets (mairix-widget-build-editable-fields values))
673 (when (member 'flags mairix-widget-other) 673 (when (member 'flags mairix-widget-other)
674 (widget-insert "\nFlags:\n Seen: ") 674 (widget-insert "\nFlags:\n Seen: ")
diff --git a/lisp/net/newst-backend.el b/lisp/net/newst-backend.el
index 9277b092b8a..6c80e627477 100644
--- a/lisp/net/newst-backend.el
+++ b/lisp/net/newst-backend.el
@@ -848,8 +848,8 @@ Argument BUFFER is the buffer of the retrieval process."
848 newsticker--error-headline 848 newsticker--error-headline
849 (format-message 849 (format-message
850 (concat "%s: Newsticker could not retrieve news from %s.\n" 850 (concat "%s: Newsticker could not retrieve news from %s.\n"
851 "Return status: %s\n" 851 "Return status: `%s'\n"
852 "Command was %s") 852 "Command was `%s'")
853 (format-time-string "%A, %H:%M") 853 (format-time-string "%A, %H:%M")
854 feed-name event command) 854 feed-name event command)
855 "" 855 ""
diff --git a/lisp/net/newst-treeview.el b/lisp/net/newst-treeview.el
index ef8507e25ce..4eef5809233 100644
--- a/lisp/net/newst-treeview.el
+++ b/lisp/net/newst-treeview.el
@@ -1269,7 +1269,7 @@ Note: does not update the layout."
1269 (file-exists-p newsticker-groups-filename) 1269 (file-exists-p newsticker-groups-filename)
1270 (y-or-n-p 1270 (y-or-n-p
1271 (format-message 1271 (format-message
1272 (concat "Obsolete variable newsticker-groups-filename " 1272 (concat "Obsolete variable `newsticker-groups-filename' "
1273 "points to existing file \"%s\".\n" 1273 "points to existing file \"%s\".\n"
1274 "Read it? ") 1274 "Read it? ")
1275 newsticker-groups-filename)) 1275 newsticker-groups-filename))
@@ -1281,7 +1281,7 @@ Note: does not update the layout."
1281 (file-exists-p newsticker-groups-filename) 1281 (file-exists-p newsticker-groups-filename)
1282 (y-or-n-p (format-message 1282 (y-or-n-p (format-message
1283 (concat "Delete the file \"%s\",\nto which the obsolete " 1283 (concat "Delete the file \"%s\",\nto which the obsolete "
1284 "variable newsticker-groups-filename points ? ") 1284 "variable `newsticker-groups-filename' points ? ")
1285 newsticker-groups-filename)) 1285 newsticker-groups-filename))
1286 (delete-file newsticker-groups-filename)) 1286 (delete-file newsticker-groups-filename))
1287 (when buf 1287 (when buf
diff --git a/lisp/net/ntlm.el b/lisp/net/ntlm.el
index 5f02e2977ef..ff7e79e5aa6 100644
--- a/lisp/net/ntlm.el
+++ b/lisp/net/ntlm.el
@@ -3,8 +3,9 @@
3;; Copyright (C) 2001, 2007-2015 Free Software Foundation, Inc. 3;; Copyright (C) 2001, 2007-2015 Free Software Foundation, Inc.
4 4
5;; Author: Taro Kawagishi <tarok@transpulse.org> 5;; Author: Taro Kawagishi <tarok@transpulse.org>
6;; Keywords: NTLM, SASL 6;; Maintainer: Thomas Fitzsimmons <fitzsim@fitzsim.org>
7;; Version: 1.00 7;; Keywords: NTLM, SASL, comm
8;; Version: 2.00
8;; Created: February 2001 9;; Created: February 2001
9 10
10;; This file is part of GNU Emacs. 11;; This file is part of GNU Emacs.
@@ -65,6 +66,27 @@
65;;; Code: 66;;; Code:
66 67
67(require 'md4) 68(require 'md4)
69(require 'hmac-md5)
70(require 'calc)
71
72(defgroup ntlm nil
73 "NTLM (NT LanManager) authentication."
74 :version "25.1"
75 :group 'comm)
76
77(defcustom ntlm-compatibility-level 5
78 "The NTLM compatibility level.
79Ordered from 0, the oldest, least-secure level through 5, the
80newest, most-secure level. Newer servers may reject lower
81levels. At levels 3 through 5, send LMv2 and NTLMv2 responses.
82At levels 0, 1 and 2, send LM and NTLM responses.
83
84In this implementation, levels 0, 1 and 2 are the same (old,
85insecure), and levels 3, 4 and 5 are the same (new, secure). If
86NTLM authentication isn't working at level 5, try level 0. The
87other levels are only present because other clients have six
88levels."
89 :type '(choice (const 0) (const 1) (const 2) (const 3) (const 4) (const 5)))
68 90
69;;; 91;;;
70;;; NTLM authentication interface functions 92;;; NTLM authentication interface functions
@@ -112,6 +134,39 @@ is not given."
112 `(string-as-unibyte ,string) 134 `(string-as-unibyte ,string)
113 string))) 135 string)))
114 136
137(defun ntlm-compute-timestamp ()
138 "Compute an NTLMv2 timestamp.
139Return a unibyte string representing the number of tenths of a
140microsecond since January 1, 1601 as a 64-bit little-endian
141signed integer."
142 (let* ((s-to-tenths-of-us "mul(add(lsh($1,16),$2),10000000)")
143 (us-to-tenths-of-us "mul($3,10)")
144 (ps-to-tenths-of-us "idiv($4,100000)")
145 (tenths-of-us-since-jan-1-1601
146 (apply 'calc-eval (concat "add(add(add("
147 s-to-tenths-of-us ","
148 us-to-tenths-of-us "),"
149 ps-to-tenths-of-us "),"
150 ;; tenths of microseconds between
151 ;; 1601-01-01 and 1970-01-01
152 "116444736000000000)")
153 ;; add trailing zeros to support old current-time formats
154 'rawnum (append (current-time) '(0 0))))
155 result-bytes)
156 (dotimes (byte 8)
157 (push (calc-eval "and($1,16#FF)" 'rawnum tenths-of-us-since-jan-1-1601)
158 result-bytes)
159 (setq tenths-of-us-since-jan-1-1601
160 (calc-eval "rsh($1,8,64)" 'rawnum tenths-of-us-since-jan-1-1601)))
161 (apply 'unibyte-string (nreverse result-bytes))))
162
163(defun ntlm-generate-nonce ()
164 "Generate a random nonce, not to be used more than once.
165Return a random eight byte unibyte string."
166 (unibyte-string
167 (random 256) (random 256) (random 256) (random 256)
168 (random 256) (random 256) (random 256) (random 256)))
169
115(defun ntlm-build-auth-response (challenge user password-hashes) 170(defun ntlm-build-auth-response (challenge user password-hashes)
116 "Return the response string to a challenge string CHALLENGE given by 171 "Return the response string to a challenge string CHALLENGE given by
117the NTLM based server for the user USER and the password hash list 172the NTLM based server for the user USER and the password hash list
@@ -128,9 +183,9 @@ by PASSWORD-HASHES. PASSWORD-HASHES should be a return value of
128 uDomain-len uDomain-offs 183 uDomain-len uDomain-offs
129 ;; response struct and its fields 184 ;; response struct and its fields
130 lmRespData ;lmRespData, 24 bytes 185 lmRespData ;lmRespData, 24 bytes
131 ntRespData ;ntRespData, 24 bytes 186 ntRespData ;ntRespData, variable length
132 domain ;ascii domain string 187 domain ;ascii domain string
133 lu ld off-lm off-nt off-d off-u off-w off-s) 188 lu ld ln off-lm off-nt off-d off-u off-w off-s)
134 ;; extract domain string from challenge string 189 ;; extract domain string from challenge string
135 (setq uDomain-len (md4-unpack-int16 (substring uDomain 0 2))) 190 (setq uDomain-len (md4-unpack-int16 (substring uDomain 0 2)))
136 (setq uDomain-offs (md4-unpack-int32 (substring uDomain 4 8))) 191 (setq uDomain-offs (md4-unpack-int32 (substring uDomain 4 8)))
@@ -144,30 +199,63 @@ by PASSWORD-HASHES. PASSWORD-HASHES should be a return value of
144 (setq domain (substring user (1+ (match-beginning 0)))) 199 (setq domain (substring user (1+ (match-beginning 0))))
145 (setq user (substring user 0 (match-beginning 0)))) 200 (setq user (substring user 0 (match-beginning 0))))
146 201
147 ;; check if "negotiate NTLM2 key" flag is set in type 2 message 202 (unless (and (integerp ntlm-compatibility-level)
148 (if (not (zerop (logand (aref flags 2) 8))) 203 (>= ntlm-compatibility-level 0)
149 (let (randomString 204 (<= ntlm-compatibility-level 5))
150 sessionHash) 205 (error "Invalid ntlm-compatibility-level value"))
151 ;; generate NTLM2 session response data 206 (if (and (>= ntlm-compatibility-level 3)
152 (setq randomString (string-make-unibyte 207 (<= ntlm-compatibility-level 5))
153 (concat 208 ;; extract target information block, if it is present
154 (make-string 1 (random 256)) 209 (if (< (cdr uDomain-offs) 48)
155 (make-string 1 (random 256)) 210 (error "Failed to find target information block")
156 (make-string 1 (random 256)) 211 (let* ((targetInfo-len (md4-unpack-int16 (substring rchallenge
157 (make-string 1 (random 256)) 212 40 42)))
158 (make-string 1 (random 256)) 213 (targetInfo-offs (md4-unpack-int32 (substring rchallenge
159 (make-string 1 (random 256)) 214 44 48)))
160 (make-string 1 (random 256)) 215 (targetInfo (substring rchallenge
161 (make-string 1 (random 256))))) 216 (cdr targetInfo-offs)
162 (setq sessionHash (secure-hash 'md5 217 (+ (cdr targetInfo-offs)
163 (concat challengeData randomString) 218 targetInfo-len)))
164 nil nil t)) 219 (upcase-user (upcase (ntlm-ascii2unicode user (length user))))
165 (setq sessionHash (substring sessionHash 0 8)) 220 (ntlmv2-hash (hmac-md5 (concat upcase-user
166 221 (ntlm-ascii2unicode
167 (setq lmRespData (concat randomString (make-string 16 0))) 222 domain (length domain)))
168 (setq ntRespData (ntlm-smb-owf-encrypt 223 (cadr password-hashes)))
169 (cadr password-hashes) sessionHash))) 224 (nonce (ntlm-generate-nonce))
170 (progn 225 (blob (concat (make-string 2 1)
226 (make-string 2 0) ; blob signature
227 (make-string 4 0) ; reserved value
228 (ntlm-compute-timestamp) ; timestamp
229 nonce ; client nonce
230 (make-string 4 0) ; unknown
231 targetInfo ; target info
232 (make-string 4 0))) ; unknown
233 ;; for reference: LMv2 interim calculation
234 ;; (lm-interim (hmac-md5 (concat challengeData nonce)
235 ;; ntlmv2-hash))
236 (nt-interim (hmac-md5 (concat challengeData blob)
237 ntlmv2-hash)))
238 ;; for reference: LMv2 field, but match other clients that
239 ;; send all zeros
240 ;; (setq lmRespData (concat lm-interim nonce))
241 (setq lmRespData (make-string 24 0))
242 (setq ntRespData (concat nt-interim blob))))
243 ;; compatibility level is 2, 1 or 0
244 ;; level 2 should be treated specially but it's not clear how,
245 ;; so just treat it the same as levels 0 and 1
246 ;; check if "negotiate NTLM2 key" flag is set in type 2 message
247 (if (not (zerop (logand (aref flags 2) 8)))
248 (let (randomString
249 sessionHash)
250 ;; generate NTLM2 session response data
251 (setq randomString (ntlm-generate-nonce))
252 (setq sessionHash (secure-hash 'md5
253 (concat challengeData randomString)
254 nil nil t))
255 (setq sessionHash (substring sessionHash 0 8))
256 (setq lmRespData (concat randomString (make-string 16 0)))
257 (setq ntRespData (ntlm-smb-owf-encrypt
258 (cadr password-hashes) sessionHash)))
171 ;; generate response data 259 ;; generate response data
172 (setq lmRespData 260 (setq lmRespData
173 (ntlm-smb-owf-encrypt (car password-hashes) challengeData)) 261 (ntlm-smb-owf-encrypt (car password-hashes) challengeData))
@@ -177,12 +265,13 @@ by PASSWORD-HASHES. PASSWORD-HASHES should be a return value of
177 ;; get offsets to fields to pack the response struct in a string 265 ;; get offsets to fields to pack the response struct in a string
178 (setq lu (length user)) 266 (setq lu (length user))
179 (setq ld (length domain)) 267 (setq ld (length domain))
268 (setq ln (length ntRespData))
180 (setq off-lm 64) ;offset to string 'lmResponse 269 (setq off-lm 64) ;offset to string 'lmResponse
181 (setq off-nt (+ 64 24)) ;offset to string 'ntResponse 270 (setq off-nt (+ 64 24)) ;offset to string 'ntResponse
182 (setq off-d (+ 64 48)) ;offset to string 'uDomain 271 (setq off-d (+ 64 24 ln)) ;offset to string 'uDomain
183 (setq off-u (+ 64 48 (* 2 ld))) ;offset to string 'uUser 272 (setq off-u (+ 64 24 ln (* 2 ld))) ;offset to string 'uUser
184 (setq off-w (+ 64 48 (* 2 (+ ld lu)))) ;offset to string 'uWks 273 (setq off-w (+ 64 24 ln (* 2 (+ ld lu)))) ;offset to string 'uWks
185 (setq off-s (+ 64 48 (* 2 (+ ld lu lu)))) ;offset to string 'sessionKey 274 (setq off-s (+ 64 24 ln (* 2 (+ ld lu lu)))) ;offset to string 'sessionKey
186 ;; pack the response struct in a string 275 ;; pack the response struct in a string
187 (concat "NTLMSSP\0" ;response ident field, 8 bytes 276 (concat "NTLMSSP\0" ;response ident field, 8 bytes
188 (md4-pack-int32 '(0 . 3)) ;response msgType field, 4 bytes 277 (md4-pack-int32 '(0 . 3)) ;response msgType field, 4 bytes
@@ -194,9 +283,9 @@ by PASSWORD-HASHES. PASSWORD-HASHES should be a return value of
194 (md4-pack-int32 (cons 0 off-lm)) ;field offset 283 (md4-pack-int32 (cons 0 off-lm)) ;field offset
195 284
196 ;; ntResponse field, 8 bytes 285 ;; ntResponse field, 8 bytes
197 ;;AddBytes(response,ntResponse,ntRespData,24); 286 ;;AddBytes(response,ntResponse,ntRespData,ln);
198 (md4-pack-int16 24) ;len field 287 (md4-pack-int16 ln) ;len field
199 (md4-pack-int16 24) ;maxlen field 288 (md4-pack-int16 ln) ;maxlen field
200 (md4-pack-int32 (cons 0 off-nt)) ;field offset 289 (md4-pack-int32 (cons 0 off-nt)) ;field offset
201 290
202 ;; uDomain field, 8 bytes 291 ;; uDomain field, 8 bytes
diff --git a/lisp/net/rcirc.el b/lisp/net/rcirc.el
index cd5bbbdabdf..df0635066cc 100644
--- a/lisp/net/rcirc.el
+++ b/lisp/net/rcirc.el
@@ -926,7 +926,7 @@ The list is updated automatically by `defun-rcirc-command'.")
926 926
927(defun rcirc-complete () 927(defun rcirc-complete ()
928 "Cycle through completions from list of nicks in channel or IRC commands. 928 "Cycle through completions from list of nicks in channel or IRC commands.
929IRC command completion is performed only if / is the first input char." 929IRC command completion is performed only if `/' is the first input char."
930 (interactive) 930 (interactive)
931 (unless (rcirc-looking-at-input) 931 (unless (rcirc-looking-at-input)
932 (error "Point not located after rcirc prompt")) 932 (error "Point not located after rcirc prompt"))
diff --git a/lisp/net/rlogin.el b/lisp/net/rlogin.el
index c0dcc2332fe..da46ec3f670 100644
--- a/lisp/net/rlogin.el
+++ b/lisp/net/rlogin.el
@@ -175,7 +175,7 @@ function `rlogin-directory-tracking-mode' rather than simply setting the
175variable." 175variable."
176 (interactive (list 176 (interactive (list
177 (read-from-minibuffer (format-message 177 (read-from-minibuffer (format-message
178 "Arguments for %s (hostname first): " 178 "Arguments for `%s' (hostname first): "
179 (file-name-nondirectory rlogin-program)) 179 (file-name-nondirectory rlogin-program))
180 nil nil nil 'rlogin-history) 180 nil nil nil 'rlogin-history)
181 current-prefix-arg)) 181 current-prefix-arg))
diff --git a/lisp/net/soap-client.el b/lisp/net/soap-client.el
index a05108df0ae..ada2767a4d1 100644
--- a/lisp/net/soap-client.el
+++ b/lisp/net/soap-client.el
@@ -489,7 +489,7 @@ structure predicate for the type of element you want to retrieve.
489For example, to retrieve a message named \"foo\" when other 489For example, to retrieve a message named \"foo\" when other
490elements named \"foo\" exist in the WSDL you could use: 490elements named \"foo\" exist in the WSDL you could use:
491 491
492 (soap-wsdl-get \"foo\" WSDL 'soap-message-p) 492 (soap-wsdl-get \"foo\" WSDL \\='soap-message-p)
493 493
494If USE-LOCAL-ALIAS-TABLE is not nil, `soap-local-xmlns' will be 494If USE-LOCAL-ALIAS-TABLE is not nil, `soap-local-xmlns' will be
495used to resolve the namespace alias." 495used to resolve the namespace alias."
diff --git a/lisp/net/tls.el b/lisp/net/tls.el
index 544aec5cfda..48e6a42186c 100644
--- a/lisp/net/tls.el
+++ b/lisp/net/tls.el
@@ -137,7 +137,7 @@ the external program knows about the root certificates you
137consider trustworthy, e.g.: 137consider trustworthy, e.g.:
138 138
139\(setq tls-program 139\(setq tls-program
140 '(\"gnutls-cli --x509cafile /etc/ssl/certs/ca-certificates.crt -p %p %h\" 140 \\='(\"gnutls-cli --x509cafile /etc/ssl/certs/ca-certificates.crt -p %p %h\"
141 \"gnutls-cli --x509cafile /etc/ssl/certs/ca-certificates.crt -p %p %h --protocols ssl3\" 141 \"gnutls-cli --x509cafile /etc/ssl/certs/ca-certificates.crt -p %p %h --protocols ssl3\"
142 \"openssl s_client -connect %h:%p -CAfile /etc/ssl/certs/ca-certificates.crt -no_ssl2 -ign_eof\"))" 142 \"openssl s_client -connect %h:%p -CAfile /etc/ssl/certs/ca-certificates.crt -no_ssl2 -ign_eof\"))"
143 :type '(choice (const :tag "Always" t) 143 :type '(choice (const :tag "Always" t)
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index 6cec3c55bc9..0969048c433 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -972,14 +972,14 @@ checked via the following code:
972 (erase-buffer) 972 (erase-buffer)
973 (let ((proc (start-process (buffer-name) (current-buffer) 973 (let ((proc (start-process (buffer-name) (current-buffer)
974 \"ssh\" \"-l\" user host \"wc\" \"-c\"))) 974 \"ssh\" \"-l\" user host \"wc\" \"-c\")))
975 (when (memq (process-status proc) '(run open)) 975 (when (memq (process-status proc) \\='(run open))
976 (process-send-string proc (make-string sent ?\\ )) 976 (process-send-string proc (make-string sent ?\\ ))
977 (process-send-eof proc) 977 (process-send-eof proc)
978 (process-send-eof proc)) 978 (process-send-eof proc))
979 (while (not (progn (goto-char (point-min)) 979 (while (not (progn (goto-char (point-min))
980 (re-search-forward \"\\\\w+\" (point-max) t))) 980 (re-search-forward \"\\\\w+\" (point-max) t)))
981 (accept-process-output proc 1)) 981 (accept-process-output proc 1))
982 (when (memq (process-status proc) '(run open)) 982 (when (memq (process-status proc) \\='(run open))
983 (setq received (string-to-number (match-string 0))) 983 (setq received (string-to-number (match-string 0)))
984 (delete-process proc) 984 (delete-process proc)
985 (message \"Bytes sent: %s\\tBytes received: %s\" sent received) 985 (message \"Bytes sent: %s\\tBytes received: %s\" sent received)
@@ -3615,7 +3615,7 @@ This is needed in order to hide `last-coding-system-used', which is set
3615for process communication also." 3615for process communication also."
3616 (with-current-buffer (process-buffer proc) 3616 (with-current-buffer (process-buffer proc)
3617 ;; FIXME: If there is a gateway process, we need communication 3617 ;; FIXME: If there is a gateway process, we need communication
3618 ;; between several processes. Too complicate to implement, so we 3618 ;; between several processes. Too complicated to implement, so we
3619 ;; read output from all processes. 3619 ;; read output from all processes.
3620 (let ((p (if (tramp-get-connection-property proc "gateway" nil) nil proc)) 3620 (let ((p (if (tramp-get-connection-property proc "gateway" nil) nil proc))
3621 buffer-read-only last-coding-system-used) 3621 buffer-read-only last-coding-system-used)
diff --git a/lisp/obsolete/fast-lock.el b/lisp/obsolete/fast-lock.el
index 0f57dfd1788..7e3dd66a56a 100644
--- a/lisp/obsolete/fast-lock.el
+++ b/lisp/obsolete/fast-lock.el
@@ -336,7 +336,7 @@ If nil, means information for all faces will be saved.")
336With arg, turn Fast Lock mode on if and only if arg is positive and the buffer 336With arg, turn Fast Lock mode on if and only if arg is positive and the buffer
337is associated with a file. Enable it automatically in your `~/.emacs' by: 337is associated with a file. Enable it automatically in your `~/.emacs' by:
338 338
339 (setq font-lock-support-mode 'fast-lock-mode) 339 (setq font-lock-support-mode \\='fast-lock-mode)
340 340
341If Fast Lock mode is enabled, and the current buffer does not contain any text 341If Fast Lock mode is enabled, and the current buffer does not contain any text
342properties, any associated Font Lock cache is used if its timestamp matches the 342properties, any associated Font Lock cache is used if its timestamp matches the
@@ -538,7 +538,7 @@ If the same file has different cache file names when edited on different
538machines, e.g., on one machine the cache file name has the prefix `#home', 538machines, e.g., on one machine the cache file name has the prefix `#home',
539perhaps due to automount, try putting in your `~/.emacs' something like: 539perhaps due to automount, try putting in your `~/.emacs' something like:
540 540
541 (setq directory-abbrev-alist (cons '(\"^/home/\" . \"/\") directory-abbrev-alist)) 541 (setq directory-abbrev-alist (cons \\='(\"^/home/\" . \"/\") directory-abbrev-alist))
542 542
543Emacs automagically removes the common `/tmp_mnt' automount prefix by default. 543Emacs automagically removes the common `/tmp_mnt' automount prefix by default.
544 544
diff --git a/lisp/obsolete/iswitchb.el b/lisp/obsolete/iswitchb.el
index 61f9d7f741f..4121e65c9dc 100644
--- a/lisp/obsolete/iswitchb.el
+++ b/lisp/obsolete/iswitchb.el
@@ -1096,7 +1096,7 @@ Return the modified list with the last element prepended to it."
1096 (and iswitchb-prompt-newbuffer 1096 (and iswitchb-prompt-newbuffer
1097 (y-or-n-p 1097 (y-or-n-p
1098 (format-message 1098 (format-message
1099 "No buffer matching %s, create one? " 1099 "No buffer matching `%s', create one? "
1100 buf))))) 1100 buf)))))
1101 ;; then create a new buffer 1101 ;; then create a new buffer
1102 (progn 1102 (progn
diff --git a/lisp/obsolete/landmark.el b/lisp/obsolete/landmark.el
index 39684a781cc..91c33874b61 100644
--- a/lisp/obsolete/landmark.el
+++ b/lisp/obsolete/landmark.el
@@ -866,7 +866,7 @@ If the game is finished, this command requests for another game."
866 (move-to-column (+ landmark-x-offset (* landmark-square-width (1- x))))) 866 (move-to-column (+ landmark-x-offset (* landmark-square-width (1- x)))))
867 867
868(defun landmark-plot-square (square value) 868(defun landmark-plot-square (square value)
869 "Draw X, O or . on SQUARE depending on VALUE, leave point there." 869 "Draw `X', `O' or `.' on SQUARE depending on VALUE, leave point there."
870 (or (= value 1) 870 (or (= value 1)
871 (landmark-goto-square square)) 871 (landmark-goto-square square))
872 (let ((inhibit-read-only t)) 872 (let ((inhibit-read-only t))
diff --git a/lisp/obsolete/lazy-lock.el b/lisp/obsolete/lazy-lock.el
index 885a11f7596..79afd80813f 100644
--- a/lisp/obsolete/lazy-lock.el
+++ b/lisp/obsolete/lazy-lock.el
@@ -466,7 +466,7 @@ See also `lazy-lock-stealth-load'."
466With arg, turn Lazy Lock mode on if and only if arg is positive. Enable it 466With arg, turn Lazy Lock mode on if and only if arg is positive. Enable it
467automatically in your `~/.emacs' by: 467automatically in your `~/.emacs' by:
468 468
469 (setq font-lock-support-mode 'lazy-lock-mode) 469 (setq font-lock-support-mode \\='lazy-lock-mode)
470 470
471For a newer font-lock support mode with similar functionality, see 471For a newer font-lock support mode with similar functionality, see
472`jit-lock-mode'. Eventually, Lazy Lock mode will be deprecated in 472`jit-lock-mode'. Eventually, Lazy Lock mode will be deprecated in
diff --git a/lisp/obsolete/otodo-mode.el b/lisp/obsolete/otodo-mode.el
index be067f80a06..1e9f7e42628 100644
--- a/lisp/obsolete/otodo-mode.el
+++ b/lisp/obsolete/otodo-mode.el
@@ -648,7 +648,7 @@ If point is on an empty line, insert the entry there."
648 (forward-line (1- todo-previous-line)) 648 (forward-line (1- todo-previous-line))
649 (let ((item (todo-item-string-start))) 649 (let ((item (todo-item-string-start)))
650 (setq todo-previous-answer 650 (setq todo-previous-answer
651 (y-or-n-p (format-message "More important than %s? " item))))) 651 (y-or-n-p (format-message "More important than `%s'? " item)))))
652 todo-previous-answer) 652 todo-previous-answer)
653(defalias 'todo-ask-p 'todo-more-important-p) 653(defalias 'todo-ask-p 'todo-more-important-p)
654 654
diff --git a/lisp/obsolete/pgg-gpg.el b/lisp/obsolete/pgg-gpg.el
index cd29c613aab..f3d63eb7451 100644
--- a/lisp/obsolete/pgg-gpg.el
+++ b/lisp/obsolete/pgg-gpg.el
@@ -122,7 +122,7 @@
122 (insert-file-contents output-file-name))) 122 (insert-file-contents output-file-name)))
123 (set-buffer errors-buffer) 123 (set-buffer errors-buffer)
124 (if (memq status '(stop signal)) 124 (if (memq status '(stop signal))
125 (error "%s exited abnormally: %s" program exit-status)) 125 (error "%s exited abnormally: `%s'" program exit-status))
126 (if (= 127 exit-status) 126 (if (= 127 exit-status)
127 (error "%s could not be found" program)))) 127 (error "%s could not be found" program))))
128 (if passphrase-with-newline 128 (if passphrase-with-newline
diff --git a/lisp/obsolete/pgg-pgp.el b/lisp/obsolete/pgg-pgp.el
index ee7af04c447..af2d7a8e39f 100644
--- a/lisp/obsolete/pgg-pgp.el
+++ b/lisp/obsolete/pgg-pgp.el
@@ -99,7 +99,7 @@ Bourne shell or its equivalent \(not tcsh) is needed for \"2>\"."
99 (pgg-convert-lbt-region (point-min)(point-max) 'LF) 99 (pgg-convert-lbt-region (point-min)(point-max) 'LF)
100 100
101 (if (memq status '(stop signal)) 101 (if (memq status '(stop signal))
102 (error "%s exited abnormally: %s" program exit-status)) 102 (error "%s exited abnormally: `%s'" program exit-status))
103 (if (= 127 exit-status) 103 (if (= 127 exit-status)
104 (error "%s could not be found" program)) 104 (error "%s could not be found" program))
105 105
diff --git a/lisp/obsolete/pgg-pgp5.el b/lisp/obsolete/pgg-pgp5.el
index d87c6fd9020..bbc08c48348 100644
--- a/lisp/obsolete/pgg-pgp5.el
+++ b/lisp/obsolete/pgg-pgp5.el
@@ -115,7 +115,7 @@ Bourne shell or its equivalent \(not tcsh) is needed for \"2>\"."
115 (pgg-convert-lbt-region (point-min)(point-max) 'LF) 115 (pgg-convert-lbt-region (point-min)(point-max) 'LF)
116 116
117 (if (memq status '(stop signal)) 117 (if (memq status '(stop signal))
118 (error "%s exited abnormally: %s" program exit-status)) 118 (error "%s exited abnormally: `%s'" program exit-status))
119 (if (= 127 exit-status) 119 (if (= 127 exit-status)
120 (error "%s could not be found" program)) 120 (error "%s could not be found" program))
121 121
diff --git a/lisp/obsolete/sym-comp.el b/lisp/obsolete/sym-comp.el
index c633bd5845b..ac67963571c 100644
--- a/lisp/obsolete/sym-comp.el
+++ b/lisp/obsolete/sym-comp.el
@@ -165,9 +165,9 @@ Uses `symbol-completion-symbol-function' and
165used something like this in a major mode which provides symbol 165used something like this in a major mode which provides symbol
166completion: 166completion:
167 167
168 (if (featurep 'hippie-exp) 168 (if (featurep \\='hippie-exp)
169 (set (make-local-variable 'hippie-expand-try-functions-list) 169 (set (make-local-variable \\='hippie-expand-try-functions-list)
170 (cons 'symbol-completion-try-complete 170 (cons \\='symbol-completion-try-complete
171 hippie-expand-try-functions-list)))" 171 hippie-expand-try-functions-list)))"
172 (when (and symbol-completion-symbol-function 172 (when (and symbol-completion-symbol-function
173 symbol-completion-completions-function) 173 symbol-completion-completions-function)
diff --git a/lisp/obsolete/tpu-edt.el b/lisp/obsolete/tpu-edt.el
index adf6122f299..d16cd274890 100644
--- a/lisp/obsolete/tpu-edt.el
+++ b/lisp/obsolete/tpu-edt.el
@@ -873,7 +873,7 @@ With argument, fill and justify."
873 (set-frame-width (selected-frame) width)) 873 (set-frame-width (selected-frame) width))
874 874
875(defun tpu-toggle-newline-and-indent nil 875(defun tpu-toggle-newline-and-indent nil
876 "Toggle between newline and indent and simple newline." 876 "Toggle between `newline-and-indent' and simple `newline'."
877 (interactive) 877 (interactive)
878 (cond (tpu-newline-and-indent-p 878 (cond (tpu-newline-and-indent-p
879 (setq tpu-newline-and-indent-string "") 879 (setq tpu-newline-and-indent-string "")
@@ -1313,7 +1313,7 @@ kill modified buffers without asking."
1313 (if tpu-regexp-p "en" "dis")))) 1313 (if tpu-regexp-p "en" "dis"))))
1314 1314
1315(defun tpu-regexp-prompt (prompt) 1315(defun tpu-regexp-prompt (prompt)
1316 "Read a string, adding RE to the prompt if tpu-regexp-p is set." 1316 "Read a string, adding `RE ' to the prompt if tpu-regexp-p is set."
1317 (let ((re-prompt (concat (if tpu-regexp-p "RE ") prompt))) 1317 (let ((re-prompt (concat (if tpu-regexp-p "RE ") prompt)))
1318 (read-from-minibuffer re-prompt nil nil nil 'tpu-regexp-prompt-hist))) 1318 (read-from-minibuffer re-prompt nil nil nil 'tpu-regexp-prompt-hist)))
1319 1319
diff --git a/lisp/obsolete/vi.el b/lisp/obsolete/vi.el
index 2375eb509be..081b229ebca 100644
--- a/lisp/obsolete/vi.el
+++ b/lisp/obsolete/vi.el
@@ -832,7 +832,7 @@ Possible prefix-arg cases are nil, INTEGER, (nil . CHAR) or (INTEGER . CHAR)."
832 832
833(defun vi-goto-mark (mark-char &optional line-flag) 833(defun vi-goto-mark (mark-char &optional line-flag)
834 "Go to marked position or line (if line-flag is given). 834 "Go to marked position or line (if line-flag is given).
835Goto mark @ means jump into and pop the top mark on the mark ring." 835Goto mark `@' means jump into and pop the top mark on the mark ring."
836 (cond ((char-equal mark-char last-command-event) ; `` or '' 836 (cond ((char-equal mark-char last-command-event) ; `` or ''
837 (exchange-point-and-mark) (if line-flag (back-to-indentation))) 837 (exchange-point-and-mark) (if line-flag (back-to-indentation)))
838 ((char-equal mark-char ?@) ; jump and pop mark 838 ((char-equal mark-char ?@) ; jump and pop mark
diff --git a/lisp/org/ob-core.el b/lisp/org/ob-core.el
index ffc7df4e928..799e58b6af2 100644
--- a/lisp/org/ob-core.el
+++ b/lisp/org/ob-core.el
@@ -1677,7 +1677,7 @@ If the point is not on a source block then return nil."
1677 (if point 1677 (if point
1678 ;; taken from `org-open-at-point' 1678 ;; taken from `org-open-at-point'
1679 (progn (org-mark-ring-push) (goto-char point) (org-show-context)) 1679 (progn (org-mark-ring-push) (goto-char point) (org-show-context))
1680 (message "source-code block %s not found in this buffer" name)))) 1680 (message "source-code block `%s' not found in this buffer" name))))
1681 1681
1682(defun org-babel-find-named-block (name) 1682(defun org-babel-find-named-block (name)
1683 "Find a named source-code block. 1683 "Find a named source-code block.
@@ -1712,7 +1712,7 @@ org-babel-named-src-block-regexp."
1712 (if point 1712 (if point
1713 ;; taken from `org-open-at-point' 1713 ;; taken from `org-open-at-point'
1714 (progn (goto-char point) (org-show-context)) 1714 (progn (goto-char point) (org-show-context))
1715 (message "result %s not found in this buffer" name)))) 1715 (message "result `%s' not found in this buffer" name))))
1716 1716
1717(defun org-babel-find-named-result (name &optional point) 1717(defun org-babel-find-named-result (name &optional point)
1718 "Find a named result. 1718 "Find a named result.
@@ -2207,7 +2207,7 @@ file's directory then expand relative links."
2207 "Make true to capitalize begin/end example markers inserted by code blocks.") 2207 "Make true to capitalize begin/end example markers inserted by code blocks.")
2208 2208
2209(defun org-babel-examplize-region (beg end &optional results-switches) 2209(defun org-babel-examplize-region (beg end &optional results-switches)
2210 "Comment out region using the inline == or : org example quote." 2210 "Comment out region using the inline `==' or `: ' org example quote."
2211 (interactive "*r") 2211 (interactive "*r")
2212 (let ((chars-between (lambda (b e) 2212 (let ((chars-between (lambda (b e)
2213 (not (string-match "^[\\s]*$" (buffer-substring b e))))) 2213 (not (string-match "^[\\s]*$" (buffer-substring b e)))))
diff --git a/lisp/org/ob-fortran.el b/lisp/org/ob-fortran.el
index 0e6eb4ff7c9..aab78592806 100644
--- a/lisp/org/ob-fortran.el
+++ b/lisp/org/ob-fortran.el
@@ -108,7 +108,7 @@ it's header arguments."
108 "Wrap body in a \"program ... end program\" block if none exists." 108 "Wrap body in a \"program ... end program\" block if none exists."
109 (if (string-match "^[ \t]*program[ \t]*.*" (capitalize body)) 109 (if (string-match "^[ \t]*program[ \t]*.*" (capitalize body))
110 (let ((vars (mapcar #'cdr (org-babel-get-header params :var)))) 110 (let ((vars (mapcar #'cdr (org-babel-get-header params :var))))
111 (if vars (error "Cannot use :vars if program statement is present")) 111 (if vars (error "Cannot use :vars if `program' statement is present"))
112 body) 112 body)
113 (format "program main\n%s\nend program main\n" body))) 113 (format "program main\n%s\nend program main\n" body)))
114 114
diff --git a/lisp/org/ob-python.el b/lisp/org/ob-python.el
index 4abe7affe5c..eb74f93881b 100644
--- a/lisp/org/ob-python.el
+++ b/lisp/org/ob-python.el
@@ -64,7 +64,7 @@ This will typically be either 'python or 'python-mode."
64 :type 'string) 64 :type 'string)
65 65
66(defcustom org-babel-python-None-to 'hline 66(defcustom org-babel-python-None-to 'hline
67 "Replace None in python tables with this before returning." 67 "Replace `None' in python tables with this before returning."
68 :group 'org-babel 68 :group 'org-babel
69 :version "24.4" 69 :version "24.4"
70 :package-version '(Org . "8.0") 70 :package-version '(Org . "8.0")
diff --git a/lisp/org/ob-ref.el b/lisp/org/ob-ref.el
index 472d3e6f657..3e79592f5a0 100644
--- a/lisp/org/ob-ref.el
+++ b/lisp/org/ob-ref.el
@@ -176,7 +176,7 @@ the variable."
176 ;; buffer (marker-buffer id-loc) 176 ;; buffer (marker-buffer id-loc)
177 ;; loc (marker-position id-loc)) 177 ;; loc (marker-position id-loc))
178 ;; (move-marker id-loc nil) 178 ;; (move-marker id-loc nil)
179 (error "Reference %s not found in this buffer" ref)) 179 (error "Reference `%s' not found in this buffer" ref))
180 (cond 180 (cond
181 (lob-info (setq type 'lob)) 181 (lob-info (setq type 'lob))
182 (id (setq type 'id)) 182 (id (setq type 'id))
diff --git a/lisp/org/ob-scheme.el b/lisp/org/ob-scheme.el
index 419b9a69097..7d8e23f165f 100644
--- a/lisp/org/ob-scheme.el
+++ b/lisp/org/ob-scheme.el
@@ -109,7 +109,7 @@ For a named session, the buffer name will be the session name.
109 109
110If the session is unnamed (nil), generate a name. 110If the session is unnamed (nil), generate a name.
111 111
112If the session is none, use nil for the session name, and 112If the session is `none', use nil for the session name, and
113org-babel-scheme-execute-with-geiser will use a temporary session." 113org-babel-scheme-execute-with-geiser will use a temporary session."
114 (let ((result 114 (let ((result
115 (cond ((not name) 115 (cond ((not name)
diff --git a/lisp/org/org-agenda.el b/lisp/org/org-agenda.el
index 3a87f6bedbd..ae5a252d8af 100644
--- a/lisp/org/org-agenda.el
+++ b/lisp/org/org-agenda.el
@@ -497,7 +497,7 @@ are prefix commands. For the dispatcher to display useful information, you
497should provide a description for the prefix, like 497should provide a description for the prefix, like
498 498
499 (setq org-agenda-custom-commands 499 (setq org-agenda-custom-commands
500 '((\"h\" . \"HOME + Name tag searches\") ; describe prefix \"h\" 500 \\='((\"h\" . \"HOME + Name tag searches\") ; describe prefix \"h\"
501 (\"hl\" tags \"+HOME+Lisa\") 501 (\"hl\" tags \"+HOME+Lisa\")
502 (\"hp\" tags \"+HOME+Peter\") 502 (\"hp\" tags \"+HOME+Peter\")
503 (\"hk\" tags \"+HOME+Kim\")))" 503 (\"hk\" tags \"+HOME+Kim\")))"
@@ -1211,7 +1211,7 @@ For example, 9:30am would become 09:30 rather than 9:30."
1211 :type 'boolean) 1211 :type 'boolean)
1212 1212
1213(defun org-agenda-time-of-day-to-ampm (time) 1213(defun org-agenda-time-of-day-to-ampm (time)
1214 "Convert TIME of a string like 13:45 to an AM/PM style time string." 1214 "Convert TIME of a string like `13:45' to an AM/PM style time string."
1215 (let* ((hour-number (string-to-number (substring time 0 -3))) 1215 (let* ((hour-number (string-to-number (substring time 0 -3)))
1216 (minute (substring time -2)) 1216 (minute (substring time -2))
1217 (ampm "am")) 1217 (ampm "am"))
@@ -1932,7 +1932,7 @@ list as second element:
1932For example, to display a 16px horizontal space for Emacs 1932For example, to display a 16px horizontal space for Emacs
1933category, you can use: 1933category, you can use:
1934 1934
1935 (\"Emacs\" '(space . (:width (16))))" 1935 (\"Emacs\" \\='(space . (:width (16))))"
1936 :group 'org-agenda-line-format 1936 :group 'org-agenda-line-format
1937 :version "24.1" 1937 :version "24.1"
1938 :type '(alist :key-type (string :tag "Regexp matching category") 1938 :type '(alist :key-type (string :tag "Regexp matching category")
@@ -1975,7 +1975,7 @@ estimate."
1975 :type 'boolean) 1975 :type 'boolean)
1976 1976
1977(defcustom org-agenda-auto-exclude-function nil 1977(defcustom org-agenda-auto-exclude-function nil
1978 "A function called with a tag to decide if it is filtered on / RET. 1978 "A function called with a tag to decide if it is filtered on `/ RET'.
1979The sole argument to the function, which is called once for each 1979The sole argument to the function, which is called once for each
1980possible tag, is a string giving the name of the tag. The 1980possible tag, is a string giving the name of the tag. The
1981function should return either nil if the tag should be included 1981function should return either nil if the tag should be included
@@ -2538,7 +2538,7 @@ For example, if you have a custom agenda command \"p\" and you
2538want this command to be accessible only from plain text files, 2538want this command to be accessible only from plain text files,
2539use this: 2539use this:
2540 2540
2541 '((\"p\" ((in-file . \"\\.txt\")))) 2541 \\='((\"p\" ((in-file . \"\\.txt\"))))
2542 2542
2543Here are the available contexts definitions: 2543Here are the available contexts definitions:
2544 2544
@@ -2556,7 +2556,7 @@ accessible if there is at least one valid check.
2556You can also bind a key to another agenda custom command 2556You can also bind a key to another agenda custom command
2557depending on contextual rules. 2557depending on contextual rules.
2558 2558
2559 '((\"p\" \"q\" ((in-file . \"\\.txt\")))) 2559 \\='((\"p\" \"q\" ((in-file . \"\\.txt\"))))
2560 2560
2561Here it means: in .txt files, use \"p\" as the key for the 2561Here it means: in .txt files, use \"p\" as the key for the
2562agenda command otherwise associated with \"q\". (The command 2562agenda command otherwise associated with \"q\". (The command
@@ -3625,9 +3625,9 @@ FILTER-ALIST is an alist of filters we need to apply when
3625 ;; Popup existing buffer 3625 ;; Popup existing buffer
3626 (org-agenda-prepare-window (get-buffer org-agenda-buffer-name) 3626 (org-agenda-prepare-window (get-buffer org-agenda-buffer-name)
3627 filter-alist) 3627 filter-alist)
3628 (message "Sticky Agenda buffer, use r to refresh") 3628 (message "Sticky Agenda buffer, use `r' to refresh")
3629 (or org-agenda-multi (org-agenda-fit-window-to-buffer)) 3629 (or org-agenda-multi (org-agenda-fit-window-to-buffer))
3630 (throw 'exit "Sticky Agenda buffer, use r to refresh")) 3630 (throw 'exit "Sticky Agenda buffer, use `r' to refresh"))
3631 (setq org-todo-keywords-for-agenda nil) 3631 (setq org-todo-keywords-for-agenda nil)
3632 (setq org-drawers-for-agenda nil) 3632 (setq org-drawers-for-agenda nil)
3633 (put 'org-agenda-tag-filter :preset-filter 3633 (put 'org-agenda-tag-filter :preset-filter
@@ -9596,7 +9596,7 @@ This is a command that has to be installed in `calendar-mode-map'."
9596 "Hebrew: " (calendar-hebrew-date-string date) " (until sunset)\n" 9596 "Hebrew: " (calendar-hebrew-date-string date) " (until sunset)\n"
9597 "Islamic: " (calendar-islamic-date-string date) " (until sunset)\n" 9597 "Islamic: " (calendar-islamic-date-string date) " (until sunset)\n"
9598 "French: " (calendar-french-date-string date) "\n" 9598 "French: " (calendar-french-date-string date) "\n"
9599 "Baha'i: " (calendar-bahai-date-string date) " (until sunset)\n" 9599 "Bahá’í: " (calendar-bahai-date-string date) " (until sunset)\n"
9600 "Mayan: " (calendar-mayan-date-string date) "\n" 9600 "Mayan: " (calendar-mayan-date-string date) "\n"
9601 "Coptic: " (calendar-coptic-date-string date) "\n" 9601 "Coptic: " (calendar-coptic-date-string date) "\n"
9602 "Ethiopic: " (calendar-ethiopic-date-string date) "\n" 9602 "Ethiopic: " (calendar-ethiopic-date-string date) "\n"
diff --git a/lisp/org/org-bibtex.el b/lisp/org/org-bibtex.el
index 2eb2d12633e..06adc078c5d 100644
--- a/lisp/org/org-bibtex.el
+++ b/lisp/org/org-bibtex.el
@@ -190,7 +190,7 @@
190 (:booktitle . "Title of a book, part of which is being cited. See the LaTeX book for how to type titles. For book entries, use the title field instead.") 190 (:booktitle . "Title of a book, part of which is being cited. See the LaTeX book for how to type titles. For book entries, use the title field instead.")
191 (:chapter . "A chapter (or section or whatever) number.") 191 (:chapter . "A chapter (or section or whatever) number.")
192 (:crossref . "The database key of the entry being cross referenced.") 192 (:crossref . "The database key of the entry being cross referenced.")
193 (:edition . "The edition of a book for example, ‘Second’. This should be an ordinal, and should have the first letter capitalized, as shown here; the standard styles convert to lower case when necessary.") 193 (:edition . "The edition of a book for example, 'Second'. This should be an ordinal, and should have the first letter capitalized, as shown here; the standard styles convert to lower case when necessary.")
194 (:editor . "Name(s) of editor(s), typed as indicated in the LaTeX book. If there is also an author field, then the editor field gives the editor of the book or collection in which the reference appears.") 194 (:editor . "Name(s) of editor(s), typed as indicated in the LaTeX book. If there is also an author field, then the editor field gives the editor of the book or collection in which the reference appears.")
195 (:howpublished . "How something strange has been published. The first word should be capitalized.") 195 (:howpublished . "How something strange has been published. The first word should be capitalized.")
196 (:institution . "The sponsoring institution of a technical report.") 196 (:institution . "The sponsoring institution of a technical report.")
@@ -205,9 +205,9 @@
205 (:school . "The name of the school where a thesis was written.") 205 (:school . "The name of the school where a thesis was written.")
206 (:series . "The name of a series or set of books. When citing an entire book, the title field gives its title and an optional series field gives the name of a series or multi-volume set in which the book is published.") 206 (:series . "The name of a series or set of books. When citing an entire book, the title field gives its title and an optional series field gives the name of a series or multi-volume set in which the book is published.")
207 (:title . "The work’s title, typed as explained in the LaTeX book.") 207 (:title . "The work’s title, typed as explained in the LaTeX book.")
208 (:type . "The type of a technical report for example, Research Note.") 208 (:type . "The type of a technical report for example, 'Research Note'.")
209 (:volume . "The volume of a journal or multi-volume book.") 209 (:volume . "The volume of a journal or multi-volume book.")
210 (:year . "The year of publication or, for an unpublished work, the year it was written. Generally it should consist of four numerals, such as 1984, although the standard styles can handle any year whose last four nonpunctuation characters are numerals, such as ‘(about 1984)’")) 210 (:year . "The year of publication or, for an unpublished work, the year it was written. Generally it should consist of four numerals, such as 1984, although the standard styles can handle any year whose last four nonpunctuation characters are numerals, such as '(about 1984)'"))
211 "Bibtex fields with descriptions.") 211 "Bibtex fields with descriptions.")
212 212
213(defvar org-bibtex-entries nil 213(defvar org-bibtex-entries nil
@@ -221,7 +221,7 @@
221 221
222(defcustom org-bibtex-prefix nil 222(defcustom org-bibtex-prefix nil
223 "Optional prefix for all bibtex property names. 223 "Optional prefix for all bibtex property names.
224For example setting to BIB_ would allow interoperability with fireforg." 224For example setting to `BIB_' would allow interoperability with fireforg."
225 :group 'org-bibtex 225 :group 'org-bibtex
226 :version "24.1" 226 :version "24.1"
227 :type '(choice 227 :type '(choice
diff --git a/lisp/org/org-capture.el b/lisp/org/org-capture.el
index 7b4b6eadc5e..6a4b2bafb01 100644
--- a/lisp/org/org-capture.el
+++ b/lisp/org/org-capture.el
@@ -460,7 +460,7 @@ For example, if you have a capture template \"c\" and you want
460this template to be accessible only from `message-mode' buffers, 460this template to be accessible only from `message-mode' buffers,
461use this: 461use this:
462 462
463 '((\"c\" ((in-mode . \"message-mode\")))) 463 ((\"c\" ((in-mode . \"message-mode\"))))
464 464
465Here are the available contexts definitions: 465Here are the available contexts definitions:
466 466
@@ -478,7 +478,7 @@ accessible if there is at least one valid check.
478You can also bind a key to another agenda custom command 478You can also bind a key to another agenda custom command
479depending on contextual rules. 479depending on contextual rules.
480 480
481 '((\"c\" \"d\" ((in-mode . \"message-mode\")))) 481 ((\"c\" \"d\" ((in-mode . \"message-mode\"))))
482 482
483Here it means: in `message-mode buffers', use \"c\" as the 483Here it means: in `message-mode buffers', use \"c\" as the
484key for the capture template otherwise associated with \"d\". 484key for the capture template otherwise associated with \"d\".
diff --git a/lisp/org/org-clock.el b/lisp/org/org-clock.el
index aee91ce42fb..9489edf98bf 100644
--- a/lisp/org/org-clock.el
+++ b/lisp/org/org-clock.el
@@ -717,7 +717,7 @@ Notification is shown only once."
717 (unless org-clock-notification-was-shown 717 (unless org-clock-notification-was-shown
718 (setq org-clock-notification-was-shown t) 718 (setq org-clock-notification-was-shown t)
719 (org-notify 719 (org-notify
720 (format-message "Task %s should be finished by now. (%s)" 720 (format-message "Task `%s' should be finished by now. (%s)"
721 org-clock-heading org-clock-effort) 721 org-clock-heading org-clock-effort)
722 org-clock-sound)) 722 org-clock-sound))
723 (setq org-clock-notification-was-shown nil))))) 723 (setq org-clock-notification-was-shown nil)))))
@@ -948,7 +948,7 @@ k/K Keep X minutes of the idle time (default is all). If this
948 clocked back in at the present time. 948 clocked back in at the present time.
949 949
950g/G Indicate that you “got back” X minutes ago. This is quite 950g/G Indicate that you “got back” X minutes ago. This is quite
951 different from k: it clocks you out from the beginning of 951 different from `k': it clocks you out from the beginning of
952 the idle period and clock you back in X minutes ago. 952 the idle period and clock you back in X minutes ago.
953 953
954s/S Subtract the idle time from the current clock. This is the 954s/S Subtract the idle time from the current clock. This is the
diff --git a/lisp/org/org-ctags.el b/lisp/org/org-ctags.el
index 75de8c284e1..e5435e3abcc 100644
--- a/lisp/org/org-ctags.el
+++ b/lisp/org/org-ctags.el
@@ -457,7 +457,7 @@ Wrapper for org-ctags-rebuild-tags-file-then-find-tag."
457 (if (and (buffer-file-name) 457 (if (and (buffer-file-name)
458 (y-or-n-p 458 (y-or-n-p
459 (format-message 459 (format-message
460 "Tag %s not found. Rebuild table %s/TAGS and look again?" 460 "Tag `%s' not found. Rebuild table `%s/TAGS' and look again?"
461 name 461 name
462 (file-name-directory (buffer-file-name))))) 462 (file-name-directory (buffer-file-name)))))
463 (org-ctags-rebuild-tags-file-then-find-tag name) 463 (org-ctags-rebuild-tags-file-then-find-tag name)
diff --git a/lisp/org/org-feed.el b/lisp/org/org-feed.el
index 22e543c35f7..ab3c61efdf3 100644
--- a/lisp/org/org-feed.el
+++ b/lisp/org/org-feed.el
@@ -691,7 +691,7 @@ formatted as a string, not the original XML data."
691 (t 691 (t
692 (setq entry (plist-put entry :description 692 (setq entry (plist-put entry :description
693 (format-message 693 (format-message
694 "Unknown %s content." type))))))) 694 "Unknown `%s' content." type)))))))
695 entry)) 695 entry))
696 696
697(provide 'org-feed) 697(provide 'org-feed)
diff --git a/lisp/org/org-habit.el b/lisp/org/org-habit.el
index 7911dcff9ab..e2be4608b67 100644
--- a/lisp/org/org-habit.el
+++ b/lisp/org/org-habit.el
@@ -180,7 +180,7 @@ This list represents a \"habit\" for the rest of this module."
180 (error "Habit %s has no scheduled date" habit-entry)) 180 (error "Habit %s has no scheduled date" habit-entry))
181 (unless scheduled-repeat 181 (unless scheduled-repeat
182 (error 182 (error
183 "Habit %s has no scheduled repeat period or has an incorrect one" 183 "Habit `%s' has no scheduled repeat period or has an incorrect one"
184 habit-entry)) 184 habit-entry))
185 (setq sr-days (org-habit-duration-to-days scheduled-repeat)) 185 (setq sr-days (org-habit-duration-to-days scheduled-repeat))
186 (unless (> sr-days 0) 186 (unless (> sr-days 0)
diff --git a/lisp/org/org-irc.el b/lisp/org/org-irc.el
index fc3294f684f..1ec69d83738 100644
--- a/lisp/org/org-irc.el
+++ b/lisp/org/org-irc.el
@@ -108,7 +108,7 @@ attributes that are found."
108(defun org-irc-ellipsify-description (string &optional after) 108(defun org-irc-ellipsify-description (string &optional after)
109 "Remove unnecessary white space from STRING and add ellipses if necessary. 109 "Remove unnecessary white space from STRING and add ellipses if necessary.
110Strip starting and ending white space from STRING and replace any 110Strip starting and ending white space from STRING and replace any
111chars that the value AFTER with ..." 111chars that the value AFTER with `...'"
112 (let* ((after (number-to-string (or after 30))) 112 (let* ((after (number-to-string (or after 30)))
113 (replace-map (list (cons "^[ \t]*" "") 113 (replace-map (list (cons "^[ \t]*" "")
114 (cons "[ \t]*$" "") 114 (cons "[ \t]*$" "")
diff --git a/lisp/org/org-mouse.el b/lisp/org/org-mouse.el
index a52c1962787..a1ddc5db79c 100644
--- a/lisp/org/org-mouse.el
+++ b/lisp/org/org-mouse.el
@@ -539,7 +539,7 @@ SCHEDULED: or DEADLINE: or ANYTHINGLIKETHIS:"
539 ((stringp (nth 2 entry)) 539 ((stringp (nth 2 entry))
540 (concat (org-mouse-agenda-type (nth 1 entry)) 540 (concat (org-mouse-agenda-type (nth 1 entry))
541 (nth 2 entry))) 541 (nth 2 entry)))
542 (t "Agenda Command %s")) 542 (t "Agenda Command `%s'"))
543 30)))) 543 30))))
544 "--" 544 "--"
545 ["Delete Blank Lines" delete-blank-lines 545 ["Delete Blank Lines" delete-blank-lines
@@ -566,7 +566,7 @@ SCHEDULED: or DEADLINE: or ANYTHINGLIKETHIS:"
566 (save-excursion (org-apply-on-list wrap-fun nil))))) 566 (save-excursion (org-apply-on-list wrap-fun nil)))))
567 567
568(defun org-mouse-bolp () 568(defun org-mouse-bolp ()
569 "Return true if there only spaces, tabs, and * before point. 569 "Return true if there only spaces, tabs, and `*' before point.
570This means, between the beginning of line and the point." 570This means, between the beginning of line and the point."
571 (save-excursion 571 (save-excursion
572 (skip-chars-backward " \t*") (bolp))) 572 (skip-chars-backward " \t*") (bolp)))
@@ -708,9 +708,9 @@ This means, between the beginning of line and the point."
708 ((org-mouse-looking-at ":\\([A-Za-z0-9_]+\\):" "A-Za-z0-9_" -1) ;tags 708 ((org-mouse-looking-at ":\\([A-Za-z0-9_]+\\):" "A-Za-z0-9_" -1) ;tags
709 (popup-menu 709 (popup-menu
710 `(nil 710 `(nil
711 [,(format-message "Display %s" (match-string 1)) 711 [,(format-message "Display `%s'" (match-string 1))
712 (org-tags-view nil ,(match-string 1))] 712 (org-tags-view nil ,(match-string 1))]
713 [,(format-message "Sparse Tree %s" (match-string 1)) 713 [,(format-message "Sparse Tree `%s'" (match-string 1))
714 (org-tags-sparse-tree nil ,(match-string 1))] 714 (org-tags-sparse-tree nil ,(match-string 1))]
715 "--" 715 "--"
716 ,@(org-mouse-tag-menu)))) 716 ,@(org-mouse-tag-menu))))
diff --git a/lisp/org/org-plot.el b/lisp/org/org-plot.el
index 7024ed6e507..fd6b4edbd0a 100644
--- a/lisp/org/org-plot.el
+++ b/lisp/org/org-plot.el
@@ -94,7 +94,7 @@ Return value is the point at the beginning of the table."
94 (goto-char (org-table-begin))) 94 (goto-char (org-table-begin)))
95 95
96(defun org-plot/collect-options (&optional params) 96(defun org-plot/collect-options (&optional params)
97 "Collect options from an org-plot #+Plot: line. 97 "Collect options from an org-plot `#+Plot:' line.
98Accepts an optional property list PARAMS, to which the options 98Accepts an optional property list PARAMS, to which the options
99will be added. Returns the resulting property list." 99will be added. Returns the resulting property list."
100 (interactive) 100 (interactive)
diff --git a/lisp/org/org-protocol.el b/lisp/org/org-protocol.el
index ae0f4946832..339f2b74afd 100644
--- a/lisp/org/org-protocol.el
+++ b/lisp/org/org-protocol.el
@@ -303,7 +303,7 @@ part."
303 303
304(defun org-protocol-flatten-greedy (param-list &optional strip-path replacement) 304(defun org-protocol-flatten-greedy (param-list &optional strip-path replacement)
305 "Greedy handlers might receive a list like this from emacsclient: 305 "Greedy handlers might receive a list like this from emacsclient:
306 '((\"/dir/org-protocol:/greedy:/~/path1\" (23 . 12)) (\"/dir/param\") 306 ((\"/dir/org-protocol:/greedy:/~/path1\" (23 . 12)) (\"/dir/param\"))
307where \"/dir/\" is the absolute path to emacsclients working directory. This 307where \"/dir/\" is the absolute path to emacsclients working directory. This
308function transforms it into a flat list using `org-protocol-flatten' and 308function transforms it into a flat list using `org-protocol-flatten' and
309transforms the elements of that list as follows: 309transforms the elements of that list as follows:
@@ -347,7 +347,7 @@ returned list."
347 347
348(defun org-protocol-flatten (l) 348(defun org-protocol-flatten (l)
349 "Greedy handlers might receive a list like this from emacsclient: 349 "Greedy handlers might receive a list like this from emacsclient:
350 '( (\"/dir/org-protocol:/greedy:/~/path1\" (23 . 12)) (\"/dir/param\") 350 ((\"/dir/org-protocol:/greedy:/~/path1\" (23 . 12)) (\"/dir/param\"))
351where \"/dir/\" is the absolute path to emacsclients working directory. 351where \"/dir/\" is the absolute path to emacsclients working directory.
352This function transforms it into a flat list." 352This function transforms it into a flat list."
353 (if (null l) () 353 (if (null l) ()
@@ -365,9 +365,9 @@ link's URL to the `kill-ring'.
365 365
366The location for a browser's bookmark has to look like this: 366The location for a browser's bookmark has to look like this:
367 367
368 javascript:location.href='org-protocol://store-link://'+ \\ 368 javascript:location.href=\\='org-protocol://store-link://\\='+ \\
369 encodeURIComponent(location.href) 369 encodeURIComponent(location.href)
370 encodeURIComponent(document.title)+'/'+ \\ 370 encodeURIComponent(document.title)+\\='/\\='+ \\
371 371
372Don't use `escape()'! Use `encodeURIComponent()' instead. The title of the page 372Don't use `escape()'! Use `encodeURIComponent()' instead. The title of the page
373could contain slashes and the location definitely will. 373could contain slashes and the location definitely will.
@@ -396,16 +396,16 @@ The sub-protocol used to reach this function is set in
396This function detects an URL, title and optional text, separated 396This function detects an URL, title and optional text, separated
397by `/'. The location for a browser's bookmark looks like this: 397by `/'. The location for a browser's bookmark looks like this:
398 398
399 javascript:location.href='org-protocol://capture://'+ \\ 399 javascript:location.href=\\='org-protocol://capture://\\='+ \\
400 encodeURIComponent(location.href)+'/' \\ 400 encodeURIComponent(location.href)+\\='/\\=' \\
401 encodeURIComponent(document.title)+'/'+ \\ 401 encodeURIComponent(document.title)+\\='/\\='+ \\
402 encodeURIComponent(window.getSelection()) 402 encodeURIComponent(window.getSelection())
403 403
404By default, it uses the character `org-protocol-default-template-key', 404By default, it uses the character `org-protocol-default-template-key',
405which should be associated with a template in `org-capture-templates'. 405which should be associated with a template in `org-capture-templates'.
406But you may prepend the encoded URL with a character and a slash like so: 406But you may prepend the encoded URL with a character and a slash like so:
407 407
408 javascript:location.href='org-protocol://capture://b/'+ ... 408 javascript:location.href=\\='org-protocol://capture://b/\\='+ ...
409 409
410Now template ?b will be used." 410Now template ?b will be used."
411 (if (and (boundp 'org-stored-links) 411 (if (and (boundp 'org-stored-links)
@@ -455,7 +455,7 @@ in `org-protocol-project-alist'.
455 455
456The location for a browser's bookmark should look like this: 456The location for a browser's bookmark should look like this:
457 457
458 javascript:location.href='org-protocol://open-source://'+ \\ 458 javascript:location.href=\\='org-protocol://open-source://\\='+ \\
459 encodeURIComponent(location.href)" 459 encodeURIComponent(location.href)"
460 ;; As we enter this function for a match on our protocol, the return value 460 ;; As we enter this function for a match on our protocol, the return value
461 ;; defaults to nil. 461 ;; defaults to nil.
diff --git a/lisp/org/org-src.el b/lisp/org/org-src.el
index 8a6c77a8182..c970fe6c851 100644
--- a/lisp/org/org-src.el
+++ b/lisp/org/org-src.el
@@ -166,10 +166,10 @@ other-frame Use `switch-to-buffer-other-frame' to display edit buffer.
166 (const reorganize-frame))) 166 (const reorganize-frame)))
167 167
168(defvar org-src-mode-hook nil 168(defvar org-src-mode-hook nil
169 "Hook run after Org switched a source code snippet to its Emacs mode. 169 "Hook run after Org switched a source code snippet to its Emacs mode.
170This hook will run 170This hook will run
171 171
172- when editing a source code snippet with \"C-c '\". 172- when editing a source code snippet with `\\[org-src-mode-map]'.
173- When formatting a source code snippet for export with htmlize. 173- When formatting a source code snippet for export with htmlize.
174 174
175You may want to use this hook for example to turn off `outline-minor-mode' 175You may want to use this hook for example to turn off `outline-minor-mode'
@@ -226,7 +226,7 @@ the existing edit buffer."
226(define-minor-mode org-src-mode 226(define-minor-mode org-src-mode
227 "Minor mode for language major mode buffers generated by org. 227 "Minor mode for language major mode buffers generated by org.
228This minor mode is turned on in two situations: 228This minor mode is turned on in two situations:
229- when editing a source code snippet with \"C-c '\". 229- when editing a source code snippet with `\\[org-src-mode-map]'.
230- When formatting a source code snippet for export with htmlize. 230- When formatting a source code snippet for export with htmlize.
231There is a mode hook, and keybindings for `org-edit-src-exit' and 231There is a mode hook, and keybindings for `org-edit-src-exit' and
232`org-edit-src-save'") 232`org-edit-src-save'")
diff --git a/lisp/org/org-table.el b/lisp/org/org-table.el
index fb593674ec4..478ad933ae2 100644
--- a/lisp/org/org-table.el
+++ b/lisp/org/org-table.el
@@ -545,8 +545,8 @@ slightly, to make sure a beginning of line in the first line is included.
545SEPARATOR specifies the field separator in the lines. It can have the 545SEPARATOR specifies the field separator in the lines. It can have the
546following values: 546following values:
547 547
548'(4) Use the comma as a field separator 548(4) Use the comma as a field separator
549'(16) Use a TAB as field separator 549(16) Use a TAB as field separator
550integer When a number, use that many spaces as field separator 550integer When a number, use that many spaces as field separator
551nil When nil, the command tries to be smart and figure out the 551nil When nil, the command tries to be smart and figure out the
552 separator in the following way: 552 separator in the following way:
@@ -3404,7 +3404,7 @@ Parameters get priority."
3404 (if (eq org-table-use-standard-references t) 3404 (if (eq org-table-use-standard-references t)
3405 (org-table-fedit-toggle-ref-type)) 3405 (org-table-fedit-toggle-ref-type))
3406 (org-goto-line startline) 3406 (org-goto-line startline)
3407 (message "Edit formulas, finish with C-c C-c or C-c '. See menu for more commands."))) 3407 (message "%s" "Edit formulas, finish with C-c C-c or C-c '. See menu for more commands.")))
3408 3408
3409(defun org-table-fedit-post-command () 3409(defun org-table-fedit-post-command ()
3410 (when (not (memq this-command '(lisp-complete-symbol))) 3410 (when (not (memq this-command '(lisp-complete-symbol)))
diff --git a/lisp/org/org.el b/lisp/org/org.el
index 963da77f592..c7b64cccb19 100644
--- a/lisp/org/org.el
+++ b/lisp/org/org.el
@@ -481,7 +481,7 @@ value of the variable, after updating it:
481 \(dolist (backend val) 481 \(dolist (backend val)
482 \(cond 482 \(cond
483 \((not (load (format \"ox-%s\" backend) t t)) 483 \((not (load (format \"ox-%s\" backend) t t))
484 \(message \"Problems while trying to load export back-end %s\" 484 \(message \"Problems while trying to load export back-end \\=`%s\\='\"
485 backend)) 485 backend))
486 \((not (memq backend new-list)) (push backend new-list)))) 486 \((not (memq backend new-list)) (push backend new-list))))
487 \(set-default \\='org-export-backends new-list))) 487 \(set-default \\='org-export-backends new-list)))
@@ -1982,7 +1982,7 @@ file identifier are
1982 filename matches the regexp. If you want to 1982 filename matches the regexp. If you want to
1983 use groups here, use shy groups. 1983 use groups here, use shy groups.
1984 1984
1985 Example: (\"\\.x?html\\'\" . \"firefox %s\") 1985 Example: (\"\\.x?html\\\\='\" . \"firefox %s\")
1986 (\"\\(?:xhtml\\|html\\)\" . \"firefox %s\") 1986 (\"\\(?:xhtml\\|html\\)\" . \"firefox %s\")
1987 to open *.html and *.xhtml with firefox. 1987 to open *.html and *.xhtml with firefox.
1988 1988
@@ -1998,7 +1998,7 @@ file identifier are
1998 In a custom lisp form, you can access the group matches with 1998 In a custom lisp form, you can access the group matches with
1999 (match-string n link). 1999 (match-string n link).
2000 2000
2001 Example: (\"\\.pdf::\\(\\d+\\)\\'\" . \"evince -p %1 %s\") 2001 Example: (\"\\.pdf::\\(\\d+\\)\\\\='\" . \"evince -p %1 %s\")
2002 to open [[file:document.pdf::5]] with evince at page 5. 2002 to open [[file:document.pdf::5]] with evince at page 5.
2003 2003
2004 `directory' Matches a directory 2004 `directory' Matches a directory
@@ -12222,13 +12222,13 @@ With a triple \\[universal-argument] prefix, circumvent any state blocking.
12222With a numeric prefix arg of 0, inhibit note taking for the change. 12222With a numeric prefix arg of 0, inhibit note taking for the change.
12223 12223
12224For calling through lisp, arg is also interpreted in the following way: 12224For calling through lisp, arg is also interpreted in the following way:
12225'none -> empty state 12225`none' -> empty state
12226\"\"(empty string) -> switch to empty state 12226\"\" (empty string) -> switch to empty state
12227'done -> switch to DONE 12227`done' -> switch to DONE
12228'nextset -> switch to the next set of keywords 12228`nextset' -> switch to the next set of keywords
12229'previousset -> switch to the previous set of keywords 12229`previousset' -> switch to the previous set of keywords
12230\"WAITING\" -> switch to the specified keyword, but only if it 12230\"WAITING\" -> switch to the specified keyword, but only if it
12231 really is a member of `org-todo-keywords'." 12231 really is a member of `org-todo-keywords'."
12232 (interactive "P") 12232 (interactive "P")
12233 (if (and (org-region-active-p) org-loop-over-headlines-in-active-region) 12233 (if (and (org-region-active-p) org-loop-over-headlines-in-active-region)
12234 (let ((cl (if (eq org-loop-over-headlines-in-active-region 'start-level) 12234 (let ((cl (if (eq org-loop-over-headlines-in-active-region 'start-level)
diff --git a/lisp/org/ox.el b/lisp/org/ox.el
index a0573d04c10..4e3e0ef9376 100644
--- a/lisp/org/ox.el
+++ b/lisp/org/ox.el
@@ -1060,7 +1060,7 @@ keywords are understood:
1060 Menu entry for the export dispatcher. It should be a list 1060 Menu entry for the export dispatcher. It should be a list
1061 like: 1061 like:
1062 1062
1063 '(KEY DESCRIPTION-OR-ORDINAL ACTION-OR-MENU) 1063 (KEY DESCRIPTION-OR-ORDINAL ACTION-OR-MENU)
1064 1064
1065 where : 1065 where :
1066 1066
@@ -1084,17 +1084,17 @@ keywords are understood:
1084 If it is an alist, associations should follow the 1084 If it is an alist, associations should follow the
1085 pattern: 1085 pattern:
1086 1086
1087 '(KEY DESCRIPTION ACTION) 1087 (KEY DESCRIPTION ACTION)
1088 1088
1089 where KEY, DESCRIPTION and ACTION are described above. 1089 where KEY, DESCRIPTION and ACTION are described above.
1090 1090
1091 Valid values include: 1091 Valid values include:
1092 1092
1093 '(?m \"My Special Back-end\" my-special-export-function) 1093 (?m \"My Special Back-end\" my-special-export-function)
1094 1094
1095 or 1095 or
1096 1096
1097 '(?l \"Export to LaTeX\" 1097 (?l \"Export to LaTeX\"
1098 \(?p \"As PDF file\" org-latex-export-to-pdf) 1098 \(?p \"As PDF file\" org-latex-export-to-pdf)
1099 \(?o \"As PDF file and open\" 1099 \(?o \"As PDF file and open\"
1100 \(lambda (a s v b) 1100 \(lambda (a s v b)
@@ -1105,7 +1105,7 @@ keywords are understood:
1105 or the following, which will be added to the previous 1105 or the following, which will be added to the previous
1106 sub-menu, 1106 sub-menu,
1107 1107
1108 '(?l 1 1108 (?l 1
1109 \((?B \"As TEX buffer (Beamer)\" org-beamer-export-as-latex) 1109 \((?B \"As TEX buffer (Beamer)\" org-beamer-export-as-latex)
1110 \(?P \"As PDF file (Beamer)\" org-beamer-export-to-pdf))) 1110 \(?P \"As PDF file (Beamer)\" org-beamer-export-to-pdf)))
1111 1111
@@ -5553,7 +5553,7 @@ and `org-export-to-file' for more specialized functions."
5553 (kill-buffer proc-buffer)))) 5553 (kill-buffer proc-buffer))))
5554 (org-export-add-to-stack proc-buffer nil p) 5554 (org-export-add-to-stack proc-buffer nil p)
5555 (ding) 5555 (ding)
5556 (message "Process %s exited abnormally" p)) 5556 (message "Process `%s' exited abnormally" p))
5557 (unless org-export-async-debug 5557 (unless org-export-async-debug
5558 (delete-file ,,temp-file))))))))))))) 5558 (delete-file ,,temp-file)))))))))))))
5559 5559
diff --git a/lisp/pcmpl-cvs.el b/lisp/pcmpl-cvs.el
index 33446af23d5..b64fb65d3b7 100644
--- a/lisp/pcmpl-cvs.el
+++ b/lisp/pcmpl-cvs.el
@@ -38,7 +38,7 @@
38;; User Variables: 38;; User Variables:
39 39
40(defcustom pcmpl-cvs-binary (or (executable-find "cvs") "cvs") 40(defcustom pcmpl-cvs-binary (or (executable-find "cvs") "cvs")
41 "The full path of the cvs binary." 41 "The full path of the `cvs' binary."
42 :type 'file 42 :type 'file
43 :group 'pcmpl-cvs) 43 :group 'pcmpl-cvs)
44 44
@@ -154,7 +154,7 @@
154(defun pcmpl-cvs-entries (&optional opers) 154(defun pcmpl-cvs-entries (&optional opers)
155 "Return the Entries for the current directory. 155 "Return the Entries for the current directory.
156If OPERS is a list of characters, return entries for which that 156If OPERS is a list of characters, return entries for which that
157operation character applies, as displayed by cvs -n update." 157operation character applies, as displayed by `cvs -n update'."
158 (let* ((arg (pcomplete-arg)) 158 (let* ((arg (pcomplete-arg))
159 (dir (file-name-as-directory 159 (dir (file-name-as-directory
160 (or (file-name-directory arg) ""))) 160 (or (file-name-directory arg) "")))
diff --git a/lisp/play/bubbles.el b/lisp/play/bubbles.el
index 5ca792db310..1e06f1ba9de 100644
--- a/lisp/play/bubbles.el
+++ b/lisp/play/bubbles.el
@@ -101,31 +101,31 @@ and a shift mode."
101 :group 'bubbles) 101 :group 'bubbles)
102 102
103(defun bubbles-set-game-easy () 103(defun bubbles-set-game-easy ()
104 "Set game theme to easy." 104 "Set game theme to `easy'."
105 (interactive) 105 (interactive)
106 (setq bubbles-game-theme 'easy) 106 (setq bubbles-game-theme 'easy)
107 (bubbles)) 107 (bubbles))
108 108
109(defun bubbles-set-game-medium () 109(defun bubbles-set-game-medium ()
110 "Set game theme to medium." 110 "Set game theme to `medium'."
111 (interactive) 111 (interactive)
112 (setq bubbles-game-theme 'medium) 112 (setq bubbles-game-theme 'medium)
113 (bubbles)) 113 (bubbles))
114 114
115(defun bubbles-set-game-difficult () 115(defun bubbles-set-game-difficult ()
116 "Set game theme to difficult." 116 "Set game theme to `difficult'."
117 (interactive) 117 (interactive)
118 (setq bubbles-game-theme 'difficult) 118 (setq bubbles-game-theme 'difficult)
119 (bubbles)) 119 (bubbles))
120 120
121(defun bubbles-set-game-hard () 121(defun bubbles-set-game-hard ()
122 "Set game theme to hard." 122 "Set game theme to `hard'."
123 (interactive) 123 (interactive)
124 (setq bubbles-game-theme 'hard) 124 (setq bubbles-game-theme 'hard)
125 (bubbles)) 125 (bubbles))
126 126
127(defun bubbles-set-game-userdefined () 127(defun bubbles-set-game-userdefined ()
128 "Set game theme to user-defined." 128 "Set game theme to `user-defined'."
129 (interactive) 129 (interactive)
130 (setq bubbles-game-theme 'user-defined) 130 (setq bubbles-game-theme 'user-defined)
131 (bubbles)) 131 (bubbles))
diff --git a/lisp/play/gomoku.el b/lisp/play/gomoku.el
index 702376ce86e..d2953b69895 100644
--- a/lisp/play/gomoku.el
+++ b/lisp/play/gomoku.el
@@ -977,7 +977,7 @@ If the game is finished, this command requests for another game."
977 (move-to-column (+ gomoku-x-offset (* gomoku-square-width (1- x))))) 977 (move-to-column (+ gomoku-x-offset (* gomoku-square-width (1- x)))))
978 978
979(defun gomoku-plot-square (square value) 979(defun gomoku-plot-square (square value)
980 "Draw X, O or . on SQUARE depending on VALUE, leave point there." 980 "Draw `X', `O' or `.' on SQUARE depending on VALUE, leave point there."
981 (or (= value 1) 981 (or (= value 1)
982 (gomoku-goto-square square)) 982 (gomoku-goto-square square))
983 (let ((inhibit-read-only t)) 983 (let ((inhibit-read-only t))
diff --git a/lisp/proced.el b/lisp/proced.el
index 5c65edfe818..bf7ce24f202 100644
--- a/lisp/proced.el
+++ b/lisp/proced.el
@@ -1924,7 +1924,7 @@ and \f (formfeed) at the end."
1924 (unless (bolp) 1924 (unless (bolp)
1925 (insert "\n")) 1925 (insert "\n"))
1926 (insert (current-time-string) 1926 (insert (current-time-string)
1927 (format-message "\tBuffer %s, signal %s\n" 1927 (format-message "\tBuffer `%s', signal `%s'\n"
1928 (buffer-name obuf) (car args))) 1928 (buffer-name obuf) (car args)))
1929 (goto-char (point-max)) 1929 (goto-char (point-max))
1930 (insert "\f\n"))))))) 1930 (insert "\f\n")))))))
diff --git a/lisp/progmodes/ada-mode.el b/lisp/progmodes/ada-mode.el
index 70af389519c..452f3b99742 100644
--- a/lisp/progmodes/ada-mode.el
+++ b/lisp/progmodes/ada-mode.el
@@ -286,11 +286,11 @@ type A is
286 :type 'boolean :group 'ada) 286 :type 'boolean :group 'ada)
287 287
288(defcustom ada-indent-is-separate t 288(defcustom ada-indent-is-separate t
289 "Non-nil means indent is separate or is abstract if on a single line." 289 "Non-nil means indent `is separate' or `is abstract' if on a single line."
290 :type 'boolean :group 'ada) 290 :type 'boolean :group 'ada)
291 291
292(defcustom ada-indent-record-rel-type 3 292(defcustom ada-indent-record-rel-type 3
293 "Indentation for record relative to type or use. 293 "Indentation for `record' relative to `type' or `use'.
294 294
295An example is: 295An example is:
296 type A is 296 type A is
@@ -397,7 +397,7 @@ Must be one of :
397 :group 'ada) 397 :group 'ada)
398 398
399(defcustom ada-use-indent ada-broken-indent 399(defcustom ada-use-indent ada-broken-indent
400 "Indentation for the lines in a use statement. 400 "Indentation for the lines in a `use' statement.
401 401
402An example is: 402An example is:
403 use Ada.Text_IO, 403 use Ada.Text_IO,
@@ -405,7 +405,7 @@ An example is:
405 :type 'integer :group 'ada) 405 :type 'integer :group 'ada)
406 406
407(defcustom ada-when-indent 3 407(defcustom ada-when-indent 3
408 "Indentation for when relative to exception or case. 408 "Indentation for `when' relative to `exception' or `case'.
409 409
410An example is: 410An example is:
411 case A is 411 case A is
@@ -413,7 +413,7 @@ An example is:
413 :type 'integer :group 'ada) 413 :type 'integer :group 'ada)
414 414
415(defcustom ada-with-indent ada-broken-indent 415(defcustom ada-with-indent ada-broken-indent
416 "Indentation for the lines in a with statement. 416 "Indentation for the lines in a `with' statement.
417 417
418An example is: 418An example is:
419 with Ada.Text_IO, 419 with Ada.Text_IO,
@@ -2834,7 +2834,7 @@ ORGPOINT is the limit position used in the calculation."
2834 (save-excursion 2834 (save-excursion
2835 (goto-char (car match-cons)) 2835 (goto-char (car match-cons))
2836 (unless (ada-search-ignore-string-comment "when" t opos) 2836 (unless (ada-search-ignore-string-comment "when" t opos)
2837 (error "Missing when between case and =>")) 2837 (error "Missing `when' between `case' and `=>'"))
2838 (list (save-excursion (back-to-indentation) (point)) 'ada-indent))) 2838 (list (save-excursion (back-to-indentation) (point)) 'ada-indent)))
2839 ;; 2839 ;;
2840 ;; case..is..when 2840 ;; case..is..when
@@ -3003,7 +3003,7 @@ ORGPOINT is the limit position used in the calculation."
3003 (list cur-indent 'ada-broken-indent))))) 3003 (list cur-indent 'ada-broken-indent)))))
3004 3004
3005(defun ada-get-indent-noindent (orgpoint) 3005(defun ada-get-indent-noindent (orgpoint)
3006 "Calculate the indentation when point is just before a noindent stmt. 3006 "Calculate the indentation when point is just before a `noindent stmt'.
3007ORGPOINT is the limit position used in the calculation." 3007ORGPOINT is the limit position used in the calculation."
3008 (let ((label 0)) 3008 (let ((label 0))
3009 (save-excursion 3009 (save-excursion
@@ -3429,7 +3429,7 @@ Return the new position of point or nil if not found."
3429Moves point to the matching block start." 3429Moves point to the matching block start."
3430 (ada-goto-matching-start 0) 3430 (ada-goto-matching-start 0)
3431 (unless (looking-at (concat "\\<" keyword "\\>")) 3431 (unless (looking-at (concat "\\<" keyword "\\>"))
3432 (error "Matching start is not %s" keyword))) 3432 (error "Matching start is not `%s'" keyword)))
3433 3433
3434 3434
3435(defun ada-check-defun-name (defun-name) 3435(defun ada-check-defun-name (defun-name)
@@ -3667,7 +3667,7 @@ otherwise throw error."
3667 "Move point to the beginning of a block-start. 3667 "Move point to the beginning of a block-start.
3668Which block depends on the value of NEST-LEVEL, which defaults to zero. 3668Which block depends on the value of NEST-LEVEL, which defaults to zero.
3669If NOERROR is non-nil, it only returns nil if no matching start was found. 3669If NOERROR is non-nil, it only returns nil if no matching start was found.
3670If GOTOTHEN is non-nil, point moves to the then following if." 3670If GOTOTHEN is non-nil, point moves to the `then' following `if'."
3671 (let ((nest-count (if nest-level nest-level 0)) 3671 (let ((nest-count (if nest-level nest-level 0))
3672 (found nil) 3672 (found nil)
3673 3673
@@ -3734,7 +3734,7 @@ If GOTOTHEN is non-nil, point moves to the ‘then’ following ‘if’."
3734 (if pos 3734 (if pos
3735 (goto-char (car pos)) 3735 (goto-char (car pos))
3736 (error (concat 3736 (error (concat
3737 "No matching is or renames for package at" 3737 "No matching `is' or `renames' for `package' at"
3738 " line " 3738 " line "
3739 (number-to-string (count-lines 1 (1+ current))))))) 3739 (number-to-string (count-lines 1 (1+ current)))))))
3740 (unless (looking-at "renames") 3740 (unless (looking-at "renames")
@@ -3862,7 +3862,7 @@ If GOTOTHEN is non-nil, point moves to the ‘then’ following ‘if’."
3862 ((looking-at "do") 3862 ((looking-at "do")
3863 (unless (ada-search-ignore-string-comment 3863 (unless (ada-search-ignore-string-comment
3864 "\\<accept\\|return\\>" t) 3864 "\\<accept\\|return\\>" t)
3865 (error "Missing accept or return in front of do")))) 3865 (error "Missing `accept' or `return' in front of `do'"))))
3866 (point)) 3866 (point))
3867 3867
3868 (if noerror 3868 (if noerror
@@ -4073,7 +4073,7 @@ Assumes point to be at the end of a statement."
4073 4073
4074 4074
4075(defun ada-looking-at-semi-or () 4075(defun ada-looking-at-semi-or ()
4076 "Return t if looking at an or following a semicolon." 4076 "Return t if looking at an `or' following a semicolon."
4077 (save-excursion 4077 (save-excursion
4078 (and (looking-at "\\<or\\>") 4078 (and (looking-at "\\<or\\>")
4079 (progn 4079 (progn
@@ -4146,7 +4146,7 @@ Return nil if the private is part of the package name, as in
4146 "type\\)\\>")))))) 4146 "type\\)\\>"))))))
4147 4147
4148(defun ada-search-ignore-complex-boolean (regexp backwardp) 4148(defun ada-search-ignore-complex-boolean (regexp backwardp)
4149 "Search for REGEXP, ignoring comments, strings, and then, or else. 4149 "Search for REGEXP, ignoring comments, strings, `and then', `or else'.
4150If BACKWARDP is non-nil, search backward; search forward otherwise." 4150If BACKWARDP is non-nil, search backward; search forward otherwise."
4151 (let (result) 4151 (let (result)
4152 (while (and (setq result (ada-search-ignore-string-comment regexp backwardp)) 4152 (while (and (setq result (ada-search-ignore-string-comment regexp backwardp))
@@ -4366,7 +4366,7 @@ of the region. Otherwise, operate only on the current line."
4366 4366
4367(defun ada-move-to-end () 4367(defun ada-move-to-end ()
4368 "Move point to the end of the block around point. 4368 "Move point to the end of the block around point.
4369Moves to begin if in a declarative part." 4369Moves to `begin' if in a declarative part."
4370 (interactive) 4370 (interactive)
4371 (let ((pos (point)) 4371 (let ((pos (point))
4372 decl-start) 4372 decl-start)
diff --git a/lisp/progmodes/ada-prj.el b/lisp/progmodes/ada-prj.el
index 7e354bc2b0f..3b71c5987ed 100644
--- a/lisp/progmodes/ada-prj.el
+++ b/lisp/progmodes/ada-prj.el
@@ -309,13 +309,13 @@ where the compilation is done.")
309"If you want to remotely compile, debug and 309"If you want to remotely compile, debug and
310run your application, specify the name of a 310run your application, specify the name of a
311remote machine here. This capability requires 311remote machine here. This capability requires
312the rsh protocol on the remote machine.") 312the `rsh' protocol on the remote machine.")
313 (ada-prj-field 'cross_prefix "Prefix used in for the cross tool chain" 313 (ada-prj-field 'cross_prefix "Prefix used in for the cross tool chain"
314"When working on multiple cross targets, it is 314"When working on multiple cross targets, it is
315most convenient to specify the prefix of the 315most convenient to specify the prefix of the
316tool chain here. For instance, on PowerPc 316tool chain here. For instance, on PowerPc
317vxworks, you would enter powerpc-wrs-vxworks-. 317vxworks, you would enter `powerpc-wrs-vxworks-'.
318To use JGNAT, enter j.") 318To use JGNAT, enter `j'.")
319 ) 319 )
320 320
321 321
diff --git a/lisp/progmodes/ada-xref.el b/lisp/progmodes/ada-xref.el
index 6f2f78f7f19..816de12cbdb 100644
--- a/lisp/progmodes/ada-xref.el
+++ b/lisp/progmodes/ada-xref.el
@@ -286,7 +286,7 @@ On Windows systems, this will properly handle .exe extension as well."
286 (ada-find-file-in-dir (concat exec-name ".exe") exec-path)))) 286 (ada-find-file-in-dir (concat exec-name ".exe") exec-path))))
287 (if result 287 (if result
288 result 288 result
289 (error "%s not found in path" exec-name)))) 289 (error "`%s' not found in path" exec-name))))
290 290
291(defun ada-initialize-runtime-library (cross-prefix) 291(defun ada-initialize-runtime-library (cross-prefix)
292 "Initialize the variables for the runtime library location. 292 "Initialize the variables for the runtime library location.
diff --git a/lisp/progmodes/cc-engine.el b/lisp/progmodes/cc-engine.el
index f26b8ec6dd1..82f0d722d03 100644
--- a/lisp/progmodes/cc-engine.el
+++ b/lisp/progmodes/cc-engine.el
@@ -634,7 +634,7 @@ move into or out of sexps (not even normal expression parentheses).
634 634
635If point is already at the earliest statement within braces or parens, 635If point is already at the earliest statement within braces or parens,
636this function doesn't move back into any whitespace preceding it; it 636this function doesn't move back into any whitespace preceding it; it
637returns 'same in this case. 637returns `same' in this case.
638 638
639Stop at statement continuation tokens like \"else\", \"catch\", 639Stop at statement continuation tokens like \"else\", \"catch\",
640\"finally\" and the \"while\" in \"do ... while\" if the start point 640\"finally\" and the \"while\" in \"do ... while\" if the start point
@@ -656,19 +656,19 @@ start of the definition in a \"#define\". Also stop at start of
656macros before leaving them. 656macros before leaving them.
657 657
658Return: 658Return:
659'label if stopped at a label or \"case...:\" or \"default:\"; 659`label' if stopped at a label or \"case...:\" or \"default:\";
660'same if stopped at the beginning of the current statement; 660`same' if stopped at the beginning of the current statement;
661'up if stepped to a containing statement; 661`up' if stepped to a containing statement;
662'previous if stepped to a preceding statement; 662`previous' if stepped to a preceding statement;
663'beginning if stepped from a statement continuation clause to 663`beginning' if stepped from a statement continuation clause to
664 its start clause; or 664 its start clause; or
665'macro if stepped to a macro start. 665`macro' if stepped to a macro start.
666Note that 'same and not 'label is returned if stopped at the same 666Note that `same' and not `label' is returned if stopped at the same
667label without crossing the colon character. 667label without crossing the colon character.
668 668
669LIM may be given to limit the search. If the search hits the limit, 669LIM may be given to limit the search. If the search hits the limit,
670point will be left at the closest following token, or at the start 670point will be left at the closest following token, or at the start
671position if that is less ('same is returned in this case). 671position if that is less (`same' is returned in this case).
672 672
673NOERROR turns off error logging to `c-parsing-error'. 673NOERROR turns off error logging to `c-parsing-error'.
674 674
diff --git a/lisp/progmodes/cc-langs.el b/lisp/progmodes/cc-langs.el
index 0e904d23c5b..a1e26b9fcc4 100644
--- a/lisp/progmodes/cc-langs.el
+++ b/lisp/progmodes/cc-langs.el
@@ -926,14 +926,14 @@ following elements. The car of each element describes the type of the
926operator group, and the cdr is a list of the operator tokens in it. 926operator group, and the cdr is a list of the operator tokens in it.
927The operator group types are: 927The operator group types are:
928 928
929'prefix Unary prefix operators. 929`prefix' Unary prefix operators.
930'postfix Unary postfix operators. 930`postfix' Unary postfix operators.
931'postfix-if-paren 931`postfix-if-paren'
932 Unary postfix operators if and only if the chars have 932 Unary postfix operators if and only if the chars have
933 parenthesis syntax. 933 parenthesis syntax.
934'left-assoc Binary left associative operators (i.e. a+b+c means (a+b)+c). 934`left-assoc' Binary left associative operators (i.e. a+b+c means (a+b)+c).
935'right-assoc Binary right associative operators (i.e. a=b=c means a=(b=c)). 935`right-assoc' Binary right associative operators (i.e. a=b=c means a=(b=c)).
936'right-assoc-sequence 936`right-assoc-sequence'
937 Right associative operator that constitutes of a 937 Right associative operator that constitutes of a
938 sequence of tokens that separate expressions. All the 938 sequence of tokens that separate expressions. All the
939 tokens in the group are in this case taken as 939 tokens in the group are in this case taken as
diff --git a/lisp/progmodes/cc-vars.el b/lisp/progmodes/cc-vars.el
index df6e987721b..da36647f2cd 100644
--- a/lisp/progmodes/cc-vars.el
+++ b/lisp/progmodes/cc-vars.el
@@ -833,7 +833,7 @@ string in the mode line), and a semicolon or comma is typed (see
833no arguments, and should return one of the following values: 833no arguments, and should return one of the following values:
834 834
835 nil -- no determination made, continue checking 835 nil -- no determination made, continue checking
836 'stop -- do not insert a newline, and stop checking 836 `stop' -- do not insert a newline, and stop checking
837 (anything else) -- insert a newline, and stop checking 837 (anything else) -- insert a newline, and stop checking
838 838
839If every function in the list is called with no determination made, 839If every function in the list is called with no determination made,
diff --git a/lisp/progmodes/cperl-mode.el b/lisp/progmodes/cperl-mode.el
index 322024ea448..b8ba170a246 100644
--- a/lisp/progmodes/cperl-mode.el
+++ b/lisp/progmodes/cperl-mode.el
@@ -724,7 +724,7 @@ mode-compile.el.
724If your Emacs does not default to `cperl-mode' on Perl files, and you 724If your Emacs does not default to `cperl-mode' on Perl files, and you
725want it to: put the following into your .emacs file: 725want it to: put the following into your .emacs file:
726 726
727 (defalias 'perl-mode 'cperl-mode) 727 (defalias \\='perl-mode \\='cperl-mode)
728 728
729Get perl5-info from 729Get perl5-info from
730 $CPAN/doc/manual/info/perl5-old/perl5-info.tar.gz 730 $CPAN/doc/manual/info/perl5-old/perl5-info.tar.gz
diff --git a/lisp/progmodes/ebrowse.el b/lisp/progmodes/ebrowse.el
index 2443d6f8ca9..80f9e2a7719 100644
--- a/lisp/progmodes/ebrowse.el
+++ b/lisp/progmodes/ebrowse.el
@@ -3471,7 +3471,7 @@ are not performed."
3471 (with-output-to-temp-buffer (concat "*Apropos Members*") 3471 (with-output-to-temp-buffer (concat "*Apropos Members*")
3472 (set-buffer standard-output) 3472 (set-buffer standard-output)
3473 (erase-buffer) 3473 (erase-buffer)
3474 (insert (format-message "Members matching %s\n\n" regexp)) 3474 (insert (format-message "Members matching `%s'\n\n" regexp))
3475 (cl-loop for s in (ebrowse-list-of-matching-members members regexp) do 3475 (cl-loop for s in (ebrowse-list-of-matching-members members regexp) do
3476 (cl-loop for info in (gethash s members) do 3476 (cl-loop for info in (gethash s members) do
3477 (ebrowse-draw-file-member-info info)))))) 3477 (ebrowse-draw-file-member-info info))))))
diff --git a/lisp/progmodes/elisp-mode.el b/lisp/progmodes/elisp-mode.el
index bcabf3cdf59..1ea9f174775 100644
--- a/lisp/progmodes/elisp-mode.el
+++ b/lisp/progmodes/elisp-mode.el
@@ -1322,7 +1322,7 @@ which see."
1322 0 - contains the last symbol read from the buffer. 1322 0 - contains the last symbol read from the buffer.
1323 1 - contains the string last displayed in the echo area for variables, 1323 1 - contains the string last displayed in the echo area for variables,
1324 or argument string for functions. 1324 or argument string for functions.
1325 2 - 'function if function args, 'variable if variable documentation.") 1325 2 - `function' if function args, `variable' if variable documentation.")
1326 1326
1327(defun elisp-eldoc-documentation-function () 1327(defun elisp-eldoc-documentation-function ()
1328 "`eldoc-documentation-function' (which see) for Emacs Lisp." 1328 "`eldoc-documentation-function' (which see) for Emacs Lisp."
diff --git a/lisp/progmodes/etags.el b/lisp/progmodes/etags.el
index d38a7cd7706..0d5fc3a3cd3 100644
--- a/lisp/progmodes/etags.el
+++ b/lisp/progmodes/etags.el
@@ -1268,7 +1268,7 @@ buffer-local values of tags table format variables."
1268 ;; \6 is the line to start searching at; 1268 ;; \6 is the line to start searching at;
1269 ;; \7 is the char to start searching at. 1269 ;; \7 is the char to start searching at.
1270 (while (re-search-forward 1270 (while (re-search-forward
1271 "^\\(\\([^\177]+[^-a-zA-Z0-9_+*$:\177]+\\)?\ 1271 "^\\(\\([^\177]*[^-a-zA-Z0-9_+*$:\177]+\\)?\
1272\\([-a-zA-Z0-9_+*$?:]+\\)[^-a-zA-Z0-9_+*$?:\177]*\\)\177\ 1272\\([-a-zA-Z0-9_+*$?:]+\\)[^-a-zA-Z0-9_+*$?:\177]*\\)\177\
1273\\(\\([^\n\001]+\\)\001\\)?\\([0-9]+\\)?,\\([0-9]+\\)?\n" 1273\\(\\([^\n\001]+\\)\001\\)?\\([0-9]+\\)?,\\([0-9]+\\)?\n"
1274 nil t) 1274 nil t)
@@ -1459,7 +1459,7 @@ hits the start of file."
1459 (when (symbolp symbs) 1459 (when (symbolp symbs)
1460 (if (boundp symbs) 1460 (if (boundp symbs)
1461 (setq symbs (symbol-value symbs)) 1461 (setq symbs (symbol-value symbs))
1462 (insert (format-message "symbol %s has no value\n" symbs)) 1462 (insert (format-message "symbol `%s' has no value\n" symbs))
1463 (setq symbs nil))) 1463 (setq symbs nil)))
1464 (if (vectorp symbs) 1464 (if (vectorp symbs)
1465 (mapatoms ins-symb symbs) 1465 (mapatoms ins-symb symbs)
diff --git a/lisp/progmodes/f90.el b/lisp/progmodes/f90.el
index 43b057ba882..e8a1ae455ee 100644
--- a/lisp/progmodes/f90.el
+++ b/lisp/progmodes/f90.el
@@ -1425,7 +1425,7 @@ single - statement is not continued.
1425begin - current line is the first in a continued statement. 1425begin - current line is the first in a continued statement.
1426end - current line is the last in a continued statement 1426end - current line is the last in a continued statement
1427middle - current line is neither first nor last in a continued statement. 1427middle - current line is neither first nor last in a continued statement.
1428Comment lines embedded amongst continued lines return 'middle." 1428Comment lines embedded amongst continued lines return `middle'."
1429 (let (pcont cont) 1429 (let (pcont cont)
1430 (save-excursion 1430 (save-excursion
1431 (setq pcont (if (f90-previous-statement) (f90-line-continued)))) 1431 (setq pcont (if (f90-previous-statement) (f90-line-continued))))
diff --git a/lisp/progmodes/flymake.el b/lisp/progmodes/flymake.el
index f220633fefa..a9d47431e51 100644
--- a/lisp/progmodes/flymake.el
+++ b/lisp/progmodes/flymake.el
@@ -287,7 +287,7 @@ Return its file name if found, or nil if not found."
287 nil))))) 287 nil)))))
288 288
289(defun flymake-fix-file-name (name) 289(defun flymake-fix-file-name (name)
290 "Replace all occurrences of \\ with /." 290 "Replace all occurrences of `\\' with `/'."
291 (when name 291 (when name
292 (setq name (expand-file-name name)) 292 (setq name (expand-file-name name))
293 (setq name (abbreviate-file-name name)) 293 (setq name (abbreviate-file-name name))
@@ -785,7 +785,7 @@ Perhaps use text from LINE-ERR-INFO-LIST to enhance highlighting."
785 (when (flymake-same-files real-file-name source-file-name) 785 (when (flymake-same-files real-file-name source-file-name)
786 (setq line-err-info (flymake-ler-set-file line-err-info nil)) 786 (setq line-err-info (flymake-ler-set-file line-err-info nil))
787 (setq err-info-list (flymake-add-err-info err-info-list line-err-info)))) 787 (setq err-info-list (flymake-add-err-info err-info-list line-err-info))))
788 (flymake-log 3 "parsed %s, %s line-err-info" (nth idx lines) (if line-err-info "got" "no")) 788 (flymake-log 3 "parsed `%s', %s line-err-info" (nth idx lines) (if line-err-info "got" "no"))
789 (setq idx (1+ idx))) 789 (setq idx (1+ idx)))
790 err-info-list)) 790 err-info-list))
791 791
@@ -1086,7 +1086,7 @@ For the format of LINE-ERR-INFO, see `flymake-ler-make-ler'."
1086 (error 1086 (error
1087 (let* ((err-str 1087 (let* ((err-str
1088 (format-message 1088 (format-message
1089 "Failed to launch syntax check process %s with args %s: %s" 1089 "Failed to launch syntax check process `%s' with args %s: %s"
1090 cmd args (error-message-string err))) 1090 cmd args (error-message-string err)))
1091 (source-file-name buffer-file-name) 1091 (source-file-name buffer-file-name)
1092 (cleanup-f (flymake-get-cleanup-function source-file-name))) 1092 (cleanup-f (flymake-get-cleanup-function source-file-name)))
diff --git a/lisp/progmodes/fortran.el b/lisp/progmodes/fortran.el
index 83e427da790..ee4733f6e4e 100644
--- a/lisp/progmodes/fortran.el
+++ b/lisp/progmodes/fortran.el
@@ -817,15 +817,15 @@ Variables controlling indentation style and extra features:
817 Amount of extra indentation for text in full-line comments (default 0). 817 Amount of extra indentation for text in full-line comments (default 0).
818`fortran-comment-indent-style' 818`fortran-comment-indent-style'
819 How to indent the text in full-line comments. Allowed values are: 819 How to indent the text in full-line comments. Allowed values are:
820 nil don't change the indentation 820 nil don't change the indentation
821 fixed indent to `fortran-comment-line-extra-indent' beyond the 821 `fixed' indent to `fortran-comment-line-extra-indent' beyond the
822 value of either 822 value of either
823 `fortran-minimum-statement-indent-fixed' (fixed format) or 823 `fortran-minimum-statement-indent-fixed' (fixed format) or
824 `fortran-minimum-statement-indent-tab' (TAB format), 824 `fortran-minimum-statement-indent-tab' (TAB format),
825 depending on the continuation format in use. 825 depending on the continuation format in use.
826 relative indent to `fortran-comment-line-extra-indent' beyond the 826 `relative' indent to `fortran-comment-line-extra-indent' beyond the
827 indentation for a line of code. 827 indentation for a line of code.
828 (default 'fixed) 828 (default `fixed')
829`fortran-comment-indent-char' 829`fortran-comment-indent-char'
830 Single-character string to be inserted instead of space for 830 Single-character string to be inserted instead of space for
831 full-line comment indentation (default \" \"). 831 full-line comment indentation (default \" \").
diff --git a/lisp/progmodes/gdb-mi.el b/lisp/progmodes/gdb-mi.el
index 9942e17397a..1eff62c5acf 100644
--- a/lisp/progmodes/gdb-mi.el
+++ b/lisp/progmodes/gdb-mi.el
@@ -2065,7 +2065,7 @@ a GDB/MI reply message."
2065(defun gdbmi-bnf-gdb-prompt () 2065(defun gdbmi-bnf-gdb-prompt ()
2066 "Implementation of the following GDB/MI output grammar rule: 2066 "Implementation of the following GDB/MI output grammar rule:
2067 gdb-prompt ==> 2067 gdb-prompt ==>
2068 '(gdb)' nl 2068 `(gdb)' nl
2069 2069
2070 nl ==> 2070 nl ==>
2071 CR | CR-LF" 2071 CR | CR-LF"
@@ -2085,7 +2085,7 @@ a GDB/MI reply message."
2085 "Implementation of the following GDB/MI output grammar rule: 2085 "Implementation of the following GDB/MI output grammar rule:
2086 2086
2087 result-record ==> 2087 result-record ==>
2088 [ token ] '^' result-class ( ',' result )* nl 2088 [ token ] `^' result-class ( `,' result )* nl
2089 2089
2090 token ==> 2090 token ==>
2091 any sequence of digits." 2091 any sequence of digits."
@@ -2110,16 +2110,16 @@ a GDB/MI reply message."
2110 exec-async-output | status-async-output | notify-async-output 2110 exec-async-output | status-async-output | notify-async-output
2111 2111
2112 exec-async-output ==> 2112 exec-async-output ==>
2113 [ token ] '*' async-output 2113 [ token ] `*' async-output
2114 2114
2115 status-async-output ==> 2115 status-async-output ==>
2116 [ token ] '+' async-output 2116 [ token ] `+' async-output
2117 2117
2118 notify-async-output ==> 2118 notify-async-output ==>
2119 [ token ] '=' async-output 2119 [ token ] `=' async-output
2120 2120
2121 async-output ==> 2121 async-output ==>
2122 async-class ( ',' result )* nl" 2122 async-class ( `,' result )* nl"
2123 2123
2124 (gdbmi-bnf-result-and-async-record-impl)) 2124 (gdbmi-bnf-result-and-async-record-impl))
2125 2125
@@ -2130,13 +2130,13 @@ a GDB/MI reply message."
2130 console-stream-output | target-stream-output | log-stream-output 2130 console-stream-output | target-stream-output | log-stream-output
2131 2131
2132 console-stream-output ==> 2132 console-stream-output ==>
2133 '~' c-string 2133 `~' c-string
2134 2134
2135 target-stream-output ==> 2135 target-stream-output ==>
2136 '@' c-string 2136 `@' c-string
2137 2137
2138 log-stream-output ==> 2138 log-stream-output ==>
2139 '&' c-string" 2139 `&' c-string"
2140 (when (< gdbmi-bnf-offset (length gud-marker-acc)) 2140 (when (< gdbmi-bnf-offset (length gud-marker-acc))
2141 (if (and (member (aref gud-marker-acc gdbmi-bnf-offset) '(?~ ?@ ?&)) 2141 (if (and (member (aref gud-marker-acc gdbmi-bnf-offset) '(?~ ?@ ?&))
2142 (string-match (concat "\\([~@&]\\)\\(" gdb--string-regexp "\\)\n") 2142 (string-match (concat "\\([~@&]\\)\\(" gdb--string-regexp "\\)\n")
diff --git a/lisp/progmodes/idlw-shell.el b/lisp/progmodes/idlw-shell.el
index b5e799848de..50ebadf733b 100644
--- a/lisp/progmodes/idlw-shell.el
+++ b/lisp/progmodes/idlw-shell.el
@@ -152,7 +152,7 @@ This variable can have 3 values:
152nil Arrows just move the cursor 152nil Arrows just move the cursor
153t Arrows force the cursor back to the current command line and 153t Arrows force the cursor back to the current command line and
154 walk the history 154 walk the history
155'cmdline When the cursor is in the current command line, arrows walk the 155`cmdline' When the cursor is in the current command line, arrows walk the
156 history. Everywhere else in the buffer, arrows move the cursor." 156 history. Everywhere else in the buffer, arrows move the cursor."
157 :group 'idlwave-shell-general-setup 157 :group 'idlwave-shell-general-setup
158 :type '(choice 158 :type '(choice
@@ -229,7 +229,7 @@ to set this option to nil."
229 229
230(defcustom idlwave-shell-file-name-chars "~/A-Za-z0-9+:_.$#%={}\\- " 230(defcustom idlwave-shell-file-name-chars "~/A-Za-z0-9+:_.$#%={}\\- "
231 "The characters allowed in file names, as a string. 231 "The characters allowed in file names, as a string.
232Used for file name completion. Must not contain ', , and \" 232Used for file name completion. Must not contain `\\='', `,' and `\"'
233because these are used as separators by IDL." 233because these are used as separators by IDL."
234 :group 'idlwave-shell-general-setup 234 :group 'idlwave-shell-general-setup
235 :type 'string) 235 :type 'string)
@@ -439,15 +439,13 @@ Value decides about the method which is used to mark the line. Valid values
439are: 439are:
440 440
441nil Do not mark the line 441nil Do not mark the line
442'arrow Use the overlay arrow 442`arrow' Use the overlay arrow
443'face Use `idlwave-shell-stop-line-face' to highlight the line. 443`face' Use `idlwave-shell-stop-line-face' to highlight the line.
444t Use what IDLWAVE thinks is best. Will be a face where possible, 444t Use what IDLWAVE thinks is best. Will be a face where possible,
445 otherwise the overlay arrow. 445 otherwise the overlay arrow.
446The overlay-arrow has the disadvantage to hide the first chars of a line. 446The overlay-arrow has the disadvantage to hide the first chars of a line.
447Since many people do not have the main block of IDL programs indented, 447Since many people do not have the main block of IDL programs indented,
448a face highlighting may be better. 448a face highlighting may be better."
449In Emacs 21, the overlay arrow is displayed in a special area and never
450hides any code, so setting this to 'arrow on Emacs 21 sounds like a good idea."
451 :group 'idlwave-shell-highlighting-and-faces 449 :group 'idlwave-shell-highlighting-and-faces
452 :type '(choice 450 :type '(choice
453 (const :tag "No marking" nil) 451 (const :tag "No marking" nil)
@@ -494,10 +492,10 @@ where IDL is stopped, when in Electric Debug Mode."
494 "Non-nil means, mark breakpoints in the source files. 492 "Non-nil means, mark breakpoints in the source files.
495Valid values are: 493Valid values are:
496nil Do not mark breakpoints. 494nil Do not mark breakpoints.
497'face Highlight line with `idlwave-shell-breakpoint-face'. 495`face' Highlight line with `idlwave-shell-breakpoint-face'.
498'glyph Red dot at the beginning of line. If the display does not 496`glyph' Red dot at the beginning of line. If the display does not
499 support glyphs, will use 'face instead. 497 support glyphs, will use `face' instead.
500t Glyph when possible, otherwise face (same effect as 'glyph)." 498t Glyph when possible, otherwise face (same effect as `glyph')."
501 :group 'idlwave-shell-highlighting-and-faces 499 :group 'idlwave-shell-highlighting-and-faces
502 :type '(choice 500 :type '(choice
503 (const :tag "No marking" nil) 501 (const :tag "No marking" nil)
@@ -3911,7 +3909,7 @@ Elements of the alist have the form:
3911 3909
3912(defun idlwave-shell-module-source-query (module &optional type) 3910(defun idlwave-shell-module-source-query (module &optional type)
3913 "Determine the source file for a given module. 3911 "Determine the source file for a given module.
3914Query as a function if TYPE set to something beside 'pro." 3912Query as a function if TYPE set to something beside `pro'."
3915 (if module 3913 (if module
3916 (idlwave-shell-send-command 3914 (idlwave-shell-send-command
3917 (format "print,(routine_info('%s',/SOURCE%s)).PATH" module 3915 (format "print,(routine_info('%s',/SOURCE%s)).PATH" module
diff --git a/lisp/progmodes/idlwave.el b/lisp/progmodes/idlwave.el
index daf919adb2f..b524b761b75 100644
--- a/lisp/progmodes/idlwave.el
+++ b/lisp/progmodes/idlwave.el
@@ -376,7 +376,7 @@ The following values are allowed:
376 376
377nil Don't scan any buffers. 377nil Don't scan any buffers.
378t Scan all `idlwave-mode' buffers in the current editing session. 378t Scan all `idlwave-mode' buffers in the current editing session.
379current Scan only the current buffer, but no other buffers." 379`current' Scan only the current buffer, but no other buffers."
380 :group 'idlwave-routine-info 380 :group 'idlwave-routine-info
381 :type '(choice 381 :type '(choice
382 (const :tag "No buffer" nil) 382 (const :tag "No buffer" nil)
@@ -743,7 +743,7 @@ The actions that can be performed are listed in `idlwave-indent-action-table'."
743(defcustom idlwave-abbrev-start-char "\\" 743(defcustom idlwave-abbrev-start-char "\\"
744 "A single character string used to start abbreviations in abbrev mode. 744 "A single character string used to start abbreviations in abbrev mode.
745Possible characters to choose from: ~\\=`\% 745Possible characters to choose from: ~\\=`\%
746or even ?. . is not a good choice because it can make structure 746or even `?'. `.' is not a good choice because it can make structure
747field names act like abbrevs in certain circumstances. 747field names act like abbrevs in certain circumstances.
748 748
749Changes to this in `idlwave-mode-hook' will have no effect. Instead a user 749Changes to this in `idlwave-mode-hook' will have no effect. Instead a user
@@ -5833,15 +5833,15 @@ to override IDLWAVE's idea of what should be completed at point.
5833Possible values are: 5833Possible values are:
5834 5834
58350 <=> query for the completion type 58350 <=> query for the completion type
58361 <=> 'procedure 58361 <=> `procedure'
58372 <=> 'procedure-keyword 58372 <=> `procedure-keyword'
58383 <=> 'function 58383 <=> `function'
58394 <=> 'function-keyword 58394 <=> `function-keyword'
58405 <=> 'procedure-method 58405 <=> `procedure-method'
58416 <=> 'procedure-method-keyword 58416 <=> `procedure-method-keyword'
58427 <=> 'function-method 58427 <=> `function-method'
58438 <=> 'function-method-keyword 58438 <=> `function-method-keyword'
58449 <=> 'class 58449 <=> `class'
5845 5845
5846As a special case, the universal argument C-u forces completion of 5846As a special case, the universal argument C-u forces completion of
5847function names in places where the default would be a keyword. 5847function names in places where the default would be a keyword.
diff --git a/lisp/progmodes/make-mode.el b/lisp/progmodes/make-mode.el
index 9abbf16ed5d..4f46cbe6357 100644
--- a/lisp/progmodes/make-mode.el
+++ b/lisp/progmodes/make-mode.el
@@ -1455,7 +1455,7 @@ Fill comments, backslashed lines, and variable definitions specially."
1455 1455
1456(defun makefile-browser-insert-continuation () 1456(defun makefile-browser-insert-continuation ()
1457 "Insert a makefile continuation. 1457 "Insert a makefile continuation.
1458In the makefile buffer, go to (end-of-line), insert a \\ 1458In the makefile buffer, go to (end-of-line), insert a `\\'
1459character, insert a new blank line, go to that line and indent by one TAB. 1459character, insert a new blank line, go to that line and indent by one TAB.
1460This is most useful in the process of creating continued lines when copying 1460This is most useful in the process of creating continued lines when copying
1461large dependencies from the browser to the client buffer. 1461large dependencies from the browser to the client buffer.
diff --git a/lisp/progmodes/prolog.el b/lisp/progmodes/prolog.el
index b95c3f97117..5a4ed84c346 100644
--- a/lisp/progmodes/prolog.el
+++ b/lisp/progmodes/prolog.el
@@ -402,11 +402,11 @@ Only used in ( If -> Then ; Else) and ( Disj1 ; Disj2 ) style expressions."
402(defcustom prolog-parse-mode 'beg-of-clause 402(defcustom prolog-parse-mode 'beg-of-clause
403 "The parse mode used (decides from which point parsing is done). 403 "The parse mode used (decides from which point parsing is done).
404Legal values: 404Legal values:
405'beg-of-line - starts parsing at the beginning of a line, unless the 405`beg-of-line' - starts parsing at the beginning of a line, unless the
406 previous line ends with a backslash. Fast, but has 406 previous line ends with a backslash. Fast, but has
407 problems detecting multiline /* */ comments. 407 problems detecting multiline /* */ comments.
408'beg-of-clause - starts parsing at the beginning of the current clause. 408`beg-of-clause' - starts parsing at the beginning of the current clause.
409 Slow, but copes better with /* */ comments." 409 Slow, but copes better with /* */ comments."
410 :version "24.1" 410 :version "24.1"
411 :group 'prolog-indentation 411 :group 'prolog-indentation
412 :type '(choice (const :value beg-of-line) 412 :type '(choice (const :value beg-of-line)
@@ -1209,7 +1209,7 @@ using the commands `send-region', `send-string' and \\[prolog-consult-region].
1209Commands: 1209Commands:
1210Tab indents for Prolog; with argument, shifts rest 1210Tab indents for Prolog; with argument, shifts rest
1211 of expression rigidly with the current line. 1211 of expression rigidly with the current line.
1212Paragraphs are separated only by blank lines and '%%'. '%'s start comments. 1212Paragraphs are separated only by blank lines and `%%'. `%'s start comments.
1213 1213
1214Return at end of buffer sends line as input. 1214Return at end of buffer sends line as input.
1215Return not at end copies rest of line to end and sends it. 1215Return not at end copies rest of line to end and sends it.
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 63a43c1b31a..9528ffeebbc 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -2819,7 +2819,7 @@ of `error' with a user-friendly message."
2819 (or (python-shell-get-process) 2819 (or (python-shell-get-process)
2820 (if interactivep 2820 (if interactivep
2821 (user-error 2821 (user-error
2822 "Start a Python process first with %s or %s." 2822 "Start a Python process first with `%s' or `%s'."
2823 (substitute-command-keys "\\[run-python]") 2823 (substitute-command-keys "\\[run-python]")
2824 ;; Get the binding. 2824 ;; Get the binding.
2825 (key-description 2825 (key-description
@@ -2979,7 +2979,7 @@ This is a wrapper over `buffer-substring' that takes care of
2979different transformations for the code sent to be evaluated in 2979different transformations for the code sent to be evaluated in
2980the python shell: 2980the python shell:
2981 1. When optional argument NOMAIN is non-nil everything under an 2981 1. When optional argument NOMAIN is non-nil everything under an
2982 \"if __name__ == '__main__'\" block will be removed. 2982 \"if __name__ == \\='__main__\\='\" block will be removed.
2983 2. When a subregion of the buffer is sent, it takes care of 2983 2. When a subregion of the buffer is sent, it takes care of
2984 appending extra empty lines so tracebacks are correct. 2984 appending extra empty lines so tracebacks are correct.
2985 3. When the region sent is a substring of the current buffer, a 2985 3. When the region sent is a substring of the current buffer, a
@@ -4006,7 +4006,7 @@ The skeleton will be bound to python-skeleton-NAME."
4006 (let* ((name (symbol-name name)) 4006 (let* ((name (symbol-name name))
4007 (function-name (intern (concat "python-skeleton--" name))) 4007 (function-name (intern (concat "python-skeleton--" name)))
4008 (msg (format-message 4008 (msg (format-message
4009 "Add %s clause? " name))) 4009 "Add `%s' clause? " name)))
4010 (when (not skel) 4010 (when (not skel)
4011 (setq skel 4011 (setq skel
4012 `(< ,(format "%s:" name) \n \n 4012 `(< ,(format "%s:" name) \n \n
diff --git a/lisp/progmodes/sql.el b/lisp/progmodes/sql.el
index f46c8a99b67..cbf65c0a803 100644
--- a/lisp/progmodes/sql.el
+++ b/lisp/progmodes/sql.el
@@ -4276,7 +4276,7 @@ passed as command line arguments."
4276 ;; work for remote hosts; we suppress the check there. 4276 ;; work for remote hosts; we suppress the check there.
4277 (unless (or (file-remote-p default-directory) 4277 (unless (or (file-remote-p default-directory)
4278 (executable-find program)) 4278 (executable-find program))
4279 (error "Unable to locate SQL program %s" program)) 4279 (error "Unable to locate SQL program `%s'" program))
4280 ;; Make sure buffer name is unique. 4280 ;; Make sure buffer name is unique.
4281 (when (sql-buffer-live-p (format "*%s*" buf-name)) 4281 (when (sql-buffer-live-p (format "*%s*" buf-name))
4282 (setq buf-name (format "SQL-%s" product)) 4282 (setq buf-name (format "SQL-%s" product))
diff --git a/lisp/progmodes/verilog-mode.el b/lisp/progmodes/verilog-mode.el
index caae746779e..f83c676396d 100644
--- a/lisp/progmodes/verilog-mode.el
+++ b/lisp/progmodes/verilog-mode.el
@@ -4477,7 +4477,7 @@ More specifically, after a generate and before an endgenerate."
4477 (= nest 0) )) ; return nest 4477 (= nest 0) )) ; return nest
4478 4478
4479(defun verilog-in-deferred-immediate-final-p () 4479(defun verilog-in-deferred-immediate-final-p ()
4480 "Return true if inside an assert/assume/cover final statement." 4480 "Return true if inside an `assert/assume/cover final' statement."
4481 (interactive) 4481 (interactive)
4482 (and (looking-at "final") 4482 (and (looking-at "final")
4483 (verilog-looking-back "\\<\\(?:assert\\|assume\\|cover\\)\\>\\s-+" nil)) 4483 (verilog-looking-back "\\<\\(?:assert\\|assume\\|cover\\)\\>\\s-+" nil))
@@ -7221,7 +7221,7 @@ will be completed at runtime and should not be added to this list.")
7221 7221
7222(defun verilog-func-completion (type) 7222(defun verilog-func-completion (type)
7223 "Build regular expression for module/task/function names. 7223 "Build regular expression for module/task/function names.
7224TYPE is module, tf for task or function, or t if unknown." 7224TYPE is `module', `tf' for task or function, or t if unknown."
7225 (if (string= verilog-str "") 7225 (if (string= verilog-str "")
7226 (setq verilog-str "[a-zA-Z_]")) 7226 (setq verilog-str "[a-zA-Z_]"))
7227 (let ((verilog-str (concat (cond 7227 (let ((verilog-str (concat (cond
@@ -7294,7 +7294,7 @@ must be a function to be called for every match to check if this should
7294really be a match. If VERILOG-FLAG is t, the function returns a list of 7294really be a match. If VERILOG-FLAG is t, the function returns a list of
7295all possible completions. If VERILOG-FLAG is nil it returns a string, 7295all possible completions. If VERILOG-FLAG is nil it returns a string,
7296the longest possible completion, or t if VERILOG-STR is an exact match. 7296the longest possible completion, or t if VERILOG-STR is an exact match.
7297If VERILOG-FLAG is lambda, the function returns t if VERILOG-STR is an 7297If VERILOG-FLAG is `lambda', the function returns t if VERILOG-STR is an
7298exact match, nil otherwise." 7298exact match, nil otherwise."
7299 (save-excursion 7299 (save-excursion
7300 (let ((verilog-all nil)) 7300 (let ((verilog-all nil))
@@ -7489,7 +7489,7 @@ VERILOG-PRED is non-nil, it must be a function to be called for every match
7489to check if this should really be a match. If VERILOG-FLAG is t, the 7489to check if this should really be a match. If VERILOG-FLAG is t, the
7490function returns a list of all possible completions. If it is nil it 7490function returns a list of all possible completions. If it is nil it
7491returns a string, the longest possible completion, or t if VERILOG-STR is 7491returns a string, the longest possible completion, or t if VERILOG-STR is
7492an exact match. If VERILOG-FLAG is lambda, the function returns t if 7492an exact match. If VERILOG-FLAG is `lambda', the function returns t if
7493VERILOG-STR is an exact match, nil otherwise." 7493VERILOG-STR is an exact match, nil otherwise."
7494 (save-excursion 7494 (save-excursion
7495 (let ((verilog-all nil) 7495 (let ((verilog-all nil)
@@ -10099,7 +10099,7 @@ if non-nil."
10099 10099
10100;; Combined 10100;; Combined
10101(defun verilog-decls-get-signals (decls) 10101(defun verilog-decls-get-signals (decls)
10102 "Return all declared signals in DECLS, excluding assign statements." 10102 "Return all declared signals in DECLS, excluding `assign' statements."
10103 (append 10103 (append
10104 (verilog-decls-get-outputs decls) 10104 (verilog-decls-get-outputs decls)
10105 (verilog-decls-get-inouts decls) 10105 (verilog-decls-get-inouts decls)
@@ -11484,14 +11484,14 @@ Lisp Templates:
11484 Lisp functions: 11484 Lisp functions:
11485 11485
11486 vl-name Name portion of the input/output port. 11486 vl-name Name portion of the input/output port.
11487 vl-bits Bus bits portion of the input/output port ([2:0]). 11487 vl-bits Bus bits portion of the input/output port (`[2:0]').
11488 vl-mbits Multidimensional array bits for port ([2:0][3:0]). 11488 vl-mbits Multidimensional array bits for port (`[2:0][3:0]').
11489 vl-width Width of the input/output port (3 for [2:0]). 11489 vl-width Width of the input/output port (`3' for [2:0]).
11490 May be a (...) expression if bits isn't a constant. 11490 May be a (...) expression if bits isn't a constant.
11491 vl-dir Direction of the pin input/output/inout/interface. 11491 vl-dir Direction of the pin input/output/inout/interface.
11492 vl-modport The modport, if an interface with a modport. 11492 vl-modport The modport, if an interface with a modport.
11493 vl-cell-type Module name/type of the cell (InstModule). 11493 vl-cell-type Module name/type of the cell (`InstModule').
11494 vl-cell-name Instance name of the cell (instName). 11494 vl-cell-name Instance name of the cell (`instName').
11495 11495
11496 Normal Lisp variables may be used in expressions. See 11496 Normal Lisp variables may be used in expressions. See
11497 `verilog-read-defines' which can set vh-{definename} variables for use 11497 `verilog-read-defines' which can set vh-{definename} variables for use
@@ -14177,7 +14177,7 @@ Files are checked based on `verilog-library-flags'."
14177 (match-string 1) (buffer-file-name)))) 14177 (match-string 1) (buffer-file-name))))
14178 (when warn 14178 (when warn
14179 (message 14179 (message
14180 "File %s isn't readable, use shift-mouse2 to paste in this field" 14180 "File `%s' isn't readable, use shift-mouse2 to paste in this field"
14181 (match-string 1)))))))) 14181 (match-string 1))))))))
14182 14182
14183 14183
diff --git a/lisp/progmodes/vhdl-mode.el b/lisp/progmodes/vhdl-mode.el
index 47b15d886bc..19a7e970a60 100644
--- a/lisp/progmodes/vhdl-mode.el
+++ b/lisp/progmodes/vhdl-mode.el
@@ -164,7 +164,7 @@
164'/' or is empty)." 164'/' or is empty)."
165 (let ((val (widget-value widget))) 165 (let ((val (widget-value widget)))
166 (unless (string-match "^\\(\\|.*/\\)$" val) 166 (unless (string-match "^\\(\\|.*/\\)$" val)
167 (widget-put widget :error "Invalid directory entry: must end with /") 167 (widget-put widget :error "Invalid directory entry: must end with `/'")
168 widget))) 168 widget)))
169 169
170;; help string for user options 170;; help string for user options
@@ -4361,7 +4361,7 @@ Usage:
4361 ;;; --> \" := \" [[ --> [ --CR --> comment-out code 4361 ;;; --> \" := \" [[ --> [ --CR --> comment-out code
4362 .. --> \" => \" ] --> ) --- --> horizontal line 4362 .. --> \" => \" ] --> ) --- --> horizontal line
4363 ,, --> \" <= \" ]] --> ] ---- --> display comment 4363 ,, --> \" <= \" ]] --> ] ---- --> display comment
4364 == --> \" == \" '' --> \\\" 4364 == --> \" == \" \\='\\=' --> \\\"
4365 4365
4366 4366
4367 WORD COMPLETION: 4367 WORD COMPLETION:
@@ -4808,7 +4808,7 @@ Usage:
4808 automatically recognized as VHDL source files. To add an extension 4808 automatically recognized as VHDL source files. To add an extension
4809 \".xxx\", add the following line to your Emacs start-up file (`.emacs'): 4809 \".xxx\", add the following line to your Emacs start-up file (`.emacs'):
4810 4810
4811 \(push '(\"\\\\.xxx\\\\'\" . vhdl-mode) auto-mode-alist) 4811 \(push \\='(\"\\\\.xxx\\\\\\='\" . vhdl-mode) auto-mode-alist)
4812 4812
4813 4813
4814 HINTS: 4814 HINTS:
@@ -5714,7 +5714,7 @@ the offset is simply returned."
5714 (t nil))))) 5714 (t nil)))))
5715 5715
5716(defun vhdl-in-extended-identifier-p () 5716(defun vhdl-in-extended-identifier-p ()
5717 "Determine if point is inside extended identifier (delimited by \\)." 5717 "Determine if point is inside extended identifier (delimited by `\\')."
5718 (save-match-data 5718 (save-match-data
5719 (and (save-excursion (re-search-backward "\\\\" (vhdl-point 'bol) t)) 5719 (and (save-excursion (re-search-backward "\\\\" (vhdl-point 'bol) t))
5720 (save-excursion (re-search-forward "\\\\" (vhdl-point 'eol) t))))) 5720 (save-excursion (re-search-forward "\\\\" (vhdl-point 'eol) t)))))
@@ -8743,7 +8743,7 @@ is omitted or nil."
8743 (vhdl-comment-insert))))) 8743 (vhdl-comment-insert)))))
8744 (self-insert-command count))) 8744 (self-insert-command count)))
8745 8745
8746(defun vhdl-electric-open-bracket (count) "[ --> (, ([ --> [" 8746(defun vhdl-electric-open-bracket (count) "`[' --> `(', `([' --> `['"
8747 (interactive "p") 8747 (interactive "p")
8748 (if (and vhdl-stutter-mode (= count 1) (not (vhdl-in-literal))) 8748 (if (and vhdl-stutter-mode (= count 1) (not (vhdl-in-literal)))
8749 (if (= (preceding-char) ?\() 8749 (if (= (preceding-char) ?\()
@@ -8751,7 +8751,7 @@ is omitted or nil."
8751 (insert-char ?\( 1)) 8751 (insert-char ?\( 1))
8752 (self-insert-command count))) 8752 (self-insert-command count)))
8753 8753
8754(defun vhdl-electric-close-bracket (count) "] --> ), )] --> ]" 8754(defun vhdl-electric-close-bracket (count) "`]' --> `)', `)]' --> `]'"
8755 (interactive "p") 8755 (interactive "p")
8756 (if (and vhdl-stutter-mode (= count 1) (not (vhdl-in-literal))) 8756 (if (and vhdl-stutter-mode (= count 1) (not (vhdl-in-literal)))
8757 (progn 8757 (progn
@@ -8769,7 +8769,7 @@ is omitted or nil."
8769 (insert-char ?\' 1)) 8769 (insert-char ?\' 1))
8770 (self-insert-command count))) 8770 (self-insert-command count)))
8771 8771
8772(defun vhdl-electric-semicolon (count) ";; --> : , : ; --> := " 8772(defun vhdl-electric-semicolon (count) "`;;' --> ` : ', `: ;' --> ` := '"
8773 (interactive "p") 8773 (interactive "p")
8774 (if (and vhdl-stutter-mode (= count 1) (not (vhdl-in-literal))) 8774 (if (and vhdl-stutter-mode (= count 1) (not (vhdl-in-literal)))
8775 (cond ((= (preceding-char) vhdl-last-input-event) 8775 (cond ((= (preceding-char) vhdl-last-input-event)
@@ -8783,7 +8783,7 @@ is omitted or nil."
8783 (t (insert-char ?\; 1))) 8783 (t (insert-char ?\; 1)))
8784 (self-insert-command count))) 8784 (self-insert-command count)))
8785 8785
8786(defun vhdl-electric-comma (count) ",, --> <= " 8786(defun vhdl-electric-comma (count) "`,,' --> ` <= '"
8787 (interactive "p") 8787 (interactive "p")
8788 (if (and vhdl-stutter-mode (= count 1) (not (vhdl-in-literal))) 8788 (if (and vhdl-stutter-mode (= count 1) (not (vhdl-in-literal)))
8789 (cond ((= (preceding-char) vhdl-last-input-event) 8789 (cond ((= (preceding-char) vhdl-last-input-event)
@@ -8793,7 +8793,7 @@ is omitted or nil."
8793 (t (insert-char ?\, 1))) 8793 (t (insert-char ?\, 1)))
8794 (self-insert-command count))) 8794 (self-insert-command count)))
8795 8795
8796(defun vhdl-electric-period (count) ".. --> => " 8796(defun vhdl-electric-period (count) "`..' --> ` => '"
8797 (interactive "p") 8797 (interactive "p")
8798 (if (and vhdl-stutter-mode (= count 1) (not (vhdl-in-literal))) 8798 (if (and vhdl-stutter-mode (= count 1) (not (vhdl-in-literal)))
8799 (cond ((= (preceding-char) vhdl-last-input-event) 8799 (cond ((= (preceding-char) vhdl-last-input-event)
@@ -8803,7 +8803,7 @@ is omitted or nil."
8803 (t (insert-char ?\. 1))) 8803 (t (insert-char ?\. 1)))
8804 (self-insert-command count))) 8804 (self-insert-command count)))
8805 8805
8806(defun vhdl-electric-equal (count) "== --> == " 8806(defun vhdl-electric-equal (count) "`==' --> ` == '"
8807 (interactive "p") 8807 (interactive "p")
8808 (if (and vhdl-stutter-mode (= count 1) (not (vhdl-in-literal))) 8808 (if (and vhdl-stutter-mode (= count 1) (not (vhdl-in-literal)))
8809 (cond ((= (preceding-char) vhdl-last-input-event) 8809 (cond ((= (preceding-char) vhdl-last-input-event)
diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el
index b0a8eb7a316..7eff1f123b5 100644
--- a/lisp/progmodes/xref.el
+++ b/lisp/progmodes/xref.el
@@ -390,8 +390,8 @@ elements is negated."
390 "Go to the location of ITEM and display the buffer. 390 "Go to the location of ITEM and display the buffer.
391WINDOW controls how the buffer is displayed: 391WINDOW controls how the buffer is displayed:
392 nil -- switch-to-buffer 392 nil -- switch-to-buffer
393 'window -- pop-to-buffer (other window) 393 `window' -- pop-to-buffer (other window)
394 'frame -- pop-to-buffer (other frame)" 394 `frame' -- pop-to-buffer (other frame)"
395 (let* ((marker (save-excursion 395 (let* ((marker (save-excursion
396 (xref-location-marker (xref-item-location item)))) 396 (xref-location-marker (xref-item-location item))))
397 (buf (marker-buffer marker))) 397 (buf (marker-buffer marker)))
diff --git a/lisp/recentf.el b/lisp/recentf.el
index a599383c09e..8f420af6211 100644
--- a/lisp/recentf.el
+++ b/lisp/recentf.el
@@ -1224,7 +1224,7 @@ use for the dialog. It defaults to \"*`recentf-menu-title'*\"."
1224 ", or type the corresponding digit key," 1224 ", or type the corresponding digit key,"
1225 "") 1225 "")
1226 " to open it.\n" 1226 " to open it.\n"
1227 (format-message "Click on Cancel or type q to cancel.\n")) 1227 (format-message "Click on Cancel or type `q' to cancel.\n"))
1228 ;; Use a L&F that looks like the recentf menu. 1228 ;; Use a L&F that looks like the recentf menu.
1229 (tree-widget-set-theme "folder") 1229 (tree-widget-set-theme "folder")
1230 (apply 'widget-create 1230 (apply 'widget-create
diff --git a/lisp/replace.el b/lisp/replace.el
index be73cab8d2a..37e97e2c215 100644
--- a/lisp/replace.el
+++ b/lisp/replace.el
@@ -209,9 +209,9 @@ wants to replace FROM with TO."
209 (let ((match (match-string 3 from))) 209 (let ((match (match-string 3 from)))
210 (cond 210 (cond
211 ((string= match "\\n") 211 ((string= match "\\n")
212 (message "Note: \\n here doesn't match a newline; to do that, type C-q C-j instead")) 212 (message "Note: `\\n' here doesn't match a newline; to do that, type C-q C-j instead"))
213 ((string= match "\\t") 213 ((string= match "\\t")
214 (message "Note: \\t here doesn't match a tab; to do that, just type TAB"))) 214 (message "Note: `\\t' here doesn't match a tab; to do that, just type TAB")))
215 (sit-for 2))) 215 (sit-for 2)))
216 (if (not to) 216 (if (not to)
217 from 217 from
@@ -1140,7 +1140,7 @@ To return to ordinary Occur mode, use \\[occur-cease-edit]."
1140 (goto-char m) 1140 (goto-char m)
1141 (recenter line) 1141 (recenter line)
1142 (if readonly 1142 (if readonly
1143 (message "Buffer %s is read only." buf) 1143 (message "Buffer `%s' is read only." buf)
1144 (delete-region (line-beginning-position) (line-end-position)) 1144 (delete-region (line-beginning-position) (line-end-position))
1145 (insert text)) 1145 (insert text))
1146 (move-to-column col))))))) 1146 (move-to-column col)))))))
@@ -1496,7 +1496,7 @@ See also `multi-occur'."
1496 ;; it is longer than window-width. 1496 ;; it is longer than window-width.
1497 (if (> (+ (length regexp) 42) (window-width)) 1497 (if (> (+ (length regexp) 42) (window-width))
1498 "" (format-message 1498 "" (format-message
1499 " for %s" (query-replace-descr regexp))))) 1499 " for `%s'" (query-replace-descr regexp)))))
1500 (setq occur-revert-arguments (list regexp nlines bufs)) 1500 (setq occur-revert-arguments (list regexp nlines bufs))
1501 (if (= count 0) 1501 (if (= count 0)
1502 (kill-buffer occur-buf) 1502 (kill-buffer occur-buf)
diff --git a/lisp/scroll-bar.el b/lisp/scroll-bar.el
index c46e05d5a1b..635990a7825 100644
--- a/lisp/scroll-bar.el
+++ b/lisp/scroll-bar.el
@@ -61,7 +61,7 @@ SIDE must be the symbol `left' or `right'."
61 (cols (nth 1 wsb))) 61 (cols (nth 1 wsb)))
62 (cond 62 (cond
63 ((not (memq side '(left right))) 63 ((not (memq side '(left right)))
64 (error "left or right expected instead of %S" side)) 64 (error "`left' or `right' expected instead of %S" side))
65 ((and (eq vtype side) cols)) 65 ((and (eq vtype side) cols))
66 ((eq (frame-parameter nil 'vertical-scroll-bars) side) 66 ((eq (frame-parameter nil 'vertical-scroll-bars) side)
67 ;; nil means it's a non-toolkit scroll bar, and its width in 67 ;; nil means it's a non-toolkit scroll bar, and its width in
diff --git a/lisp/server.el b/lisp/server.el
index b16a06e79f0..5a67f12072b 100644
--- a/lisp/server.el
+++ b/lisp/server.el
@@ -575,7 +575,7 @@ If the key is not valid, signal an error."
575 (if server-auth-key 575 (if server-auth-key
576 (if (string-match-p "^[!-~]\\{64\\}$" server-auth-key) 576 (if (string-match-p "^[!-~]\\{64\\}$" server-auth-key)
577 server-auth-key 577 server-auth-key
578 (error "The key %s is invalid" server-auth-key)) 578 (error "The key `%s' is invalid" server-auth-key))
579 (server-generate-key))) 579 (server-generate-key)))
580 580
581;;;###autoload 581;;;###autoload
diff --git a/lisp/simple.el b/lisp/simple.el
index b8d4e741775..f80faae80d8 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -1655,7 +1655,7 @@ invoking, give a prefix argument to `execute-extended-command'."
1655 (not executing-kbd-macro) 1655 (not executing-kbd-macro)
1656 (where-is-internal function overriding-local-map t)))) 1656 (where-is-internal function overriding-local-map t))))
1657 (unless (commandp function) 1657 (unless (commandp function)
1658 (error "%s is not a valid command name" command-name)) 1658 (error "`%s' is not a valid command name" command-name))
1659 (setq this-command function) 1659 (setq this-command function)
1660 ;; Normally `real-this-command' should never be changed, but here we really 1660 ;; Normally `real-this-command' should never be changed, but here we really
1661 ;; want to pretend that M-x <cmd> RET is nothing more than a "key 1661 ;; want to pretend that M-x <cmd> RET is nothing more than a "key
@@ -1689,7 +1689,7 @@ invoking, give a prefix argument to `execute-extended-command'."
1689 (symbol-name function) typed)))) 1689 (symbol-name function) typed))))
1690 (when binding 1690 (when binding
1691 (with-temp-message 1691 (with-temp-message
1692 (format-message "You can run the command %s with %s" 1692 (format-message "You can run the command `%s' with %s"
1693 function 1693 function
1694 (if (stringp binding) 1694 (if (stringp binding)
1695 (concat "M-x " binding " RET") 1695 (concat "M-x " binding " RET")
@@ -2801,7 +2801,7 @@ This variable only matters if `undo-ask-before-discard' is non-nil.")
2801 (setq undo-extra-outer-limit (+ size 50000)) 2801 (setq undo-extra-outer-limit (+ size 50000))
2802 (if (let (use-dialog-box track-mouse executing-kbd-macro ) 2802 (if (let (use-dialog-box track-mouse executing-kbd-macro )
2803 (yes-or-no-p (format-message 2803 (yes-or-no-p (format-message
2804 "Buffer %s undo info is %d bytes long; discard it? " 2804 "Buffer `%s' undo info is %d bytes long; discard it? "
2805 (buffer-name) size))) 2805 (buffer-name) size)))
2806 (progn (setq buffer-undo-list nil) 2806 (progn (setq buffer-undo-list nil)
2807 (setq undo-extra-outer-limit nil) 2807 (setq undo-extra-outer-limit nil)
@@ -2810,7 +2810,7 @@ This variable only matters if `undo-ask-before-discard' is non-nil.")
2810 (display-warning '(undo discard-info) 2810 (display-warning '(undo discard-info)
2811 (concat 2811 (concat
2812 (format-message 2812 (format-message
2813 "Buffer %s undo info was %d bytes long.\n" 2813 "Buffer `%s' undo info was %d bytes long.\n"
2814 (buffer-name) size) 2814 (buffer-name) size)
2815 "The undo info was discarded because it exceeded \ 2815 "The undo info was discarded because it exceeded \
2816`undo-outer-limit'. 2816`undo-outer-limit'.
@@ -3570,7 +3570,7 @@ Also, delete any process that is exited or signaled."
3570 `(,(buffer-name buf) 3570 `(,(buffer-name buf)
3571 face link 3571 face link
3572 help-echo ,(format-message 3572 help-echo ,(format-message
3573 "Visit buffer %s" 3573 "Visit buffer `%s'"
3574 (buffer-name buf)) 3574 (buffer-name buf))
3575 follow-link t 3575 follow-link t
3576 process-buffer ,buf 3576 process-buffer ,buf
@@ -7348,11 +7348,11 @@ buffer buried."
7348 (push var warn-vars))) 7348 (push var warn-vars)))
7349 (when warn-vars 7349 (when warn-vars
7350 (display-warning 'mail 7350 (display-warning 'mail
7351 (format "\ 7351 (format-message "\
7352The default mail mode is now Message mode. 7352The default mail mode is now Message mode.
7353You have the following Mail mode variable%s customized: 7353You have the following Mail mode variable%s customized:
7354\n %s\n\nTo use Mail mode, set mail-user-agent to sendmail-user-agent. 7354\n %s\n\nTo use Mail mode, set `mail-user-agent' to sendmail-user-agent.
7355To disable this warning, set compose-mail-user-agent-warnings to nil." 7355To disable this warning, set `compose-mail-user-agent-warnings' to nil."
7356 (if (> (length warn-vars) 1) "s" "") 7356 (if (> (length warn-vars) 1) "s" "")
7357 (mapconcat 'symbol-name 7357 (mapconcat 'symbol-name
7358 warn-vars " ")))))) 7358 warn-vars " "))))))
@@ -7423,8 +7423,8 @@ With a prefix argument, set VARIABLE to VALUE buffer-locally."
7423 (t "globally")))) 7423 (t "globally"))))
7424 (val (progn 7424 (val (progn
7425 (when obsolete 7425 (when obsolete
7426 (message (concat "%S is obsolete; " 7426 (message (concat "`%S' is obsolete; "
7427 (if (symbolp obsolete) "use %S instead" "%s")) 7427 (if (symbolp obsolete) "use `%S' instead" "%s"))
7428 var obsolete) 7428 var obsolete)
7429 (sit-for 3)) 7429 (sit-for 3))
7430 (if prop 7430 (if prop
@@ -7448,7 +7448,7 @@ With a prefix argument, set VARIABLE to VALUE buffer-locally."
7448 (require 'cus-edit) 7448 (require 'cus-edit)
7449 (setq type (widget-convert type)) 7449 (setq type (widget-convert type))
7450 (unless (widget-apply type :match value) 7450 (unless (widget-apply type :match value)
7451 (user-error "Value %S does not match type %S of %S" 7451 (user-error "Value `%S' does not match type %S of %S"
7452 value (car type) variable)))) 7452 value (car type) variable))))
7453 7453
7454 (if make-local 7454 (if make-local
@@ -7659,7 +7659,7 @@ back on `completion-list-insert-choice-function' when nil."
7659 ;; `base-position'. It's difficult to make any use of `base-size', 7659 ;; `base-position'. It's difficult to make any use of `base-size',
7660 ;; so we just ignore it. 7660 ;; so we just ignore it.
7661 (unless (consp base-position) 7661 (unless (consp base-position)
7662 (message "Obsolete base-size passed to choose-completion-string") 7662 (message "Obsolete `base-size' passed to choose-completion-string")
7663 (setq base-position nil)) 7663 (setq base-position nil))
7664 7664
7665 (let* ((buffer (or buffer completion-reference-buffer)) 7665 (let* ((buffer (or buffer completion-reference-buffer))
@@ -8384,7 +8384,7 @@ CUSTOMIZATIONS, if non-nil, should be composed of alternating
8384 `(progn 8384 `(progn
8385 8385
8386 (defcustom ,varalt-sym nil 8386 (defcustom ,varalt-sym nil
8387 ,(format "Alist of alternative implementations for the %s command. 8387 ,(format "Alist of alternative implementations for the `%s' command.
8388 8388
8389Each entry must be a pair (ALTNAME . ALTFUN), where: 8389Each entry must be a pair (ALTNAME . ALTFUN), where:
8390ALTNAME - The name shown at user to describe the alternative implementation. 8390ALTNAME - The name shown at user to describe the alternative implementation.
@@ -8397,22 +8397,22 @@ ALTFUN - The function called to implement this alternative."
8397 (defvar ,varimp-sym nil "Internal use only.") 8397 (defvar ,varimp-sym nil "Internal use only.")
8398 8398
8399 (defun ,command (&optional arg) 8399 (defun ,command (&optional arg)
8400 ,(format "Run generic command %s. 8400 ,(format "Run generic command `%s'.
8401If used for the first time, or with interactive ARG, ask the user which 8401If used for the first time, or with interactive ARG, ask the user which
8402implementation to use for %s. The variable %s 8402implementation to use for `%s'. The variable `%s'
8403contains the list of implementations currently supported for this command." 8403contains the list of implementations currently supported for this command."
8404 command-name command-name varalt-name) 8404 command-name command-name varalt-name)
8405 (interactive "P") 8405 (interactive "P")
8406 (when (or arg (null ,varimp-sym)) 8406 (when (or arg (null ,varimp-sym))
8407 (let ((val (completing-read 8407 (let ((val (completing-read
8408 ,(format-message 8408 ,(format-message
8409 "Select implementation for command %s: " 8409 "Select implementation for command `%s': "
8410 command-name) 8410 command-name)
8411 ,varalt-sym nil t))) 8411 ,varalt-sym nil t)))
8412 (unless (string-equal val "") 8412 (unless (string-equal val "")
8413 (when (null ,varimp-sym) 8413 (when (null ,varimp-sym)
8414 (message 8414 (message
8415 "Use C-u M-x %s RETto select another implementation" 8415 "Use C-u M-x %s RET`to select another implementation"
8416 ,command-name) 8416 ,command-name)
8417 (sit-for 3)) 8417 (sit-for 3))
8418 (customize-save-variable ',varimp-sym 8418 (customize-save-variable ',varimp-sym
@@ -8420,7 +8420,7 @@ contains the list of implementations currently supported for this command."
8420 (if ,varimp-sym 8420 (if ,varimp-sym
8421 (call-interactively ,varimp-sym) 8421 (call-interactively ,varimp-sym)
8422 (message "%s" ,(format-message 8422 (message "%s" ,(format-message
8423 "No implementation selected for command %s" 8423 "No implementation selected for command `%s'"
8424 command-name))))))) 8424 command-name)))))))
8425 8425
8426 8426
diff --git a/lisp/speedbar.el b/lisp/speedbar.el
index 2989274ac55..97c977cf1fc 100644
--- a/lisp/speedbar.el
+++ b/lisp/speedbar.el
@@ -203,7 +203,7 @@ the user is done with the current expansion list.")
203 ) 203 )
204 "List of functions to periodically call stealthily. 204 "List of functions to periodically call stealthily.
205This list is of the form: 205This list is of the form:
206 '( (\"NAME\" FUNCTION ...) 206 ( (\"NAME\" FUNCTION ...)
207 ...) 207 ...)
208where NAME is the name of the major display mode these functions are 208where NAME is the name of the major display mode these functions are
209for, and the remaining elements FUNCTION are functions to call in order. 209for, and the remaining elements FUNCTION are functions to call in order.
@@ -458,9 +458,9 @@ items is reached."
458(defcustom speedbar-directory-button-trim-method 'span 458(defcustom speedbar-directory-button-trim-method 'span
459 "Indicates how the directory button will be displayed. 459 "Indicates how the directory button will be displayed.
460Possible values are: 460Possible values are:
461 'span - span large directories over multiple lines. 461 `span' - span large directories over multiple lines.
462 'trim - trim large directories to only show the last few. 462 `trim' - trim large directories to only show the last few.
463 nil - no trimming." 463 nil - no trimming."
464 :group 'speedbar 464 :group 'speedbar
465 :type '(radio (const :tag "Span large directories over multiple lines." 465 :type '(radio (const :tag "Span large directories over multiple lines."
466 span) 466 span)
diff --git a/lisp/startup.el b/lisp/startup.el
index b5e258f56c0..9caf485c1e8 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -86,7 +86,7 @@ or if your init file contains a line of this form:
86 (setq inhibit-startup-echo-area-message \"YOUR-USER-NAME\") 86 (setq inhibit-startup-echo-area-message \"YOUR-USER-NAME\")
87If your init file is byte-compiled, use the following form 87If your init file is byte-compiled, use the following form
88instead: 88instead:
89 (eval '(setq inhibit-startup-echo-area-message \"YOUR-USER-NAME\")) 89 (eval \\='(setq inhibit-startup-echo-area-message \"YOUR-USER-NAME\"))
90Thus, someone else using a copy of your init file will see the 90Thus, someone else using a copy of your init file will see the
91startup message unless he personally acts to inhibit it." 91startup message unless he personally acts to inhibit it."
92 :type '(choice (const :tag "Don't inhibit") 92 :type '(choice (const :tag "Don't inhibit")
@@ -360,7 +360,7 @@ this variable usefully is to set it while building and dumping Emacs."
360 :group 'initialization 360 :group 'initialization
361 :initialize #'custom-initialize-default 361 :initialize #'custom-initialize-default
362 :set (lambda (_variable _value) 362 :set (lambda (_variable _value)
363 (error "Customizing site-run-file does not work"))) 363 (error "Customizing `site-run-file' does not work")))
364 364
365(make-obsolete-variable 'system-name "use (system-name) instead" "25.1") 365(make-obsolete-variable 'system-name "use (system-name) instead" "25.1")
366 366
@@ -752,7 +752,7 @@ to prepare for opening the first frame (e.g. open a connection to an X server)."
752 (let ((elt (assoc completion tty-long-option-alist))) 752 (let ((elt (assoc completion tty-long-option-alist)))
753 ;; Check for abbreviated long option. 753 ;; Check for abbreviated long option.
754 (or elt 754 (or elt
755 (error "Option %s is ambiguous" argi)) 755 (error "Option `%s' is ambiguous" argi))
756 (setq argi (cdr elt))) 756 (setq argi (cdr elt)))
757 ;; Check for a short option. 757 ;; Check for a short option.
758 (setq argval nil 758 (setq argval nil
@@ -804,13 +804,18 @@ to prepare for opening the first frame (e.g. open a connection to an X server)."
804(defvar server-process) 804(defvar server-process)
805 805
806(defun startup--setup-quote-display () 806(defun startup--setup-quote-display ()
807 "If curved quotes don't work, display ASCII approximations." 807 "Display ASCII approximations on user request or if curved quotes don't work."
808 (dolist (char-repl '((?‘ . ?\`) (?’ . ?\') (?“ . ?\") (?” . ?\"))) 808 (when (memq text-quoting-style '(nil grave straight))
809 (when (not (char-displayable-p (car char-repl))) 809 (dolist (char-repl '((?‘ . ?\`) (?’ . ?\') (?“ . ?\") (?” . ?\")))
810 (unless standard-display-table 810 (let ((char (car char-repl))
811 (setq standard-display-table (make-display-table))) 811 (repl (cdr char-repl)))
812 (aset standard-display-table (car char-repl) 812 (when (or text-quoting-style (not (char-displayable-p char)))
813 (vector (make-glyph-code (cdr char-repl) 'shadow)))))) 813 (when (and (eq repl ?\`) (eq text-quoting-style 'straight))
814 (setq repl ?\'))
815 (unless standard-display-table
816 (setq standard-display-table (make-display-table)))
817 (aset standard-display-table char
818 (vector (make-glyph-code repl 'shadow))))))))
814 819
815(defun command-line () 820(defun command-line ()
816 "A subroutine of `normal-top-level'. 821 "A subroutine of `normal-top-level'.
@@ -911,7 +916,7 @@ please check its value")
911 ((stringp completion) 916 ((stringp completion)
912 (let ((elt (assoc completion longopts))) 917 (let ((elt (assoc completion longopts)))
913 (unless elt 918 (unless elt
914 (error "Option %s is ambiguous" argi)) 919 (error "Option `%s' is ambiguous" argi))
915 (setq argi (substring (car elt) 1)))) 920 (setq argi (substring (car elt) 1))))
916 (t 921 (t
917 (setq argval nil 922 (setq argval nil
@@ -954,7 +959,7 @@ please check its value")
954 (setq done t))) 959 (setq done t)))
955 ;; Was argval set but not used? 960 ;; Was argval set but not used?
956 (and argval 961 (and argval
957 (error "Option %s doesn't allow an argument" argi)))) 962 (error "Option `%s' doesn't allow an argument" argi))))
958 963
959 ;; Re-attach the --display arg. 964 ;; Re-attach the --display arg.
960 (and display-arg (setq args (append display-arg args))) 965 (and display-arg (setq args (append display-arg args)))
@@ -973,7 +978,7 @@ please check its value")
973 (not (featurep 978 (not (featurep
974 (intern 979 (intern
975 (concat (symbol-name initial-window-system) "-win"))))) 980 (concat (symbol-name initial-window-system) "-win")))))
976 (error "Unsupported window system %s" initial-window-system)) 981 (error "Unsupported window system `%s'" initial-window-system))
977 ;; Process window-system specific command line parameters. 982 ;; Process window-system specific command line parameters.
978 (setq command-line-args 983 (setq command-line-args
979 (let ((window-system initial-window-system)) ;Hack attack! 984 (let ((window-system initial-window-system)) ;Hack attack!
@@ -1184,10 +1189,10 @@ please check its value")
1184 (display-warning 1189 (display-warning
1185 'initialization 1190 'initialization
1186 (format-message "\ 1191 (format-message "\
1187An error occurred while loading %s:\n\n%s%s%s\n\n\ 1192An error occurred while loading `%s':\n\n%s%s%s\n\n\
1188To ensure normal operation, you should investigate and remove the 1193To ensure normal operation, you should investigate and remove the
1189cause of the error in your initialization file. Start Emacs with 1194cause of the error in your initialization file. Start Emacs with
1190the --debug-init option to view a complete error backtrace." 1195the `--debug-init' option to view a complete error backtrace."
1191 user-init-file 1196 user-init-file
1192 (get (car error) 'error-message) 1197 (get (car error) 'error-message)
1193 (if (cdr error) ": " "") 1198 (if (cdr error) ": " "")
@@ -1234,6 +1239,11 @@ the ‘--debug-init’ option to view a complete error backtrace."
1234 ;; unibyte (display table, terminal coding system &c). 1239 ;; unibyte (display table, terminal coding system &c).
1235 (set-language-environment current-language-environment))) 1240 (set-language-environment current-language-environment)))
1236 1241
1242 ;; Setup quote display again, if the init file sets
1243 ;; text-quoting-style to a non-nil value.
1244 (when (and (not noninteractive) text-quoting-style)
1245 (startup--setup-quote-display))
1246
1237 ;; Do this here in case the init file sets mail-host-address. 1247 ;; Do this here in case the init file sets mail-host-address.
1238 (if (equal user-mail-address "") 1248 (if (equal user-mail-address "")
1239 (setq user-mail-address (or (getenv "EMAIL") 1249 (setq user-mail-address (or (getenv "EMAIL")
@@ -1320,8 +1330,8 @@ the ‘--debug-init’ option to view a complete error backtrace."
1320 (setq warned t) 1330 (setq warned t)
1321 (display-warning 'initialization 1331 (display-warning 'initialization
1322 (format-message "\ 1332 (format-message "\
1323Your load-path seems to contain\n\ 1333Your `load-path' seems to contain\n\
1324your .emacs.d directory: %s\n\ 1334your `.emacs.d' directory: %s\n\
1325This is likely to cause problems...\n\ 1335This is likely to cause problems...\n\
1326Consider using a subdirectory instead, e.g.: %s" 1336Consider using a subdirectory instead, e.g.: %s"
1327 dir (expand-file-name 1337 dir (expand-file-name
@@ -1380,11 +1390,11 @@ settings will be marked as \"CHANGED outside of Customize\"."
1380 1390
1381(defcustom initial-scratch-message (purecopy "\ 1391(defcustom initial-scratch-message (purecopy "\
1382;; This buffer is for notes you don't want to save, and for Lisp evaluation. 1392;; This buffer is for notes you don't want to save, and for Lisp evaluation.
1383;; If you want to create a file, visit that file with C-x C-f, 1393;; If you want to create a file, visit that file with \\[find-file],
1384;; then enter the text in that file's own buffer. 1394;; then enter the text in that file's own buffer.
1385 1395
1386") 1396")
1387 "Initial message displayed in *scratch* buffer at startup. 1397 "Initial documentation displayed in *scratch* buffer at startup.
1388If this is nil, no message will be displayed." 1398If this is nil, no message will be displayed."
1389 :type '(choice (text :tag "Message") 1399 :type '(choice (text :tag "Message")
1390 (const :tag "none" nil)) 1400 (const :tag "none" nil))
@@ -2270,7 +2280,7 @@ nil default-directory" name)
2270 (if (stringp completion) 2280 (if (stringp completion)
2271 (let ((elt (member completion longopts))) 2281 (let ((elt (member completion longopts)))
2272 (or elt 2282 (or elt
2273 (error "Option %s is ambiguous" argi)) 2283 (error "Option `%s' is ambiguous" argi))
2274 (setq argi (substring (car elt) 1))) 2284 (setq argi (substring (car elt) 1)))
2275 (setq argval nil 2285 (setq argval nil
2276 argi orig-argi))))) 2286 argi orig-argi)))))
@@ -2340,7 +2350,7 @@ nil default-directory" name)
2340 (setq inhibit-startup-screen t) 2350 (setq inhibit-startup-screen t)
2341 (setq tem (or argval (pop command-line-args-left))) 2351 (setq tem (or argval (pop command-line-args-left)))
2342 (or (stringp tem) 2352 (or (stringp tem)
2343 (error "File name omitted from -insert option")) 2353 (error "File name omitted from `-insert' option"))
2344 (insert-file-contents (command-line-normalize-file-name tem))) 2354 (insert-file-contents (command-line-normalize-file-name tem)))
2345 2355
2346 ((equal argi "-kill") 2356 ((equal argi "-kill")
@@ -2375,7 +2385,7 @@ nil default-directory" name)
2375 ;; An explicit option to specify visiting a file. 2385 ;; An explicit option to specify visiting a file.
2376 (setq tem (or argval (pop command-line-args-left))) 2386 (setq tem (or argval (pop command-line-args-left)))
2377 (unless (stringp tem) 2387 (unless (stringp tem)
2378 (error "File name omitted from %s option" argi)) 2388 (error "File name omitted from `%s' option" argi))
2379 (funcall process-file-arg tem)) 2389 (funcall process-file-arg tem))
2380 2390
2381 ;; These command lines now have no effect. 2391 ;; These command lines now have no effect.
@@ -2396,7 +2406,7 @@ nil default-directory" name)
2396 (unless did-hook 2406 (unless did-hook
2397 ;; Presume that the argument is a file name. 2407 ;; Presume that the argument is a file name.
2398 (if (string-match "\\`-" argi) 2408 (if (string-match "\\`-" argi)
2399 (error "Unknown option %s" argi)) 2409 (error "Unknown option `%s'" argi))
2400 ;; FIXME: Why do we only inhibit the startup 2410 ;; FIXME: Why do we only inhibit the startup
2401 ;; screen for -nw? 2411 ;; screen for -nw?
2402 (unless initial-window-system 2412 (unless initial-window-system
@@ -2420,7 +2430,7 @@ nil default-directory" name)
2420 (get-buffer "*scratch*") 2430 (get-buffer "*scratch*")
2421 (with-current-buffer "*scratch*" 2431 (with-current-buffer "*scratch*"
2422 (when (zerop (buffer-size)) 2432 (when (zerop (buffer-size))
2423 (insert initial-scratch-message) 2433 (insert (substitute-command-keys initial-scratch-message))
2424 (set-buffer-modified-p nil)))) 2434 (set-buffer-modified-p nil))))
2425 2435
2426 ;; Prepend `initial-buffer-choice' to `displayable-buffers'. 2436 ;; Prepend `initial-buffer-choice' to `displayable-buffers'.
diff --git a/lisp/subr.el b/lisp/subr.el
index 61b87065c8a..ce3011d4e46 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -72,7 +72,7 @@ For more information, see Info node `(elisp)Declaring Functions'."
72If FORM does return, signal an error." 72If FORM does return, signal an error."
73 (declare (debug t)) 73 (declare (debug t))
74 `(prog1 ,form 74 `(prog1 ,form
75 (error "Form marked with noreturn did return"))) 75 (error "Form marked with `noreturn' did return")))
76 76
77(defmacro 1value (form) 77(defmacro 1value (form)
78 "Evaluate FORM, expecting a constant return value. 78 "Evaluate FORM, expecting a constant return value.
@@ -320,7 +320,7 @@ Defaults to `error'."
320 (mapcar (lambda (parent) 320 (mapcar (lambda (parent)
321 (cons parent 321 (cons parent
322 (or (get parent 'error-conditions) 322 (or (get parent 'error-conditions)
323 (error "Unknown signal %s" parent)))) 323 (error "Unknown signal `%s'" parent))))
324 parent)) 324 parent))
325 (cons parent (get parent 'error-conditions))))) 325 (cons parent (get parent 'error-conditions)))))
326 (put name 'error-conditions 326 (put name 'error-conditions
@@ -1607,7 +1607,7 @@ can do the job."
1607 (let* ((sym (cadr list-var)) 1607 (let* ((sym (cadr list-var))
1608 (append (eval append)) 1608 (append (eval append))
1609 (msg (format-message 1609 (msg (format-message
1610 "add-to-list can't use lexical var %s; use push or cl-pushnew" 1610 "`add-to-list' can't use lexical var `%s'; use `push' or `cl-pushnew'"
1611 sym)) 1611 sym))
1612 ;; Big ugly hack so we only output a warning during 1612 ;; Big ugly hack so we only output a warning during
1613 ;; byte-compilation, and so we can use 1613 ;; byte-compilation, and so we can use
@@ -2208,7 +2208,7 @@ Any input that is not one of CHARS is ignored.
2208If optional argument INHIBIT-KEYBOARD-QUIT is non-nil, ignore 2208If optional argument INHIBIT-KEYBOARD-QUIT is non-nil, ignore
2209keyboard-quit events while waiting for a valid input." 2209keyboard-quit events while waiting for a valid input."
2210 (unless (consp chars) 2210 (unless (consp chars)
2211 (error "Called read-char-choice without valid char choices")) 2211 (error "Called `read-char-choice' without valid char choices"))
2212 (let (char done show-help (helpbuf " *Char Help*")) 2212 (let (char done show-help (helpbuf " *Char Help*"))
2213 (let ((cursor-in-echo-area t) 2213 (let ((cursor-in-echo-area t)
2214 (executing-kbd-macro executing-kbd-macro) 2214 (executing-kbd-macro executing-kbd-macro)
@@ -4773,7 +4773,7 @@ Examples of version conversion:
4773 4773
4774See documentation for `version-separator' and `version-regexp-alist'." 4774See documentation for `version-separator' and `version-regexp-alist'."
4775 (or (and (stringp ver) (> (length ver) 0)) 4775 (or (and (stringp ver) (> (length ver) 0))
4776 (error "Invalid version string: %s" ver)) 4776 (error "Invalid version string: `%s'" ver))
4777 ;; Change .x.y to 0.x.y 4777 ;; Change .x.y to 0.x.y
4778 (if (and (>= (length ver) (length version-separator)) 4778 (if (and (>= (length ver) (length version-separator))
4779 (string-equal (substring ver 0 (length version-separator)) 4779 (string-equal (substring ver 0 (length version-separator))
@@ -4805,9 +4805,9 @@ See documentation for `version-separator' and `version-regexp-alist'."
4805 ((string-match "^[-_+ ]?\\([a-zA-Z]\\)$" s) 4805 ((string-match "^[-_+ ]?\\([a-zA-Z]\\)$" s)
4806 (push (- (aref (downcase (match-string 1 s)) 0) ?a -1) 4806 (push (- (aref (downcase (match-string 1 s)) 0) ?a -1)
4807 lst)) 4807 lst))
4808 (t (error "Invalid version syntax: %s" ver)))))) 4808 (t (error "Invalid version syntax: `%s'" ver))))))
4809 (if (null lst) 4809 (if (null lst)
4810 (error "Invalid version syntax: %s" ver) 4810 (error "Invalid version syntax: `%s'" ver)
4811 (nreverse lst))))) 4811 (nreverse lst)))))
4812 4812
4813 4813
diff --git a/lisp/term/common-win.el b/lisp/term/common-win.el
index ccac1421004..98ad5acf268 100644
--- a/lisp/term/common-win.el
+++ b/lisp/term/common-win.el
@@ -112,7 +112,7 @@
112;; Handle the -xrm option. 112;; Handle the -xrm option.
113(defun x-handle-xrm-switch (switch) 113(defun x-handle-xrm-switch (switch)
114 (unless (consp x-invocation-args) 114 (unless (consp x-invocation-args)
115 (error "%s: missing argument to %s option" (invocation-name) switch)) 115 (error "%s: missing argument to `%s' option" (invocation-name) switch))
116 (setq x-command-line-resources 116 (setq x-command-line-resources
117 (if (null x-command-line-resources) 117 (if (null x-command-line-resources)
118 (pop x-invocation-args) 118 (pop x-invocation-args)
@@ -152,7 +152,7 @@
152;; the initial frame, too. 152;; the initial frame, too.
153(defun x-handle-name-switch (switch) 153(defun x-handle-name-switch (switch)
154 (or (consp x-invocation-args) 154 (or (consp x-invocation-args)
155 (error "%s: missing argument to %s option" (invocation-name) switch)) 155 (error "%s: missing argument to `%s' option" (invocation-name) switch))
156 (setq x-resource-name (pop x-invocation-args) 156 (setq x-resource-name (pop x-invocation-args)
157 initial-frame-alist (cons (cons 'name x-resource-name) 157 initial-frame-alist (cons (cons 'name x-resource-name)
158 initial-frame-alist))) 158 initial-frame-alist)))
@@ -207,7 +207,7 @@ have been processed."
207 (let ((elt (assoc completion option-alist))) 207 (let ((elt (assoc completion option-alist)))
208 ;; Check for abbreviated long option. 208 ;; Check for abbreviated long option.
209 (or elt 209 (or elt
210 (error "Option %s is ambiguous" this-switch)) 210 (error "Option `%s' is ambiguous" this-switch))
211 (setq this-switch completion)))))) 211 (setq this-switch completion))))))
212 (setq aelt (assoc this-switch option-alist)) 212 (setq aelt (assoc this-switch option-alist))
213 (if aelt (setq handler (nth 2 aelt))) 213 (if aelt (setq handler (nth 2 aelt)))
diff --git a/lisp/term/x-win.el b/lisp/term/x-win.el
index c32566181e5..ebd76a679a3 100644
--- a/lisp/term/x-win.el
+++ b/lisp/term/x-win.el
@@ -93,7 +93,7 @@
93;; Handle the --parent-id option. 93;; Handle the --parent-id option.
94(defun x-handle-parent-id (switch) 94(defun x-handle-parent-id (switch)
95 (or (consp x-invocation-args) 95 (or (consp x-invocation-args)
96 (error "%s: missing argument to %s option" (invocation-name) switch)) 96 (error "%s: missing argument to `%s' option" (invocation-name) switch))
97 (setq initial-frame-alist (cons 97 (setq initial-frame-alist (cons
98 (cons 'parent-id 98 (cons 'parent-id
99 (string-to-number (car x-invocation-args))) 99 (string-to-number (car x-invocation-args)))
@@ -104,7 +104,7 @@
104;; to give us back our session id we had on the previous run. 104;; to give us back our session id we had on the previous run.
105(defun x-handle-smid (switch) 105(defun x-handle-smid (switch)
106 (or (consp x-invocation-args) 106 (or (consp x-invocation-args)
107 (error "%s: missing argument to %s option" (invocation-name) switch)) 107 (error "%s: missing argument to `%s' option" (invocation-name) switch))
108 (setq x-session-previous-id (car x-invocation-args) 108 (setq x-session-previous-id (car x-invocation-args)
109 x-invocation-args (cdr x-invocation-args))) 109 x-invocation-args (cdr x-invocation-args)))
110 110
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el
index 3fe21c482d6..87c2a95da49 100644
--- a/lisp/textmodes/ispell.el
+++ b/lisp/textmodes/ispell.el
@@ -388,7 +388,7 @@ It consists of pairs (REGEXP . DICTIONARY). If REGEXP is found
388in the message headers, `ispell-local-dictionary' will be set to 388in the message headers, `ispell-local-dictionary' will be set to
389DICTIONARY if `ispell-local-dictionary' is not buffer-local. 389DICTIONARY if `ispell-local-dictionary' is not buffer-local.
390E.g. you may use the following value: 390E.g. you may use the following value:
391 '((\"^Newsgroups:[ \\t]*de\\\\.\" . \"deutsch8\") 391 ((\"^Newsgroups:[ \\t]*de\\\\.\" . \"deutsch8\")
392 (\"^To:[^\\n,]+\\\\.de[ \\t\\n,>]\" . \"deutsch8\"))" 392 (\"^To:[^\\n,]+\\\\.de[ \\t\\n,>]\" . \"deutsch8\"))"
393 :type '(repeat (cons regexp string)) 393 :type '(repeat (cons regexp string))
394 :group 'ispell) 394 :group 'ispell)
@@ -484,7 +484,7 @@ The function must take one string argument and return a string."
484 "When non-nil ispell uses framepop to display choices in a dedicated frame. 484 "When non-nil ispell uses framepop to display choices in a dedicated frame.
485You can set this variable to dynamically use framepop if you are in a 485You can set this variable to dynamically use framepop if you are in a
486window system by evaluating the following on startup to set this variable: 486window system by evaluating the following on startup to set this variable:
487 (and window-system (condition-case () (require 'framepop) (error nil)))" 487 (and window-system (condition-case () (require \\='framepop) (error nil)))"
488 :type 'boolean 488 :type 'boolean
489 :group 'ispell) 489 :group 'ispell)
490 490
diff --git a/lisp/textmodes/reftex-ref.el b/lisp/textmodes/reftex-ref.el
index 07147230094..df78447defb 100644
--- a/lisp/textmodes/reftex-ref.el
+++ b/lisp/textmodes/reftex-ref.el
@@ -228,7 +228,7 @@ This function is controlled by the settings of reftex-insert-label-flags."
228 (symbol-value reftex-docstruct-symbol))) 228 (symbol-value reftex-docstruct-symbol)))
229 (ding) 229 (ding)
230 (if (y-or-n-p 230 (if (y-or-n-p
231 (format-message "Label %s exists. Use anyway? " label)) 231` (format-message "Label `%s' exists. Use anyway? " label))
232 (setq valid t))) 232 (setq valid t)))
233 233
234 ;; Label is ok 234 ;; Label is ok
diff --git a/lisp/textmodes/reftex-toc.el b/lisp/textmodes/reftex-toc.el
index b9d4b7c0f2a..bdae6e54ef3 100644
--- a/lisp/textmodes/reftex-toc.el
+++ b/lisp/textmodes/reftex-toc.el
@@ -876,7 +876,7 @@ label prefix determines the wording of a reference."
876 (setq newlabel (read-string (format "Rename label \"%s\" to:" label))) 876 (setq newlabel (read-string (format "Rename label \"%s\" to:" label)))
877 (if (assoc newlabel (symbol-value reftex-docstruct-symbol)) 877 (if (assoc newlabel (symbol-value reftex-docstruct-symbol))
878 (if (not (y-or-n-p 878 (if (not (y-or-n-p
879 (format-message "Label %s exists. Use anyway? " label))) 879 (format-message "Label `%s' exists. Use anyway? " label)))
880 (error "Abort"))) 880 (error "Abort")))
881 (save-excursion 881 (save-excursion
882 (save-window-excursion 882 (save-window-excursion
diff --git a/lisp/textmodes/reftex-vars.el b/lisp/textmodes/reftex-vars.el
index a8f5fcefe30..482dd4c6396 100644
--- a/lisp/textmodes/reftex-vars.el
+++ b/lisp/textmodes/reftex-vars.el
@@ -1153,9 +1153,9 @@ path."
1153 "Sorting of the entries found in BibTeX databases by reftex-citation. 1153 "Sorting of the entries found in BibTeX databases by reftex-citation.
1154Possible values: 1154Possible values:
1155nil Do not sort entries. 1155nil Do not sort entries.
1156'author Sort entries by author name. 1156`author' Sort entries by author name.
1157'year Sort entries by increasing year. 1157`year' Sort entries by increasing year.
1158'reverse-year Sort entries by decreasing year." 1158`reverse-year' Sort entries by decreasing year."
1159 :group 'reftex-citation-support 1159 :group 'reftex-citation-support
1160 :type '(choice (const :tag "not" nil) 1160 :type '(choice (const :tag "not" nil)
1161 (const :tag "by author" author) 1161 (const :tag "by author" author)
diff --git a/lisp/textmodes/reftex.el b/lisp/textmodes/reftex.el
index f95f4fa5906..7dc91844583 100644
--- a/lisp/textmodes/reftex.el
+++ b/lisp/textmodes/reftex.el
@@ -2932,7 +2932,7 @@ When LEVEL is non-nil, increase section numbers on that level.
2932 2932
2933;;;*** 2933;;;***
2934 2934
2935;;;### (autoloads nil "reftex-ref" "reftex-ref.el" "35c0c8fcf8eebfc4366bf0f78aed7f2f") 2935;;;### (autoloads nil "reftex-ref" "reftex-ref.el" "86c0a243e49d55bb33a32ddac613e189")
2936;;; Generated autoloads from reftex-ref.el 2936;;; Generated autoloads from reftex-ref.el
2937 2937
2938(autoload 'reftex-label-location "reftex-ref" "\ 2938(autoload 'reftex-label-location "reftex-ref" "\
@@ -3046,7 +3046,7 @@ During a selection process, these are the local bindings.
3046 3046
3047;;;*** 3047;;;***
3048 3048
3049;;;### (autoloads nil "reftex-toc" "reftex-toc.el" "e3514ef292edfce6722c75225456ffa1") 3049;;;### (autoloads nil "reftex-toc" "reftex-toc.el" "db9b727d89e2a6ff01986e7c6aff1058")
3050;;; Generated autoloads from reftex-toc.el 3050;;; Generated autoloads from reftex-toc.el
3051 3051
3052(autoload 'reftex-toc "reftex-toc" "\ 3052(autoload 'reftex-toc "reftex-toc" "\
diff --git a/lisp/textmodes/rst.el b/lisp/textmodes/rst.el
index 7a2857a2d5e..9625ec2c7cc 100644
--- a/lisp/textmodes/rst.el
+++ b/lisp/textmodes/rst.el
@@ -2138,15 +2138,15 @@ for completion and choices.
2138 2138
2139 (a) If user selects bullets or #, it's just added. 2139 (a) If user selects bullets or #, it's just added.
2140 (b) If user selects enumerations, a further prompt is given. User needs to 2140 (b) If user selects enumerations, a further prompt is given. User needs to
2141 input a starting item, for example 'e' for 'A)' style. 2141 input a starting item, for example `e' for `A)' style.
2142 2142
2143The position of the new list is arranged according to whether or not the 2143The position of the new list is arranged according to whether or not the
2144current line and the previous line are blank lines. 2144current line and the previous line are blank lines.
2145 2145
21462. When continuing a list, one thing needs to be noticed: 21462. When continuing a list, one thing needs to be noticed:
2147 2147
2148List style alphabetical list, such as 'a.', and roman numerical list, such as 2148List style alphabetical list, such as `a.', and roman numerical list, such as
2149'i.', have some overlapping items, for example 'v.' The function can deal with 2149`i.', have some overlapping items, for example `v.' The function can deal with
2150the problem elegantly in most situations. But when those overlapped list are 2150the problem elegantly in most situations. But when those overlapped list are
2151preceded by a blank line, it is hard to determine which type to use 2151preceded by a blank line, it is hard to determine which type to use
2152automatically. The function uses alphabetical list by default. If you want 2152automatically. The function uses alphabetical list by default. If you want
diff --git a/lisp/textmodes/sgml-mode.el b/lisp/textmodes/sgml-mode.el
index 1d872f08749..cb65e5f1073 100644
--- a/lisp/textmodes/sgml-mode.el
+++ b/lisp/textmodes/sgml-mode.el
@@ -2066,7 +2066,7 @@ Images in many formats can be inlined with <img src=\"URL\">.
2066If you mainly create your own documents, `sgml-specials' might be 2066If you mainly create your own documents, `sgml-specials' might be
2067interesting. But note that some HTML 2 browsers can't handle `&apos;'. 2067interesting. But note that some HTML 2 browsers can't handle `&apos;'.
2068To work around that, do: 2068To work around that, do:
2069 (eval-after-load \"sgml-mode\" '(aset sgml-char-names ?\\=' nil)) 2069 (eval-after-load \"sgml-mode\" \\='(aset sgml-char-names ?\\=' nil))
2070 2070
2071\\{html-mode-map}" 2071\\{html-mode-map}"
2072 (setq-local sgml-display-text html-display-text) 2072 (setq-local sgml-display-text html-display-text)
diff --git a/lisp/textmodes/table.el b/lisp/textmodes/table.el
index 9c50eca6419..151d64808af 100644
--- a/lisp/textmodes/table.el
+++ b/lisp/textmodes/table.el
@@ -2806,8 +2806,8 @@ ORIENTATION is a symbol either horizontally or vertically."
2806;;;###autoload 2806;;;###autoload
2807(defun table-justify (what justify) 2807(defun table-justify (what justify)
2808 "Justify contents of a cell, a row of cells or a column of cells. 2808 "Justify contents of a cell, a row of cells or a column of cells.
2809WHAT is a symbol cell, row or column. JUSTIFY is a symbol 2809WHAT is a symbol `cell', `row' or `column'. JUSTIFY is a symbol
2810left, center, right, top, middle, bottom or none." 2810`left', `center', `right', `top', `middle', `bottom' or `none'."
2811 (interactive 2811 (interactive
2812 (list (let* ((_ (barf-if-buffer-read-only)) 2812 (list (let* ((_ (barf-if-buffer-read-only))
2813 (completion-ignore-case t) 2813 (completion-ignore-case t)
@@ -2822,8 +2822,8 @@ WHAT is a symbol ‘cell’, ‘row’ or ‘column’. JUSTIFY is a symbol
2822;;;###autoload 2822;;;###autoload
2823(defun table-justify-cell (justify &optional paragraph) 2823(defun table-justify-cell (justify &optional paragraph)
2824 "Justify cell contents. 2824 "Justify cell contents.
2825JUSTIFY is a symbol left, center or right for horizontal, or top, 2825JUSTIFY is a symbol `left', `center' or `right' for horizontal, or `top',
2826middle, bottom or none for vertical. When optional PARAGRAPH is 2826`middle', `bottom' or `none' for vertical. When optional PARAGRAPH is
2827non-nil the justify operation is limited to the current paragraph, 2827non-nil the justify operation is limited to the current paragraph,
2828otherwise the entire cell contents is justified." 2828otherwise the entire cell contents is justified."
2829 (interactive 2829 (interactive
@@ -2835,8 +2835,8 @@ otherwise the entire cell contents is justified."
2835;;;###autoload 2835;;;###autoload
2836(defun table-justify-row (justify) 2836(defun table-justify-row (justify)
2837 "Justify cells of a row. 2837 "Justify cells of a row.
2838JUSTIFY is a symbol left, center or right for horizontal, 2838JUSTIFY is a symbol `left', `center' or `right' for horizontal,
2839or top, middle, bottom or none for vertical." 2839or `top', `middle', `bottom' or `none' for vertical."
2840 (interactive 2840 (interactive
2841 (list (table--query-justification))) 2841 (list (table--query-justification)))
2842 (let((cell-list (table--horizontal-cell-list nil nil 'top))) 2842 (let((cell-list (table--horizontal-cell-list nil nil 'top)))
@@ -2852,8 +2852,8 @@ or ‘top’, ‘middle’, ‘bottom’ or ‘none’ for vertical."
2852;;;###autoload 2852;;;###autoload
2853(defun table-justify-column (justify) 2853(defun table-justify-column (justify)
2854 "Justify cells of a column. 2854 "Justify cells of a column.
2855JUSTIFY is a symbol left, center or right for horizontal, 2855JUSTIFY is a symbol `left', `center' or `right' for horizontal,
2856or top, middle, bottom or none for vertical." 2856or `top', `middle', `bottom' or `none' for vertical."
2857 (interactive 2857 (interactive
2858 (list (table--query-justification))) 2858 (list (table--query-justification)))
2859 (let((cell-list (table--vertical-cell-list nil nil 'left))) 2859 (let((cell-list (table--vertical-cell-list nil nil 'left)))
@@ -3341,8 +3341,8 @@ INTERVAL is the number of cells to travel between sequence element
3341insertion which is normally 1. When zero or less is given for 3341insertion which is normally 1. When zero or less is given for
3342INTERVAL it is interpreted as number of cells per row so that sequence 3342INTERVAL it is interpreted as number of cells per row so that sequence
3343is placed straight down vertically as long as the table's cell 3343is placed straight down vertically as long as the table's cell
3344structure is uniform. JUSTIFY is a symbol left, center or 3344structure is uniform. JUSTIFY is a symbol `left', `center' or
3345right that specifies justification of the inserted string. 3345`right' that specifies justification of the inserted string.
3346 3346
3347Example: 3347Example:
3348 3348
@@ -4461,8 +4461,8 @@ looking at the appearance of the CELL contents."
4461 4461
4462(defun table--justify-cell-contents (justify &optional paragraph) 4462(defun table--justify-cell-contents (justify &optional paragraph)
4463 "Justify the current cell contents. 4463 "Justify the current cell contents.
4464JUSTIFY is a symbol left, center or right for horizontal, or top, 4464JUSTIFY is a symbol `left', `center' or `right' for horizontal, or `top',
4465middle, bottom or none for vertical. When PARAGRAPH is non-nil the 4465`middle', `bottom' or `none' for vertical. When PARAGRAPH is non-nil the
4466justify operation is limited to the current paragraph." 4466justify operation is limited to the current paragraph."
4467 (table-with-cache-buffer 4467 (table-with-cache-buffer
4468 (let ((beg (point-min)) 4468 (let ((beg (point-min))
diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el
index 6244189f64a..5fdf9e3b250 100644
--- a/lisp/textmodes/tex-mode.el
+++ b/lisp/textmodes/tex-mode.el
@@ -3410,6 +3410,8 @@ There might be text before point."
3410 (not (or 3410 (not (or
3411 ;; Don't compose \alpha@foo. 3411 ;; Don't compose \alpha@foo.
3412 (eq after-syntax ?_) 3412 (eq after-syntax ?_)
3413 ;; Don't compose inside verbatim blocks!
3414 (nth 8 (syntax-ppss))
3413 ;; The \alpha in \alpha2 may be composed but of course \alphax may not. 3415 ;; The \alpha in \alpha2 may be composed but of course \alphax may not.
3414 (and (eq after-syntax ?w) 3416 (and (eq after-syntax ?w)
3415 (or (< after-char ?0) 3417 (or (< after-char ?0)
diff --git a/lisp/textmodes/texnfo-upd.el b/lisp/textmodes/texnfo-upd.el
index 0ce70644b03..0508426619f 100644
--- a/lisp/textmodes/texnfo-upd.el
+++ b/lisp/textmodes/texnfo-upd.el
@@ -1407,7 +1407,7 @@ level in the Texinfo file; when looking for the `Previous' pointer,
1407the section found will be at the same or higher hierarchical level in 1407the section found will be at the same or higher hierarchical level in
1408the Texinfo file; when looking for the `Up' pointer, the section found 1408the Texinfo file; when looking for the `Up' pointer, the section found
1409will be at some level higher in the Texinfo file. The fourth argument 1409will be at some level higher in the Texinfo file. The fourth argument
1410\(one of `next, `previous, or `up'\) specifies whether to find the 1410\(one of `next', `previous', or `up'\) specifies whether to find the
1411`Next', `Previous', or `Up' pointer." 1411`Next', `Previous', or `Up' pointer."
1412 (let ((case-fold-search t)) 1412 (let ((case-fold-search t))
1413 (cond ((eq direction 'next) 1413 (cond ((eq direction 'next)
diff --git a/lisp/textmodes/tildify.el b/lisp/textmodes/tildify.el
index c94e417a7ea..0e645fcdd38 100644
--- a/lisp/textmodes/tildify.el
+++ b/lisp/textmodes/tildify.el
@@ -160,7 +160,7 @@ a simple pass through function could be used:
160 (setq-local tildify-foreach-region-function 160 (setq-local tildify-foreach-region-function
161 (lambda (cb beg end) (funcall cb beg end))) 161 (lambda (cb beg end) (funcall cb beg end)))
162or better still: 162or better still:
163 (setq-local tildify-foreach-region-function 'funcall) 163 (setq-local tildify-foreach-region-function \\='funcall)
164See `tildify-foreach-ignore-environments' function for other ways to use the 164See `tildify-foreach-ignore-environments' function for other ways to use the
165variable." 165variable."
166 :version "25.1" 166 :version "25.1"
diff --git a/lisp/textmodes/two-column.el b/lisp/textmodes/two-column.el
index 5e318b5569e..4133e0fa126 100644
--- a/lisp/textmodes/two-column.el
+++ b/lisp/textmodes/two-column.el
@@ -373,7 +373,7 @@ First column's text sSs Second column's text
373\(See \\[describe-mode] .)" 373\(See \\[describe-mode] .)"
374 (interactive "*p") 374 (interactive "*p")
375 (and (2C-other) 375 (and (2C-other)
376 (if (y-or-n-p (format-message "Overwrite associated buffer %s? " 376 (if (y-or-n-p (format-message "Overwrite associated buffer `%s'? "
377 (buffer-name (2C-other)))) 377 (buffer-name (2C-other))))
378 (with-current-buffer (2C-other) 378 (with-current-buffer (2C-other)
379 (erase-buffer)) 379 (erase-buffer))
diff --git a/lisp/thingatpt.el b/lisp/thingatpt.el
index 84ffcca5290..a9c539b7b87 100644
--- a/lisp/thingatpt.el
+++ b/lisp/thingatpt.el
@@ -145,7 +145,7 @@ a symbol as a valid THING."
145 (let ((bounds (bounds-of-thing-at-point thing))) 145 (let ((bounds (bounds-of-thing-at-point thing)))
146 (when bounds 146 (when bounds
147 (buffer-substring (car bounds) (cdr bounds))))))) 147 (buffer-substring (car bounds) (cdr bounds)))))))
148 (when (and text no-properties) 148 (when (and text no-properties (sequencep text))
149 (set-text-properties 0 (length text) nil text)) 149 (set-text-properties 0 (length text) nil text))
150 text)) 150 text))
151 151
@@ -289,7 +289,7 @@ If nil, construct the regexp from `thing-at-point-uri-schemes'.")
289 "uuid:" "vemmi://" "webcal://" "xri://" "xmlrpc.beep://" 289 "uuid:" "vemmi://" "webcal://" "xri://" "xmlrpc.beep://"
290 "xmlrpc.beeps://" "z39.50r://" "z39.50s://" "xmpp:" 290 "xmlrpc.beeps://" "z39.50r://" "z39.50s://" "xmpp:"
291 ;; Compatibility 291 ;; Compatibility
292 "fax:" "mms://" "mmsh://" "modem:" "prospero:" "snews:" 292 "fax:" "man:" "mms://" "mmsh://" "modem:" "prospero:" "snews:"
293 "wais://") 293 "wais://")
294 "List of URI schemes recognized by `thing-at-point-url-at-point'. 294 "List of URI schemes recognized by `thing-at-point-url-at-point'.
295Each string in this list should correspond to the start of a 295Each string in this list should correspond to the start of a
diff --git a/lisp/thumbs.el b/lisp/thumbs.el
index 409ba7c65c9..da83f3a1a63 100644
--- a/lisp/thumbs.el
+++ b/lisp/thumbs.el
@@ -235,7 +235,7 @@ Optional arguments are:
235ARG any arguments to the ACTION command, 235ARG any arguments to the ACTION command,
236OUTPUT-FORMAT is the file format to output (default is jpeg), 236OUTPUT-FORMAT is the file format to output (default is jpeg),
237ACTION-PREFIX is the symbol to place before the ACTION command 237ACTION-PREFIX is the symbol to place before the ACTION command
238 (defaults to '-' but can sometimes be '+')." 238 (defaults to `-' but can sometimes be `+')."
239 (call-process thumbs-conversion-program nil nil nil 239 (call-process thumbs-conversion-program nil nil nil
240 (or action-prefix "-") 240 (or action-prefix "-")
241 action 241 action
diff --git a/lisp/tree-widget.el b/lisp/tree-widget.el
index a29658ab9b3..0f1e4de852b 100644
--- a/lisp/tree-widget.el
+++ b/lisp/tree-widget.el
@@ -294,9 +294,9 @@ Typically it should contain something like this:
294 294
295 (tree-widget-set-parent-theme \"my-parent-theme\") 295 (tree-widget-set-parent-theme \"my-parent-theme\")
296 (tree-widget-set-image-properties 296 (tree-widget-set-image-properties
297 (if (featurep 'xemacs) 297 (if (featurep \\='xemacs)
298 '(:ascent center) 298 \\='(:ascent center)
299 '(:ascent center :mask (heuristic t)) 299 \\='(:ascent center :mask (heuristic t))
300 ))" 300 ))"
301 (or name (setq name (or tree-widget-theme "default"))) 301 (or name (setq name (or tree-widget-theme "default")))
302 (unless (string-equal name (tree-widget-theme-name)) 302 (unless (string-equal name (tree-widget-theme-name))
diff --git a/lisp/tutorial.el b/lisp/tutorial.el
index e9095b3b41b..f8660f55f65 100644
--- a/lisp/tutorial.el
+++ b/lisp/tutorial.el
@@ -136,18 +136,18 @@ options:
136 (setq mapsym s))))) 136 (setq mapsym s)))))
137 (insert 137 (insert
138 (format 138 (format
139 "The default Emacs binding for the key %s is the command %s. " 139 "The default Emacs binding for the key %s is the command `%s'. "
140 (key-description key) 140 (key-description key)
141 db)) 141 db))
142 (insert "However, your customizations have " 142 (insert "However, your customizations have "
143 (if cb 143 (if cb
144 (format-message "rebound it to the command %s" cb) 144 (format-message "rebound it to the command `%s'" cb)
145 "unbound it")) 145 "unbound it"))
146 (insert ".") 146 (insert ".")
147 (when mapsym 147 (when mapsym
148 (insert " (For the more advanced user:" 148 (insert " (For the more advanced user:"
149 (format-message 149 (format-message
150 " This binding is in the keymap %s.)" mapsym))) 150 " This binding is in the keymap `%s'.)" mapsym)))
151 (if (string= where "") 151 (if (string= where "")
152 (unless (keymapp db) 152 (unless (keymapp db)
153 (insert "\n\nYou can use M-x " 153 (insert "\n\nYou can use M-x "
@@ -159,7 +159,7 @@ options:
159 "" 159 ""
160 "the key") 160 "the key")
161 where 161 where
162 (format-message " to get the function %s." db)))) 162 (format-message " to get the function `%s'." db))))
163 (fill-region (point-min) (point))))) 163 (fill-region (point-min) (point)))))
164 (help-print-return-message)))) 164 (help-print-return-message))))
165 165
@@ -451,7 +451,7 @@ where
451 (lookup-key global-map 451 (lookup-key global-map
452 [menu-bar])))) 452 [menu-bar]))))
453 (stringp cwhere)) 453 (stringp cwhere))
454 (format-message "the %s menu" cwhere) 454 (format-message "the `%s' menu" cwhere)
455 "the menus")))) 455 "the menus"))))
456 (setq where "")) 456 (setq where ""))
457 (setq remark nil) 457 (setq remark nil)
diff --git a/lisp/type-break.el b/lisp/type-break.el
index c7043b5c0e4..85037364016 100644
--- a/lisp/type-break.el
+++ b/lisp/type-break.el
@@ -803,7 +803,7 @@ this or ask the user to start one right now."
803 (type-break-mode-line-message-mode) 803 (type-break-mode-line-message-mode)
804 (t 804 (t
805 (beep t) 805 (beep t)
806 (message "%sYou should take a typing break now. Do %s." 806 (message "%sYou should take a typing break now. Do `%s'."
807 (type-break-time-stamp) 807 (type-break-time-stamp)
808 (substitute-command-keys "\\[type-break]")) 808 (substitute-command-keys "\\[type-break]"))
809 (sit-for 1) 809 (sit-for 1)
diff --git a/lisp/url/url-util.el b/lisp/url/url-util.el
index 13b97744131..e011b96ada2 100644
--- a/lisp/url/url-util.el
+++ b/lisp/url/url-util.el
@@ -285,7 +285,7 @@ Will not do anything if `url-show-status' is nil."
285 "Build a query-string. 285 "Build a query-string.
286 286
287Given a QUERY in the form: 287Given a QUERY in the form:
288'((key1 val1) 288 ((key1 val1)
289 (key2 val2) 289 (key2 val2)
290 (key3 val1 val2) 290 (key3 val1 val2)
291 (key4) 291 (key4)
diff --git a/lisp/url/url-vars.el b/lisp/url/url-vars.el
index 7e752776ba9..46c2ec3c69f 100644
--- a/lisp/url/url-vars.el
+++ b/lisp/url/url-vars.el
@@ -122,9 +122,9 @@ cookies -- never accept HTTP cookies
122 122
123Samples: 123Samples:
124 124
125 (setq url-privacy-level 'high) 125 (setq url-privacy-level \\='high)
126 (setq url-privacy-level '(email lastloc)) ;; equivalent to 'high 126 (setq url-privacy-level \\='(email lastloc)) ;; equivalent to \\='high
127 (setq url-privacy-level '(os)) 127 (setq url-privacy-level \\='(os))
128 128
129::NOTE:: 129::NOTE::
130This variable controls several other variables and is _NOT_ automatically 130This variable controls several other variables and is _NOT_ automatically
diff --git a/lisp/vc/ediff-mult.el b/lisp/vc/ediff-mult.el
index c81afce016d..7bfc3b60b4a 100644
--- a/lisp/vc/ediff-mult.el
+++ b/lisp/vc/ediff-mult.el
@@ -1456,7 +1456,8 @@ Useful commands:
1456 (map-extents 'delete-extent) 1456 (map-extents 'delete-extent)
1457 (mapc 'delete-overlay (overlays-in 1 1))) 1457 (mapc 'delete-overlay (overlays-in 1 1)))
1458 1458
1459 (insert "This is a registry of all active Ediff sessions. 1459 (insert (substitute-command-keys "\
1460This is a registry of all active Ediff sessions.
1460 1461
1461Useful commands: 1462Useful commands:
1462 button2, `v', RET over a session record: switch to that session 1463 button2, `v', RET over a session record: switch to that session
@@ -1471,7 +1472,7 @@ Useful commands:
1471\t\tActive Ediff Sessions: 1472\t\tActive Ediff Sessions:
1472\t\t---------------------- 1473\t\t----------------------
1473 1474
1474") 1475"))
1475 ;; purge registry list from dead buffers 1476 ;; purge registry list from dead buffers
1476 (mapc (lambda (elt) 1477 (mapc (lambda (elt)
1477 (if (not (ediff-buffer-live-p elt)) 1478 (if (not (ediff-buffer-live-p elt))
diff --git a/lisp/vc/ediff-ptch.el b/lisp/vc/ediff-ptch.el
index b665034d135..b45d533caea 100644
--- a/lisp/vc/ediff-ptch.el
+++ b/lisp/vc/ediff-ptch.el
@@ -406,7 +406,7 @@ other files, enter /dev/null
406 (with-output-to-temp-buffer ediff-msg-buffer 406 (with-output-to-temp-buffer ediff-msg-buffer
407 (ediff-with-current-buffer standard-output 407 (ediff-with-current-buffer standard-output
408 (fundamental-mode)) 408 (fundamental-mode))
409 (princ (format " 409 (princ (format-message "
410Ediff has inferred that 410Ediff has inferred that
411 %s 411 %s
412 %s 412 %s
diff --git a/lisp/vc/vc-git.el b/lisp/vc/vc-git.el
index 50c6d96e911..8a0f5547c4d 100644
--- a/lisp/vc/vc-git.el
+++ b/lisp/vc/vc-git.el
@@ -270,8 +270,10 @@ matching the resulting Git log output, and KEYWORDS is a list of
270 (disp-rev (or (vc-git--symbolic-ref file) 270 (disp-rev (or (vc-git--symbolic-ref file)
271 (substring rev 0 7))) 271 (substring rev 0 7)))
272 (def-ml (vc-default-mode-line-string 'Git file)) 272 (def-ml (vc-default-mode-line-string 'Git file))
273 (help-echo (get-text-property 0 'help-echo def-ml))) 273 (help-echo (get-text-property 0 'help-echo def-ml))
274 (face (get-text-property 0 'face def-ml)))
274 (propertize (replace-regexp-in-string (concat rev "\\'") disp-rev def-ml t t) 275 (propertize (replace-regexp-in-string (concat rev "\\'") disp-rev def-ml t t)
276 'face face
275 'help-echo (concat help-echo "\nCurrent revision: " rev)))) 277 'help-echo (concat help-echo "\nCurrent revision: " rev))))
276 278
277(cl-defstruct (vc-git-extra-fileinfo 279(cl-defstruct (vc-git-extra-fileinfo
diff --git a/lisp/vc/vc-hooks.el b/lisp/vc/vc-hooks.el
index e674f0e4d4e..3e6d2a95051 100644
--- a/lisp/vc/vc-hooks.el
+++ b/lisp/vc/vc-hooks.el
@@ -380,14 +380,14 @@ If the argument is a list, the files must all have the same back end."
380If FILES are not registered, this function always returns nil. 380If FILES are not registered, this function always returns nil.
381For registered files, the possible values are: 381For registered files, the possible values are:
382 382
383 'implicit FILES are always writable, and checked out `implicitly' 383 `implicit' FILES are always writable, and checked out `implicitly'
384 when the user saves the first changes to the file. 384 when the user saves the first changes to the file.
385 385
386 'locking FILES are read-only if up-to-date; user must type 386 `locking' FILES are read-only if up-to-date; user must type
387 \\[vc-next-action] before editing. Strict locking 387 \\[vc-next-action] before editing. Strict locking
388 is assumed. 388 is assumed.
389 389
390 'announce FILES are read-only if up-to-date; user must type 390 `announce' FILES are read-only if up-to-date; user must type
391 \\[vc-next-action] before editing. But other users 391 \\[vc-next-action] before editing. But other users
392 may be editing at the same time." 392 may be editing at the same time."
393 (vc-call-backend backend 'checkout-model files)) 393 (vc-call-backend backend 'checkout-model files))
@@ -416,10 +416,10 @@ For registered files, the possible values are:
416A return of nil from this function means we have no information on the 416A return of nil from this function means we have no information on the
417status of this file. Otherwise, the value returned is one of: 417status of this file. Otherwise, the value returned is one of:
418 418
419 'up-to-date The working file is unmodified with respect to the 419 `up-to-date' The working file is unmodified with respect to the
420 latest version on the current branch, and not locked. 420 latest version on the current branch, and not locked.
421 421
422 'edited The working file has been edited by the user. If 422 `edited' The working file has been edited by the user. If
423 locking is used for the file, this state means that 423 locking is used for the file, this state means that
424 the current version is locked by the calling user. 424 the current version is locked by the calling user.
425 This status should *not* be reported for files 425 This status should *not* be reported for files
@@ -429,44 +429,44 @@ status of this file. Otherwise, the value returned is one of:
429 USER The current version of the working file is locked by 429 USER The current version of the working file is locked by
430 some other USER (a string). 430 some other USER (a string).
431 431
432 'needs-update The file has not been edited by the user, but there is 432 `needs-update' The file has not been edited by the user, but there is
433 a more recent version on the current branch stored 433 a more recent version on the current branch stored
434 in the repository. 434 in the repository.
435 435
436 'needs-merge The file has been edited by the user, and there is also 436 `needs-merge' The file has been edited by the user, and there is also
437 a more recent version on the current branch stored in 437 a more recent version on the current branch stored in
438 the repository. This state can only occur if locking 438 the repository. This state can only occur if locking
439 is not used for the file. 439 is not used for the file.
440 440
441 'unlocked-changes The working version of the file is not locked, 441 `unlocked-changes' The working version of the file is not locked,
442 but the working file has been changed with respect 442 but the working file has been changed with respect
443 to that version. This state can only occur for files 443 to that version. This state can only occur for files
444 with locking; it represents an erroneous condition that 444 with locking; it represents an erroneous condition that
445 should be resolved by the user (vc-next-action will 445 should be resolved by the user (vc-next-action will
446 prompt the user to do it). 446 prompt the user to do it).
447 447
448 'added Scheduled to go into the repository on the next commit. 448 `added' Scheduled to go into the repository on the next commit.
449 Often represented by vc-working-revision = \"0\" in VCSes 449 Often represented by vc-working-revision = \"0\" in VCSes
450 with monotonic IDs like Subversion and Mercurial. 450 with monotonic IDs like Subversion and Mercurial.
451 451
452 'removed Scheduled to be deleted from the repository on next commit. 452 `removed' Scheduled to be deleted from the repository on next commit.
453 453
454 'conflict The file contains conflicts as the result of a merge. 454 `conflict' The file contains conflicts as the result of a merge.
455 For now the conflicts are text conflicts. In the 455 For now the conflicts are text conflicts. In the
456 future this might be extended to deal with metadata 456 future this might be extended to deal with metadata
457 conflicts too. 457 conflicts too.
458 458
459 'missing The file is not present in the file system, but the VC 459 `missing' The file is not present in the file system, but the VC
460 system still tracks it. 460 system still tracks it.
461 461
462 'ignored The file showed up in a dir-status listing with a flag 462 `ignored' The file showed up in a dir-status listing with a flag
463 indicating the version-control system is ignoring it, 463 indicating the version-control system is ignoring it,
464 Note: This property is not set reliably (some VCSes 464 Note: This property is not set reliably (some VCSes
465 don't have useful directory-status commands) so assume 465 don't have useful directory-status commands) so assume
466 that any file with vc-state nil might be ignorable 466 that any file with vc-state nil might be ignorable
467 without VC knowing it. 467 without VC knowing it.
468 468
469 'unregistered The file is not under version control." 469 `unregistered' The file is not under version control."
470 470
471 ;; Note: in Emacs 22 and older, return of nil meant the file was 471 ;; Note: in Emacs 22 and older, return of nil meant the file was
472 ;; unregistered. This is potentially a source of 472 ;; unregistered. This is potentially a source of
diff --git a/lisp/wdired.el b/lisp/wdired.el
index 0c113b346be..a9e1e2acc2a 100644
--- a/lisp/wdired.el
+++ b/lisp/wdired.el
@@ -494,7 +494,7 @@ non-nil means return old filename."
494 overwrite)) 494 overwrite))
495 (error 495 (error
496 (setq errors (1+ errors)) 496 (setq errors (1+ errors))
497 (dired-log "Rename %s to %s failed:\n%s\n" 497 (dired-log "Rename `%s' to `%s' failed:\n%s\n"
498 file-ori file-new 498 file-ori file-new
499 err))))))))) 499 err)))))))))
500 errors)) 500 errors))
@@ -651,7 +651,7 @@ If OLD, return the old target. If MOVE, move point before it."
651 (substitute-in-file-name link-to-new) link-from)) 651 (substitute-in-file-name link-to-new) link-from))
652 (error 652 (error
653 (setq errors (1+ errors)) 653 (setq errors (1+ errors))
654 (dired-log "Link %s to %s failed:\n%s\n" 654 (dired-log "Link `%s' to `%s' failed:\n%s\n"
655 link-from link-to-new 655 link-from link-to-new
656 err))))) 656 err)))))
657 (cons changes errors))) 657 (cons changes errors)))
@@ -837,10 +837,10 @@ Like original function but it skips read-only words."
837 (unless (equal 0 (process-file dired-chmod-program 837 (unless (equal 0 (process-file dired-chmod-program
838 nil nil nil perm-tmp filename)) 838 nil nil nil perm-tmp filename))
839 (setq errors (1+ errors)) 839 (setq errors (1+ errors))
840 (dired-log "%s %s %s failed\n\n" 840 (dired-log "%s %s `%s' failed\n\n"
841 dired-chmod-program perm-tmp filename))) 841 dired-chmod-program perm-tmp filename)))
842 (setq errors (1+ errors)) 842 (setq errors (1+ errors))
843 (dired-log "Cannot parse permission %s for file %s\n\n" 843 (dired-log "Cannot parse permission `%s' for file `%s'\n\n"
844 perms-new filename))) 844 perms-new filename)))
845 (goto-char (next-single-property-change (1+ (point)) prop-wanted 845 (goto-char (next-single-property-change (1+ (point)) prop-wanted
846 nil (point-max)))) 846 nil (point-max))))
diff --git a/lisp/whitespace.el b/lisp/whitespace.el
index 319149638d6..0c208502c34 100644
--- a/lisp/whitespace.el
+++ b/lisp/whitespace.el
@@ -1867,10 +1867,10 @@ cleaning up these problems."
1867 (when has-bogus 1867 (when has-bogus
1868 (goto-char (point-max)) 1868 (goto-char (point-max))
1869 (insert (substitute-command-keys 1869 (insert (substitute-command-keys
1870 " Type \\[whitespace-cleanup]") 1870 " Type `\\[whitespace-cleanup]'")
1871 " to cleanup the buffer.\n\n" 1871 " to cleanup the buffer.\n\n"
1872 (substitute-command-keys 1872 (substitute-command-keys
1873 " Type \\[whitespace-cleanup-region]") 1873 " Type `\\[whitespace-cleanup-region]'")
1874 " to cleanup a region.\n\n")) 1874 " to cleanup a region.\n\n"))
1875 (whitespace-display-window (current-buffer))))) 1875 (whitespace-display-window (current-buffer)))))
1876 has-bogus)))) 1876 has-bogus))))
@@ -1931,13 +1931,13 @@ cleaning up these problems."
1931 1931
1932 1932
1933(defun whitespace-mark-x (nchars condition) 1933(defun whitespace-mark-x (nchars condition)
1934 "Insert the mark (X or ) after NCHARS depending on CONDITION." 1934 "Insert the mark (`X' or ` ') after NCHARS depending on CONDITION."
1935 (forward-char nchars) 1935 (forward-char nchars)
1936 (insert (if condition "X" " "))) 1936 (insert (if condition "X" " ")))
1937 1937
1938 1938
1939(defun whitespace-insert-option-mark (the-list the-value) 1939(defun whitespace-insert-option-mark (the-list the-value)
1940 "Insert the option mark (X or ) in toggle options buffer." 1940 "Insert the option mark (`X' or ` ') in toggle options buffer."
1941 (goto-char (point-min)) 1941 (goto-char (point-min))
1942 (forward-line 2) 1942 (forward-line 2)
1943 (dolist (sym the-list) 1943 (dolist (sym the-list)
diff --git a/lisp/widget.el b/lisp/widget.el
index d62f7ffd8d1..aadb063161c 100644
--- a/lisp/widget.el
+++ b/lisp/widget.el
@@ -80,7 +80,7 @@ create identical widgets:
80 80
81* (widget-create NAME) 81* (widget-create NAME)
82 82
83* (apply 'widget-create CLASS ARGS) 83* (apply \\='widget-create CLASS ARGS)
84 84
85The third argument DOC is a documentation string for the widget." 85The third argument DOC is a documentation string for the widget."
86 ;; 86 ;;
diff --git a/lisp/window.el b/lisp/window.el
index 65b4ef08268..6d189055c15 100644
--- a/lisp/window.el
+++ b/lisp/window.el
@@ -5868,7 +5868,7 @@ one of the regular expressions in `special-display-regexps'.
5868 5868
5869This variable can be set in your init file, like this: 5869This variable can be set in your init file, like this:
5870 5870
5871 (setq special-display-frame-alist '((width . 80) (height . 20))) 5871 (setq special-display-frame-alist \\='((width . 80) (height . 20)))
5872 5872
5873These supersede the values given in `default-frame-alist'." 5873These supersede the values given in `default-frame-alist'."
5874 :type '(repeat (cons :format "%v" 5874 :type '(repeat (cons :format "%v"
diff --git a/lisp/woman.el b/lisp/woman.el
index de2cbc100ea..f2e59e50bca 100644
--- a/lisp/woman.el
+++ b/lisp/woman.el
@@ -786,7 +786,7 @@ without interactive confirmation, if it exists as a topic."
786 786
787(defvar woman-file-regexp nil 787(defvar woman-file-regexp nil
788 "Regexp used to select (possibly compressed) man source files, e.g. 788 "Regexp used to select (possibly compressed) man source files, e.g.
789\"\\.\\([0-9lmnt]\\w*\\)\\(\\.\\(g?z\\|bz2\\|xz\\)\\)?\\'\". 789\"\\.\\([0-9lmnt]\\w*\\)\\(\\.\\(g?z\\|bz2\\|xz\\)\\)?\\\\='\".
790Built automatically from the customizable user options 790Built automatically from the customizable user options
791`woman-uncompressed-file-regexp' and `woman-file-compression-regexp'.") 791`woman-uncompressed-file-regexp' and `woman-file-compression-regexp'.")
792 792
@@ -816,7 +816,7 @@ becoming more common in the GNU world. For example, the man pages
816in the ncurses package include `toe.1m', `form.3x', etc. 816in the ncurses package include `toe.1m', `form.3x', etc.
817 817
818Note: an optional compression regexp will be appended, so this regexp 818Note: an optional compression regexp will be appended, so this regexp
819MUST NOT end with any kind of string terminator such as $ or \\'." 819MUST NOT end with any kind of string terminator such as $ or \\\\='."
820 :type 'regexp 820 :type 'regexp
821 :set 'set-woman-file-regexp 821 :set 'set-woman-file-regexp
822 :group 'woman-interface) 822 :group 'woman-interface)
@@ -826,8 +826,8 @@ MUST NOT end with any kind of string terminator such as $ or \\'."
826 "Do not change this unless you are sure you know what you are doing! 826 "Do not change this unless you are sure you know what you are doing!
827Regexp used to match compressed man file extensions for which 827Regexp used to match compressed man file extensions for which
828decompressors are available and handled by auto-compression mode, 828decompressors are available and handled by auto-compression mode,
829e.g. \"\\\\.\\\\(g?z\\\\|bz2\\\\|xz\\\\)\\\\'\" for `gzip', `bzip2', or `xz'. 829e.g. \"\\\\.\\\\(g?z\\\\|bz2\\\\|xz\\\\)\\\\\\='\" for `gzip', `bzip2', or `xz'.
830Should begin with \\. and end with \\' and MUST NOT be optional." 830Should begin with \\. and end with \\\\=' and MUST NOT be optional."
831 ;; Should be compatible with car of 831 ;; Should be compatible with car of
832 ;; `jka-compr-file-name-handler-entry', but that is unduly 832 ;; `jka-compr-file-name-handler-entry', but that is unduly
833 ;; complicated, includes an inappropriate extension (.tgz) and is 833 ;; complicated, includes an inappropriate extension (.tgz) and is
@@ -3719,7 +3719,7 @@ expression in parentheses. Leaves point after the value."
3719 "Find and return start of next control line. 3719 "Find and return start of next control line.
3720PAT, if non-nil, specifies an additional component of the control 3720PAT, if non-nil, specifies an additional component of the control
3721line regexp to search for, which is appended to the default 3721line regexp to search for, which is appended to the default
3722regexp, \"\\(\\\\c\\)?\\n[.']\"." 3722regexp, \"\\(\\\\c\\)?\\n[.\\=']\"."
3723 (let ((pattern (concat "\\(\\\\c\\)?\n[.']" pat)) 3723 (let ((pattern (concat "\\(\\\\c\\)?\n[.']" pat))
3724 to) 3724 to)
3725 (save-excursion 3725 (save-excursion
@@ -3981,7 +3981,7 @@ Optional argument NUMERIC, if non-nil, means the argument is numeric."
3981 (goto-char from))) 3981 (goto-char from)))
3982 3982
3983(defun woman-horizontal-line () 3983(defun woman-horizontal-line ()
3984 "\\l'Nc' -- Draw a horizontal line of length N using character c, default _." 3984 "\\l\\='Nc\\=' -- Draw a horizontal line of length N using character c, default _."
3985 (delete-char -1) 3985 (delete-char -1)
3986 (delete-char 1) 3986 (delete-char 1)
3987 (looking-at "\\(.\\)\\(.*\\)\\1") 3987 (looking-at "\\(.\\)\\(.*\\)\\1")
diff --git a/src/dispextern.h b/src/dispextern.h
index 37ebab04ddf..e5adeab0dc0 100644
--- a/src/dispextern.h
+++ b/src/dispextern.h
@@ -3245,6 +3245,7 @@ extern ptrdiff_t compute_display_string_end (ptrdiff_t,
3245 struct bidi_string_data *); 3245 struct bidi_string_data *);
3246extern void produce_stretch_glyph (struct it *); 3246extern void produce_stretch_glyph (struct it *);
3247extern int merge_glyphless_glyph_face (struct it *); 3247extern int merge_glyphless_glyph_face (struct it *);
3248extern void forget_escape_and_glyphless_faces (void);
3248 3249
3249extern void get_font_ascent_descent (struct font *, int *, int *); 3250extern void get_font_ascent_descent (struct font *, int *, int *);
3250 3251
diff --git a/src/doc.c b/src/doc.c
index 5d0aae795b7..b6963d2ab0b 100644
--- a/src/doc.c
+++ b/src/doc.c
@@ -724,7 +724,7 @@ as the keymap for future \\=\\[COMMAND] substrings.
724 724
725Each \\=‘ and \\=` is replaced by left quote, and each \\=’ and \\=' 725Each \\=‘ and \\=` is replaced by left quote, and each \\=’ and \\='
726is replaced by right quote. Left and right quote characters are 726is replaced by right quote. Left and right quote characters are
727specified by text-quoting-style. 727specified by `text-quoting-style'.
728 728
729\\=\\= quotes the following character and is discarded; thus, 729\\=\\= quotes the following character and is discarded; thus,
730\\=\\=\\=\\= puts \\=\\= into the output, \\=\\=\\=\\[ puts \\=\\[ into the output, and 730\\=\\=\\=\\= puts \\=\\= into the output, \\=\\=\\=\\[ puts \\=\\[ into the output, and
@@ -1024,15 +1024,15 @@ syms_of_doc (void)
1024 1024
1025 DEFVAR_LISP ("text-quoting-style", Vtext_quoting_style, 1025 DEFVAR_LISP ("text-quoting-style", Vtext_quoting_style,
1026 doc: /* Style to use for single quotes when generating text. 1026 doc: /* Style to use for single quotes when generating text.
1027curve means quote with curved single quotes \\=‘like this\\=’. 1027`curve' means quote with curved single quotes \\=‘like this\\=’.
1028straight means quote with straight apostrophes \\='like this\\='. 1028`straight' means quote with straight apostrophes \\='like this\\='.
1029grave means quote with grave accent and apostrophe \\=`like this\\='. 1029`grave' means quote with grave accent and apostrophe \\=`like this\\='.
1030The default value nil acts like curve if curved single quotes are 1030The default value nil acts like `curve' if curved single quotes are
1031displayable, and like grave otherwise. */); 1031displayable, and like `grave' otherwise. */);
1032 Vtext_quoting_style = Qnil; 1032 Vtext_quoting_style = Qnil;
1033 1033
1034 DEFVAR_BOOL ("internal--text-quoting-flag", text_quoting_flag, 1034 DEFVAR_BOOL ("internal--text-quoting-flag", text_quoting_flag,
1035 doc: /* If nil, a nil text-quoting-style is treated as grave. */); 1035 doc: /* If nil, a nil `text-quoting-style' is treated as `grave'. */);
1036 /* Initialized by ‘main’. */ 1036 /* Initialized by ‘main’. */
1037 1037
1038 defsubr (&Sdocumentation); 1038 defsubr (&Sdocumentation);
diff --git a/src/editfns.c b/src/editfns.c
index e7d5dd89e51..831edb4c171 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -3837,11 +3837,11 @@ DEFUN ("format-message", Fformat_message, Sformat_message, 1, MANY, 0,
3837The first argument is a format control string. 3837The first argument is a format control string.
3838The other arguments are substituted into it to make the result, a string. 3838The other arguments are substituted into it to make the result, a string.
3839 3839
3840This acts like format, except it also replaces each left single 3840This acts like `format', except it also replaces each left single
3841quotation mark (\\=‘) and grave accent (\\=`) by a left quote, and each 3841quotation mark (\\=‘) and grave accent (\\=`) by a left quote, and each
3842right single quotation mark (\\=’) and apostrophe (\\=') by a right quote. 3842right single quotation mark (\\=’) and apostrophe (\\=') by a right quote.
3843The left and right quote replacement characters are specified by 3843The left and right quote replacement characters are specified by
3844text-quoting-style. 3844`text-quoting-style'.
3845 3845
3846usage: (format-message STRING &rest OBJECTS) */) 3846usage: (format-message STRING &rest OBJECTS) */)
3847 (ptrdiff_t nargs, Lisp_Object *args) 3847 (ptrdiff_t nargs, Lisp_Object *args)
diff --git a/src/keyboard.c b/src/keyboard.c
index a8b1e9828bf..ccd340557dd 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -380,6 +380,11 @@ kset_echo_string (struct kboard *kb, Lisp_Object val)
380 kb->echo_string_ = val; 380 kb->echo_string_ = val;
381} 381}
382static void 382static void
383kset_echo_prompt (struct kboard *kb, Lisp_Object val)
384{
385 kb->echo_prompt_ = val;
386}
387static void
383kset_kbd_queue (struct kboard *kb, Lisp_Object val) 388kset_kbd_queue (struct kboard *kb, Lisp_Object val)
384{ 389{
385 kb->kbd_queue_ = val; 390 kb->kbd_queue_ = val;
@@ -501,8 +506,9 @@ echo_dash (void)
501 return; 506 return;
502 507
503 /* Do nothing if we just printed a prompt. */ 508 /* Do nothing if we just printed a prompt. */
504 if (current_kboard->echo_after_prompt 509 if (STRINGP (KVAR (current_kboard, echo_prompt))
505 == SCHARS (KVAR (current_kboard, echo_string))) 510 && (SCHARS (KVAR (current_kboard, echo_prompt))
511 == SCHARS (KVAR (current_kboard, echo_string))))
506 return; 512 return;
507 513
508 /* Do nothing if we have already put a dash at the end. */ 514 /* Do nothing if we have already put a dash at the end. */
@@ -534,8 +540,12 @@ echo_update (void)
534 if (current_kboard->immediate_echo) 540 if (current_kboard->immediate_echo)
535 { 541 {
536 ptrdiff_t i; 542 ptrdiff_t i;
543 Lisp_Object prompt = KVAR (current_kboard, echo_prompt);
544 Lisp_Object prefix = call0 (Qinternal_echo_keystrokes_prefix);
537 kset_echo_string (current_kboard, 545 kset_echo_string (current_kboard,
538 call0 (Qinternal_echo_keystrokes_prefix)); 546 NILP (prompt) ? prefix
547 : NILP (prefix) ? prompt
548 : concat2 (prompt, prefix));
539 549
540 for (i = 0; i < this_command_key_count; i++) 550 for (i = 0; i < this_command_key_count; i++)
541 { 551 {
@@ -584,7 +594,7 @@ void
584cancel_echoing (void) 594cancel_echoing (void)
585{ 595{
586 current_kboard->immediate_echo = false; 596 current_kboard->immediate_echo = false;
587 current_kboard->echo_after_prompt = -1; 597 kset_echo_prompt (current_kboard, Qnil);
588 kset_echo_string (current_kboard, Qnil); 598 kset_echo_string (current_kboard, Qnil);
589 ok_to_echo_at_next_pause = NULL; 599 ok_to_echo_at_next_pause = NULL;
590 echo_kboard = NULL; 600 echo_kboard = NULL;
@@ -693,11 +703,11 @@ force_auto_save_soon (void)
693 703
694DEFUN ("recursive-edit", Frecursive_edit, Srecursive_edit, 0, 0, "", 704DEFUN ("recursive-edit", Frecursive_edit, Srecursive_edit, 0, 0, "",
695 doc: /* Invoke the editor command loop recursively. 705 doc: /* Invoke the editor command loop recursively.
696To get out of the recursive edit, a command can throw to exit -- for 706To get out of the recursive edit, a command can throw to `exit' -- for
697instance (throw \\='exit nil). 707instance (throw \\='exit nil).
698If you throw a value other than t, recursive-edit returns normally 708If you throw a value other than t, `recursive-edit' returns normally
699to the function that called it. Throwing a t value causes 709to the function that called it. Throwing a t value causes
700recursive-edit to quit, so that control returns to the command loop 710`recursive-edit' to quit, so that control returns to the command loop
701one level up. 711one level up.
702 712
703This function is called by the editor initialization to begin editing. */) 713This function is called by the editor initialization to begin editing. */)
@@ -2942,7 +2952,7 @@ read_char (int commandflag, Lisp_Object map,
2942 bool saved_immediate_echo = current_kboard->immediate_echo; 2952 bool saved_immediate_echo = current_kboard->immediate_echo;
2943 struct kboard *saved_ok_to_echo = ok_to_echo_at_next_pause; 2953 struct kboard *saved_ok_to_echo = ok_to_echo_at_next_pause;
2944 Lisp_Object saved_echo_string = KVAR (current_kboard, echo_string); 2954 Lisp_Object saved_echo_string = KVAR (current_kboard, echo_string);
2945 ptrdiff_t saved_echo_after_prompt = current_kboard->echo_after_prompt; 2955 Lisp_Object saved_echo_prompt = KVAR (current_kboard, echo_prompt);
2946 2956
2947 /* Save the this_command_keys status. */ 2957 /* Save the this_command_keys status. */
2948 key_count = this_command_key_count; 2958 key_count = this_command_key_count;
@@ -2984,15 +2994,8 @@ read_char (int commandflag, Lisp_Object map,
2984 2994
2985 cancel_echoing (); 2995 cancel_echoing ();
2986 ok_to_echo_at_next_pause = saved_ok_to_echo; 2996 ok_to_echo_at_next_pause = saved_ok_to_echo;
2987 /* Do not restore the echo area string when the user is 2997 kset_echo_string (current_kboard, saved_echo_string);
2988 introducing a prefix argument. Otherwise we end with 2998 kset_echo_prompt (current_kboard, saved_echo_prompt);
2989 repetitions of the partially introduced prefix
2990 argument. (bug#19875) */
2991 if (NILP (intern ("prefix-arg")))
2992 {
2993 kset_echo_string (current_kboard, saved_echo_string);
2994 }
2995 current_kboard->echo_after_prompt = saved_echo_after_prompt;
2996 if (saved_immediate_echo) 2999 if (saved_immediate_echo)
2997 echo_now (); 3000 echo_now ();
2998 3001
@@ -8870,8 +8873,8 @@ read_key_sequence (Lisp_Object *keybuf, int bufsize, Lisp_Object prompt,
8870 /* Install the string PROMPT as the beginning of the string 8873 /* Install the string PROMPT as the beginning of the string
8871 of echoing, so that it serves as a prompt for the next 8874 of echoing, so that it serves as a prompt for the next
8872 character. */ 8875 character. */
8873 kset_echo_string (current_kboard, prompt); 8876 kset_echo_prompt (current_kboard, prompt);
8874 current_kboard->echo_after_prompt = SCHARS (prompt); 8877 current_kboard->immediate_echo = false;
8875 echo_now (); 8878 echo_now ();
8876 } 8879 }
8877 else if (cursor_in_echo_area 8880 else if (cursor_in_echo_area
@@ -10695,7 +10698,7 @@ init_kboard (KBOARD *kb, Lisp_Object type)
10695 kb->kbd_queue_has_data = false; 10698 kb->kbd_queue_has_data = false;
10696 kb->immediate_echo = false; 10699 kb->immediate_echo = false;
10697 kset_echo_string (kb, Qnil); 10700 kset_echo_string (kb, Qnil);
10698 kb->echo_after_prompt = -1; 10701 kset_echo_prompt (kb, Qnil);
10699 kb->kbd_macro_buffer = 0; 10702 kb->kbd_macro_buffer = 0;
10700 kb->kbd_macro_bufsize = 0; 10703 kb->kbd_macro_bufsize = 0;
10701 kset_defining_kbd_macro (kb, Qnil); 10704 kset_defining_kbd_macro (kb, Qnil);
@@ -11758,6 +11761,7 @@ mark_kboards (void)
11758 mark_object (KVAR (kb, Vlocal_function_key_map)); 11761 mark_object (KVAR (kb, Vlocal_function_key_map));
11759 mark_object (KVAR (kb, Vdefault_minibuffer_frame)); 11762 mark_object (KVAR (kb, Vdefault_minibuffer_frame));
11760 mark_object (KVAR (kb, echo_string)); 11763 mark_object (KVAR (kb, echo_string));
11764 mark_object (KVAR (kb, echo_prompt));
11761 } 11765 }
11762 { 11766 {
11763 union buffered_input_event *event; 11767 union buffered_input_event *event;
diff --git a/src/keyboard.h b/src/keyboard.h
index 3e4c475d285..0402e0a582c 100644
--- a/src/keyboard.h
+++ b/src/keyboard.h
@@ -175,9 +175,8 @@ struct kboard
175 /* True means echo each character as typed. */ 175 /* True means echo each character as typed. */
176 bool_bf immediate_echo : 1; 176 bool_bf immediate_echo : 1;
177 177
178 /* If we have echoed a prompt string specified by the user, 178 /* If we have a prompt string specified by the user, this is it. */
179 this is its length in characters. Otherwise this is -1. */ 179 Lisp_Object echo_prompt_;
180 ptrdiff_t echo_after_prompt;
181 }; 180 };
182 181
183INLINE void 182INLINE void
diff --git a/src/process.c b/src/process.c
index 1ab83780914..f4613be28ed 100644
--- a/src/process.c
+++ b/src/process.c
@@ -4859,6 +4859,10 @@ wait_reading_process_output (intmax_t time_limit, int nsecs, int read_kbd,
4859 data is available in the buffers manually. */ 4859 data is available in the buffers manually. */
4860 if (nfds == 0) 4860 if (nfds == 0)
4861 { 4861 {
4862 fd_set tls_available;
4863 int set = 0;
4864
4865 FD_ZERO (&tls_available);
4862 if (! wait_proc) 4866 if (! wait_proc)
4863 { 4867 {
4864 /* We're not waiting on a specific process, so loop 4868 /* We're not waiting on a specific process, so loop
@@ -4879,7 +4883,8 @@ wait_reading_process_output (intmax_t time_limit, int nsecs, int read_kbd,
4879 { 4883 {
4880 nfds++; 4884 nfds++;
4881 eassert (p->infd == channel); 4885 eassert (p->infd == channel);
4882 FD_SET (p->infd, &Available); 4886 FD_SET (p->infd, &tls_available);
4887 set++;
4883 } 4888 }
4884 } 4889 }
4885 } 4890 }
@@ -4896,9 +4901,12 @@ wait_reading_process_output (intmax_t time_limit, int nsecs, int read_kbd,
4896 nfds = 1; 4901 nfds = 1;
4897 eassert (0 <= wait_proc->infd); 4902 eassert (0 <= wait_proc->infd);
4898 /* Set to Available. */ 4903 /* Set to Available. */
4899 FD_SET (wait_proc->infd, &Available); 4904 FD_SET (wait_proc->infd, &tls_available);
4905 set++;
4900 } 4906 }
4901 } 4907 }
4908 if (set)
4909 Available = tls_available;
4902 } 4910 }
4903#endif 4911#endif
4904 } 4912 }
diff --git a/src/w32.c b/src/w32.c
index cc55507919c..bb514960e43 100644
--- a/src/w32.c
+++ b/src/w32.c
@@ -4534,6 +4534,8 @@ sys_rmdir (const char * path)
4534int 4534int
4535sys_unlink (const char * path) 4535sys_unlink (const char * path)
4536{ 4536{
4537 int rmstatus, e;
4538
4537 path = map_w32_filename (path, NULL); 4539 path = map_w32_filename (path, NULL);
4538 4540
4539 if (w32_unicode_filenames) 4541 if (w32_unicode_filenames)
@@ -4541,9 +4543,18 @@ sys_unlink (const char * path)
4541 wchar_t path_w[MAX_PATH]; 4543 wchar_t path_w[MAX_PATH];
4542 4544
4543 filename_to_utf16 (path, path_w); 4545 filename_to_utf16 (path, path_w);
4544 /* On Unix, unlink works without write permission. */ 4546 /* On Unix, unlink works without write permission. */
4545 _wchmod (path_w, 0666); 4547 _wchmod (path_w, 0666);
4546 return _wunlink (path_w); 4548 rmstatus = _wunlink (path_w);
4549 e = errno;
4550 /* Symlinks to directories can only be deleted by _rmdir;
4551 _unlink returns EACCES. */
4552 if (rmstatus != 0
4553 && errno == EACCES
4554 && (is_symlink (path) & FILE_ATTRIBUTE_DIRECTORY) != 0)
4555 rmstatus = _wrmdir (path_w);
4556 else
4557 errno = e;
4547 } 4558 }
4548 else 4559 else
4549 { 4560 {
@@ -4551,8 +4562,17 @@ sys_unlink (const char * path)
4551 4562
4552 filename_to_ansi (path, path_a); 4563 filename_to_ansi (path, path_a);
4553 _chmod (path_a, 0666); 4564 _chmod (path_a, 0666);
4554 return _unlink (path_a); 4565 rmstatus = _unlink (path_a);
4566 e = errno;
4567 if (rmstatus != 0
4568 && errno == EACCES
4569 && (is_symlink (path) & FILE_ATTRIBUTE_DIRECTORY) != 0)
4570 rmstatus = _rmdir (path_a);
4571 else
4572 errno = e;
4555 } 4573 }
4574
4575 return rmstatus;
4556} 4576}
4557 4577
4558static FILETIME utc_base_ft; 4578static FILETIME utc_base_ft;
@@ -5626,7 +5646,8 @@ symlink (char const *filename, char const *linkname)
5626/* A quick inexpensive test of whether FILENAME identifies a file that 5646/* A quick inexpensive test of whether FILENAME identifies a file that
5627 is a symlink. Returns non-zero if it is, zero otherwise. FILENAME 5647 is a symlink. Returns non-zero if it is, zero otherwise. FILENAME
5628 must already be in the normalized form returned by 5648 must already be in the normalized form returned by
5629 map_w32_filename. 5649 map_w32_filename. If the symlink is to a directory, the
5650 FILE_ATTRIBUTE_DIRECTORY bit will be set in the return value.
5630 5651
5631 Note: for repeated operations on many files, it is best to test 5652 Note: for repeated operations on many files, it is best to test
5632 whether the underlying volume actually supports symlinks, by 5653 whether the underlying volume actually supports symlinks, by
@@ -5684,6 +5705,8 @@ is_symlink (const char *filename)
5684 attrs_mean_symlink = 5705 attrs_mean_symlink =
5685 (wfdw.dwFileAttributes & FILE_ATTRIBUTE_REPARSE_POINT) != 0 5706 (wfdw.dwFileAttributes & FILE_ATTRIBUTE_REPARSE_POINT) != 0
5686 && (wfdw.dwReserved0 & IO_REPARSE_TAG_SYMLINK) == IO_REPARSE_TAG_SYMLINK; 5707 && (wfdw.dwReserved0 & IO_REPARSE_TAG_SYMLINK) == IO_REPARSE_TAG_SYMLINK;
5708 if (attrs_mean_symlink)
5709 attrs_mean_symlink |= (wfdw.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY);
5687 } 5710 }
5688 else if (_mbspbrk (filename_a, "?")) 5711 else if (_mbspbrk (filename_a, "?"))
5689 { 5712 {
@@ -5697,6 +5720,8 @@ is_symlink (const char *filename)
5697 attrs_mean_symlink = 5720 attrs_mean_symlink =
5698 (wfda.dwFileAttributes & FILE_ATTRIBUTE_REPARSE_POINT) != 0 5721 (wfda.dwFileAttributes & FILE_ATTRIBUTE_REPARSE_POINT) != 0
5699 && (wfda.dwReserved0 & IO_REPARSE_TAG_SYMLINK) == IO_REPARSE_TAG_SYMLINK; 5722 && (wfda.dwReserved0 & IO_REPARSE_TAG_SYMLINK) == IO_REPARSE_TAG_SYMLINK;
5723 if (attrs_mean_symlink)
5724 attrs_mean_symlink |= (wfda.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY);
5700 } 5725 }
5701 if (fh == INVALID_HANDLE_VALUE) 5726 if (fh == INVALID_HANDLE_VALUE)
5702 return 0; 5727 return 0;
diff --git a/src/xdisp.c b/src/xdisp.c
index 9ff9f6ce399..82931b88e1c 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -6787,6 +6787,18 @@ merge_glyphless_glyph_face (struct it *it)
6787 return face_id; 6787 return face_id;
6788} 6788}
6789 6789
6790/* Forget the `escape-glyph' and `glyphless-char' faces. This should
6791 be called before redisplaying windows, and when the frame's face
6792 cache is freed. */
6793void
6794forget_escape_and_glyphless_faces (void)
6795{
6796 last_escape_glyph_frame = NULL;
6797 last_escape_glyph_face_id = (1 << FACE_ID_BITS);
6798 last_glyphless_glyph_frame = NULL;
6799 last_glyphless_glyph_face_id = (1 << FACE_ID_BITS);
6800}
6801
6790/* Load IT's display element fields with information about the next 6802/* Load IT's display element fields with information about the next
6791 display element from the current position of IT. Value is false if 6803 display element from the current position of IT. Value is false if
6792 end of buffer (or C string) is reached. */ 6804 end of buffer (or C string) is reached. */
@@ -10673,6 +10685,11 @@ display_echo_area_1 (ptrdiff_t a1, Lisp_Object a2)
10673 Lisp_Object window; 10685 Lisp_Object window;
10674 struct text_pos start; 10686 struct text_pos start;
10675 10687
10688 /* We are about to enter redisplay without going through
10689 redisplay_internal, so we need to forget these faces by hand
10690 here. */
10691 forget_escape_and_glyphless_faces ();
10692
10676 /* Do this before displaying, so that we have a large enough glyph 10693 /* Do this before displaying, so that we have a large enough glyph
10677 matrix for the display. If we can't get enough space for the 10694 matrix for the display. If we can't get enough space for the
10678 whole text, display the last N lines. That works by setting w->start. */ 10695 whole text, display the last N lines. That works by setting w->start. */
@@ -13326,10 +13343,7 @@ redisplay_internal (void)
13326 sw = w; 13343 sw = w;
13327 13344
13328 pending = false; 13345 pending = false;
13329 last_escape_glyph_frame = NULL; 13346 forget_escape_and_glyphless_faces ();
13330 last_escape_glyph_face_id = (1 << FACE_ID_BITS);
13331 last_glyphless_glyph_frame = NULL;
13332 last_glyphless_glyph_face_id = (1 << FACE_ID_BITS);
13333 13347
13334 /* If face_change, init_iterator will free all realized faces, which 13348 /* If face_change, init_iterator will free all realized faces, which
13335 includes the faces referenced from current matrices. So, we 13349 includes the faces referenced from current matrices. So, we
diff --git a/src/xfaces.c b/src/xfaces.c
index d89adca8c57..03032496381 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -4173,6 +4173,8 @@ free_realized_faces (struct face_cache *c)
4173 c->faces_by_id[i] = NULL; 4173 c->faces_by_id[i] = NULL;
4174 } 4174 }
4175 4175
4176 /* Forget the escape-glyph and glyphless-char faces. */
4177 forget_escape_and_glyphless_faces ();
4176 c->used = 0; 4178 c->used = 0;
4177 size = FACE_CACHE_BUCKETS_SIZE * sizeof *c->buckets; 4179 size = FACE_CACHE_BUCKETS_SIZE * sizeof *c->buckets;
4178 memset (c->buckets, 0, size); 4180 memset (c->buckets, 0, size);
diff --git a/test/automated/Makefile.in b/test/automated/Makefile.in
index 174b3b6dffe..59a88663e2a 100644
--- a/test/automated/Makefile.in
+++ b/test/automated/Makefile.in
@@ -52,9 +52,15 @@ unexport EMACSDATA EMACSDOC EMACSPATH GREP_OPTIONS
52## To run tests under a debugger, set this to eg: "gdb --args". 52## To run tests under a debugger, set this to eg: "gdb --args".
53GDB = 53GDB =
54 54
55# The locale to run tests under. Tests should work if this is set to
56# any supported locale. Use the C locale by default, as it should be
57# supported everywhere.
58TEST_LOCALE = C
59
55# The actual Emacs command run in the targets below. 60# The actual Emacs command run in the targets below.
56# Prevent any setting of EMACSLOADPATH in user environment causing problems. 61# Prevent any setting of EMACSLOADPATH in user environment causing problems.
57emacs = EMACSLOADPATH= LC_ALL=C EMACS_TEST_DIRECTORY=$(srcdir) $(GDB) "$(EMACS)" $(EMACSOPT) 62emacs = EMACSLOADPATH= LC_ALL=$(TEST_LOCALE) EMACS_TEST_DIRECTORY=$(srcdir) \
63 $(GDB) "$(EMACS)" $(EMACSOPT)
58 64
59.PHONY: all check 65.PHONY: all check
60 66
diff --git a/test/automated/flymake-tests.el b/test/automated/flymake-tests.el
index 23dbb3d010c..a77c31638a5 100644
--- a/test/automated/flymake-tests.el
+++ b/test/automated/flymake-tests.el
@@ -34,6 +34,7 @@
34(defun flymake-tests--current-face (file predicate) 34(defun flymake-tests--current-face (file predicate)
35 (let ((buffer (find-file-noselect 35 (let ((buffer (find-file-noselect
36 (expand-file-name file flymake-tests-data-directory))) 36 (expand-file-name file flymake-tests-data-directory)))
37 (process-environment (cons "LC_ALL=C" process-environment))
37 (i 0)) 38 (i 0))
38 (unwind-protect 39 (unwind-protect
39 (with-current-buffer buffer 40 (with-current-buffer buffer
diff --git a/test/automated/map-tests.el b/test/automated/map-tests.el
index 1f3a07e3f3b..8693415a784 100644
--- a/test/automated/map-tests.el
+++ b/test/automated/map-tests.el
@@ -252,31 +252,29 @@ Evaluate BODY for each created map.
252 (should (not (map-empty-p "hello"))) 252 (should (not (map-empty-p "hello")))
253 (should (map-empty-p ""))) 253 (should (map-empty-p "")))
254 254
255(ert-deftest test-map-contains-key-p () 255(ert-deftest test-map-contains-key ()
256 (should (map-contains-key-p '((a . 1) (b . 2)) 'a)) 256 (should (map-contains-key '((a . 1) (b . 2)) 'a))
257 (should (not (map-contains-key-p '((a . 1) (b . 2)) 'c))) 257 (should (not (map-contains-key '((a . 1) (b . 2)) 'c)))
258 (should (map-contains-key-p '(("a" . 1)) "a")) 258 (should (map-contains-key '(("a" . 1)) "a"))
259 (should (not (map-contains-key-p '(("a" . 1)) "a" #'eq))) 259 (should (not (map-contains-key '(("a" . 1)) "a" #'eq)))
260 (should (map-contains-key-p [a b c] 2)) 260 (should (map-contains-key [a b c] 2))
261 (should (not (map-contains-key-p [a b c] 3)))) 261 (should (not (map-contains-key [a b c] 3))))
262 262
263(ert-deftest test-map-some-p () 263(ert-deftest test-map-some ()
264 (with-maps-do map 264 (with-maps-do map
265 (should (equal (map-some-p (lambda (k _v) 265 (should (map-some (lambda (k _v)
266 (eq 1 k)) 266 (eq 1 k))
267 map) 267 map))
268 (cons 1 4))) 268 (should-not (map-some (lambda (k _v)
269 (should (not (map-some-p (lambda (k _v) 269 (eq 'd k))
270 (eq 'd k)) 270 map)))
271 map))))
272 (let ((vec [a b c])) 271 (let ((vec [a b c]))
273 (should (equal (map-some-p (lambda (k _v) 272 (should (map-some (lambda (k _v)
274 (> k 1)) 273 (> k 1))
275 vec) 274 vec))
276 (cons 2 'c))) 275 (should-not (map-some (lambda (k _v)
277 (should (not (map-some-p (lambda (k _v) 276 (> k 3))
278 (> k 3)) 277 vec))))
279 vec)))))
280 278
281(ert-deftest test-map-every-p () 279(ert-deftest test-map-every-p ()
282 (with-maps-do map 280 (with-maps-do map
diff --git a/test/automated/python-tests.el b/test/automated/python-tests.el
index 219f99eed62..d9b4c3e1b06 100644
--- a/test/automated/python-tests.el
+++ b/test/automated/python-tests.el
@@ -2920,7 +2920,8 @@ and `python-shell-interpreter-args' in the new shell buffer."
2920 :type 'user-error))) 2920 :type 'user-error)))
2921 (should 2921 (should
2922 (string= (cadr error-data) 2922 (string= (cadr error-data)
2923 "Invalid regexp \\( in `python-shell-prompt-input-regexps'")))) 2923 (format-message
2924 "Invalid regexp \\( in `python-shell-prompt-input-regexps'")))))
2924 2925
2925(ert-deftest python-shell-prompt-validate-regexps-2 () 2926(ert-deftest python-shell-prompt-validate-regexps-2 ()
2926 "Check `python-shell-prompt-output-regexps' are validated." 2927 "Check `python-shell-prompt-output-regexps' are validated."
@@ -2929,7 +2930,8 @@ and `python-shell-interpreter-args' in the new shell buffer."
2929 :type 'user-error))) 2930 :type 'user-error)))
2930 (should 2931 (should
2931 (string= (cadr error-data) 2932 (string= (cadr error-data)
2932 "Invalid regexp \\( in `python-shell-prompt-output-regexps'")))) 2933 (format-message
2934 "Invalid regexp \\( in `python-shell-prompt-output-regexps'")))))
2933 2935
2934(ert-deftest python-shell-prompt-validate-regexps-3 () 2936(ert-deftest python-shell-prompt-validate-regexps-3 ()
2935 "Check `python-shell-prompt-regexp' is validated." 2937 "Check `python-shell-prompt-regexp' is validated."
@@ -2938,7 +2940,8 @@ and `python-shell-interpreter-args' in the new shell buffer."
2938 :type 'user-error))) 2940 :type 'user-error)))
2939 (should 2941 (should
2940 (string= (cadr error-data) 2942 (string= (cadr error-data)
2941 "Invalid regexp \\( in `python-shell-prompt-regexp'")))) 2943 (format-message
2944 "Invalid regexp \\( in `python-shell-prompt-regexp'")))))
2942 2945
2943(ert-deftest python-shell-prompt-validate-regexps-4 () 2946(ert-deftest python-shell-prompt-validate-regexps-4 ()
2944 "Check `python-shell-prompt-block-regexp' is validated." 2947 "Check `python-shell-prompt-block-regexp' is validated."
@@ -2947,7 +2950,8 @@ and `python-shell-interpreter-args' in the new shell buffer."
2947 :type 'user-error))) 2950 :type 'user-error)))
2948 (should 2951 (should
2949 (string= (cadr error-data) 2952 (string= (cadr error-data)
2950 "Invalid regexp \\( in `python-shell-prompt-block-regexp'")))) 2953 (format-message
2954 "Invalid regexp \\( in `python-shell-prompt-block-regexp'")))))
2951 2955
2952(ert-deftest python-shell-prompt-validate-regexps-5 () 2956(ert-deftest python-shell-prompt-validate-regexps-5 ()
2953 "Check `python-shell-prompt-pdb-regexp' is validated." 2957 "Check `python-shell-prompt-pdb-regexp' is validated."
@@ -2956,7 +2960,8 @@ and `python-shell-interpreter-args' in the new shell buffer."
2956 :type 'user-error))) 2960 :type 'user-error)))
2957 (should 2961 (should
2958 (string= (cadr error-data) 2962 (string= (cadr error-data)
2959 "Invalid regexp \\( in `python-shell-prompt-pdb-regexp'")))) 2963 (format-message
2964 "Invalid regexp \\( in `python-shell-prompt-pdb-regexp'")))))
2960 2965
2961(ert-deftest python-shell-prompt-validate-regexps-6 () 2966(ert-deftest python-shell-prompt-validate-regexps-6 ()
2962 "Check `python-shell-prompt-output-regexp' is validated." 2967 "Check `python-shell-prompt-output-regexp' is validated."
@@ -2965,7 +2970,8 @@ and `python-shell-interpreter-args' in the new shell buffer."
2965 :type 'user-error))) 2970 :type 'user-error)))
2966 (should 2971 (should
2967 (string= (cadr error-data) 2972 (string= (cadr error-data)
2968 "Invalid regexp \\( in `python-shell-prompt-output-regexp'")))) 2973 (format-message
2974 "Invalid regexp \\( in `python-shell-prompt-output-regexp'")))))
2969 2975
2970(ert-deftest python-shell-prompt-validate-regexps-7 () 2976(ert-deftest python-shell-prompt-validate-regexps-7 ()
2971 "Check default regexps are valid." 2977 "Check default regexps are valid."
@@ -2982,7 +2988,8 @@ and `python-shell-interpreter-args' in the new shell buffer."
2982 :type 'user-error))) 2988 :type 'user-error)))
2983 (should 2989 (should
2984 (string= (cadr error-data) 2990 (string= (cadr error-data)
2985 "Invalid regexp \\( in `python-shell-prompt-output-regexp'")))) 2991 (format-message
2992 "Invalid regexp \\( in `python-shell-prompt-output-regexp'")))))
2986 2993
2987(ert-deftest python-shell-prompt-set-calculated-regexps-2 () 2994(ert-deftest python-shell-prompt-set-calculated-regexps-2 ()
2988 "Check `python-shell-prompt-input-regexps' are set." 2995 "Check `python-shell-prompt-input-regexps' are set."
diff --git a/test/automated/seq-tests.el b/test/automated/seq-tests.el
index 482daeecb98..07a183d024e 100644
--- a/test/automated/seq-tests.el
+++ b/test/automated/seq-tests.el
@@ -129,21 +129,22 @@ Evaluate BODY for each created sequence.
129 (should (eq (seq-reduce #'+ seq 0) 0)) 129 (should (eq (seq-reduce #'+ seq 0) 0))
130 (should (eq (seq-reduce #'+ seq 7) 7)))) 130 (should (eq (seq-reduce #'+ seq 7) 7))))
131 131
132(ert-deftest test-seq-some-p () 132(ert-deftest test-seq-some ()
133 (with-test-sequences (seq '(4 3 2 1)) 133 (with-test-sequences (seq '(4 3 2 1))
134 (should (= (seq-some-p #'test-sequences-evenp seq) 4)) 134 (should (seq-some #'test-sequences-evenp seq))
135 (should (= (seq-some-p #'test-sequences-oddp seq) 3)) 135 (should (seq-some #'test-sequences-oddp seq))
136 (should-not (seq-some-p (lambda (elt) (> elt 10)) seq))) 136 (should-not (seq-some (lambda (elt) (> elt 10)) seq)))
137 (with-test-sequences (seq '()) 137 (with-test-sequences (seq '())
138 (should-not (seq-some-p #'test-sequences-oddp seq)))) 138 (should-not (seq-some #'test-sequences-oddp seq)))
139 (should (seq-some #'null '(1 nil 2))))
139 140
140(ert-deftest test-seq-contains-p () 141(ert-deftest test-seq-contains ()
141 (with-test-sequences (seq '(3 4 5 6)) 142 (with-test-sequences (seq '(3 4 5 6))
142 (should (seq-contains-p seq 3)) 143 (should (seq-contains seq 3))
143 (should-not (seq-contains-p seq 7))) 144 (should-not (seq-contains seq 7)))
144 (with-test-sequences (seq '()) 145 (with-test-sequences (seq '())
145 (should-not (seq-contains-p seq 3)) 146 (should-not (seq-contains seq 3))
146 (should-not (seq-contains-p seq nil)))) 147 (should-not (seq-contains seq nil))))
147 148
148(ert-deftest test-seq-every-p () 149(ert-deftest test-seq-every-p ()
149 (with-test-sequences (seq '(43 54 22 1)) 150 (with-test-sequences (seq '(43 54 22 1))
diff --git a/test/automated/textprop-tests.el b/test/automated/textprop-tests.el
index f6604fb8ff5..0baa911421b 100644
--- a/test/automated/textprop-tests.el
+++ b/test/automated/textprop-tests.el
@@ -25,7 +25,7 @@
25(require 'ert) 25(require 'ert)
26 26
27(ert-deftest textprop-tests-format () 27(ert-deftest textprop-tests-format ()
28 "Test format with text properties." 28 "Test `format' with text properties."
29 ;; See Bug#21351. 29 ;; See Bug#21351.
30 (should (equal-including-properties 30 (should (equal-including-properties
31 (format #("mouse-1, RET: %s -- w: copy %s" 31 (format #("mouse-1, RET: %s -- w: copy %s"
diff --git a/test/automated/tildify-tests.el b/test/automated/tildify-tests.el
index b53f58c279e..788abe7f731 100644
--- a/test/automated/tildify-tests.el
+++ b/test/automated/tildify-tests.el
@@ -55,6 +55,7 @@ If IS-XML is non-nil, <pre> tag is not treated specially."
55INPUT is the initial content of the buffer and EXPECTED is expected result 55INPUT is the initial content of the buffer and EXPECTED is expected result
56after `tildify-buffer' is run." 56after `tildify-buffer' is run."
57 (with-temp-buffer 57 (with-temp-buffer
58 (setq-local buffer-file-coding-system 'utf-8)
58 (dolist (mode modes) 59 (dolist (mode modes)
59 (erase-buffer) 60 (erase-buffer)
60 (funcall mode) 61 (funcall mode)
@@ -187,6 +188,7 @@ The function must terminate as soon as callback returns nil."
187 188
188(defun tildify-space-test--test (modes nbsp env-open &optional set-space-string) 189(defun tildify-space-test--test (modes nbsp env-open &optional set-space-string)
189 (with-temp-buffer 190 (with-temp-buffer
191 (setq-local buffer-file-coding-system 'utf-8)
190 (dolist (mode modes) 192 (dolist (mode modes)
191 (funcall mode) 193 (funcall mode)
192 (when set-space-string 194 (when set-space-string
@@ -226,6 +228,7 @@ The function must terminate as soon as callback returns nil."
226(defun tildify-space-undo-test--test 228(defun tildify-space-undo-test--test
227 (modes nbsp env-open &optional set-space-string) 229 (modes nbsp env-open &optional set-space-string)
228 (with-temp-buffer 230 (with-temp-buffer
231 (setq-local buffer-file-coding-system 'utf-8)
229 (dolist (mode modes) 232 (dolist (mode modes)
230 (funcall mode) 233 (funcall mode)
231 (when set-space-string 234 (when set-space-string