all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Glenn Morris <rgm@gnu.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 14615@debbugs.gnu.org
Subject: bug#14615: xterm--query results in slow -nw startup on some terminals
Date: Fri, 14 Jun 2013 12:20:42 -0400	[thread overview]
Message-ID: <014nd03bqd.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <s5ip1h5egu.fsf@fencepost.gnu.org> (Glenn Morris's message of "Fri, 14 Jun 2013 03:38:41 -0400")


Something like this? It can be made more sophisticated if in the
multiple handler case more than one handler might need to get run, but
the current code does not require that anywhere.


*** lisp/term/xterm.el	2013-05-15 23:55:41 +0000
--- lisp/term/xterm.el	2013-06-14 16:17:37 +0000
***************
*** 544,550 ****
                                   nil))))
            (setq i (1+ i)))
          (if (= i (length (car handler)))
!             (funcall (cdr handler))
            (while (> i 0)
              (push (aref (car handler) (setq i (1- i)))
                    unread-command-events)))))))
--- 544,551 ----
                                   nil))))
            (setq i (1+ i)))
          (if (= i (length (car handler)))
!             (progn (setq handlers nil)
!                    (funcall (cdr handler)))
            (while (> i 0)
              (push (aref (car handler) (setq i (1- i)))
                    unread-command-events)))))))






  reply	other threads:[~2013-06-14 16:20 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-13 23:36 bug#14615: xterm--query results in slow -nw startup on some terminals Glenn Morris
2013-06-14  0:26 ` Stefan Monnier
2013-06-14  0:34   ` Glenn Morris
2013-06-14  1:17     ` Stefan Monnier
2013-06-14  1:36       ` Glenn Morris
2013-06-14  7:38         ` Glenn Morris
2013-06-14 16:20           ` Glenn Morris [this message]
2013-06-14 18:08             ` 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=014nd03bqd.fsf@fencepost.gnu.org \
    --to=rgm@gnu.org \
    --cc=14615@debbugs.gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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.