mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
app-emacs/mediawiki: Compatibility fix in url-compat-retrieve.
Package-Manager: Portage-2.3.75, Repoman-2.3.17 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
This commit is contained in:
@@ -6,6 +6,6 @@
|
||||
(eval-after-load "mediawiki"
|
||||
'(add-to-list
|
||||
'mediawiki-site-alist
|
||||
'("Gentoo" "https://wiki.gentoo.org/wiki/" "" "" nil "Main Page")
|
||||
'("Gentoo" "https://wiki.gentoo.org/" "" "" nil "Main Page")
|
||||
nil
|
||||
(lambda (a b) (equal (car a) (car b)))))
|
||||
|
||||
25
app-emacs/mediawiki/files/mediawiki-2.2.9-user-agent.patch
Normal file
25
app-emacs/mediawiki/files/mediawiki-2.2.9-user-agent.patch
Normal file
@@ -0,0 +1,25 @@
|
||||
Fix "(wrong-type-argument stringp default)" in url-compat-retrieve.
|
||||
https://github.com/hexmode/mediawiki-el/issues/27
|
||||
|
||||
--- mediawiki-el-2.2.9-orig/mediawiki.el
|
||||
+++ mediawiki-el-2.2.9/mediawiki.el
|
||||
@@ -414,10 +414,15 @@
|
||||
POST-PROCESS is the function to call for post-processing.
|
||||
BUFFER is the buffer to store the result in. CALLBACK will be
|
||||
called in BUFFER with CBARGS, if given."
|
||||
- (let ((url-user-agent (concat (string-trim (if (functionp url-user-agent)
|
||||
- (funcall url-user-agent)
|
||||
- url-user-agent))
|
||||
- " mediawiki.el " mediawiki-version "\r\n")))
|
||||
+ (let ((url-user-agent
|
||||
+ (if (eq url-user-agent 'default)
|
||||
+ 'default
|
||||
+ (concat (string-trim (if (functionp url-user-agent)
|
||||
+ (funcall url-user-agent)
|
||||
+ url-user-agent))
|
||||
+ " mediawiki.el " mediawiki-version "\r\n")))
|
||||
+ (url-package-name "mediawiki.el")
|
||||
+ (url-package-version mediawiki-version))
|
||||
(cond ((boundp 'url-be-asynchronous) ; Sniff w3 lib capability
|
||||
(if callback
|
||||
(setq url-be-asynchronous t)
|
||||
@@ -15,5 +15,6 @@ SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
S="${WORKDIR}/${MY_PN}-${PV}"
|
||||
ELISP_PATCHES="${P}-user-agent.patch"
|
||||
SITEFILE="50${PN}-gentoo-${PV}.el"
|
||||
DOCS="README.mediawiki"
|
||||
Reference in New Issue
Block a user