aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/ffap.el
diff options
context:
space:
mode:
authorPaul Eggert2015-01-21 20:21:45 -0800
committerPaul Eggert2015-01-21 20:29:42 -0800
commit8dd58a2d1fedaa16573bc67e986dc2014620c681 (patch)
tree14d570f1ebf867a8feb07cfe3d3a385989643e1f /lisp/ffap.el
parent938bca8e4141f5f96497f9be26b0ea0bb90f40cd (diff)
downloademacs-8dd58a2d1fedaa16573bc67e986dc2014620c681.tar.gz
emacs-8dd58a2d1fedaa16573bc67e986dc2014620c681.zip
Don't downcase system diagnostics' first letters
* etc/NEWS: Document this. * lisp/emacs-lisp/bytecomp.el (byte-compile-file): * lisp/ffap.el (find-file-at-point): * lisp/files.el (insert-file-1): * lisp/net/ange-ftp.el (ange-ftp-barf-if-not-directory) (ange-ftp-copy-file-internal): * lisp/progmodes/etags.el (visit-tags-table): * lisp/url/url-dav.el (url-dav-delete-directory, url-dav-delete-file) (url-dav-directory-files): Keep diagnostics consistent with system's. * lisp/erc/erc-dcc.el (erc-dcc-server): * lisp/ffap.el (ffap-machine-p): Ignore case while comparing diagnostics. * src/fileio.c (report_file_errno): Don't downcase, and simplify. Fixes: bug#19642
Diffstat (limited to 'lisp/ffap.el')
-rw-r--r--lisp/ffap.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/ffap.el b/lisp/ffap.el
index 1b8ea60e03b..350a6bdac20 100644
--- a/lisp/ffap.el
+++ b/lisp/ffap.el
@@ -476,7 +476,7 @@ Returned values:
476 ;; (file-error "connection failed" "address already in use" 476 ;; (file-error "connection failed" "address already in use"
477 ;; "ftp.uu.net" "ffap-machine-p") 477 ;; "ftp.uu.net" "ffap-machine-p")
478 ((equal mesg "connection failed") 478 ((equal mesg "connection failed")
479 (if (equal (nth 2 error) "permission denied") 479 (if (string= (downcase (nth 2 error)) "permission denied")
480 nil ; host does not exist 480 nil ; host does not exist
481 ;; Other errors mean the host exists: 481 ;; Other errors mean the host exists:
482 (nth 2 error))) 482 (nth 2 error)))
@@ -1439,7 +1439,7 @@ and the functions `ffap-file-at-point' and `ffap-url-at-point'."
1439 (expand-file-name filename))) 1439 (expand-file-name filename)))
1440 ;; User does not want to find a non-existent file: 1440 ;; User does not want to find a non-existent file:
1441 ((signal 'file-error (list "Opening file buffer" 1441 ((signal 'file-error (list "Opening file buffer"
1442 "no such file or directory" 1442 "No such file or directory"
1443 filename))))))) 1443 filename)))))))
1444 1444
1445;; Shortcut: allow {M-x ffap} rather than {M-x find-file-at-point}. 1445;; Shortcut: allow {M-x ffap} rather than {M-x find-file-at-point}.