From: James Cloos <cloos@jhcloos.com>
To: "Drew Adams" <drew.adams@oracle.com>
Cc: 7291@debbugs.gnu.org
Subject: bug#7291: 24.0.50; `non-essential' is incomprehensible
Date: Thu, 28 Oct 2010 13:33:15 -0400 [thread overview]
Message-ID: <m3eibanrws.fsf@jhcloos.com> (raw)
In-Reply-To: <9499566E643B466092A98013C6826011@us.oracle.com> (Drew Adams's message of "Wed, 27 Oct 2010 15:30:30 -0700")
>>>>> "DA" == Drew Adams <drew.adams@oracle.com> writes:
DA> Variable `non-essential' was introduced in Emacs 24.
DA> The name is bad - doesn't say anything. Non-essential wrt what?
DA> The doc is bad:
DA> "Whether the currently executing code is performing an essential
DA> task. This variable should be non-nil only when running code which
DA> should not disturb the user. E.g. it can be used to prevent Tramp
DA> from prompting the user for a password when we are simply scanning a
DA> set of files in the background or displaying possible completions
DA> before the user even asked for it."
[Just translating between english and english here -JimC]
Seems clear here. If the variable is nil tramp will be happy to do
user-interactive stuff, such as prompting the user for a password.
But tramp would prefer that the variable be set to non-nil in any
function which does remote work which will not require such user-
interaction.
DA> So does nil mean the code is performing an essential task? Or does
DA> non-nil mean that? What's an "essential task"? A task that should
DA> disturb the user (because it is important) or a task that should not
DA> disturb the user?
I think you are thinking about it the wrong way -- or at least
sufficiently differently than the authors as to fail to see their
meaning. (Please do not take that as a flame.)
Don't think "importance" but rather "will this require user interaction
to succeed?".
And set to nil if it will require user interaction to succeed.
-JimC
--
James Cloos <cloos@jhcloos.com> OpenPGP: 1024D/ED7DAEA6
next prev parent reply other threads:[~2010-10-28 17:33 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-27 22:30 bug#7291: 24.0.50; `non-essential' is incomprehensible Drew Adams
2010-10-28 0:52 ` Stefan Monnier
2010-10-28 16:22 ` Drew Adams
2010-10-28 17:14 ` Stefan Monnier
2010-10-28 18:43 ` Michael Albinus
2010-10-28 18:51 ` Drew Adams
2010-10-28 20:12 ` Stefan Monnier
2010-10-28 21:58 ` Drew Adams
2010-10-29 16:20 ` Stefan Monnier
2010-10-29 16:47 ` Drew Adams
2010-10-29 17:36 ` Stefan Monnier
2010-10-29 8:36 ` Andreas Schwab
2010-10-29 16:03 ` Stefan Monnier
2010-10-29 16:21 ` Andreas Schwab
2010-10-29 18:29 ` Eli Zaretskii
2010-10-29 23:00 ` Andy Moreton
2010-10-30 6:52 ` Eli Zaretskii
2010-10-30 16:16 ` Drew Adams
2010-10-30 17:53 ` Michael Albinus
2010-10-30 20:05 ` Drew Adams
2010-10-29 18:56 ` Alan Mackenzie
2010-10-28 17:33 ` James Cloos [this message]
2010-10-28 18:53 ` Drew Adams
2011-07-14 14:35 ` Lars Magne Ingebrigtsen
2010-10-31 2:34 ` MON KEY
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=m3eibanrws.fsf@jhcloos.com \
--to=cloos@jhcloos.com \
--cc=7291@debbugs.gnu.org \
--cc=drew.adams@oracle.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 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.