From: Glenn Morris Date: Wed, 24 Jul 2013 15:56:24 +0000 (-0700) Subject: * lisp/ffap.el (ffap-machine-p): Handle "not known" response. X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~1704 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=86c4097015a8ed8d0a9d7c44f6c8a86fe31ea209;p=emacs.git * lisp/ffap.el (ffap-machine-p): Handle "not known" response. Fixes: debbugs:14929 --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index bd7c43983fe..a85c8c19546 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2013-07-24 Glenn Morris + + * ffap.el (ffap-machine-p): Handle "not known" response. (Bug#14929) + 2013-07-24 Michael Albinus * filenotify.el (file-notify-supported-p): diff --git a/lisp/ffap.el b/lisp/ffap.el index 0769469cbf2..70096248e19 100644 --- a/lisp/ffap.el +++ b/lisp/ffap.el @@ -459,7 +459,8 @@ Returned values: (let ((mesg (car (cdr error)))) (cond ;; v18: - ((string-match "^Unknown host" mesg) nil) + ((string-match "\\(^Unknown host\\|Name or service not known$\\)" + mesg) nil) ((string-match "not responding$" mesg) mesg) ;; v19: ;; (file-error "connection failed" "permission denied"