diff options
| author | Michael Albinus | 2009-08-03 08:22:04 +0000 |
|---|---|---|
| committer | Michael Albinus | 2009-08-03 08:22:04 +0000 |
| commit | adcbca532ba6d14daf5d6afc8aa231b01ce3f064 (patch) | |
| tree | d535c260238e3b6ecf989b59aeb3eace0a0031b7 | |
| parent | 30924b0b32eb09bf59d01128e0b6c8ed9e2bbd4f (diff) | |
| download | emacs-adcbca532ba6d14daf5d6afc8aa231b01ce3f064.tar.gz emacs-adcbca532ba6d14daf5d6afc8aa231b01ce3f064.zip | |
* net/tramp.el (tramp-rfn-eshadow-update-overlay-regexp) New
defconst.
(tramp-rfn-eshadow-update-overlay): Use it.
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/net/tramp.el | 8 |
2 files changed, 13 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 783a95da671..b15c3eb3e0c 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2009-08-03 Michael Albinus <michael.albinus@gmx.de> | ||
| 2 | |||
| 3 | * net/tramp.el (tramp-rfn-eshadow-update-overlay-regexp) New | ||
| 4 | defconst. | ||
| 5 | (tramp-rfn-eshadow-update-overlay): Use it. | ||
| 6 | |||
| 1 | 2009-08-02 Kevin Ryde <user42@zip.com.au> | 7 | 2009-08-02 Kevin Ryde <user42@zip.com.au> |
| 2 | 8 | ||
| 3 | * net/newst-backend.el (newsticker--raw-url-list-defaults): Update | 9 | * net/newst-backend.el (newsticker--raw-url-list-defaults): Update |
| @@ -5,7 +11,6 @@ | |||
| 5 | 11 | ||
| 6 | 2009-08-02 Chong Yidong <cyd@stupidchicken.com> | 12 | 2009-08-02 Chong Yidong <cyd@stupidchicken.com> |
| 7 | 13 | ||
| 8 | |||
| 9 | * select.el (x-set-selection): Doc fix (Bug#4021). | 14 | * select.el (x-set-selection): Doc fix (Bug#4021). |
| 10 | 15 | ||
| 11 | * w32-fns.el (x-set-selection): Doc fix (Bug#4021). | 16 | * w32-fns.el (x-set-selection): Doc fix (Bug#4021). |
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index e8ce36e4c07..df2f10ba5dd 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el | |||
| @@ -2196,6 +2196,9 @@ special handling of `substitute-in-file-name'." | |||
| 2196 | (remove-hook 'rfn-eshadow-setup-minibuffer-hook | 2196 | (remove-hook 'rfn-eshadow-setup-minibuffer-hook |
| 2197 | 'tramp-rfn-eshadow-setup-minibuffer)))) | 2197 | 'tramp-rfn-eshadow-setup-minibuffer)))) |
| 2198 | 2198 | ||
| 2199 | (defconst tramp-rfn-eshadow-update-overlay-regexp | ||
| 2200 | (format "[^%s/~]*\\(/\\|~\\)" tramp-postfix-host-format)) | ||
| 2201 | |||
| 2199 | (defun tramp-rfn-eshadow-update-overlay () | 2202 | (defun tramp-rfn-eshadow-update-overlay () |
| 2200 | "Update `rfn-eshadow-overlay' to cover shadowed part of minibuffer input. | 2203 | "Update `rfn-eshadow-overlay' to cover shadowed part of minibuffer input. |
| 2201 | This is intended to be used as a minibuffer `post-command-hook' for | 2204 | This is intended to be used as a minibuffer `post-command-hook' for |
| @@ -2209,7 +2212,10 @@ been set up by `rfn-eshadow-setup-minibuffer'." | |||
| 2209 | (save-excursion | 2212 | (save-excursion |
| 2210 | (save-restriction | 2213 | (save-restriction |
| 2211 | (narrow-to-region | 2214 | (narrow-to-region |
| 2212 | (1+ (or (string-match "/" (buffer-string) end) end)) (point-max)) | 2215 | (1+ (or (string-match |
| 2216 | tramp-rfn-eshadow-update-overlay-regexp (buffer-string) end) | ||
| 2217 | end)) | ||
| 2218 | (point-max)) | ||
| 2213 | (let ((rfn-eshadow-overlay tramp-rfn-eshadow-overlay) | 2219 | (let ((rfn-eshadow-overlay tramp-rfn-eshadow-overlay) |
| 2214 | (rfn-eshadow-update-overlay-hook nil)) | 2220 | (rfn-eshadow-update-overlay-hook nil)) |
| 2215 | (move-overlay rfn-eshadow-overlay (point-max) (point-max)) | 2221 | (move-overlay rfn-eshadow-overlay (point-max) (point-max)) |