]> git.eshelyaron.com Git - emacs.git/commitdiff
Remove some compat code from ediff
authorLars Ingebrigtsen <larsi@gnus.org>
Tue, 18 Aug 2020 10:10:29 +0000 (12:10 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 18 Aug 2020 10:10:29 +0000 (12:10 +0200)
* lisp/vc/ediff-init.el (ediff-convert-standard-filename): Make
obsolete.
* lisp/vc/ediff-util.el (ediff-setup): Adjust callers.
(ediff-make-temp-file): Ditto.

lisp/vc/ediff-init.el
lisp/vc/ediff-util.el

index f5177bca112300ba38790a1b85c74a393db9fa03..04926af16efe9f863eeb241744ad94010606fa6d 100644 (file)
@@ -1573,9 +1573,8 @@ This default should work without changes."
 
 
 (defun ediff-convert-standard-filename (fname)
-  (if (fboundp 'convert-standard-filename)
-      (convert-standard-filename fname)
-    fname))
+  (declare (obsolete convert-standard-filename "28.1"))
+  (convert-standard-filename fname))
 
 (define-obsolete-function-alias 'ediff-with-syntax-table
   #'with-syntax-table "27.1")
index e31f43dded3618f402d44eed869d764d0f4737d1..f56d31c7136fd5ef2740bd4d242c0de0c6d564d3 100644 (file)
@@ -240,18 +240,16 @@ to invocation.")
                             startup-hooks setup-parameters
                             &optional merge-buffer-file)
   (run-hooks 'ediff-before-setup-hook)
-  ;; ediff-convert-standard-filename puts file names in the form appropriate
+  ;; convert-standard-filename puts file names in the form appropriate
   ;; for the OS at hand.
-  (setq file-A (ediff-convert-standard-filename (expand-file-name file-A)))
-  (setq file-B (ediff-convert-standard-filename (expand-file-name file-B)))
+  (setq file-A (convert-standard-filename (expand-file-name file-A)))
+  (setq file-B (convert-standard-filename (expand-file-name file-B)))
   (if (stringp file-C)
-      (setq file-C
-           (ediff-convert-standard-filename (expand-file-name file-C))))
+      (setq file-C (convert-standard-filename (expand-file-name file-C))))
   (if (stringp merge-buffer-file)
       (progn
        (setq merge-buffer-file
-             (ediff-convert-standard-filename
-              (expand-file-name merge-buffer-file)))
+             (convert-standard-filename (expand-file-name merge-buffer-file)))
        ;; check the directory exists
        (or (file-exists-p (file-name-directory merge-buffer-file))
            (error "Directory %s given as place to save the merge doesn't exist"
@@ -3132,7 +3130,7 @@ Hit \\[ediff-recenter] to reset the windows afterward."
 ;; Also, save buffer from START to END in the file.
 ;; START defaults to (point-min), END to (point-max)
 (defun ediff-make-temp-file (buff &optional prefix given-file start end)
-  (let* ((p (ediff-convert-standard-filename (or prefix "ediff")))
+  (let* ((p (convert-standard-filename (or prefix "ediff")))
         (short-p p)
         (coding-system-for-write ediff-coding-system-for-write)
         f short-f)