]> git.eshelyaron.com Git - emacs.git/commit
with-connection-local-variables: Avoid code duplication
authorStefan Monnier <monnier@iro.umontreal.ca>
Sat, 28 May 2022 16:02:15 +0000 (12:02 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sat, 28 May 2022 16:02:15 +0000 (12:02 -0400)
commit2301f13a677aa4ea05bfa2372bdc66c458c0ff38
tree82e30db37ca9ad9300db523ab65c8bf17f9dad46
parentf65536015b143571b81f8eb1f064d73014a86fec
with-connection-local-variables: Avoid code duplication

Move the bulk of the code of `with-connection-local-variables` into
a separate function, which both avoids duplicating that code but also
avoids duplicating the code passed as the body of
a `with-connection-local-variables`.  Also makes it easier to
debug the code, or change the implementation of
`with-connection-local-variables` without having to recompile all
the users.

* lisp/files-x.el (with-connection-local-variables-1): New function,
extracted from `with-connection-local-variables`.
(with-connection-local-variables): Use it.
lisp/files-x.el