unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#6068: Please learn Emacs to distinguish between visible and active windows
@ 2010-04-30 19:39 Lennart Borgman
  2021-06-03  9:00 ` bug#6068: make-frame-visible but not selected Lars Ingebrigtsen
  0 siblings, 1 reply; 5+ messages in thread
From: Lennart Borgman @ 2010-04-30 19:39 UTC (permalink / raw)
  To: 6068

The function make-frame-visible also makes the frame active. That is
not always what you want.

Could we please add a new parameter ACTIVATE to this function and let
it default to t for interactive use?

The changes needed to support this seems small. The function
x_make_frame_visible needs a new parameter ACTIVATE  to support this.
(On w32 it is a very small change, but I do not know about X.)

The reason to support it is that it makes it possible to make better
in place completion (compare
http://www.emacswiki.org/emacs/CompanyMode). The current
implementations tends to use overlays. This solution breaks down
currently when there are invisible parts in the buffer. I think a
popup frame would be easier.







^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#6068: make-frame-visible but not selected
  2010-04-30 19:39 bug#6068: Please learn Emacs to distinguish between visible and active windows Lennart Borgman
@ 2021-06-03  9:00 ` Lars Ingebrigtsen
  2021-07-02 11:19   ` Lars Ingebrigtsen
  0 siblings, 1 reply; 5+ messages in thread
From: Lars Ingebrigtsen @ 2021-06-03  9:00 UTC (permalink / raw)
  To: Lennart Borgman; +Cc: 6068

Lennart Borgman <lennart.borgman@gmail.com> writes:

> The function make-frame-visible also makes the frame active. That is
> not always what you want.

(I'm going through old bug reports that unfortunately got no response at
the time.)

I tried this in Emacs 28.  I did a

(setq frame (window-frame))

in one frame and then

(make-frame-visible frame)

from a different frame, and Emacs didn't give the first frame focus.  So
I seem to be unable to reproduce this (under Debian/bullseye, under
Gnome Shell).

Are you still seeing this issue in recent Emacs versions?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#6068: make-frame-visible but not selected
  2021-06-03  9:00 ` bug#6068: make-frame-visible but not selected Lars Ingebrigtsen
@ 2021-07-02 11:19   ` Lars Ingebrigtsen
  2021-07-02 12:25     ` martin rudalics
  0 siblings, 1 reply; 5+ messages in thread
From: Lars Ingebrigtsen @ 2021-07-02 11:19 UTC (permalink / raw)
  To: Lennart Borgman; +Cc: 6068

Lars Ingebrigtsen <larsi@gnus.org> writes:

> So I seem to be unable to reproduce this (under Debian/bullseye, under
> Gnome Shell).
>
> Are you still seeing this issue in recent Emacs versions?

More information was requested, but no response was given within a
month, so I'm closing this bug report.  If the problem still exists,
please respond to this email and we'll reopen the bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#6068: make-frame-visible but not selected
  2021-07-02 11:19   ` Lars Ingebrigtsen
@ 2021-07-02 12:25     ` martin rudalics
  2021-07-02 12:27       ` Lars Ingebrigtsen
  0 siblings, 1 reply; 5+ messages in thread
From: martin rudalics @ 2021-07-02 12:25 UTC (permalink / raw)
  To: Lars Ingebrigtsen, Lennart Borgman; +Cc: 6068

 >> So I seem to be unable to reproduce this (under Debian/bullseye, under
 >> Gnome Shell).
 >>
 >> Are you still seeing this issue in recent Emacs versions?
 >
 > More information was requested, but no response was given within a
 > month, so I'm closing this bug report.  If the problem still exists,
 > please respond to this email and we'll reopen the bug report.

Just to elaborate: After

   (setq frame (window-frame))
   (make-frame)

a plain

   (make-frame-visible frame)

indeed won't change anything.  But

   (setq frame (window-frame))
   (make-frame)
   (iconify-frame frame)

followed by

   (make-frame-visible frame)

usually will shift focus to the frame.  Conceptually,

   (set-frame-parameter frame 'no-focus-on-map t)

should fix it but here on Debian Buster this does not work and I have to
use

   (set-frame-parameter frame 'no-accept-focus t))

to handle Lennart's use case.  This is not TRT because the frame
probably should accept focus later but so far I have not found a
reliable way to fix that.

martin





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#6068: make-frame-visible but not selected
  2021-07-02 12:25     ` martin rudalics
@ 2021-07-02 12:27       ` Lars Ingebrigtsen
  0 siblings, 0 replies; 5+ messages in thread
From: Lars Ingebrigtsen @ 2021-07-02 12:27 UTC (permalink / raw)
  To: martin rudalics; +Cc: Lennart Borgman, 6068

martin rudalics <rudalics@gmx.at> writes:

> should fix it but here on Debian Buster this does not work and I have to
> use
>
>   (set-frame-parameter frame 'no-accept-focus t))
>
> to handle Lennart's use case.  This is not TRT because the frame
> probably should accept focus later but so far I have not found a
> reliable way to fix that.

Ah, OK.  I'm reopening the bug report, then.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-07-02 12:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-30 19:39 bug#6068: Please learn Emacs to distinguish between visible and active windows Lennart Borgman
2021-06-03  9:00 ` bug#6068: make-frame-visible but not selected Lars Ingebrigtsen
2021-07-02 11:19   ` Lars Ingebrigtsen
2021-07-02 12:25     ` martin rudalics
2021-07-02 12:27       ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).