diff options
author | Jay Belanger <jay.p.belanger@gmail.com> | 2015-04-09 19:07:15 -0500 |
---|---|---|
committer | Jay Belanger <jay.p.belanger@gmail.com> | 2015-04-09 19:07:15 -0500 |
commit | 36c0acaedd5f4646276e4edd7cb94248473d075a (patch) | |
tree | 916fad9979e778a581e85b1d9d602e11f108864e /lisp | |
parent | e368697ce3647f1f34f4777d553604866c56ad25 (diff) | |
parent | 0679159c41a0c577cadf6b08f730e00f3c00931c (diff) | |
download | emacs-36c0acaedd5f4646276e4edd7cb94248473d075a.tar.gz |
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/vc/vc-dispatcher.el | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/lisp/vc/vc-dispatcher.el b/lisp/vc/vc-dispatcher.el index 4f8ec278896..8b3e888f700 100644 --- a/lisp/vc/vc-dispatcher.el +++ b/lisp/vc/vc-dispatcher.el @@ -604,11 +604,20 @@ NOT-URGENT means it is ok to continue if the user says not to save." (or (log-edit-empty-buffer-p) (and (local-variable-p 'vc-log-fileset) (not (equal vc-log-fileset fileset)))) - `((log-edit-listfun . (lambda () - ;; FIXME: Should expand the list - ;; for directories. - (mapcar 'file-relative-name - ',fileset))) + `((log-edit-listfun + . (lambda () + ;; FIXME: Should expand the list for directories. + ;; Is the above still relevant? If so, it needs a + ;; better explanation. -- dgutov + (let ((root (vc-root-dir))) + ;; Returns paths relative to the root, so that + ;; `log-edit-changelog-insert-entries' + ;; substitutes them in correctly later, even when + ;; `vc-checkin' was called from a file buffer, or + ;; a non-root VC-Dir buffer. + (mapcar + (lambda (file) (file-relative-name file root)) + ',fileset)))) (log-edit-diff-function . vc-diff) (log-edit-vc-backend . ,backend) (vc-log-fileset . ,fileset)) |