emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

a proposal for log-edit-insert-message-template


From: Uwe Brauer
Subject: a proposal for log-edit-insert-message-template
Date: Fri, 24 Jun 2022 17:41:51 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Hi 

Currently 

(defun log-edit-insert-message-template ()
  "Insert the default VC commit log template with Summary and Author."
  (interactive)
  (when (or (called-interactively-p 'interactive)
            (log-edit-empty-buffer-p))
    (insert "Summary: ")
    (when log-edit-setup-add-author
      (insert "\nAuthor: "))
    (insert "\n\n")
    (message-position-point)))

But that results in, for example

Summary: 
Author: 
* my-vc-addons.el (log-edit-insert-message-template): 391 change
the orden

Which looks for me inconvenient. 

What's about 


(defun log-edit-insert-message-template ()
  "Insert the default VC commit log template with Summary and Author."
  (interactive)
  (when (or (called-interactively-p 'interactive)
            (log-edit-empty-buffer-p))
    (when log-edit-setup-add-author
      (insert "Author: \n"))
    (insert "Summary: \n")
    (message-position-point)))

which leads to

Author: 
Summary: 
* my-vc-addons.el (log-edit-insert-message-template): 391 change
the orden

And that looks more convenient to me.



-- 
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine. 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]