unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Aaron Jensen <aaronjensen@gmail.com>
Cc: 26995@debbugs.gnu.org
Subject: bug#26995: 26.0.50; emacsclient --tty FILE flashes previous frame's buffer before loading FILE
Date: Fri, 19 May 2017 18:30:18 +0300	[thread overview]
Message-ID: <83bmqo3lv9.fsf@gnu.org> (raw)
In-Reply-To: <m237c0rkeh.fsf@gmail.com> (message from Aaron Jensen on Fri, 19 May 2017 07:28:06 -0700)

> From: Aaron Jensen <aaronjensen@gmail.com>
> Date: Fri, 19 May 2017 07:28:06 -0700
> 
> emacs -Q
> M-x server-start
> C-x C-f <pick some file with lots of text>
> 
> Back in terminal:
> 
> emacsclient --tty <some other file with different text>
> 
> Expected:
> 
> New frame is created in tty and it displays (immediately) the "other" file
> without flashing the file from the other frame.
> 
> Actual:
> 
> The file from the first frame is displayed briefly before loading the "other"
> file. With my full config, this "brief" display is roughly 2 seconds. With emacs
> -Q it's a pretty quick flash.
> 
> I don't think this was happening when I was running 25.1 because I actually made
> some changes to my config involving persp-mode to stop it from happening. After
> upgrading to 26.0.50, it started happening again.

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.

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





  reply	other threads:[~2017-05-19 15:30 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-19 14:28 bug#26995: 26.0.50; emacsclient --tty FILE flashes previous frame's buffer before loading FILE Aaron Jensen
2017-05-19 15:30 ` Eli Zaretskii [this message]
2017-05-19 15:44   ` Aaron Jensen
2017-05-19 17:27     ` Eli Zaretskii
2018-02-05  6:56       ` Aaron Jensen
2018-02-09 21:06         ` Aaron Jensen
2018-02-10 10:35         ` Eli Zaretskii
2018-02-10 16:56           ` Aaron Jensen
2018-02-16 15:45             ` Eli Zaretskii
2019-11-01 13:56               ` Eli Zaretskii
2019-11-01 16:27                 ` Aaron Jensen
2019-11-01 17:00                   ` Eli Zaretskii
2019-11-07 17:15                 ` Eli Zaretskii
2022-04-17 19:50 ` Lars Ingebrigtsen
2022-04-17 22:55   ` Aaron Jensen
2022-04-18  9:07     ` Lars Ingebrigtsen

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=83bmqo3lv9.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=26995@debbugs.gnu.org \
    --cc=aaronjensen@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 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).