diff options
| author | Stefan Kangas | 2022-08-05 13:00:06 +0200 |
|---|---|---|
| committer | Stefan Kangas | 2022-08-05 13:05:06 +0200 |
| commit | c388578fb1aa714f2cf5ae2ad8a2933ca902b9df (patch) | |
| tree | 87c6be231dcc4de7fdecf4ec292e7bcb555beb88 /lisp/cedet/srecode | |
| parent | 010e2e5e5e2c45c9aab08dffbe83f9acb4a87191 (diff) | |
| download | emacs-c388578fb1aa714f2cf5ae2ad8a2933ca902b9df.tar.gz emacs-c388578fb1aa714f2cf5ae2ad8a2933ca902b9df.zip | |
Rename object-sort-list to srecode-object-sort-list
* lisp/cedet/srecode/table.el (srecode-object-sort-list): Rename
from 'object-sort-list'. Retain old name as an obsolete alias.
Diffstat (limited to 'lisp/cedet/srecode')
| -rw-r--r-- | lisp/cedet/srecode/table.el | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lisp/cedet/srecode/table.el b/lisp/cedet/srecode/table.el index 3dfbb9d58b1..f77898f9065 100644 --- a/lisp/cedet/srecode/table.el +++ b/lisp/cedet/srecode/table.el | |||
| @@ -200,13 +200,13 @@ INIT are the initialization parameters for the new template table." | |||
| 200 | ;; go front-to-back, the highest priority items are put | 200 | ;; go front-to-back, the highest priority items are put |
| 201 | ;; into the search table first, allowing lower priority items | 201 | ;; into the search table first, allowing lower priority items |
| 202 | ;; to be the items found in the search table. | 202 | ;; to be the items found in the search table. |
| 203 | (object-sort-list mt 'modetables (lambda (a b) | 203 | (srecode-object-sort-list mt 'modetables (lambda (a b) |
| 204 | (> (oref a priority) | 204 | (> (oref a priority) |
| 205 | (oref b priority)))) | 205 | (oref b priority)))) |
| 206 | ;; Return it. | 206 | ;; Return it. |
| 207 | new)) | 207 | new)) |
| 208 | 208 | ||
| 209 | (defun object-sort-list (object slot predicate) | 209 | (defun srecode-object-sort-list (object slot predicate) |
| 210 | "Sort the items in OBJECT's SLOT. | 210 | "Sort the items in OBJECT's SLOT. |
| 211 | Use PREDICATE is the same as for the `sort' function." | 211 | Use PREDICATE is the same as for the `sort' function." |
| 212 | (when (slot-boundp object slot) | 212 | (when (slot-boundp object slot) |
| @@ -284,6 +284,8 @@ Use PREDICATE is the same as for the `sort' function." | |||
| 284 | (setq temp (cdr temp)))) | 284 | (setq temp (cdr temp)))) |
| 285 | ) | 285 | ) |
| 286 | 286 | ||
| 287 | (define-obsolete-function-alias 'object-sort-list | ||
| 288 | #'srecode-object-sort-list "29.1") | ||
| 287 | 289 | ||
| 288 | (provide 'srecode/table) | 290 | (provide 'srecode/table) |
| 289 | 291 | ||