diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ebuild-mode.el | 5 |
2 files changed, 8 insertions, 2 deletions
@@ -1,3 +1,8 @@ +2023-09-04 Ulrich Müller <ulm@gentoo.org> + + * ebuild-mode.el (ebuild-mode-insert-tag-line): Make it work when + comment-start is nil or empty. + 2023-09-01 Ulrich Müller <ulm@gentoo.org> * ebuild-mode.el (ebuild-mode-insert-skeleton): Add S and BDEPEND. diff --git a/ebuild-mode.el b/ebuild-mode.el index 7c8d461..e014b43 100644 --- a/ebuild-mode.el +++ b/ebuild-mode.el @@ -857,8 +857,9 @@ This is intended for package.mask and similar configuration files in a Gentoo profile." (interactive) (beginning-of-line) - (insert (format "%s %s <%s> (%s)\n" - comment-start + (insert (concat comment-start + (if (/= 0 (length comment-start)) " ")) + (format "%s <%s> (%s)\n" ebuild-mode-full-name ebuild-mode-mail-address (ebuild-mode-time-string "%Y-%m-%d")))) |