1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-29 08:31:35 -08:00
emacs/lisp/net
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
..
ange-ftp.el * lisp/net/ange-ftp.el (ange-ftp-ls): Handle several "--dired" switches. 2021-01-28 15:09:29 +01:00
browse-url.el Prefer defvar-local in net/*.el 2021-01-31 20:08:25 +01:00
dbus.el Add command 'dbus-monitor' 2021-02-05 14:32:41 +01:00
dictionary-connection.el Fix typos 2021-02-18 16:50:55 +01:00
dictionary.el Fix typos 2021-02-18 16:50:55 +01:00
dig.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
dns.el Fix hang when running dns-query with no working internet 2021-02-22 15:48:06 +01:00
eudc-bob.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
eudc-export.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
eudc-hotlist.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
eudc-vars.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
eudc.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
eudcb-bbdb.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
eudcb-ldap.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
eudcb-mab.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
eudcb-macos-contacts.el Fix typos 2021-02-18 16:50:55 +01:00
eww.el Mark up eww.el for correct modes 2021-02-14 14:08:56 +01:00
gnutls.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
goto-addr.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
hmac-def.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
hmac-md5.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
imap.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
ldap.el Use lexical-binding in a few more scattered files 2021-02-09 13:27:20 -05:00
mailcap.el Fix typos 2021-02-18 16:50:55 +01:00
mairix.el Use lexical-binding in a few more scattered files 2021-02-09 13:27:20 -05:00
net-utils.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
netrc.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
network-stream.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
newst-backend.el Remove redundant requires of 'derived' 2021-01-31 04:30:48 +01:00
newst-plainview.el Remove redundant requires of 'derived' 2021-01-31 04:30:48 +01:00
newst-reader.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
newst-ticker.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
newst-treeview.el Enable newsticker--group-shift-feed-(up|down) to move groups as well 2021-02-19 17:07:36 +01:00
newsticker.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
nsm.el Fix nsm-should-check for "google.com" failure 2021-01-12 18:53:48 +01:00
ntlm.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
pop3.el Fix quoting problem in pop3-uidl-save 2021-01-07 13:20:43 +01:00
puny.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
quickurl.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
rcirc.el Prefer defvar-local in net/*.el 2021-01-31 20:08:25 +01:00
rfc2104.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
rlogin.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
sasl-cram.el Use lexical-binding in sasl.el and add tests 2021-01-29 20:11:38 +01:00
sasl-digest.el Use lexical-binding in sasl.el and add tests 2021-01-29 20:11:38 +01:00
sasl-ntlm.el ; Silence byte-compiler 2021-01-29 21:06:02 +01:00
sasl-scram-rfc.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
sasl-scram-sha256.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
sasl.el ; Silence byte-compiler 2021-01-29 21:06:02 +01:00
secrets.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
shr-color.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
shr.el ; Finish recent rename of completion-* predicates. 2021-02-17 13:27:56 +00:00
sieve-manage.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
sieve-mode.el Fix indentation in sieve-mode 2021-01-27 07:04:08 +01:00
sieve.el Prefer declare over a put of list-indent-function. 2021-02-22 11:54:17 -05:00
snmp-mode.el Use lexical-binding in snmp-mode.el 2021-02-10 14:42:51 +01:00
soap-client.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
soap-inspect.el Prefer defvar-local in net/*.el 2021-01-31 20:08:25 +01:00
socks.el Use raw bytes for SOCKS 4 IP addresses 2021-02-20 13:03:12 +02:00
telnet.el Prefer defvar-local in net/*.el 2021-01-31 20:08:25 +01:00
tramp-adb.el Tramp code cleanup 2021-02-03 18:48:09 +01:00
tramp-archive.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
tramp-cache.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
tramp-cmds.el Further Tramp code cleanup 2021-02-17 18:04:35 +01:00
tramp-compat.el Tramp code cleanup 2021-02-03 18:48:09 +01:00
tramp-crypt.el Tramp code cleanup 2021-02-03 18:48:09 +01:00
tramp-ftp.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
tramp-gvfs.el Further Tramp code cleanup 2021-02-17 18:04:35 +01:00
tramp-integration.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
tramp-rclone.el Further Tramp code cleanup 2021-02-17 18:04:35 +01:00
tramp-sh.el Further Tramp code cleanup 2021-02-17 18:04:35 +01:00
tramp-smb.el Fix typos 2021-02-18 16:50:55 +01:00
tramp-sudoedit.el Further Tramp code cleanup 2021-02-17 18:04:35 +01:00
tramp-uu.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
tramp.el Further Tramp code cleanup 2021-02-17 18:04:35 +01:00
trampver.el Further Tramp code cleanup 2021-02-17 18:04:35 +01:00
webjump.el Avoid recommending Google 2021-01-28 19:36:12 +01:00
zeroconf.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00