1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00
emacs/lisp/cedet/ede
Stefan Monnier 8d5dfafab7 Prefer declare over a put of list-indent-function.
While at it, I enabled lexical-binding in the affected files.

* lisp/cedet/semantic/sb.el: Enable lexical-binding.
(semantic-sb-with-tag-buffer): Use `declare`.

* lisp/cedet/semantic/bovine/el.el: Enable lexical-binding.
(semantic-elisp-setup-form-parser): Use `declare`.

* lisp/emacs-lisp/ert.el:
* lisp/emacs-lisp/ert-x.el: Remove redundant `put`.

* lisp/emulation/cua-rect.el: Enable lexical-binding.
(cua--rectangle-operation, cua--rectangle-aux-replace): Use `declare`.

* lisp/mh-e/mh-acros.el: Enable lexical-binding.
(mh-do-in-gnu-emacs, mh-do-in-xemacs, mh-funcall-if-exists, defun-mh)
(defmacro-mh, with-mh-folder-updating, mh-in-show-buffer)
(mh-do-at-event-location, mh-iterate-on-messages-in-region)
(mh-iterate-on-range): Use `declare`.

* lisp/mh-e/mh-compat.el: Enable lexical-binding.
(mh-flet): Use `declare`.

* lisp/mh-e/mh-e.el: Enable lexical-binding.
(defgroup-mh, defcustom-mh, defface-mh): Use `declare`.

* lisp/net/sieve.el: Enable lexical-binding.  Remove redundant :group args.
(sieve-activate, sieve-remove, sieve-edit-script): Remove unused arg
from the interactive spec.
(sieve-deactivate-all): Remove unused var `name`.
(sieve-change-region): Use `declare`.

* lisp/obsolete/fast-lock.el: Enable lexical-binding.
Remove redundant :group args.  Remove XEmacs compat code.
(save-buffer-state): Remove macro.
(fast-lock-add-properties): Use `with-silent-modifications` instead.

* lisp/obsolete/lazy-lock.el: Enable lexical-binding.
Remove redundant :group args.
(do-while): Use `declare`.
(save-buffer-state): Remove macro.
(lazy-lock-fontify-rest-after-change, lazy-lock-defer-line-after-change)
(lazy-lock-defer-rest-after-change, lazy-lock-after-fontify-buffer)
(lazy-lock-after-unfontify-buffer, lazy-lock-fontify-region):
Use `with-silent-modifications` instead.

* lisp/obsolete/pgg.el: Enable lexical-binding.  Remove XEmacs compat code.
(pgg-save-coding-system, pgg-as-lbt, pgg-process-when-success):
Use `declare`.
(pgg-add-passphrase-to-cache): Remove unused var `new-timer`.
(pgg-decrypt-region): Remove unused var `buf`.

* lisp/org/org-agenda.el (org-let, org-let2): Move from org-macs and
use `declare`.

* lisp/org/org-macs.el (org-let, org-let2): Move these functions that
are inherently harmful to your karma to the only package that uses them.
(org-scroll): Use `pcase` to avoid `eval` and use more readable syntax
for those integers standing for events.

* lisp/progmodes/antlr-mode.el: Enable lexical-binding.
(save-buffer-state-x): Use `declare` and `with-silent-modifications`.

* lisp/international/mule-util.el (with-coding-priority):
* lisp/cedet/ede/proj-comp.el (proj-comp-insert-variable-once):
* lisp/org/org-element.el (org-element-map):
* test/lisp/emacs-lisp/bytecomp-tests.el (test-byte-comp-compile-and-load):
* test/lisp/emacs-lisp/generator-tests.el (cps-testcase): Use `declare`.
2021-02-22 11:54:17 -05:00
..
auto.el cedet/ede/auto.el: 2021-01-11 16:20:57 -05:00
autoconf-edit.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
base.el Use declare instead of def-edebug-spec in most places 2021-02-12 16:08:01 -05:00
config.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
cpp-root.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
custom.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
detect.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
dired.el Use lexical-binding in various ede files 2021-02-11 21:41:58 +01:00
emacs.el Drop XEmacs and SXEmacs support from EDE 2021-02-11 21:41:58 +01:00
files.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
generic.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
linux.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
locate.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
make.el Use lexical-binding in various ede files 2021-02-11 21:41:58 +01:00
makefile-edit.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
pconf.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
pmake.el Use declare instead of def-edebug-spec in most places 2021-02-12 16:08:01 -05:00
proj-archive.el Use lexical-binding in various ede files 2021-02-11 21:41:58 +01:00
proj-aux.el Use lexical-binding in various ede files 2021-02-11 21:41:58 +01:00
proj-comp.el Prefer declare over a put of list-indent-function. 2021-02-22 11:54:17 -05:00
proj-elisp.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
proj-info.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
proj-misc.el Use lexical-binding in various ede files 2021-02-11 21:41:58 +01:00
proj-obj.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
proj-prog.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
proj-scheme.el Use lexical-binding in various ede files 2021-02-11 21:41:58 +01:00
proj-shared.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
proj.el * lisp/cedet/ede/proj.el: Enable Project files to load 2021-01-18 12:49:11 -05:00
project-am.el * lisp/cedet/{semantic/scope.el,ede/project-am.el}: Use lexical-scoping 2021-02-09 12:56:19 -05:00
shell.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
simple.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
source.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
speedbar.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
srecode.el Use lexical-binding in various ede files 2021-02-11 21:41:58 +01:00
system.el Use lexical-binding in various ede files 2021-02-11 21:41:58 +01:00
util.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00