all repos — archive/dotfiles @ fd0c985d2c2b1f653956dfe8d8633f5165f661ad

Superseded by nixfiles

Emacs: Fix called-interactively-p warnings
Alan Pearce alan@alanpearce.uk
Tue, 07 Feb 2017 15:40:32 +0100
commit

fd0c985d2c2b1f653956dfe8d8633f5165f661ad

parent

53128ff702dc1e3d90f2f5eecca505d9eb360230

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M tag-emacs/emacs.d/init.orgtag-emacs/emacs.d/init.org
@@ -151,13 +151,13 @@             (defun show-mode-line ()
               (interactive)
               (setq mode-line-format mode-line-default-format)
-              (when (called-interactively-p)
+              (when (called-interactively-p 'interactive)
                 (setq-default mode-line-format mode-line-default-format)
                 (setq mode-line-default-hidden nil)))
             (defun hide-mode-line ()
               (interactive)
               (setq mode-line-format nil)
-              (when (called-interactively-p)
+              (when (called-interactively-p 'interactive)
                 (setq-default mode-line-format nil)
                 (setq mode-line-default-hidden t)))