# HG changeset patch # User Richard M. Stallman # Date 796614520 0 # Node ID edf66df6fbe97de01195753ce488a8e386367356 # Parent b9376f3450bbf1cf936fb682abad218839a61784 (choose-completion-string): Use active-minibuffer-window. diff -r b9376f3450bb -r edf66df6fbe9 lisp/simple.el --- a/lisp/simple.el Fri Mar 31 00:18:38 1995 +0000 +++ b/lisp/simple.el Fri Mar 31 01:48:40 1995 +0000 @@ -2729,8 +2729,9 @@ ;; If BUFFER is a minibuffer, barf unless it's the currently ;; active minibuffer. (if (and (string-match "\\` \\*Minibuf-[0-9]+\\*\\'" (buffer-name buffer)) - (or (not (minibuffer-window-active-p (minibuffer-window))) - (not (equal buffer (window-buffer (minibuffer-window)))))) + (or (not (active-minibuffer-window)) + (not (equal buffer + (window-buffer (active-minibuffer-window)))))) (error "Minibuffer is not active for completion") ;; Insert the completion into the buffer where completion was requested. (set-buffer buffer)