aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXinglu Chen <public@yoctocell.xyz>2021-06-24 11:59:11 +0200
committerXinglu Chen <public@yoctocell.xyz>2021-06-24 11:59:53 +0200
commitd03cda5836e5408d902422664ea23edd5dd7505d (patch)
treea5558de6311c6cf15970958b5d82191522e73712
parenteec990937a7fc2fdad8dd3e1041f7d397c98c8b7 (diff)
git-email: Generate unique buffer names.
* git-email.el (git-email-send-email): Generate unique buffer names to avoid collision. Signed-off-by: Xinglu Chen <public@yoctocell.xyz>
-rw-r--r--git-email.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/git-email.el b/git-email.el
index 0c58a59..cef8340 100644
--- a/git-email.el
+++ b/git-email.el
@@ -462,7 +462,8 @@ default behavior is to delete them after sending the message."
"Generate a buffer name that looks like this:
\"* git-email unsent patch to *** TO ADDRESS HERE *** *\""
- (concat "*git-email unsent patch to " address " *"))
+ (generate-new-buffer-name
+ (concat "*git-email unsent patch to " address " *" )))
;;;; Operate on emails