From 86c4097015a8ed8d0a9d7c44f6c8a86fe31ea209 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Wed, 24 Jul 2013 08:56:24 -0700 Subject: [PATCH] * lisp/ffap.el (ffap-machine-p): Handle "not known" response. Fixes: debbugs:14929 --- lisp/ChangeLog | 4 ++++ lisp/ffap.el | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) 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" -- 2.39.2