]> git.eshelyaron.com Git - emacs.git/commitdiff
Rename object-sort-list to srecode-object-sort-list
authorStefan Kangas <stefan@marxist.se>
Fri, 5 Aug 2022 11:00:06 +0000 (13:00 +0200)
committerStefan Kangas <stefan@marxist.se>
Fri, 5 Aug 2022 11:05:06 +0000 (13:05 +0200)
* lisp/cedet/srecode/table.el (srecode-object-sort-list): Rename
from 'object-sort-list'.  Retain old name as an obsolete alias.

lisp/cedet/srecode/table.el

index 3dfbb9d58b139a67f134a46f49ca3ed820dd9843..f77898f90659c6222122854f0f632c6ce9dd9c9f 100644 (file)
@@ -200,13 +200,13 @@ INIT are the initialization parameters for the new template table."
     ;; go front-to-back, the highest priority items are put
     ;; into the search table first, allowing lower priority items
     ;; to be the items found in the search table.
-    (object-sort-list mt 'modetables (lambda (a b)
-                                      (> (oref a priority)
-                                         (oref b priority))))
+    (srecode-object-sort-list mt 'modetables (lambda (a b)
+                                               (> (oref a priority)
+                                                  (oref b priority))))
     ;; Return it.
     new))
 
-(defun object-sort-list (object slot predicate)
+(defun srecode-object-sort-list (object slot predicate)
   "Sort the items in OBJECT's SLOT.
 Use PREDICATE is the same as for the `sort' function."
   (when (slot-boundp object slot)
@@ -284,6 +284,8 @@ Use PREDICATE is the same as for the `sort' function."
       (setq temp (cdr temp))))
   )
 
+(define-obsolete-function-alias 'object-sort-list
+  #'srecode-object-sort-list "29.1")
 
 (provide 'srecode/table)