Mercurial > hg > xemacs-beta
diff lisp/subr.el @ 5328:dae3d95cf319
Merge.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Sun, 02 Jan 2011 02:32:59 +0000 |
parents | d1b17a33450b |
children | 8608eadee6ba 89331fa1c819 |
line wrap: on
line diff
--- a/lisp/subr.el Sun Jan 02 00:06:14 2011 +0000 +++ b/lisp/subr.el Sun Jan 02 02:32:59 2011 +0000 @@ -226,6 +226,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) @@ -1104,13 +1107,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."