]> git.eshelyaron.com Git - emacs.git/commit
Add helpers to dynamically assign connection-local values
authorJim Porter <jporterbugs@gmail.com>
Wed, 12 Oct 2022 05:11:04 +0000 (22:11 -0700)
committerJim Porter <jporterbugs@gmail.com>
Tue, 18 Oct 2022 01:48:52 +0000 (18:48 -0700)
commit3cc356abfef8294abcb91dc421e3c63a561a11b4
tree79fd49b558b5880a04c41461794d380b682d93f1
parent1beb389e472ab8132b478c9f24dd0ab6b7398670
Add helpers to dynamically assign connection-local values

* lisp/files-x.el (connection-local-criteria)
(connection-local-profile-name-for-setq): New variables.
(with-connection-local-variables-1): ... let-bind them here.
(connection-local-update-profile-variables)
(connection-local-profile-name-for-criteria): New functions.
(with-connection-local-application-variables, setq-connection-local):
New macros.

* test/lisp/files-x-tests.el: Require 'tramp-integration'
(files-x-test--variable5, remote-lazy-var): New variables.
(files-x-test-hack-connection-local-variables-apply): Expand checks.
(files-x-test-with-connection-local-variables): Remove
'hack-connection-local-variables-apply' check (it belongs in the above
test), and expand some other checks.
(files-x-test--get-lazy-var, files-x-test--set-lazy-var): New
functions.
(files-x-test-connection-local-update-profile-variables)
(files-x-test-setq-connection-local): New tests.

* doc/lispref/variables.texi (Connection Local Variables): Split into
two subsections and document the new features.

* etc/NEWS: Announce 'setq-connection-local'.
doc/lispref/variables.texi
etc/NEWS
lisp/files-x.el
test/lisp/files-x-tests.el