diff options
author | Xue Fuqiao <xfq.free@gmail.com> | 2013-09-04 08:39:34 +0800 |
---|---|---|
committer | Xue Fuqiao <xfq.free@gmail.com> | 2013-09-04 08:39:34 +0800 |
commit | adf2fc4a01efe77d73cd52bc9173914ed56ff531 (patch) | |
tree | a5a280a5554a7bffeaf94fccae29fa3ac1a5d066 /lisp/emacs-lisp/easy-mmode.el | |
parent | 63191d9f2043d2e67657e85a7b3842805dd1dad6 (diff) | |
parent | 38726039b77db432989fed106c88e9f1aa463281 (diff) | |
download | emacs-adf2fc4a01efe77d73cd52bc9173914ed56ff531.tar.gz emacs-adf2fc4a01efe77d73cd52bc9173914ed56ff531.tar.bz2 emacs-adf2fc4a01efe77d73cd52bc9173914ed56ff531.zip |
Merge from mainline.
Diffstat (limited to 'lisp/emacs-lisp/easy-mmode.el')
-rw-r--r-- | lisp/emacs-lisp/easy-mmode.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/easy-mmode.el b/lisp/emacs-lisp/easy-mmode.el index f8fb65be4d3..1301b70bb85 100644 --- a/lisp/emacs-lisp/easy-mmode.el +++ b/lisp/emacs-lisp/easy-mmode.el @@ -604,7 +604,7 @@ BODY is executed after moving to the destination location." (goto-char (or ,(if endfun `(funcall #',endfun)) (point-max))) (user-error "No next %s" ,name)) (goto-char (match-beginning 0)) - (when (and (eq (current-buffer) (window-buffer (selected-window))) + (when (and (eq (current-buffer) (window-buffer)) (called-interactively-p 'interactive)) (let ((endpt (or (save-excursion ,(if endfun `(funcall #',endfun) |