Subject: bug#24936: 26.0.50; tramp-mode (on FTP): tramp-file-name-for-operation: unknown file I/O primitive: file-name-case-insensitive-p

From: Ken Brown <[email-masked]>
Date: Sun, 13 Nov 2016 09:58:07 -0500

On 11/13/2016 9:43 AM, Ken Brown wrote:
> On 11/13/2016 9:05 AM, José L. Doménech wrote:
>> The message "tramp-file-name-for-operation: unknown file I/O primitive:
>> file-name-case-insensitive-p" appears.
>
> This is due to commit 2809012 that I made last night.

I think I see the problem.  Does the attached patch fix it?

Ken

diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index 00ecb37..c92c705 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -1910,7 +1910,8 @@ tramp-file-name-for-operation
 	      file-accessible-directory-p file-attributes
 	      file-directory-p file-executable-p file-exists-p
 	      file-local-copy file-modes
-	      file-name-as-directory file-name-directory
+	      file-name-as-directory file-name-case-insensitive-p
+	      file-name-directory
 	      file-name-nondirectory file-name-sans-versions
 	      file-ownership-preserved-p file-readable-p
 	      file-regular-p file-remote-p file-symlink-p file-truename