summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2014-01-11 13:27:57 -0500
committerKyle Meyer <kyle@kyleam.com>2014-01-11 17:46:25 -0500
commitdcef1bfaf5b0237dbdcbd2fe3e1231b801b8b166 (patch)
tree5da3f62e20ab916863b0387b8ed54e094b33eade
parent4e94add215a8ab01ab1d68ef2682c296d81e43c3 (diff)
downloademacs.d-dcef1bfaf5b0237dbdcbd2fe3e1231b801b8b166.tar.gz
Generate a unique buffer name for github patch
Otherwise, opening another patch will grab the same buffer.
-rw-r--r--init/km-gnus.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/init/km-gnus.el b/init/km-gnus.el
index bed321b..c226a12 100644
--- a/init/km-gnus.el
+++ b/init/km-gnus.el
@@ -110,7 +110,7 @@ A new buffer with the patch contents is opened in another window."
(km/gnus-end-of-article-buffer)
(search-backward "patch")
(let ((url (thing-at-point 'url))
- (patch-buffer (get-buffer-create "*gnus-github-patch*")))
+ (patch-buffer (generate-new-buffer "*gnus-github-patch*")))
(switch-to-buffer-other-window patch-buffer)
(url-insert-file-contents url)
(diff-mode)