emacs/lisp/textmodes
Stefan Monnier 0d827c7f52 * lisp/emacs-lisp/pcase.el: Fix bug#46786
Revert commit a218c98615, but in order
to avoid the spurious warnings that this commit tried to squash,
keep track of the vars used during the match so as to add
corresponding annotations to explicitly silence the spurious warnings.

To do this, we change the VARS used in `pcase-u` (and throughout
the pcase code): they used to hold elements of the form (NAME . VAL)
and now they hold elements of the form (NAME VAL . USED).

(pcase--expand): Bind all vars instead of only those found via fgrep.
(pcase-codegen): Silence "unused var" warnings for those vars that have
already been referenced during the match itself.
(pcase--funcall, pcase--eval): Record the vars that are used.
(pcase--u1): Record the vars that are used via non-linear patterns.

* lisp/textmodes/mhtml-mode.el (mhtml-forward):
* lisp/vc/diff-mode.el (diff-goto-source): Silence newly
discovered warnings.

* test/lisp/emacs-lisp/pcase-tests.el (pcase-tests-bug46786): New test.
2021-03-01 15:35:51 -05:00
..
artist.el Convert some textmodes menus to easy-menu-define 2021-02-22 02:24:25 +01:00
bib-mode.el Use lexical-binding in bib-mode.el 2021-02-10 06:36:09 +01:00
bibtex-style.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
bibtex.el Fix typos 2021-02-18 16:50:55 +01:00
conf-mode.el Fix up previous conf-mode.el and nroff-mode.el change slightly 2021-02-22 05:10:13 +01:00
css-mode.el Prefer defvar-local in textmodes/*.el 2021-01-31 20:08:25 +01:00
dns-mode.el Use lexical-binding in dns-mode.el 2021-02-10 18:44:43 +01:00
enriched.el Remove redundant :group args from textmodes/*.el 2021-02-14 12:54:36 +01:00
fill.el Improve fill-region-as-paragraph when there's a fill prefix 2021-01-10 15:04:48 +01:00
flyspell.el Prefer defvar-local in textmodes/*.el 2021-01-31 20:08:25 +01:00
ispell.el Remove redundant :group args from textmodes/*.el 2021-02-14 12:54:36 +01:00
less-css-mode.el Remove redundant requires of 'derived' 2021-01-31 04:30:48 +01:00
makeinfo.el Remove redundant :group args from textmodes/*.el 2021-02-14 12:54:36 +01:00
mhtml-mode.el * lisp/emacs-lisp/pcase.el: Fix bug#46786 2021-03-01 15:35:51 -05:00
nroff-mode.el Fix up previous conf-mode.el and nroff-mode.el change slightly 2021-02-22 05:10:13 +01:00
page-ext.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
page.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
paragraphs.el Remove redundant :group args from textmodes/*.el 2021-02-14 12:54:36 +01:00
picture.el Remove redundant :group args from textmodes/*.el 2021-02-14 12:54:36 +01:00
po.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
refbib.el Remove redundant :group args from textmodes/*.el 2021-02-14 12:54:36 +01:00
refer.el Remove redundant :group args from textmodes/*.el 2021-02-14 12:54:36 +01:00
refill.el Prefer defvar-local in textmodes/*.el 2021-01-31 20:08:25 +01:00
reftex-auc.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
reftex-cite.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
reftex-dcr.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
reftex-global.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
reftex-index.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
reftex-parse.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
reftex-ref.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
reftex-sel.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
reftex-toc.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
reftex-vars.el ; Update docstring 2021-01-12 20:42:03 +01:00
reftex.el Minor fixes after preloading easymenu 2021-02-27 20:04:41 +01:00
remember.el Remove redundant :group args from textmodes/*.el 2021-02-14 12:54:36 +01:00
rst.el Use declare instead of def-edebug-spec in most places 2021-02-12 16:08:01 -05:00
sgml-mode.el Convert some more menus to easy-menu-define 2021-02-23 03:51:12 +01:00
table.el Prefer defvar-local in textmodes/*.el 2021-01-31 20:08:25 +01:00
tex-mode.el Prefer defvar-local in textmodes/*.el 2021-01-31 20:08:25 +01:00
texinfmt.el Make texinfmt-version variable obsolete 2021-02-10 06:36:09 +01:00
texinfo.el Remove redundant :group args from textmodes/*.el 2021-02-14 12:54:36 +01:00
texnfo-upd.el Fix typos 2021-02-18 16:50:55 +01:00
text-mode.el Convert text-mode menu to easymenu 2021-02-28 01:51:31 +01:00
tildify.el Remove redundant :group args from textmodes/*.el 2021-02-14 12:54:36 +01:00
two-column.el Remove redundant :group args from textmodes/*.el 2021-02-14 12:54:36 +01:00
underline.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00