aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1997-04-22 16:59:47 +0000
committerRichard M. Stallman1997-04-22 16:59:47 +0000
commitef3f635fc199f6c64e1815e12c299e0daef280b8 (patch)
tree0c093c3d3030954d9799ff286a8a335c054e71ac
parent46fa5a8374ea61d84a1f044522de9e17dd367e04 (diff)
downloademacs-ef3f635fc199f6c64e1815e12c299e0daef280b8.tar.gz
emacs-ef3f635fc199f6c64e1815e12c299e0daef280b8.zip
Use copy-sequence, not copy-list.
-rw-r--r--lisp/wid-edit.el29
1 files changed, 23 insertions, 6 deletions
diff --git a/lisp/wid-edit.el b/lisp/wid-edit.el
index e7985c5bc8f..fe85d3c0286 100644
--- a/lisp/wid-edit.el
+++ b/lisp/wid-edit.el
@@ -7,6 +7,23 @@
7;; Version: 1.84 7;; Version: 1.84
8;; X-URL: http://www.dina.kvl.dk/~abraham/custom/ 8;; X-URL: http://www.dina.kvl.dk/~abraham/custom/
9 9
10;; This file is part of GNU Emacs.
11
12;; GNU Emacs is free software; you can redistribute it and/or modify
13;; it under the terms of the GNU General Public License as published by
14;; the Free Software Foundation; either version 2, or (at your option)
15;; any later version.
16
17;; GNU Emacs is distributed in the hope that it will be useful,
18;; but WITHOUT ANY WARRANTY; without even the implied warranty of
19;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20;; GNU General Public License for more details.
21
22;; You should have received a copy of the GNU General Public License
23;; along with GNU Emacs; see the file COPYING. If not, write to the
24;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
25;; Boston, MA 02111-1307, USA.
26
10;;; Commentary: 27;;; Commentary:
11;; 28;;
12;; See `widget.el'. 29;; See `widget.el'.
@@ -575,7 +592,7 @@ The child is converted, using the keyword arguments ARGS."
575 592
576(defun widget-create-child (parent type) 593(defun widget-create-child (parent type)
577 "Create widget of TYPE." 594 "Create widget of TYPE."
578 (let ((widget (copy-list type))) 595 (let ((widget (copy-sequence type)))
579 (widget-put widget :parent parent) 596 (widget-put widget :parent parent)
580 (unless (widget-get widget :indent) 597 (unless (widget-get widget :indent)
581 (widget-put widget :indent (+ (or (widget-get parent :indent) 0) 598 (widget-put widget :indent (+ (or (widget-get parent :indent) 0)
@@ -586,7 +603,7 @@ The child is converted, using the keyword arguments ARGS."
586 603
587(defun widget-create-child-value (parent type value) 604(defun widget-create-child-value (parent type value)
588 "Create widget of TYPE with value VALUE." 605 "Create widget of TYPE with value VALUE."
589 (let ((widget (copy-list type))) 606 (let ((widget (copy-sequence type)))
590 (widget-put widget :value (widget-apply widget :value-to-internal value)) 607 (widget-put widget :value (widget-apply widget :value-to-internal value))
591 (widget-put widget :parent parent) 608 (widget-put widget :parent parent)
592 (unless (widget-get widget :indent) 609 (unless (widget-get widget :indent)
@@ -607,7 +624,7 @@ The optional ARGS are additional keyword arguments."
607 ;; Don't touch the type. 624 ;; Don't touch the type.
608 (let* ((widget (if (symbolp type) 625 (let* ((widget (if (symbolp type)
609 (list type) 626 (list type)
610 (copy-list type))) 627 (copy-sequence type)))
611 (current widget) 628 (current widget)
612 (keys args)) 629 (keys args))
613 ;; First set the :args keyword. 630 ;; First set the :args keyword.
@@ -1650,7 +1667,7 @@ With optional ARG, move across that many fields."
1650(defun widget-checklist-match-inline (widget values) 1667(defun widget-checklist-match-inline (widget values)
1651 ;; Find the values which match a type in the checklist. 1668 ;; Find the values which match a type in the checklist.
1652 (let ((greedy (widget-get widget :greedy)) 1669 (let ((greedy (widget-get widget :greedy))
1653 (args (copy-list (widget-get widget :args))) 1670 (args (copy-sequence (widget-get widget :args)))
1654 found rest) 1671 found rest)
1655 (while values 1672 (while values
1656 (let ((answer (widget-checklist-match-up args values))) 1673 (let ((answer (widget-checklist-match-up args values)))
@@ -1671,7 +1688,7 @@ With optional ARG, move across that many fields."
1671 ;; Find the vals which match a type in the checklist. 1688 ;; Find the vals which match a type in the checklist.
1672 ;; Return an alist of (TYPE MATCH). 1689 ;; Return an alist of (TYPE MATCH).
1673 (let ((greedy (widget-get widget :greedy)) 1690 (let ((greedy (widget-get widget :greedy))
1674 (args (copy-list (widget-get widget :args))) 1691 (args (copy-sequence (widget-get widget :args)))
1675 found) 1692 found)
1676 (while vals 1693 (while vals
1677 (let ((answer (widget-checklist-match-up args vals))) 1694 (let ((answer (widget-checklist-match-up args vals)))
@@ -2058,7 +2075,7 @@ With optional ARG, move across that many fields."
2058(defun widget-editable-list-delete-at (widget child) 2075(defun widget-editable-list-delete-at (widget child)
2059 ;; Delete child from list of children. 2076 ;; Delete child from list of children.
2060 (save-excursion 2077 (save-excursion
2061 (let ((buttons (copy-list (widget-get widget :buttons))) 2078 (let ((buttons (copy-sequence (widget-get widget :buttons)))
2062 button 2079 button
2063 (inhibit-read-only t) 2080 (inhibit-read-only t)
2064 after-change-functions) 2081 after-change-functions)