changeset 74907:4bbe5394a104

(fill-paragraph): Check for a minibuffer rather than for being in a minibuffer window.
author Richard M. Stallman <rms@gnu.org>
date Tue, 26 Dec 2006 02:54:41 +0000
parents 6d70d64d3b02
children 4fa148580feb
files lisp/textmodes/fill.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/textmodes/fill.el	Tue Dec 26 00:10:43 2006 +0000
+++ b/lisp/textmodes/fill.el	Tue Dec 26 02:54:41 2006 +0000
@@ -762,7 +762,7 @@
 		 (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