# HG changeset patch # User Richard M. Stallman # Date 1167101681 0 # Node ID 4bbe5394a1049350bb70aba60873df9a8961e554 # Parent 6d70d64d3b02bb8171e7c988725247dce2094207 (fill-paragraph): Check for a minibuffer rather than for being in a minibuffer window. diff -r 6d70d64d3b02 -r 4bbe5394a104 lisp/textmodes/fill.el --- 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