From 32226619c5e563c384372b566000e5d37d783a61 Mon Sep 17 00:00:00 2001 From: Juanma Barranquero Date: Fri, 2 Oct 2009 03:48:36 +0000 Subject: Use `called-interactively-p' instead of `interactive-p'. --- lisp/help-fns.el | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'lisp/help-fns.el') diff --git a/lisp/help-fns.el b/lisp/help-fns.el index 53663d1aeeb..a080cd22ea0 100644 --- a/lisp/help-fns.el +++ b/lisp/help-fns.el @@ -52,7 +52,8 @@ fn (intern val))))) (if (null function) (message "You didn't specify a function") - (help-setup-xref (list #'describe-function function) (interactive-p)) + (help-setup-xref (list #'describe-function function) + (called-interactively-p 'interactive)) (save-excursion (with-help-window (help-buffer) (prin1 function) @@ -606,7 +607,7 @@ it is displayed along with the global value." (setq val (symbol-value variable) locus (variable-binding-locus variable))))) (help-setup-xref (list #'describe-variable variable buffer) - (interactive-p)) + (called-interactively-p 'interactive)) (with-help-window (help-buffer) (with-current-buffer buffer (prin1 variable) @@ -800,7 +801,8 @@ The descriptions are inserted in a help buffer, which is then displayed. BUFFER defaults to the current buffer." (interactive) (setq buffer (or buffer (current-buffer))) - (help-setup-xref (list #'describe-syntax buffer) (interactive-p)) + (help-setup-xref (list #'describe-syntax buffer) + (called-interactively-p 'interactive)) (with-help-window (help-buffer) (let ((table (with-current-buffer buffer (syntax-table)))) (with-current-buffer standard-output @@ -825,7 +827,8 @@ If BUFFER is non-nil, then describe BUFFER's category table instead. BUFFER should be a buffer or a buffer name." (interactive) (setq buffer (or buffer (current-buffer))) - (help-setup-xref (list #'describe-categories buffer) (interactive-p)) + (help-setup-xref (list #'describe-categories buffer) + (called-interactively-p 'interactive)) (with-help-window (help-buffer) (let* ((table (with-current-buffer buffer (category-table))) (docs (char-table-extra-slot table 0))) -- cgit v1.2.1