all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juanma Barranquero <lekktu@gmail.com>
To: Lennart Borgman <lennart.borgman@gmail.com>
Cc: 6468@debbugs.gnu.org
Subject: bug#6468: A couple of problem related to frame raising (partly w32)
Date: Sun, 20 Jun 2010 01:58:54 +0200	[thread overview]
Message-ID: <AANLkTimloeUMv0JI0RhC3OhY4Y5IXlZ7ZvX_4u3eMpe6@mail.gmail.com> (raw)
In-Reply-To: <AANLkTik_hjID8KN9YDJ_H4OtTD4V3GKzJr6lPm-cKidg@mail.gmail.com>

On Sun, Jun 20, 2010 at 01:36, Lennart Borgman
<lennart.borgman@gmail.com> wrote:

> I am never surprised by that. When I am telling about a complicated
> problem I am merely asking for a starting point in the discussion.
> Have others seen similar problems? Do they have any guesses? Have they
> tried to investigate some part of the problem?

IMHO, sometimes you fail to explain the problem to such a point that
it is difficult for other people to know whether they have also
experienced it.

> This is not about the internals of redisplay. It is about the logic
> between narrow_to_region etc and redisplay.

I don't think Eli's knowledge is limited to the "internals of redisplay".

> I think both of us has tried the best we can but we have got stuck at
> this moment.

That, I can understand. What I do not understand is that then you
switch to accusing people of wasting your time, or not wanting your
patches, or not wanting to take the trouble to understand, etc. etc.

> But it does not help if you say that Eli understands the
> problem better. I am sure Eli understands the display engine better
> now, but it is only partly involved.

Oh, it can be of help if it makes you think that perhaps (not
necessarily, but perhaps) he's on the right track and you are not.
I've seen him ask you, twice, to try something after reverting one of
your patches, and I don't think you obliged.

> (What happens below is expected. Either you have seen those kind of
> problems or not. It looks like you have not.

No. But I don't try to do the things you do with frames, mainly
because I very rarely use more than one.

> For me this is just a
> normal progress of the discussion. Is it not that for you?)

Seems like a non sequitur. What is a normal progress of the discussion?

> I have been trying to get a frame to become the foreground window in a
> certain situation but so far failed. There are many things involved so
> I am not sure of why it fails. And it does not always fail. I even
> believed I found out how to get it to work but after that it has
> always failed.
>
> I have tried the normal things like raise-frame,
> set-frame-select-input-focus, make-frame-visible, redisplay. And I
> have tried to do it in a timer. (I think when it worked I had a rather
> large timeout in the timer.)
>
> When doing some logging I have seen that the frame setup does not seem
> to be finished. The frame is created, the buffer I want to display is
> somehow tied to the frame, but it does not yet have a window. I have
> no idea whether this is a part of the problem I have or not.

All of this seems like a recipe that you *could* send to this thread.
"Look, I tried with this code here, run in such-and-such
circumstances, and sometimes it works, sometimes it doesn't". It would
be clearer than trying to extract meaning from descriptions and
paraphrases.

> I try to open a new frame to edit a text area in Firefox using It's
> All Text. This calls emacsclient without wait (since otherwise it
> hangs Firefox).
>
> I have set server-raise-frame to nil since I want to create a special
> frame for editing and just raise that. If server-raise-frame is
> non-nil this will raise the current frame in Emacs instead.
>
> So now in server-window I just create a frame and try to raise that.
> And I can't get it to work.
>
> I have a variable pointing to the frame and it looks ok so I know it is there.

Are you sure this isn't just Windows trying to keep Emacs from
stealing the focus? You know, AllowSetForegroundWindow and that stuff.
I've sometimes seen emacsclient call Emacs from a console (4NT) and
Emacs not getting the focus because 4NT (and so emacsclient) just
happened to lose the focus before calling AllowSetForegroundWindow.

> Ah, shit. Thanks. (I am too unused to reading C code.)

Glad to help.

    Juanma





  reply	other threads:[~2010-06-19 23:58 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-19 18:23 bug#6468: A couple of problem related to frame raising (partly w32) Lennart Borgman
2010-06-19 18:35 ` Juanma Barranquero
2010-06-19 19:14   ` Lennart Borgman
2010-06-19 19:20     ` Juanma Barranquero
2010-06-19 20:32       ` Lennart Borgman
2010-06-19 20:50         ` Juanma Barranquero
2010-06-19 23:36           ` Lennart Borgman
2010-06-19 23:58             ` Juanma Barranquero [this message]
2010-06-20  1:07               ` Lennart Borgman
2010-06-20 12:21                 ` Lennart Borgman
2010-06-21 23:19             ` Lennart Borgman
2010-06-22  8:17               ` Juanma Barranquero
2010-06-22 10:39                 ` Lennart Borgman
2010-06-22 10:58                   ` Juanma Barranquero
2010-06-23 10:17                     ` Lennart Borgman
2010-06-23 10:34                       ` Juanma Barranquero
2010-06-23 10:41                         ` Lennart Borgman
2010-06-23 10:54                           ` Juanma Barranquero
2010-06-23 11:08                             ` Lennart Borgman
2010-06-19 21:47 ` Eli Zaretskii
2011-10-06 20:35   ` Glenn Morris
     [not found] ` <handler.6468.D6468.131793333925336.notifdone@debbugs.gnu.org>
2011-10-06 20:39   ` bug#6468: closed (Re: bug#6468: A couple of problem related to frame raising (partly w32)) Lennart Borgman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AANLkTimloeUMv0JI0RhC3OhY4Y5IXlZ7ZvX_4u3eMpe6@mail.gmail.com \
    --to=lekktu@gmail.com \
    --cc=6468@debbugs.gnu.org \
    --cc=lennart.borgman@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.