X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/7b1019e2781472c793d0bf74e2b9ee17894270b8..84eb0351d8be4811897c8cf62a69757ff5d14001:/lisp/winner.el diff --git a/lisp/winner.el b/lisp/winner.el index 663bd7ed19..e5855ad8aa 100644 --- a/lisp/winner.el +++ b/lisp/winner.el @@ -1,7 +1,6 @@ ;;; winner.el --- Restore old window configurations -;; Copyright (C) 1997, 1998, 2001, 2002, 2003, 2004, -;; 2005, 2006, 2007, 2008 Free Software Foundation. Inc. +;; Copyright (C) 1997-1998, 2001-2011 Free Software Foundation. Inc. ;; Author: Ivar Rummelhoff ;; Created: 27 Feb 1997 @@ -387,7 +386,8 @@ With arg, turn Winner mode on if and only if arg is positive." (setq winner-modified-list (frame-list)) (winner-save-old-configurations) (run-hooks 'winner-mode-hook) - (when (interactive-p) (message "Winner mode enabled"))) + (when (called-interactively-p 'interactive) + (message "Winner mode enabled"))) ;; Turn mode off (winner-mode (setq winner-mode nil) @@ -396,7 +396,8 @@ With arg, turn Winner mode on if and only if arg is positive." (remove-hook 'post-command-hook 'winner-save-conditionally) (remove-hook 'minibuffer-setup-hook 'winner-save-unconditionally) (run-hooks 'winner-mode-leave-hook) - (when (interactive-p) (message "Winner mode disabled")))))) + (when (called-interactively-p 'interactive) + (message "Winner mode disabled")))))) ;; Inspired by undo (simple.el) @@ -471,5 +472,4 @@ In other words, \"undo\" changes in window configuration." minor-mode-map-alist)) (provide 'winner) -;; arch-tag: 686d1c1b-010e-42ca-a192-b5685112418f ;;; winner.el ends here