unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* emacs -nw FILE incurs 2-second wait before displaying anything
@ 2014-05-26 17:41 Jim Meyering
  2014-05-26 19:04 ` Eli Zaretskii
  2014-05-26 20:19 ` Stefan Monnier
  0 siblings, 2 replies; 6+ messages in thread
From: Jim Meyering @ 2014-05-26 17:41 UTC (permalink / raw)
  To: emacs-devel

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!



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-05-27  4:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-26 17:41 emacs -nw FILE incurs 2-second wait before displaying anything Jim Meyering
2014-05-26 19:04 ` 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

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).