]> git.eshelyaron.com Git - emacs.git/commitdiff
Make unused `Buffer-menu-sort' alias obsolete
authorLars Ingebrigtsen <larsi@gnus.org>
Wed, 17 Feb 2021 19:14:22 +0000 (20:14 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Wed, 17 Feb 2021 19:20:49 +0000 (20:20 +0100)
* lisp/buff-menu.el (Buffer-menu-sort): Make unused alias obsolete.
* test/lisp/progmodes/elisp-mode-tests.el
(find-defs-defalias-defun-el): Adjust test to use an alias that's
not obsolete.

lisp/buff-menu.el
test/lisp/progmodes/elisp-mode-tests.el

index 4022615a3b7539ce6e1ccd13c53b7712347e9658..6df935fef8abaf6e317cae94e88cd9ed5bb1083e 100644 (file)
@@ -338,7 +338,8 @@ negative ARG, display other buffers as well."
             "Showing all non-internal buffers."))
   (revert-buffer))
 
-(defalias 'Buffer-menu-sort 'tabulated-list-sort)
+(define-obsolete-function-alias 'Buffer-menu-sort 'tabulated-list-sort
+  "28.1")
 \f
 
 (defun Buffer-menu-buffer (&optional error-if-non-existent-p)
index badcad670c2992d052bc16b0aab7baf7cfa2b99b..f47d54e59c017f900aecf2a75fc447e70db025bf 100644 (file)
@@ -398,18 +398,21 @@ to (xref-elisp-test-descr-to-target xref)."
     "(cl-defstruct (xref-elisp-location")
    ))
 
+(require 'em-xtra)
+(require 'find-dired)
 (xref-elisp-deftest find-defs-defalias-defun-el
-  (elisp--xref-find-definitions 'Buffer-menu-sort)
+  (elisp--xref-find-definitions 'eshell/ff)
   (list
-   (xref-make "(defalias Buffer-menu-sort)"
+   (xref-make "(defalias eshell/ff)"
              (xref-make-elisp-location
-              'Buffer-menu-sort 'defalias
-              (expand-file-name "../../../lisp/buff-menu.elc" emacs-test-dir)))
-   (xref-make "(defun tabulated-list-sort)"
+              'eshell/ff 'defalias
+              (expand-file-name "../../../lisp/eshell/em-xtra.elc"
+                                 emacs-test-dir)))
+   (xref-make "(defun find-name-dired)"
              (xref-make-elisp-location
-              'tabulated-list-sort nil
-              (expand-file-name "../../../lisp/emacs-lisp/tabulated-list.el" emacs-test-dir)))
-   ))
+              'find-name-dired nil
+              (expand-file-name "../../../lisp/find-dired.el"
+                                 emacs-test-dir)))))
 
 ;; FIXME: defconst