]> git.eshelyaron.com Git - emacs.git/commit
Improve vc--add-line, vc--remove-regexp
authorWolfgang Scherer <wolfgang.scherer@gmx.de>
Mon, 26 Aug 2019 22:45:48 +0000 (00:45 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Tue, 24 Dec 2019 22:33:36 +0000 (00:33 +0200)
commitc3be58a8f599de32e15fd350dc2b8730a13c1923
treeadbdd94e90b19a423c4201237ffe5099d6d6d5f7
parent9ea9ac9a61067995a3f7a38f62766f32a8c38bb2
Improve vc--add-line, vc--remove-regexp

* lisp/vc/vc.el (vc--add-line): Create file if it does not exist.
Use existing buffer to avoid discrepancies with filesytem.  Make sure
that the file ends with a newline.
(vc--remove-line): Do not create file if it does not exist.  Use
existing buffer to avoid discrepancies with filesytem. (bug#37185)
lisp/vc/vc.el