comparison lisp/log-edit.el @ 87765:3348d88c1261

(log-edit): Doc fix.
author Thien-Thi Nguyen <ttn@gnuvola.org>
date Tue, 15 Jan 2008 15:01:53 +0000
parents 107ccd98fa12
children c70e45a7acfd ff99dcb2b31b
comparison
equal deleted inserted replaced
87764:a32f8d611bb7 87765:3348d88c1261
307 ;;;###autoload 307 ;;;###autoload
308 (defun log-edit (callback &optional setup params buffer &rest ignore) 308 (defun log-edit (callback &optional setup params buffer &rest ignore)
309 "Setup a buffer to enter a log message. 309 "Setup a buffer to enter a log message.
310 \\<log-edit-mode-map>The buffer will be put in `log-edit-mode'. 310 \\<log-edit-mode-map>The buffer will be put in `log-edit-mode'.
311 If SETUP is non-nil, the buffer is then erased and `log-edit-hook' is run. 311 If SETUP is non-nil, the buffer is then erased and `log-edit-hook' is run.
312 Mark and point will be set around the entire contents of the 312 Mark and point will be set around the entire contents of the buffer so
313 buffer so that it is easy to kill the contents of the buffer with \\[kill-region]. 313 that it is easy to kill the contents of the buffer with \\[kill-region].
314 Once you're done editing the message, pressing \\[log-edit-done] will call 314 Once you're done editing the message, pressing \\[log-edit-done] will call
315 `log-edit-done' which will end up calling CALLBACK to do the actual commit. 315 `log-edit-done' which will end up calling CALLBACK to do the actual commit.
316 PARAMS if non-nil is an alist. The keys for the alist can be: 316
317 `log-edit-listfun' and `log-edit-diff-function'. The associated 317 PARAMS if non-nil is an alist. Possible keys and associated values:
318 value for `log-edit-listfun' should be a function with not 318 `log-edit-listfun' -- function taking no arguments that returns the list of
319 arguments that returns the list of files that are concerned by 319 files that are concerned by the current operation (using relative names);
320 the current operation (using relative names). The associated 320 `log-edit-diff-function' -- function taking no arguments that
321 value for `log-edit-diff-function' should be a function with no 321 displays a diff of the files concerned by the current operation.
322 arguments that displays a diff of the files concerned by the current operation. 322
323 If BUFFER is non-nil `log-edit' will jump to that buffer, use it to edit the 323 If BUFFER is non-nil `log-edit' will jump to that buffer, use it to edit the
324 log message and go back to the current buffer when done. Otherwise, it 324 log message and go back to the current buffer when done. Otherwise, it
325 uses the current buffer." 325 uses the current buffer."
326 (let ((parent (current-buffer))) 326 (let ((parent (current-buffer)))
327 (if buffer (pop-to-buffer buffer)) 327 (if buffer (pop-to-buffer buffer))
328 (when (and log-edit-setup-invert (not (eq setup 'force))) 328 (when (and log-edit-setup-invert (not (eq setup 'force)))
329 (setq setup (not setup))) 329 (setq setup (not setup)))
330 (when setup (erase-buffer)) 330 (when setup (erase-buffer))