Mercurial > hg > xemacs-beta
diff lisp/subr.el @ 5448:89331fa1c819
Merged with trunk.
author | Mats Lidell <matsl@xemacs.org> |
---|---|
date | Thu, 06 Jan 2011 00:35:22 +0100 |
parents | 6506fcb40fcf d1b17a33450b |
children | a9094f28f9a9 |
line wrap: on
line diff
--- a/lisp/subr.el Fri Dec 31 01:09:41 2010 +0100 +++ b/lisp/subr.el Thu Jan 06 00:35:22 2011 +0100 @@ -224,6 +224,9 @@ ;; XEmacs; this is in Lisp, its bytecode now taken by subseq. (define-function 'substring 'subseq) + +(define-function 'sort 'sort*) +(define-function 'fillarray 'fill) ;; XEmacs: (defun local-variable-if-set-p (sym buffer) @@ -1102,13 +1105,13 @@ "Replace the variable names in MAP-PLIST-DEFINITION with uninterned symbols, avoiding the risk of interference with variables in other functions introduced by dynamic scope." - (if-fboundp 'nsublis - (nsublis - '((mp-function . #:function) - (plist . #:plist) - (result . #:result)) - map-plist-definition) - map-plist-definition))) + (nsublis '((mp-function . #:function) + (plist . #:plist) + (result . #:result)) + ;; Need to specify #'eq as the test, otherwise we have a + ;; bootstrap issue, since #'eql is in cl.el, loaded after + ;; this file. + map-plist-definition :test #'eq))) (defun map-plist (mp-function plist) "Map FUNCTION (a function of two args) over each key/value pair in PLIST. Return a list of the results."