mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
* net/tramp.el (tramp-check-for-regexp): Avoid "Args out of range"
error when buffer in question is narrowed so position 1 is out of visible part.
This commit is contained in:
parent
25b4eb90f9
commit
f864e0ea83
2 changed files with 9 additions and 1 deletions
|
|
@ -1,3 +1,9 @@
|
|||
2013-02-01 Andrew W. Nosenko <andrew.w.nosenko@gmail.com> (tiny change)
|
||||
|
||||
* net/tramp.el (tramp-check-for-regexp): Avoid "Args out of range"
|
||||
error when buffer in question is narrowed so position 1 is out of
|
||||
visible part.
|
||||
|
||||
2013-01-31 Glenn Morris <rgm@gnu.org>
|
||||
|
||||
* textmodes/remember.el (remember-clipboard): Doc fix.
|
||||
|
|
|
|||
|
|
@ -3359,7 +3359,9 @@ Erase echoed commands if exists."
|
|||
0 (min tramp-echo-mark-marker-length (1- (point-max))))
|
||||
(tramp-compat-funcall
|
||||
'buffer-substring-no-properties
|
||||
1 (min (1+ tramp-echo-mark-marker-length) (point-max))))))
|
||||
(point-min)
|
||||
(min (+ (point-min) tramp-echo-mark-marker-length)
|
||||
(point-max))))))
|
||||
;; No echo to be handled, now we can look for the regexp.
|
||||
;; Sometimes, lines are much to long, and we run into a "Stack
|
||||
;; overflow in regexp matcher". For example, //DIRED// lines of
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue