aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Schwab2004-02-08 22:41:39 +0000
committerAndreas Schwab2004-02-08 22:41:39 +0000
commitc971696d040d9d7411a1ceeaf57e7c8e0ba490bf (patch)
tree90a6335254d881388e70330adb9480c0232e906c
parent0b762d9a539981b74159a2ba7243cf8acf39c3d7 (diff)
downloademacs-c971696d040d9d7411a1ceeaf57e7c8e0ba490bf.tar.gz
emacs-c971696d040d9d7411a1ceeaf57e7c8e0ba490bf.zip
(defstruct): Remove extra format string
argument. (cl-struct-setf-expander): Likewise.
-rw-r--r--lisp/emacs-lisp/cl-macs.el8
1 files changed, 3 insertions, 5 deletions
diff --git a/lisp/emacs-lisp/cl-macs.el b/lisp/emacs-lisp/cl-macs.el
index 038786bb944..6a6b006c2ba 100644
--- a/lisp/emacs-lisp/cl-macs.el
+++ b/lisp/emacs-lisp/cl-macs.el
@@ -1,6 +1,6 @@
1;;; cl-macs.el --- Common Lisp macros -*-byte-compile-dynamic: t;-*- 1;;; cl-macs.el --- Common Lisp macros -*-byte-compile-dynamic: t;-*-
2 2
3;; Copyright (C) 1993, 2003 Free Software Foundation, Inc. 3;; Copyright (C) 1993, 2003, 2004 Free Software Foundation, Inc.
4 4
5;; Author: Dave Gillespie <daveg@synaptics.com> 5;; Author: Dave Gillespie <daveg@synaptics.com>
6;; Version: 2.02 6;; Version: 2.02
@@ -2261,8 +2261,7 @@ copier, a `NAME-p' predicate, and setf-able `NAME-SLOT' accessors.
2261 (list (list 'or pred-check 2261 (list (list 'or pred-check
2262 (list 'error 2262 (list 'error
2263 (format "%s accessing a non-%s" 2263 (format "%s accessing a non-%s"
2264 accessor name) 2264 accessor name)))))
2265 'cl-x))))
2266 (list (if (eq type 'vector) (list 'aref 'cl-x pos) 2265 (list (if (eq type 'vector) (list 'aref 'cl-x pos)
2267 (if (= pos 0) '(car cl-x) 2266 (if (= pos 0) '(car cl-x)
2268 (list 'nth pos 'cl-x)))))) forms) 2267 (list 'nth pos 'cl-x)))))) forms)
@@ -2340,8 +2339,7 @@ copier, a `NAME-p' predicate, and setf-able `NAME-SLOT' accessors.
2340 (list (list 'or (subst temp 'cl-x pred-form) 2339 (list (list 'or (subst temp 'cl-x pred-form)
2341 (list 'error 2340 (list 'error
2342 (format 2341 (format
2343 "%s storing a non-%s" accessor name) 2342 "%s storing a non-%s" accessor name)))))
2344 temp))))
2345 (list (if (eq (car (get name 'cl-struct-type)) 'vector) 2343 (list (if (eq (car (get name 'cl-struct-type)) 'vector)
2346 (list 'aset temp pos store) 2344 (list 'aset temp pos store)
2347 (list 'setcar 2345 (list 'setcar