diff options
author | Ulrich Müller <ulm@gentoo.org> | 2022-01-16 12:03:30 +0100 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2022-01-16 12:03:30 +0100 |
commit | 4aa5264a404d54f791df6d52aaa5199bc51058f6 (patch) | |
tree | ede5fa3ac7842733805ea2acb2bfc4a83e3d9c2f | |
parent | Document ebuild-repo-mode (diff) | |
download | ebuild-mode-4aa5264a404d54f791df6d52aaa5199bc51058f6.tar.gz ebuild-mode-4aa5264a404d54f791df6d52aaa5199bc51058f6.tar.bz2 ebuild-mode-4aa5264a404d54f791df6d52aaa5199bc51058f6.zip |
Better default for author in gentoo-newsitem-mode and glep-mode
* gentoo-newsitem-mode.el (gentoo-newsitem-insert-skeleton):
Use ebuild-mode-full-name and ebuild-mode-mail-address as default
author information.
* glep-mode.el (glep-mode-insert-skeleton): Ditto.
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | gentoo-newsitem-mode.el | 5 | ||||
-rw-r--r-- | glep-mode.el | 5 |
3 files changed, 13 insertions, 2 deletions
@@ -1,5 +1,10 @@ 2022-01-16 Ulrich Müller <ulm@gentoo.org> + * gentoo-newsitem-mode.el (gentoo-newsitem-insert-skeleton): + Use ebuild-mode-full-name and ebuild-mode-mail-address as default + author information. + * glep-mode.el (glep-mode-insert-skeleton): Ditto. + * ebuild-mode.texi (ebuild-repo-mode): Document it. * ebuild-mode.texi (ebuild-mode): No longer mention the C-c C-a diff --git a/gentoo-newsitem-mode.el b/gentoo-newsitem-mode.el index 9951e7c..d63e3cf 100644 --- a/gentoo-newsitem-mode.el +++ b/gentoo-newsitem-mode.el @@ -61,7 +61,10 @@ "Title: " (skeleton-read "Title: ") "\n" "Author: " (skeleton-read "Author's real name and e-mail address: " - (concat user-full-name " <" user-mail-address ">")) + (progn + (require 'ebuild-mode) + (concat ebuild-mode-full-name + " <" ebuild-mode-mail-address ">"))) "\n" ((skeleton-read "Further author (null string to terminate): ") "Author: " str "\n") diff --git a/glep-mode.el b/glep-mode.el index 0791040..4d49db8 100644 --- a/glep-mode.el +++ b/glep-mode.el @@ -206,7 +206,10 @@ Calls the external \"glep\" command." "Title: " (skeleton-read "Title: ") "\n" "Author: " (skeleton-read "Author's real name and e-mail address: " - (concat user-full-name " <" user-mail-address ">")) + (progn + (require 'ebuild-mode) + (concat ebuild-mode-full-name + " <" ebuild-mode-mail-address ">"))) "\n" "Type: " (completing-read |