]> git.eshelyaron.com Git - emacs.git/commitdiff
(browse-url-maybe-new-window): Use called-interactively-p.
authorRichard M. Stallman <rms@gnu.org>
Thu, 4 Nov 2004 10:15:37 +0000 (10:15 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 4 Nov 2004 10:15:37 +0000 (10:15 +0000)
lisp/net/browse-url.el

index 1dbd97f0073a403738593e12ce6eb7a3167cccb3..c5a2218e36eba2338cb62b9f693fb271bf31d334 100644 (file)
@@ -596,10 +596,11 @@ for use in `interactive'."
        (not (eq (null browse-url-new-window-flag)
                 (null current-prefix-arg)))))
 
-;; interactive-p needs to be called at a function's top-level, hence
-;; the macro.
+;; called-interactive-p needs to be called at a function's top-level, hence
+;; this macro.  We use that rather than interactive-p because
+;; use in a keyboard macro should not change this behavior.
 (defmacro browse-url-maybe-new-window (arg)
-  `(if (not (interactive-p))
+  `(if (or noninteractive (not (called-interactively-p)))
        ,arg
      browse-url-new-window-flag))