From: Glenn Morris <rgm@gnu.org>
To: 16859@debbugs.gnu.org
Subject: bug#16859: tty-setup-hook can run twice
Date: Sun, 23 Feb 2014 20:39:24 -0500 [thread overview]
Message-ID: <slbnxx47cj.fsf@fencepost.gnu.org> (raw)
Package: emacs
Version: 24.3.50
Current trunk on GNU/Linux.
I don't know if this matters, but tty-setup-hook can run twice.
From an xterm:
export TERM=xterm
export COLORTERM=rxvt
cat <<EOF >| /tmp/.emacs
(add-hook 'tty-setup-hook (lambda () (message "hi")))
EOF
HOME=/tmp ./src/emacs -nw
C-h e
-> hi [2 times]
This is because tty-run-terminal-initialization runs terminal-init-xterm,
which in this case calls tty-run-terminal-initialization again with type
"rxvt".
Since several of the other init functions in term/ run
tty-run-terminal-initialization, this could happen with other terminal
types as well.
next reply other threads:[~2014-02-24 1:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-24 1:39 Glenn Morris [this message]
2014-02-25 9:06 ` bug#16859: tty-setup-hook can run twice Glenn Morris
2014-02-25 22:01 ` Stefan Monnier
2014-02-25 22:24 ` Glenn Morris
2014-02-26 15:55 ` 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=slbnxx47cj.fsf@fencepost.gnu.org \
--to=rgm@gnu.org \
--cc=16859@debbugs.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.