aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Aspinall2010-07-01 22:16:08 +0000
committerDavid Aspinall2010-07-01 22:16:08 +0000
commit16178f4ae79812ca50e704a580db9fa3bc6d0ad0 (patch)
tree1f01ad52166abbb1f953954ae16a8f48bdfdf562
parentbd8d9a63e9057856c0b3ec2ab7f2f2274893a12a (diff)
Replace uses of save-excursion with with-current-buffer. This
prevents a spurious warning from Emacs 23 (and is a minor efficiency improvement).
-rw-r--r--mmm/mmm-region.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/mmm/mmm-region.el b/mmm/mmm-region.el
index 15b71886..c6c7a5af 100644
--- a/mmm/mmm-region.el
+++ b/mmm/mmm-region.el
@@ -505,8 +505,7 @@ is non-nil, don't quit if the info is already there."
;; On errors, the temporary buffers don't get deleted, so here
;; we get rid of any old ones that may be hanging around.
(when (buffer-live-p (get-buffer mmm-temp-buffer-name))
- (save-excursion
- (set-buffer (get-buffer mmm-temp-buffer-name))
+ (with-current-buffer (get-buffer mmm-temp-buffer-name)
(set-buffer-modified-p nil)
(kill-buffer (current-buffer))))
;; Now make a new temporary buffer.