From: storm@cua.dk (Kim F. Storm)
To: emacs-devel@gnu.org
Subject: Observations on the splash screen - and signal-process
Date: Sat, 24 Jan 2009 19:08:34 +0100 [thread overview]
Message-ID: <87ocxw60gt.fsf@kfs-lx.rd.rdm> (raw)
If auto-save files are found during startup, the splash screen says:
If an Emacs session crashed recently, type Meta-x recover-session RET
to recover the files you were editing.
Some comments on this:
1) Shouldn't "Meta-x" be "M-x" here ?
2) Couldn't we make this a "clickable" "Recover Session" button
like the Open file... instead of the text?
3) Maybe rephrase it to something like:
One or more Emacs auto-save files exists; click [RECOVER] to review the
sessions and possibly recover the files you were editing at that time.
4) It was wrong...
Actually, I didn't have any crashed session - but I have another Emacs session
running which has created an auto save file.
Maybe emacs should check the saved sessions and filter out the
currently running sessions ...
A simple (signal-process PID 0) would suffice -- unfortunately, the
doc string for signal-process does not describe the return value
in this case (currently it is 0 if the process exists and -1 otherwise
- but better return values would probably be t or nil).
BTW, the elisp manual doesn't mention that the signal can be a symbol
as well as a number (signal names are portable, numbers are not!!)
Finally, wouldn't it make sense if (signal-process PID nil) checked for
the existense of process PID - using signal 0 is probably non-portable.
--
Kim F. Storm <storm@cua.dk> http://www.cua.dk
next reply other threads:[~2009-01-24 18:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-24 18:08 Kim F. Storm [this message]
2009-01-25 1:11 ` Observations on the splash screen - and signal-process Juri Linkov
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=87ocxw60gt.fsf@kfs-lx.rd.rdm \
--to=storm@cua.dk \
--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.