diff options
| author | Lars Magne Ingebrigtsen | 2015-02-06 14:04:13 +1100 |
|---|---|---|
| committer | Lars Magne Ingebrigtsen | 2015-02-06 14:04:13 +1100 |
| commit | 3fc745d5de3ef7825345132dbcd20784e5cab0e3 (patch) | |
| tree | 24ad5a8728c22f61cd48bf3540f34a2cba86c125 | |
| parent | bc4996520a3919bfc52e6fd95f6a0cb7c4c085aa (diff) | |
| download | emacs-3fc745d5de3ef7825345132dbcd20784e5cab0e3.tar.gz emacs-3fc745d5de3ef7825345132dbcd20784e5cab0e3.zip | |
Fix json error-definition condition build error
* lisp/subr.el (define-error): The error conditions may be constant
lists, so use `append' to concatenate them.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/subr.el | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 60746cef3f3..b60e410f96e 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2015-02-06 Lars Ingebrigtsen <larsi@gnus.org> | ||
| 2 | |||
| 3 | * subr.el (define-error): The error conditions may be constant | ||
| 4 | lists, so use `append' to concatenate them. | ||
| 5 | |||
| 1 | 2015-02-06 Wolfgang Jenkner <wjenkner@inode.at> | 6 | 2015-02-06 Wolfgang Jenkner <wjenkner@inode.at> |
| 2 | 7 | ||
| 3 | * net/network-stream.el (network-stream-open-tls): Respect the | 8 | * net/network-stream.el (network-stream-open-tls): Respect the |
diff --git a/lisp/subr.el b/lisp/subr.el index 68cd230c5e2..3b27b33d960 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -316,7 +316,7 @@ Defaults to `error'." | |||
| 316 | (unless parent (setq parent 'error)) | 316 | (unless parent (setq parent 'error)) |
| 317 | (let ((conditions | 317 | (let ((conditions |
| 318 | (if (consp parent) | 318 | (if (consp parent) |
| 319 | (apply #'nconc | 319 | (apply #'append |
| 320 | (mapcar (lambda (parent) | 320 | (mapcar (lambda (parent) |
| 321 | (cons parent | 321 | (cons parent |
| 322 | (or (get parent 'error-conditions) | 322 | (or (get parent 'error-conditions) |