GNU bug report logs - #26995
26.0.50; emacsclient --tty FILE flashes previous frame's buffer before loading FILE

Previous Next

Package: emacs;

Reported by: Aaron Jensen <aaronjensen <at> gmail.com>

Date: Fri, 19 May 2017 14:29:01 UTC

Severity: wishlist

Tags: moreinfo

Found in version 26.0.50

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 26995 <at> debbugs.gnu.org (full text, mbox):

From: Aaron Jensen <aaronjensen <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 26995 <at> debbugs.gnu.org
Subject: Re: bug#26995: 26.0.50;
 emacsclient --tty FILE flashes previous frame's buffer before loading
 FILE
Date: Fri, 19 May 2017 08:44:03 -0700
Eli Zaretskii writes:

> I can indeed reproduce the described behavior, but I see the same in
> Emacs 25.2 and in Emacs 24.5.  The reason is simple: the way server.el
> is written, we first create the client frame, and only then show the
> file there.  So the frame is created with no file to visit, and Emacs
> always shows the last buffer in the new frame in those cases.

I see, so not a bug then. Is it possible to (easily) improve its behavior? It's not a big enough deal to warrant spending a lot of time on, I don't think.

>
> Maybe your workaround worked for Emacs 25, but no longer works with
> Emacs 26?

Perhaps, or maybe I was seeing an even bigger flash because persp-mode was restoring an entire perspective before. For reference, here is the original issue and the fix/workaround I ended up on:

https://github.com/Bad-ptr/persp-mode.el/issues/64

--
Aaron




This bug report was last modified 3 years and 34 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.