From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: bash TMOUT for emacs
Date: Mon, 20 Dec 2004 09:43:23 -0700 [thread overview]
Message-ID: <32odpdF3ob2kpU1@individual.net> (raw)
In-Reply-To: <mailman.7156.1103416780.27204.bug-gnu-emacs@gnu.org>
Dan Jacobson wrote:
> Gentlemen, at the gala festival I have left emacs running and
> forgotten on a terminal that I can't even remember what room is in.
> Well, if emacs had a timeout setting, like bash's TMOUT, then I
> wouldn't need to worry that some perpetrator could molest my files.
>
> TMOUT If set to a value greater than zero, the value is
> interpreted as the number of seconds to wait for
> input after issuing the primary prompt. Bash ter-
> minates after waiting for that number of seconds if
> input does not arrive.
Does this work?
(when (getenv "TMOUT")
(run-with-idle-timer (getenv "TMOUT") nil 'kill-emacs))
--
Kevin Rodgers
next prev parent reply other threads:[~2004-12-20 16:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.7156.1103416780.27204.bug-gnu-emacs@gnu.org>
2004-12-19 0:49 ` bash TMOUT for emacs Thien-Thi Nguyen
2004-12-19 0:52 ` Thien-Thi Nguyen
2004-12-20 16:43 ` Kevin Rodgers [this message]
2004-12-19 0:28 Dan Jacobson
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=32odpdF3ob2kpU1@individual.net \
--to=ihs_4664@yahoo.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).