diff options
| author | Juri Linkov | 2013-12-19 23:10:41 +0200 |
|---|---|---|
| committer | Juri Linkov | 2013-12-19 23:10:41 +0200 |
| commit | 3d6e95e7673bf1352a439cdd705eae00e65a0542 (patch) | |
| tree | be8b35651d241210071cb143ad60aa003920198f | |
| parent | b41594fd4d77194a6781ee5a84e01142ad1b72e7 (diff) | |
| download | emacs-3d6e95e7673bf1352a439cdd705eae00e65a0542.tar.gz emacs-3d6e95e7673bf1352a439cdd705eae00e65a0542.zip | |
* lisp/vc/log-edit.el (log-edit-insert-filenames-without-changelog): New function.
(log-edit-hook): Add it to :options.
Fixes: debbugs:16170
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/vc/log-edit.el | 16 |
2 files changed, 22 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 636617595cb..6db17ab66c6 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,11 @@ | |||
| 1 | 2013-12-19 Juri Linkov <juri@jurta.org> | 1 | 2013-12-19 Juri Linkov <juri@jurta.org> |
| 2 | 2 | ||
| 3 | * vc/log-edit.el (log-edit-insert-filenames-without-changelog): | ||
| 4 | New function. | ||
| 5 | (log-edit-hook): Add it to :options. (Bug#16170) | ||
| 6 | |||
| 7 | 2013-12-19 Juri Linkov <juri@jurta.org> | ||
| 8 | |||
| 3 | * simple.el (eval-expression-print-format): Don't check for | 9 | * simple.el (eval-expression-print-format): Don't check for |
| 4 | command names and the last command. Always display additional | 10 | command names and the last command. Always display additional |
| 5 | formats of the integer result in the echo area, and insert them | 11 | formats of the integer result in the echo area, and insert them |
diff --git a/lisp/vc/log-edit.el b/lisp/vc/log-edit.el index 2ee60a872e4..791215b8000 100644 --- a/lisp/vc/log-edit.el +++ b/lisp/vc/log-edit.el | |||
| @@ -137,6 +137,7 @@ its SETUP argument is non-nil." | |||
| 137 | log-edit-insert-cvs-template | 137 | log-edit-insert-cvs-template |
| 138 | log-edit-insert-changelog | 138 | log-edit-insert-changelog |
| 139 | log-edit-insert-filenames | 139 | log-edit-insert-filenames |
| 140 | log-edit-insert-filenames-without-changelog | ||
| 140 | log-edit-show-files))) | 141 | log-edit-show-files))) |
| 141 | 142 | ||
| 142 | (defcustom log-edit-mode-hook (if (boundp 'vc-log-mode-hook) vc-log-mode-hook) | 143 | (defcustom log-edit-mode-hook (if (boundp 'vc-log-mode-hook) vc-log-mode-hook) |
| @@ -664,6 +665,21 @@ can thus take some time." | |||
| 664 | (insert "Affected files: \n" | 665 | (insert "Affected files: \n" |
| 665 | (mapconcat 'identity (log-edit-files) " \n"))) | 666 | (mapconcat 'identity (log-edit-files) " \n"))) |
| 666 | 667 | ||
| 668 | (defun log-edit-insert-filenames-without-changelog () | ||
| 669 | "Insert the list of files that have no ChangeLog message." | ||
| 670 | (interactive) | ||
| 671 | (let ((files | ||
| 672 | (delq nil | ||
| 673 | (mapcar | ||
| 674 | (lambda (file) | ||
| 675 | (unless (or (cdr-safe (log-edit-changelog-entries file)) | ||
| 676 | (equal (file-name-nondirectory file) "ChangeLog")) | ||
| 677 | file)) | ||
| 678 | (log-edit-files))))) | ||
| 679 | (when files | ||
| 680 | (goto-char (point-max)) | ||
| 681 | (insert (mapconcat 'identity files ", ") ": ")))) | ||
| 682 | |||
| 667 | (defun log-edit-add-to-changelog () | 683 | (defun log-edit-add-to-changelog () |
| 668 | "Insert this log message into the appropriate ChangeLog file." | 684 | "Insert this log message into the appropriate ChangeLog file." |
| 669 | (interactive) | 685 | (interactive) |