pcmpl-ssh-known-hosts: Use char-before' instead of
looking-back'.
Fixes: debbugs:17284 * lisp/pcmpl-unix.el (pcmpl-ssh-known-hosts): Use `char-before' instead of `looking-back'.
This commit is contained in:
parent
2d45a5be18
commit
7c691f32f7
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2015-04-03 Nicolas Richard <theonewiththeevillook@yahoo.fr>
|
||||
|
||||
* pcmpl-unix.el (pcmpl-ssh-known-hosts): Use `char-before' instead
|
||||
of `looking-back' (bug#17284).
|
||||
|
||||
2015-04-03 Dmitry Gutov <dgutov@yandex.ru>
|
||||
|
||||
* progmodes/js.el (js-indent-line): Do nothing when bol is inside
|
||||
|
|
|
@ -157,7 +157,7 @@ documentation), this function returns nil."
|
|||
(while (re-search-forward (concat "^ *" host-re) nil t)
|
||||
(add-to-list 'ssh-hosts-list (concat (match-string 1)
|
||||
(match-string 2)))
|
||||
(while (and (looking-back ",")
|
||||
(while (and (eq (char-before) ?,)
|
||||
(re-search-forward host-re (line-end-position) t))
|
||||
(add-to-list 'ssh-hosts-list (concat (match-string 1)
|
||||
(match-string 2)))))
|
||||
|
|
Loading…
Add table
Reference in a new issue