]> git.eshelyaron.com Git - emacs.git/commitdiff
(fill-paragraph): Check for a minibuffer
authorRichard M. Stallman <rms@gnu.org>
Tue, 26 Dec 2006 02:54:41 +0000 (02:54 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 26 Dec 2006 02:54:41 +0000 (02:54 +0000)
rather than for being in a minibuffer window.

lisp/textmodes/fill.el

index 3fec7a31b9fc728b7c1e0e220cc0328071a8c6dc..e3250a6f7105befb2e809d4202ade87d39136738 100644 (file)
@@ -762,7 +762,7 @@ If `fill-paragraph-function' is nil, return the `fill-prefix' used for filling."
                 (list (if current-prefix-arg 'full))))
   ;; First try fill-paragraph-function.
   (or (and (or fill-paragraph-function
-              (and (window-minibuffer-p (selected-window))
+              (and (minibufferp (current-buffer))
                    (= 1 (point-min))))
           (let ((function (or fill-paragraph-function
                               ;; In the minibuffer, don't count the width