diff options
author | 2023-09-04 20:22:26 +0200 | |
---|---|---|
committer | 2023-09-04 20:22:26 +0200 | |
commit | 654644b5262fbe7ee7a9a1322ddd91e56674d32f (patch) | |
tree | b2ea2e6f6ac27ace9004fb87a3963a052550763a | |
parent | Add S and BDEPEND to ebuild skeleton (diff) | |
download | ebuild-mode-654644b5262fbe7ee7a9a1322ddd91e56674d32f.tar.gz ebuild-mode-654644b5262fbe7ee7a9a1322ddd91e56674d32f.tar.bz2 ebuild-mode-654644b5262fbe7ee7a9a1322ddd91e56674d32f.zip |
Fix ebuild-mode-insert-tag-line
* ebuild-mode.el (ebuild-mode-insert-tag-line): Make it work when
comment-start is nil or empty.
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
-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")))) |