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 #17 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: Mon, 5 Feb 2018 01:56:22 -0500
[Message part 1 (text/plain, inline)]
From: Eli Zaretskii (mailto:eliz <at> gnu.org)
> > From: Aaron Jensen
> > > 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 should be possible, but AFAICT it would need restructuring
> server-process-filter works.

Please see attached patch and let me know if this method is
acceptable. It’s perhaps a little kludgy because sometimes a frame is
created and sometimes it isn’t so we need both methods of ensuring the
initial frame is set properly. This does appear to work for all
scenarios I tested, however.

Thanks,

Aaron
[0001-Show-initial-buffer-immediately-upon-frame-creation-.patch (application/octet-stream, attachment)]

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.