summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--ebuild-mode.el5
2 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index b76a390..dbc4c82 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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"))))