aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiles Bader2002-03-14 08:09:30 +0000
committerMiles Bader2002-03-14 08:09:30 +0000
commit17230c90f3e10a12ba7e009f021d6d1df99019ab (patch)
tree776a8341fd7f7751b53f40c6a468100c0a61bb4d
parent73792b515e72e982f43f25537759065d95003970 (diff)
downloademacs-17230c90f3e10a12ba7e009f021d6d1df99019ab.tar.gz
emacs-17230c90f3e10a12ba7e009f021d6d1df99019ab.zip
(rfn-eshadow-update-overlay): Bind `inhibit-point-motion-hooks' to t while
messing around, to avoid getting hosed by our own intangible property.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/rfn-eshadow.el17
2 files changed, 15 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 5a5fc5b609d..218a8ce9b85 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12002-03-14 Miles Bader <miles@gnu.org>
2
3 * rfn-eshadow.el (rfn-eshadow-update-overlay): Bind
4 `inhibit-point-motion-hooks' to t while messing around, to avoid
5 getting hosed by our own intangible property.
6
12002-03-13 Francesco Potorti` <pot@gnu.org> 72002-03-13 Francesco Potorti` <pot@gnu.org>
2 8
3 * progmodes/etags.el (tag-exact-file-name-match-p) 9 * progmodes/etags.el (tag-exact-file-name-match-p)
diff --git a/lisp/rfn-eshadow.el b/lisp/rfn-eshadow.el
index 827708255ed..e88dc8f3aaf 100644
--- a/lisp/rfn-eshadow.el
+++ b/lisp/rfn-eshadow.el
@@ -1,6 +1,6 @@
1;;; rfn-eshadow.el --- Highlight `shadowed' part of read-file-name input text 1;;; rfn-eshadow.el --- Highlight `shadowed' part of read-file-name input text
2;; 2;;
3;; Copyright (C) 2000, 2001 Free Software Foundation, Inc. 3;; Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc.
4;; 4;;
5;; Author: Miles Bader <miles@gnu.org> 5;; Author: Miles Bader <miles@gnu.org>
6;; Keywords: convenience 6;; Keywords: convenience
@@ -181,13 +181,14 @@ been set up by `rfn-eshadow-setup-minibuffer'."
181 ;; substitute-in-file-name would expand; currently it just assumes any 181 ;; substitute-in-file-name would expand; currently it just assumes any
182 ;; environment variable contains an absolute filename. 182 ;; environment variable contains an absolute filename.
183 (save-excursion 183 (save-excursion
184 (goto-char (minibuffer-prompt-end)) 184 (let ((inhibit-point-motion-hooks t))
185 ;; Update the overlay (which will evaporate if it's empty). 185 (goto-char (minibuffer-prompt-end))
186 (move-overlay rfn-eshadow-overlay 186 ;; Update the overlay (which will evaporate if it's empty).
187 (point) 187 (move-overlay rfn-eshadow-overlay
188 (if (looking-at rfn-eshadow-regexp) 188 (point)
189 (match-end 1) 189 (if (looking-at rfn-eshadow-regexp)
190 (point))))) 190 (match-end 1)
191 (point))))))
191 192
192 193
193;;; Note this definition must be at the end of the file, because 194;;; Note this definition must be at the end of the file, because