[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/subr.el,v
From: |
Juanma Barranquero |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/subr.el,v |
Date: |
Tue, 02 Jan 2007 23:44:44 +0000 |
CVSROOT: /cvsroot/emacs
Module name: emacs
Changes by: Juanma Barranquero <lektu> 07/01/02 23:44:44
Index: subr.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/subr.el,v
retrieving revision 1.539
retrieving revision 1.540
diff -u -b -r1.539 -r1.540
--- subr.el 11 Dec 2006 16:14:15 -0000 1.539
+++ subr.el 2 Jan 2007 23:44:44 -0000 1.540
@@ -1887,6 +1887,7 @@
(defun momentary-string-display (string pos &optional exit-char message)
"Momentarily display STRING in the buffer at POS.
Display remains until next event is input.
+If POS is a marker, only its position is used; its buffer is ignored.
Optional third arg EXIT-CHAR can be a character, event or event
description list. EXIT-CHAR defaults to SPC. If the input is
EXIT-CHAR it is swallowed; otherwise it is then available as
@@ -1904,6 +1905,8 @@
(progn
(save-excursion
(goto-char pos)
+ ;; To avoid trouble with out-of-bounds position
+ (setq pos (point))
;; defeat file locking... don't try this at home, kids!
(setq buffer-file-name nil)
(insert-before-markers string)
- [Emacs-diffs] Changes to emacs/lisp/subr.el,v,
Juanma Barranquero <=
- [Emacs-diffs] Changes to emacs/lisp/subr.el,v, Richard M. Stallman, 2007/01/04
- [Emacs-diffs] Changes to emacs/lisp/subr.el,v, Dan Nicolaescu, 2007/01/05
- [Emacs-diffs] Changes to emacs/lisp/subr.el,v, Eli Zaretskii, 2007/01/06
- [Emacs-diffs] Changes to emacs/lisp/subr.el,v, Richard M. Stallman, 2007/01/09
- [Emacs-diffs] Changes to emacs/lisp/subr.el,v, Glenn Morris, 2007/01/20