]> git.eshelyaron.com Git - emacs.git/commitdiff
(dos-8+3-filename): Rename from dos-truncate-to-8+3.
authorEli Zaretskii <eliz@gnu.org>
Sat, 7 Apr 2001 07:55:22 +0000 (07:55 +0000)
committerEli Zaretskii <eliz@gnu.org>
Sat, 7 Apr 2001 07:55:22 +0000 (07:55 +0000)
All callers changed.

lisp/ChangeLog
lisp/dos-fns.el
lisp/international/titdic-cnv.el

index 042fb429242029cbde55f74371df0cfe208ee9d4..87371e343e28e71605cde9c71a9976dd1baba677 100644 (file)
@@ -1,3 +1,8 @@
+2001-04-07  Eli Zaretskii  <eliz@is.elta.co.il>
+
+       * dos-fns.el (dos-8+3-filename): Rename from dos-truncate-to-8+3.
+       All callers changed.
+
 2001-04-06  Eli Zaretskii  <eliz@is.elta.co.il>
 
        * international/titdic-cnv.el (miscdic-convert): For MS-DOS, if
index 5280280be2bef8aed598a8fba76b11a7b298f222..09267c28c18fcb15f3f61c24dbedabf3bd3186d4 100644 (file)
@@ -114,7 +114,7 @@ with a definition that really does change some file names."
                    (convert-standard-filename dir))
                  string))))))
 
-(defun dos-truncate-to-8+3 (filename)
+(defun dos-8+3-filename (filename)
   "Truncate FILENAME to DOS 8+3 limits."
   (if (or (not (stringp filename))
          (< (length filename) 5))      ; too short to give any trouble
@@ -122,7 +122,7 @@ with a definition that really does change some file names."
     (let ((flen (length filename)))
       ;; If FILENAME has a trailing slash, remove it and recurse.
       (if (memq (aref filename (1- flen)) '(?/ ?\\))
-         (concat (dos-truncate-to-8+3 (substring filename 0 (1- flen)))
+         (concat (dos-8+3-filename (substring filename 0 (1- flen)))
                  "/")
        (let* (;; ange-ftp gets in the way for names like "/foo:bar".
               ;; We need to inhibit all magic file names, because
@@ -166,10 +166,10 @@ with a definition that really does change some file names."
              (aset string (1- (length string)) lastchar))
          (concat (if (and (stringp dir)
                           (memq (aref dir dlen-m-1) '(?/ ?\\)))
-                     (concat (dos-truncate-to-8+3 (substring dir 0 dlen-m-1))
+                     (concat (dos-8+3-filename (substring dir 0 dlen-m-1))
                              "/")
                    ;; Recurse to truncate the leading directories.
-                   (dos-truncate-to-8+3 dir))
+                   (dos-8+3-filename dir))
                  string))))))
 
 ;; See dos-vars.el for defcustom.
index a4d52f5a53c8968fc9bc354c2f4c1d4b6f452280..004dc7b8b83c731f892d89fb1cced70a096bc1c4 100644 (file)
@@ -983,7 +983,7 @@ the generated Quail package is saved."
                ;; Give DOS users a chance...
                (and (fboundp 'msdos-long-file-names)
                     (not (msdos-long-file-names))
-                    (string-match (dos-truncate-to-8+3 (nth 2 (car tail)))
+                    (string-match (dos-8+3-filename (nth 2 (car tail)))
                                   filename)))
        (setq slot (car tail)
              name (car slot)