diff options
author | Tino Calancha <tino.calancha@gmail.com> | 2016-08-13 13:25:15 +0900 |
---|---|---|
committer | Tino Calancha <tino.calancha@gmail.com> | 2016-08-13 13:25:15 +0900 |
commit | 50548fd9afe70c43b3a0c0869f8e889b307ee917 (patch) | |
tree | 9e9e0ac38f0c8c0fb39d00c56510fe223d126b4d /lisp/emacs-lisp | |
parent | 9f17bf6e64988747942ff6117a5f8d6c12a4ea6e (diff) | |
download | emacs-50548fd9afe70c43b3a0c0869f8e889b307ee917.tar.gz emacs-50548fd9afe70c43b3a0c0869f8e889b307ee917.tar.bz2 emacs-50548fd9afe70c43b3a0c0869f8e889b307ee917.zip |
cl-fill: Rename arguments to cl-seq and cl-item
* lisp/emacs-lisp/cl-seq.el (cl-fill):
Rename arguments to 'cl-seq' and 'cl-item' as elsewhere.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r-- | lisp/emacs-lisp/cl-seq.el | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lisp/emacs-lisp/cl-seq.el b/lisp/emacs-lisp/cl-seq.el index 98e5f4e4288..ed27b7c7d05 100644 --- a/lisp/emacs-lisp/cl-seq.el +++ b/lisp/emacs-lisp/cl-seq.el @@ -144,24 +144,24 @@ called. cl-accum))) ;;;###autoload -(defun cl-fill (seq item &rest cl-keys) +(defun cl-fill (cl-seq cl-item &rest cl-keys) "Fill the elements of SEQ with ITEM. \nKeywords supported: :start :end \n(fn SEQ ITEM [KEYWORD VALUE]...)" (cl--parsing-keywords ((:start 0) :end) () - (if (listp seq) - (let ((p (nthcdr cl-start seq)) + (if (listp cl-seq) + (let ((p (nthcdr cl-start cl-seq)) (n (if cl-end (- cl-end cl-start) 8000000))) (while (and p (>= (setq n (1- n)) 0)) - (setcar p item) + (setcar p cl-item) (setq p (cdr p)))) - (or cl-end (setq cl-end (length seq))) - (if (and (= cl-start 0) (= cl-end (length seq))) - (fillarray seq item) + (or cl-end (setq cl-end (length cl-seq))) + (if (and (= cl-start 0) (= cl-end (length cl-seq))) + (fillarray cl-seq cl-item) (while (< cl-start cl-end) - (aset seq cl-start item) + (aset cl-seq cl-start cl-item) (setq cl-start (1+ cl-start))))) - seq)) + cl-seq)) ;;;###autoload (defun cl-replace (cl-seq1 cl-seq2 &rest cl-keys) |