diff options
| author | Thomas Fitzsimmons | 2015-11-11 23:43:50 -0500 |
|---|---|---|
| committer | Thomas Fitzsimmons | 2015-11-11 23:43:50 -0500 |
| commit | 055ca3a57e7326cd24bbb958531f6938466f5fd9 (patch) | |
| tree | 60290affe535d44d619c3197264b0fc5cfbc1c17 | |
| parent | e0f64e7b4f9c3bbc12c4909ca8c8aa751f1fca4a (diff) | |
| download | emacs-055ca3a57e7326cd24bbb958531f6938466f5fd9.tar.gz emacs-055ca3a57e7326cd24bbb958531f6938466f5fd9.zip | |
Sync with soap-client repository, version 3.0.2
* soap-client.el: Bump version to 3.0.2.
* soap-client.el (soap-warning): Use format, not format-message.
* soap-client.el: Add cl-lib to Package-Requires. Require cl-lib.
(soap-validate-xs-simple-type): Use cl-labels instead of cl-flet.
* soap-client.el: Support Emacs versions that do not have
define-error.
* soap-inspect.el: Remove version header.
* soap-client.el, soap-inspect.el, jira2.el: Fix first line header
format.
| -rw-r--r-- | lisp/net/soap-client.el | 25 | ||||
| -rw-r--r-- | lisp/net/soap-inspect.el | 3 |
2 files changed, 18 insertions, 10 deletions
diff --git a/lisp/net/soap-client.el b/lisp/net/soap-client.el index 83173250137..71d42459974 100644 --- a/lisp/net/soap-client.el +++ b/lisp/net/soap-client.el | |||
| @@ -1,14 +1,15 @@ | |||
| 1 | ;;;; soap-client.el -- Access SOAP web services -*- lexical-binding: t -*- | 1 | ;;; soap-client.el --- Access SOAP web services -*- lexical-binding: t -*- |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 2009-2015 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2009-2015 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: Alexandru Harsanyi <AlexHarsanyi@gmail.com> | 5 | ;; Author: Alexandru Harsanyi <AlexHarsanyi@gmail.com> |
| 6 | ;; Author: Thomas Fitzsimmons <fitzsim@fitzsim.org> | 6 | ;; Author: Thomas Fitzsimmons <fitzsim@fitzsim.org> |
| 7 | ;; Created: December, 2009 | 7 | ;; Created: December, 2009 |
| 8 | ;; Version: 3.0.1 | 8 | ;; Version: 3.0.2 |
| 9 | ;; Keywords: soap, web-services, comm, hypermedia | 9 | ;; Keywords: soap, web-services, comm, hypermedia |
| 10 | ;; Package: soap-client | 10 | ;; Package: soap-client |
| 11 | ;; Homepage: https://github.com/alex-hhh/emacs-soap-client | 11 | ;; Homepage: https://github.com/alex-hhh/emacs-soap-client |
| 12 | ;; Package-Requires: ((cl-lib "0.5")) | ||
| 12 | 13 | ||
| 13 | ;; This file is part of GNU Emacs. | 14 | ;; This file is part of GNU Emacs. |
| 14 | 15 | ||
| @@ -43,6 +44,7 @@ | |||
| 43 | ;;; Code: | 44 | ;;; Code: |
| 44 | 45 | ||
| 45 | (eval-when-compile (require 'cl)) | 46 | (eval-when-compile (require 'cl)) |
| 47 | (require 'cl-lib) | ||
| 46 | 48 | ||
| 47 | (require 'xml) | 49 | (require 'xml) |
| 48 | (require 'xsd-regexp) | 50 | (require 'xsd-regexp) |
| @@ -57,8 +59,8 @@ | |||
| 57 | 59 | ||
| 58 | (defsubst soap-warning (message &rest args) | 60 | (defsubst soap-warning (message &rest args) |
| 59 | "Display a warning MESSAGE with ARGS, using the 'soap-client warning type." | 61 | "Display a warning MESSAGE with ARGS, using the 'soap-client warning type." |
| 60 | (display-warning 'soap-client (apply #'format-message message args) | 62 | ;; Do not use #'format-message, to support older Emacs versions. |
| 61 | :warning)) | 63 | (display-warning 'soap-client (apply #'format message args) :warning)) |
| 62 | 64 | ||
| 63 | (defgroup soap-client nil | 65 | (defgroup soap-client nil |
| 64 | "Access SOAP web services from Emacs." | 66 | "Access SOAP web services from Emacs." |
| @@ -1246,9 +1248,9 @@ See also `soap-wsdl-resolve-references'." | |||
| 1246 | (error (push (cadr error-object) messages)))) | 1248 | (error (push (cadr error-object) messages)))) |
| 1247 | (when messages | 1249 | (when messages |
| 1248 | (error (mapconcat 'identity (nreverse messages) "; and: ")))) | 1250 | (error (mapconcat 'identity (nreverse messages) "; and: ")))) |
| 1249 | (cl-flet ((fail-with-message (format value) | 1251 | (cl-labels ((fail-with-message (format value) |
| 1250 | (push (format format value) messages) | 1252 | (push (format format value) messages) |
| 1251 | (throw 'invalid nil))) | 1253 | (throw 'invalid nil))) |
| 1252 | (catch 'invalid | 1254 | (catch 'invalid |
| 1253 | (let ((enumeration (soap-xs-simple-type-enumeration type))) | 1255 | (let ((enumeration (soap-xs-simple-type-enumeration type))) |
| 1254 | (when (and (> (length enumeration) 1) | 1256 | (when (and (> (length enumeration) 1) |
| @@ -2753,7 +2755,14 @@ decode function to perform the actual decoding." | |||
| 2753 | 2755 | ||
| 2754 | ;;;; Soap Envelope parsing | 2756 | ;;;; Soap Envelope parsing |
| 2755 | 2757 | ||
| 2756 | (define-error 'soap-error "SOAP error") | 2758 | (if (fboundp 'define-error) |
| 2759 | (define-error 'soap-error "SOAP error") | ||
| 2760 | ;; Support older Emacs versions that do not have define-error, so | ||
| 2761 | ;; that soap-client can remain unchanged in GNU ELPA. | ||
| 2762 | (put 'soap-error | ||
| 2763 | 'error-conditions | ||
| 2764 | '(error soap-error)) | ||
| 2765 | (put 'soap-error 'error-message "SOAP error")) | ||
| 2757 | 2766 | ||
| 2758 | (defun soap-parse-envelope (node operation wsdl) | 2767 | (defun soap-parse-envelope (node operation wsdl) |
| 2759 | "Parse the SOAP envelope in NODE and return the response. | 2768 | "Parse the SOAP envelope in NODE and return the response. |
diff --git a/lisp/net/soap-inspect.el b/lisp/net/soap-inspect.el index b01e2bf76f1..a4430417ad0 100644 --- a/lisp/net/soap-inspect.el +++ b/lisp/net/soap-inspect.el | |||
| @@ -1,10 +1,9 @@ | |||
| 1 | ;;;; soap-inspect.el -- Interactive WSDL inspector -*- lexical-binding: t -*- | 1 | ;;; soap-inspect.el --- Interactive WSDL inspector -*- lexical-binding: t -*- |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 2010-2015 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2010-2015 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: Alexandru Harsanyi <AlexHarsanyi@gmail.com> | 5 | ;; Author: Alexandru Harsanyi <AlexHarsanyi@gmail.com> |
| 6 | ;; Created: October 2010 | 6 | ;; Created: October 2010 |
| 7 | ;; Version: 3.0.1 | ||
| 8 | ;; Keywords: soap, web-services, comm, hypermedia | 7 | ;; Keywords: soap, web-services, comm, hypermedia |
| 9 | ;; Package: soap-client | 8 | ;; Package: soap-client |
| 10 | ;; Homepage: https://github.com/alex-hhh/emacs-soap-client | 9 | ;; Homepage: https://github.com/alex-hhh/emacs-soap-client |