2001-03-08 Katsumi Yamaoka <yamaoka@jpl.org>
+ * lisp/dgnushack.el: Load gnus-clfns.el after `load-path' is
+ adjusted.
+
* lisp/gnus-clfns.el (string): New compiler macro.
+ (string): Defun-maybe as an ordinary function since it won't be
+ provided in cl.
* lisp/gnus-score.el (gnus-score-find-bnews): Use it as Gnus does.
2001-03-06 Katsumi Yamaoka <yamaoka@jpl.org>
(si:byte-optimize-form-code-walker form for-effect)))
(byte-compile 'byte-optimize-form-code-walker))
-(load (expand-file-name "gnus-clfns.el" srcdir) nil t t)
-
(condition-case nil
(char-after)
(wrong-number-of-arguments
(push srcdir load-path)
(load (expand-file-name "lpath.el" srcdir) nil t t)
+(load (expand-file-name "gnus-clfns.el" srcdir) nil t t)
+
(require 'custom)
;; Bind functions defined by `defun-maybe'.
;;; Commentary:
-;; Avoid cl runtime functions for FSF Emacsen.
+;; This module is for mainly avoiding cl runtime functions in FSF
+;; Emacsen. Function should also be defined as an ordinary function
+;; if it will not be provided in cl.
;;; Code:
(if (featurep 'xemacs)
nil
(require 'cl)
+ (require 'pym)
(define-compiler-macro butlast (&whole form x &optional n)
(if (and (fboundp 'butlast)
form
(list 'concat (cons 'list args))))
+ (defun-maybe string (&rest args)
+ "Concatenate all the argument characters and make the result a string."
+ (concat args))
+
(define-compiler-macro subseq (&whole form seq start &optional end)
(if (and (fboundp 'subseq)
(subrp (symbol-function 'subseq)))