From: Jim Meyering <jim@meyering.net>
To: emacs-devel@gnu.org
Subject: emacs -nw FILE incurs 2-second wait before displaying anything
Date: Mon, 26 May 2014 10:41:37 -0700 [thread overview]
Message-ID: <CA+8g5KH7i6XDYQnon7OYc8O2sWLAUngBEO5HXjsTGmRrgQrEXA@mail.gmail.com> (raw)
I've been annoyed with emacs -nw for a while (always building
from latest), and finally have investigated enough to report this.
When I run emacs -nw on an existing file, e.g.,
echo xxx > foo
emacs -nw foo
I see the normal start-up signs, then a two-second pause,
and then finally the contents of "foo" are displayed.
However, if I type anything before that two-minute pause,
I avoid the delay. Likewise, if I run emacs without -nw, this
two-second pause does not appear.
I traced it to the pselect call in wait_reading_process_output
that is in turn called from kbd_buffer_get_event.
It seems to me that it would be fine to wait for keyboard events
*after* the buffer has been displayed. Not before.
Thanks for improving emacs!
next reply other threads:[~2014-05-26 17:41 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-26 17:41 Jim Meyering [this message]
2014-05-26 19:04 ` emacs -nw FILE incurs 2-second wait before displaying anything Eli Zaretskii
2014-05-26 20:19 ` Stefan Monnier
2014-05-27 2:51 ` Jim Meyering
2014-05-27 3:28 ` Stefan Monnier
2014-05-27 4:35 ` Jim Meyering
2014-06-12 13:35 ` bug#17607: " Stefan Monnier
2014-06-13 0:35 ` Jim Meyering
2014-06-13 15:07 ` Stefan Monnier
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=CA+8g5KH7i6XDYQnon7OYc8O2sWLAUngBEO5HXjsTGmRrgQrEXA@mail.gmail.com \
--to=jim@meyering.net \
--cc=emacs-devel@gnu.org \
/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.