emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r99900: (non-essential): New var.


From: Stefan Monnier
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r99900: (non-essential): New var.
Date: Wed, 14 Apr 2010 11:24:17 -0400
User-agent: Bazaar (2.0.3)

------------------------------------------------------------
revno: 99900
committer: Stefan Monnier <address@hidden>
branch nick: trunk
timestamp: Wed 2010-04-14 11:24:17 -0400
message:
  (non-essential): New var.
modified:
  lisp/ChangeLog
  lisp/simple.el
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog    2010-04-14 15:07:53 +0000
+++ b/lisp/ChangeLog    2010-04-14 15:24:17 +0000
@@ -1,5 +1,7 @@
 2010-04-14  Stefan Monnier  <address@hidden>
 
+       * simple.el (non-essential): New var.
+
        Add a new field `location' to bookmarks for non-file bookmarks.
        * bookmark.el (bookmark-location): Use the new field, if present.
        (bookmark-insert-location): Undo last change, not needed any more.

=== modified file 'lisp/simple.el'
--- a/lisp/simple.el    2010-04-14 00:43:54 +0000
+++ b/lisp/simple.el    2010-04-14 15:24:17 +0000
@@ -3940,6 +3940,14 @@
 If `widen-automatically' is nil, these commands will do something else
 as a fallback, and won't change the buffer bounds.")
 
+(defvar non-essential nil
+  "Whether the currently executing code is performing an essential task.
+This variable should be non-nil only when running code which should not
+disturb the user.  E.g. it can be used to prevent Tramp from prompting the
+user for a password when we are simply scanning a set of files in the
+background or displaying possible completions before the user even asked
+for it.")
+
 (defun pop-global-mark ()
   "Pop off global mark ring and jump to the top location."
   (interactive)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]