summaryrefslogtreecommitdiff
path: root/lisp/textmodes/refbib.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/textmodes/refbib.el')
-rw-r--r--lisp/textmodes/refbib.el11
1 files changed, 5 insertions, 6 deletions
diff --git a/lisp/textmodes/refbib.el b/lisp/textmodes/refbib.el
index ba1deca47dc..203a0fdbb72 100644
--- a/lisp/textmodes/refbib.el
+++ b/lisp/textmodes/refbib.el
@@ -163,12 +163,11 @@ This is in addition to the `r2b-capitalize-title-stop-words'.")
(defun r2b-capitalize-title (s)
- "Like `capitalize', but don't capitalize stop words, except the first."
- (with-current-buffer (get-buffer-create "$$$Scratch$$$")
- (erase-buffer)
- (insert s)
- (r2b-capitalize-title-region (point-min) (point-max))
- (buffer-string)))
+ "Like `capitalize', but don't capitalize stop words, except the first."
+ (with-temp-buffer
+ (insert s)
+ (r2b-capitalize-title-region (point-min) (point-max))
+ (buffer-string)))
;*********************************************************
(defun r2b-reset ()