[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/xml-rpc 86c73a69fa 48/64: Use lexical-binding
From: |
Stefan Kangas |
Subject: |
[nongnu] elpa/xml-rpc 86c73a69fa 48/64: Use lexical-binding |
Date: |
Fri, 31 Dec 2021 20:11:10 -0500 (EST) |
branch: elpa/xml-rpc
commit 86c73a69fa3e1ad20fdad1010cfeae1903c7cba6
Author: Stefan Kangas <stefankangas@gmail.com>
Commit: Stefan Kangas <stefankangas@gmail.com>
Use lexical-binding
---
xml-rpc.el | 23 ++++++++++++++---------
1 file changed, 14 insertions(+), 9 deletions(-)
diff --git a/xml-rpc.el b/xml-rpc.el
index 6d3334db46..54e794f1b8 100644
--- a/xml-rpc.el
+++ b/xml-rpc.el
@@ -1,4 +1,4 @@
-;;; xml-rpc.el --- An elisp implementation of clientside XML-RPC
+;;; xml-rpc.el --- An elisp implementation of clientside XML-RPC -*-
lexical-binding:t -*-
;; Copyright (C) 2002-2010 Mark A. Hershberger
;; Copyright (C) 2001 CodeFactory AB.
@@ -317,21 +317,24 @@ a list that is not datetime, base64 or struct."
"Return t if VALUE is a vector - used to pass in empty lists"
(vectorp value))
+(defvar xml-rpc--date-parses-as nil)
+(defvar xml-rpc--tz-pd-defined-in nil)
+
(defun xml-rpc-submit-bug-report ()
"Submit a bug report on xml-rpc."
(interactive)
(require 'reporter)
- (let ((xml-rpc-tz-pd-defined-in
+ (let ((xml-rpc--tz-pd-defined-in
(if (fboundp 'find-lisp-object-file-name)
(find-lisp-object-file-name
'timezone-parse-date (symbol-function 'timezone-parse-date))
(symbol-file 'timezone-parse-date)))
- (date-parses-as (timezone-parse-date "20091130T00:52:53")))
+ (xml-rpc--date-parses-as (timezone-parse-date "20091130T00:52:53")))
(reporter-submit-bug-report
xml-rpc-maintainer-address
(concat "xml-rpc.el " xml-rpc-version)
- (list 'xml-rpc-tz-pd-defined-in
- 'date-parses-as
+ (list 'xml-rpc--tz-pd-defined-in
+ 'xml-rpc--date-parses-as
'xml-rpc-load-hook
'xml-rpc-use-coding-system
'xml-rpc-allow-unicode-string
@@ -552,6 +555,11 @@ the parsed XML response is returned."
;; Method handling
;;
+(defvar url-current-callback-data)
+(defvar url-current-callback-func)
+(defvar url-http-response-status)
+(defvar url-request-coding-system)
+
(defun xml-rpc-request (server-url xml &optional async-callback-function)
"Perform http post request to SERVER-URL using XML.
@@ -562,9 +570,6 @@ a single argument being an xml.el style XML list.
It returns an XML list containing the method response from the XML-RPC server,
or nil if called with ASYNC-CALLBACK-FUNCTION."
- (declare (special url-current-callback-data
- url-current-callback-func
- url-http-response-status))
(unwind-protect
(save-excursion
(let ((url-request-method "POST")
@@ -715,7 +720,7 @@ handled from XML-BUFFER."
(funcall callback-fun (xml-rpc-xml-to-response xml-response))))
-(defun xml-new-rpc-request-callback-handler (status callback-fun)
+(defun xml-new-rpc-request-callback-handler (_status callback-fun)
"Handle a new style `url-retrieve' callback passing `STATUS' and
`CALLBACK-FUN'."
(let ((xml-buffer (current-buffer)))
(xml-rpc-request-callback-handler callback-fun xml-buffer)))
- [nongnu] elpa/xml-rpc 3346027583 13/64: update timestamps, (continued)
- [nongnu] elpa/xml-rpc 3346027583 13/64: update timestamps, Stefan Kangas, 2021/12/31
- [nongnu] elpa/xml-rpc 3e329a3657 19/64: Update copyright to GPL 3, add installation instructions., Stefan Kangas, 2021/12/31
- [nongnu] elpa/xml-rpc 750fd4fb15 17/64: On functions that are conditionally defined, (xml-debug-print, timezone-parse-date), take them out of the eval-when-compile block so that they're compiled into .elc files. (url): Make sure url-http is loaded to avoid warnings later about let-bound variables. (xml-rpc-value-arrayp): Also verify that it is not a dateTime value., Stefan Kangas, 2021/12/31
- [nongnu] elpa/xml-rpc c8b5e022cd 23/64: Apply Leo's patches, Stefan Kangas, 2021/12/31
- [nongnu] elpa/xml-rpc 0bdeb7d339 26/64: fix problem with debugging & another extra var xemacs found, Stefan Kangas, 2021/12/31
- [nongnu] elpa/xml-rpc 8d06f89027 35/64: xml-rpc.el: add xml-rpc-request-extra-headers variable, Stefan Kangas, 2021/12/31
- [nongnu] elpa/xml-rpc 822f5bc020 34/64: Incorporate changes from LaTeX Track Changes, Stefan Kangas, 2021/12/31
- [nongnu] elpa/xml-rpc 80809710fc 31/64: Integrate patches from Stefan Kangas: * add support for i8 * fix byte compile warnings, Stefan Kangas, 2021/12/31
- [nongnu] elpa/xml-rpc 6019352966 39/64: Add the beginning of rudimentary tests., Stefan Kangas, 2021/12/31
- [nongnu] elpa/xml-rpc 7a4ea6c22e 38/64: History update and version bump, Stefan Kangas, 2021/12/31
- [nongnu] elpa/xml-rpc 86c73a69fa 48/64: Use lexical-binding,
Stefan Kangas <=
- [nongnu] elpa/xml-rpc bc781d6edd 51/64: Merge pull request #15 from skangas/lexical-binding, Stefan Kangas, 2021/12/31
- [nongnu] elpa/xml-rpc 960b2510e3 61/64: Update README, Stefan Kangas, 2021/12/31
- [nongnu] elpa/xml-rpc bc331d010b 56/64: Test CI, Stefan Kangas, 2021/12/31
- [nongnu] elpa/xml-rpc 9fa979302b 63/64: Merge pull request #17 from xml-rpc-el/ci, Stefan Kangas, 2021/12/31
- [nongnu] elpa/xml-rpc 7b4d6c4820 04/64: Update copyright. (xml-rpc-response-errorp): make safe., Stefan Kangas, 2021/12/31
- [nongnu] elpa/xml-rpc 4efc188b7f 53/64: Merge pull request #13 from skangas/version-number, Stefan Kangas, 2021/12/31
- [nongnu] elpa/xml-rpc a190759da8 41/64: Merge pull request #2 from mdorman/master, Stefan Kangas, 2021/12/31
- [nongnu] elpa/xml-rpc 7bcf1427b7 07/64: (xml-rpc-value-datep): New function to determine if a string is an ISO date. (xml-rpc-value-to-xml-list): Add support for vector inputs. Add support for strings that are really dates., Stefan Kangas, 2021/12/31
- [nongnu] elpa/xml-rpc bfa3f97259 09/64: Clean up long lines, address bugs, use string-to-number instead of obsolete string-to-int., Stefan Kangas, 2021/12/31
- [nongnu] elpa/xml-rpc 417f3d2a94 12/64: (xml-entity-alist): provide a definition for really old versions of xml.el. (xml-rpc-use-coding-system): Make unicode variables dependent on the existence of utf-8 coding-system. Generally allow use of Emacs that don't understand Unicode -- although the HTTP headers still claim to be UTF-8. Update backwards-compatibility code after testing against XEmacs21., Stefan Kangas, 2021/12/31