Mercurial > emacs
diff lisp/textmodes/fill.el @ 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 | 9ac7844e1b6e |
children | 7c208589663c |
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