aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/texi-docstring-magic.el
diff options
context:
space:
mode:
authorGravatar David Aspinall <da@inf.ed.ac.uk>2010-07-08 23:06:04 +0000
committerGravatar David Aspinall <da@inf.ed.ac.uk>2010-07-08 23:06:04 +0000
commit3f3400e0981aed4e0c6785f737aae6330af12413 (patch)
tree65732eb29ec70bd411c0945c81b44fed65af14c9 /lib/texi-docstring-magic.el
parent16178f4ae79812ca50e704a580db9fa3bc6d0ad0 (diff)
save-excursion -> with-temp-buffer
Diffstat (limited to 'lib/texi-docstring-magic.el')
-rw-r--r--lib/texi-docstring-magic.el7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/texi-docstring-magic.el b/lib/texi-docstring-magic.el
index d95f12fc..d9791cfd 100644
--- a/lib/texi-docstring-magic.el
+++ b/lib/texi-docstring-magic.el
@@ -192,13 +192,10 @@ including any whitespace included to delimit matches.")
(defun texi-docstring-magic-untabify (string)
"Convert tabs in STRING into multiple spaces."
- (save-excursion
- (set-buffer
- (get-buffer-create " texi-docstring-magic-untabify"))
+ (with-temp-buffer
(insert string)
(untabify (point-min) (point-max))
- (prog1 (buffer-string)
- (kill-buffer (current-buffer)))))
+ (buffer-string)))
(defun texi-docstring-magic-munge-docstring (docstring args)
"Markup DOCSTRING for texi according to regexp matches."