diff options
author | Juanma Barranquero <lekktu@gmail.com> | 2009-10-02 03:48:36 +0000 |
---|---|---|
committer | Juanma Barranquero <lekktu@gmail.com> | 2009-10-02 03:48:36 +0000 |
commit | 32226619c5e563c384372b566000e5d37d783a61 (patch) | |
tree | 216af4221d2ba868b45162679ce3a0462985c422 /lisp/savehist.el | |
parent | 12a3c28c787e23801f40ea557a5c00b538968a52 (diff) | |
download | emacs-32226619c5e563c384372b566000e5d37d783a61.tar.gz |
Use `called-interactively-p' instead of `interactive-p'.
Diffstat (limited to 'lisp/savehist.el')
-rw-r--r-- | lisp/savehist.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/savehist.el b/lisp/savehist.el index d05a29f6901..8dd308610ac 100644 --- a/lisp/savehist.el +++ b/lisp/savehist.el @@ -203,7 +203,7 @@ which is probably undesirable." ;; coding cookie to convey that information. That way, if ;; the user changes the value of savehist-coding-system, ;; we can still correctly load the old file. - (load savehist-file nil (not (interactive-p))) + (load savehist-file nil (not (called-interactively-p 'interactive))) (setq savehist-loaded t)) (error ;; Don't install the mode if reading failed. Doing so would @@ -351,7 +351,7 @@ If AUTO-SAVE is non-nil, compare the saved contents to the one last saved, (let ((file-precious-flag t) (coding-system-for-write savehist-coding-system)) (write-region (point-min) (point-max) savehist-file nil - (unless (interactive-p) 'quiet))) + (unless (called-interactively-p 'interactive) 'quiet))) (when savehist-file-modes (set-file-modes savehist-file savehist-file-modes)) (setq savehist-last-checksum checksum))))) |