diff options
| author | João Távora | 2018-07-21 15:54:21 +0100 |
|---|---|---|
| committer | João Távora | 2018-07-21 16:02:57 +0100 |
| commit | f96fe57fb76df8e7282f266d42a0d471780e1d75 (patch) | |
| tree | 606f03b770613c87f7a27345105a1afdaacaa83f /doc | |
| parent | 6eac401c238b9c98550c645f3c60df9a9668dc61 (diff) | |
| download | emacs-f96fe57fb76df8e7282f266d42a0d471780e1d75.tar.gz emacs-f96fe57fb76df8e7282f266d42a0d471780e1d75.zip | |
New option to make 'C-x 4 a' use file-less ChangeLog buffers
* doc/emacs/maintaining.texi (Change Log Commands): Document
add-log-dont-create-changelog-file.
* etc/NEWS (Change Logs Mode): Mention
add-log-dont-create-changelog-file.
* lisp/vc/add-log.el (add-log-file-name): Add comment.
(add-log-dont-create-changelog-file): New variable.
(add-log--pseudo-changelog-buffer-name)
(add-log--changelog-buffer-p): New helpers.
(add-log-find-changelog-buffer): New function.
(add-log--pseudo-changelog-buffer-name): Respect
add-log-dont-create-changelog-file.
* lisp/vc/log-edit.el (log-edit-changelog-entries): Use
add-log-find-changelog-buffer.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/emacs/maintaining.texi | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/doc/emacs/maintaining.texi b/doc/emacs/maintaining.texi index 024fd9728c5..c59978ebbe2 100644 --- a/doc/emacs/maintaining.texi +++ b/doc/emacs/maintaining.texi | |||
| @@ -1655,10 +1655,18 @@ not just to the next change log entry. You can also use | |||
| 1655 | log files into a buffer in Change Log Mode, preserving the date | 1655 | log files into a buffer in Change Log Mode, preserving the date |
| 1656 | ordering of entries. | 1656 | ordering of entries. |
| 1657 | 1657 | ||
| 1658 | @vindex add-log-dont-create-changelog-file | ||
| 1658 | Version control systems are another way to keep track of changes in | 1659 | Version control systems are another way to keep track of changes in |
| 1659 | your program and keep a change log. In the VC log buffer, typing | 1660 | your program and keep a change log. In these situations, you may not |
| 1660 | @kbd{C-c C-a} (@code{log-edit-insert-changelog}) inserts the relevant | 1661 | want to keep a separate versioned change log file. If |
| 1661 | change log entry, if one exists. @xref{Log Buffer}. | 1662 | @code{add-log-dont-create-changelog-file} is non-@code{nil}, commands |
| 1663 | like @kbd{C-x 4 a} (@code{add-change-log-entry-other-window}) will | ||
| 1664 | record changes in a suitably named temporary buffer instead of a file, | ||
| 1665 | unless such a file already exists. | ||
| 1666 | |||
| 1667 | In either case, you can type @kbd{C-c C-a} | ||
| 1668 | (@code{log-edit-insert-changelog}) in the VC Log buffer to insert the | ||
| 1669 | relevant change log entries, if they exist. @xref{Log Buffer}. | ||
| 1662 | 1670 | ||
| 1663 | @node Format of ChangeLog | 1671 | @node Format of ChangeLog |
| 1664 | @subsection Format of ChangeLog | 1672 | @subsection Format of ChangeLog |