]> git.eshelyaron.com Git - emacs.git/commit
Delete vc-deduce-fileset-1, taking advantage of set-buffer
authorDmitry Gutov <dmitry@gutov.dev>
Tue, 18 Jul 2023 00:49:44 +0000 (03:49 +0300)
committerDmitry Gutov <dmitry@gutov.dev>
Tue, 18 Jul 2023 00:49:44 +0000 (03:49 +0300)
commit2f48e488d4b2ce9e5261886f22c64c6892ac53ee
tree2ae7e12b0231bcd4ca25c76feb5fca77c5ab5fda
parentbec707da4dbcc64485ee5815d91f40d0babad3a9
Delete vc-deduce-fileset-1, taking advantage of set-buffer

* lisp/vc/vc.el (vc-deduce-fileset): Set buffer to the base
buffer, if any (bug#63949).  That's to replace the more complex
previous strategy.  vc-deduce-fileset is allowed to change the
current buffer, so why not do it for that case.
(vc-deduce-fileset-1): Delete, moving the meat of the logic back
to vc-deduce-fileset.
lisp/vc/vc.el