emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Stop frames stealing eachothers' minibuffers!


From: martin rudalics
Subject: Re: Stop frames stealing eachothers' minibuffers!
Date: Sat, 21 Nov 2020 16:53:11 +0100

> Where do you see the failure happening with that quick and dirty patch?

Load (via --load) a file with the following contents:


(setq default-frame-alist '((minibuffer . nil)))

(setq enable-recursive-minibuffers t)

(defun foo ()
  (interactive)
  (read-from-minibuffer "...?")
  (insert (format "%s" (selected-frame))))

(global-set-key [(control meta +)] 'foo)


Now type C-x 5 2 followed by C-M-+ in one of the normal frames.  Then
type C-M-+ in the other normal frame and type RET in the minibuffer
frame.  Here I get in *scratch*

#<frame *Minibuf-2* 0x313ab10>

and only answering the second prompt gets me a normal frame inserted.

Emacs 27 after any of these prompts inserts the frame selected at the
time I typed C-M-+ which is TRT.

As I mentioned earlier in this thread, such tribulations are the price
we have to pay for providing non-modal dialogues.

martin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]