emacs-devel
[Top][All Lists]
Advanced

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

Re: display-buffer


From: Stefan Monnier
Subject: Re: display-buffer
Date: Thu, 03 Nov 2005 12:18:37 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

> As far as a workaround is concerned, I haven't found a good solution.  I do
> hacks like save the existing frame, display the buffer, then call
> select-frame-set-input-focus on the original frame.

What about the patch I'd suggested (see below)?
Does it do any good?


        Stefan


--- window.c    03 nov 2005 12:10:51 -0500      1.525
+++ window.c    03 nov 2005 12:10:23 -0500      
@@ -3473,7 +3473,13 @@
      we need to create a new frame.  */
   if (pop_up_frames || last_nonminibuf_frame == 0)
     {
+      Lisp_Object w = Fselected_window ();
+      struct gcpro gcpro1;
+      GCPRO1 (w);
       window = Fframe_selected_window (call0 (Vpop_up_frame_function));
+      if (Fwindow_live_p (w))
+       Fselect_window (w, Qt);
+      UNGCPRO;
       Fset_window_buffer (window, buffer, Qnil);
       return display_buffer_1 (window);
     }




reply via email to

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