aboutsummaryrefslogtreecommitdiff
path: root/mmm
diff options
context:
space:
mode:
authorDavid Aspinall2010-07-08 23:06:04 +0000
committerDavid Aspinall2010-07-08 23:06:04 +0000
commit3f3400e0981aed4e0c6785f737aae6330af12413 (patch)
tree65732eb29ec70bd411c0945c81b44fed65af14c9 /mmm
parent16178f4ae79812ca50e704a580db9fa3bc6d0ad0 (diff)
save-excursion -> with-temp-buffer
Diffstat (limited to 'mmm')
-rw-r--r--mmm/mmm-auto.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/mmm/mmm-auto.el b/mmm/mmm-auto.el
index 8fd59580..69e95a26 100644
--- a/mmm/mmm-auto.el
+++ b/mmm/mmm-auto.el
@@ -147,8 +147,7 @@ everything in `mmm-major-mode-hook' will be run."
(remove-hook 'post-command-hook 'mmm-check-changed-buffers)
(dolist (buffer mmm-changed-buffers-list)
(when (buffer-live-p buffer)
- (save-excursion
- (set-buffer buffer)
+ (with-current-buffer buffer
(mmm-run-major-mode-hook))))
(setq mmm-changed-buffers-list '()))