Mercurial > emacs
changeset 107856:662fbf539570
(non-essential): New var.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Wed, 14 Apr 2010 11:24:17 -0400 |
parents | d9895f87d758 |
children | d1934720d87a |
files | lisp/ChangeLog lisp/simple.el |
diffstat | 2 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/ChangeLog Wed Apr 14 11:07:53 2010 -0400 +++ b/lisp/ChangeLog Wed Apr 14 11:24:17 2010 -0400 @@ -1,5 +1,7 @@ 2010-04-14 Stefan Monnier <monnier@iro.umontreal.ca> + * 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.
--- a/lisp/simple.el Wed Apr 14 11:07:53 2010 -0400 +++ b/lisp/simple.el Wed Apr 14 11:24:17 2010 -0400 @@ -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)