From c98f736548d205b78f2a9c11543da6c7d8d99759 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Tue, 26 Dec 2006 02:54:41 +0000 Subject: [PATCH] (fill-paragraph): Check for a minibuffer rather than for being in a minibuffer window. --- lisp/textmodes/fill.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/textmodes/fill.el b/lisp/textmodes/fill.el index 3fec7a31b9f..e3250a6f710 100644 --- a/lisp/textmodes/fill.el +++ b/lisp/textmodes/fill.el @@ -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 -- 2.39.2