;; Version: 1.84
;; X-URL: http://www.dina.kvl.dk/~abraham/custom/
+;; This file is part of GNU Emacs.
+
+;; GNU Emacs is free software; you can redistribute it and/or modify
+;; it under the terms of the GNU General Public License as published by
+;; the Free Software Foundation; either version 2, or (at your option)
+;; any later version.
+
+;; GNU Emacs is distributed in the hope that it will be useful,
+;; but WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+;; GNU General Public License for more details.
+
+;; You should have received a copy of the GNU General Public License
+;; along with GNU Emacs; see the file COPYING. If not, write to the
+;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+;; Boston, MA 02111-1307, USA.
+
;;; Commentary:
;;
;; See `widget.el'.
(defun widget-create-child (parent type)
"Create widget of TYPE."
- (let ((widget (copy-list type)))
+ (let ((widget (copy-sequence type)))
(widget-put widget :parent parent)
(unless (widget-get widget :indent)
(widget-put widget :indent (+ (or (widget-get parent :indent) 0)
(defun widget-create-child-value (parent type value)
"Create widget of TYPE with value VALUE."
- (let ((widget (copy-list type)))
+ (let ((widget (copy-sequence type)))
(widget-put widget :value (widget-apply widget :value-to-internal value))
(widget-put widget :parent parent)
(unless (widget-get widget :indent)
;; Don't touch the type.
(let* ((widget (if (symbolp type)
(list type)
- (copy-list type)))
+ (copy-sequence type)))
(current widget)
(keys args))
;; First set the :args keyword.
(defun widget-checklist-match-inline (widget values)
;; Find the values which match a type in the checklist.
(let ((greedy (widget-get widget :greedy))
- (args (copy-list (widget-get widget :args)))
+ (args (copy-sequence (widget-get widget :args)))
found rest)
(while values
(let ((answer (widget-checklist-match-up args values)))
;; Find the vals which match a type in the checklist.
;; Return an alist of (TYPE MATCH).
(let ((greedy (widget-get widget :greedy))
- (args (copy-list (widget-get widget :args)))
+ (args (copy-sequence (widget-get widget :args)))
found)
(while vals
(let ((answer (widget-checklist-match-up args vals)))
(defun widget-editable-list-delete-at (widget child)
;; Delete child from list of children.
(save-excursion
- (let ((buttons (copy-list (widget-get widget :buttons)))
+ (let ((buttons (copy-sequence (widget-get widget :buttons)))
button
(inhibit-read-only t)
after-change-functions)