From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ivan Shmakov Newsgroups: gmane.emacs.bugs Subject: bug#18687: mw: modular MediaWiki interface for Emacs Date: Fri, 20 Feb 2015 07:09:35 +0000 Message-ID: <874mqh5aa8.fsf@violet.siamics.net> References: <87oatpkof7.fsf@passepartout.tim-landscheidt.de> <87r3ye3mf7.fsf@violet.siamics.net> <87zjd1zj0q.fsf@violet.siamics.net> <87k342zabt.fsf@violet.siamics.net> <874muvpz2m.fsf__26477.4647228935$1414013842$gmane$org@violet.siamics.net> <87siide1r2.fsf@violet.siamics.net> <87k3186mri.fsf_-_@violet.siamics.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1424416225 28045 80.91.229.3 (20 Feb 2015 07:10:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 20 Feb 2015 07:10:25 +0000 (UTC) To: 18687@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 20 08:10:13 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YOhj2-0005Oq-Dn for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Feb 2015 08:10:12 +0100 Original-Received: from localhost ([::1]:59299 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YOhj1-0002sv-L7 for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Feb 2015 02:10:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51526) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YOhix-0002pT-6j for bug-gnu-emacs@gnu.org; Fri, 20 Feb 2015 02:10:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YOhit-0000So-17 for bug-gnu-emacs@gnu.org; Fri, 20 Feb 2015 02:10:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57832) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YOhis-0000Ro-Kh for bug-gnu-emacs@gnu.org; Fri, 20 Feb 2015 02:10:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YOhis-0008L6-1J for bug-gnu-emacs@gnu.org; Fri, 20 Feb 2015 02:10:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ivan Shmakov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 20 Feb 2015 07:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18687 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18687-submit@debbugs.gnu.org id=B18687.142441618832032 (code B ref 18687); Fri, 20 Feb 2015 07:10:01 +0000 Original-Received: (at 18687) by debbugs.gnu.org; 20 Feb 2015 07:09:48 +0000 Original-Received: from localhost ([127.0.0.1]:49072 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YOhid-0008Ka-NB for submit@debbugs.gnu.org; Fri, 20 Feb 2015 02:09:48 -0500 Original-Received: from fely.am-1.org ([78.47.74.50]:44772) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YOhia-0008KP-Dc for 18687@debbugs.gnu.org; Fri, 20 Feb 2015 02:09:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=siamics.net; s=a2013295; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Date:Sender:References:In-Reply-To:Subject:To:From; bh=6RpZyFhWtAc3/axtt84dV9kXPulEO4LLVblKAPUC7Y4=; b=ooZLIR7znjYvsoZ79TWWxumSafdEiXwQ6jC+rv2HT6guIxLLHlXFbAiN1bLLqkWZ07DoymgMAcOezH3+3ZaiSmxfaF++n3hDQBm4M37vL0+Wbk0q4uPi7taNMACrR3F0nkzXJgDHC98coa+jp1ppg+CQp2LWY3OK7Z1+sRsl47I=; Original-Received: from [2a02:2560:6d4:26ca::1:1d] (helo=violet.siamics.net) by fely.am-1.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1YOhiY-0003Uu-RQ for 18687@debbugs.gnu.org; Fri, 20 Feb 2015 07:09:42 +0000 Original-Received: from localhost ([::1] helo=violet.siamics.net) by violet.siamics.net with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1YOhiS-0000BG-D9 for 18687@debbugs.gnu.org; Fri, 20 Feb 2015 14:09:36 +0700 In-Reply-To: <87k3186mri.fsf_-_@violet.siamics.net> (Ivan Shmakov's message of "Wed, 31 Dec 2014 12:12:49 +0000") Mail-Followup-To: 18687@debbugs.gnu.org X-Date: Thu, 19 Feb 2015 22:42:43 +0000 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:99626 Archived-At: Some of the changes to the code are now went public [1, 2]. (Note the s/2014/2015/ year change in the URIs.) [1] https://am-1.org/~ivan/archives/git/mw-el-2015.git [2] https://am-1.org/~ivan/archives/git/gitweb.cgi?p=3Dmw-el-2015.git There, I=E2=80=99ve decided to rewind =E2=80=98master=E2=80=99 by three re= visions (back to 05d33edc); then put one of them (with the commit message edited for better correctness), as well as 4=C2=A0revisions formerly of =E2=80=98fixes-x54a46898=E2=80=99 (see [3]), and 8=C2=A0more fresh ones= , to the new =E2=80=98exp-x54e65706=E2=80=99 branch. One of the changes (17ebb542) introduces the =E2=80=9Ctop-level=E2=80=9D m= w.el file, which provides a =E2=80=98defgroup=E2=80=99, and is required by GNU = ELPA. I hope someone could review if I=E2=80=99ve done this part correctly. [3] news:87sifu43io.fsf@violet.siamics.net http://debbugs.gnu.org/18687#msg44 This still leaves some code I=E2=80=99d like to add before pushing the Git history to GNU ELPA, but I feel I=E2=80=99m roughly halfway of what I=E2=80=99ve planned for 0.2. A summary of the changes is as follows. 2fd573e0 New =E2=80=98mw-info-princ-alist=E2=80=99 and =E2=80=98mw-info-pr= inc-voa=E2=80=99 functions. The latter generalizes the former =E2=80=98vc-mw-print-revisions=E2=80= =99. 6d740471 New =E2=80=98vc-mw-revision-query-alist=E2=80=99 customizable var= iable. This one allows for an empty =E2=80=9Ccontinuation cookie=E2=80=9D to = be added to all the vc-mw.el queries in order to silence a warning emitted by newer MediaWiki versions. Also, it allows for the set of entries shown by vc-print-log to be customized, =E2=80=93 to the extent supported by the remote MediaWiki instance. 76b50f8c Fixed token logic in =E2=80=98vc-mw-buffer-page-info=E2=80=99 and =E2=80=98vc-mw-find-revision=E2=80=99. Now the tokens will be correctly requested whenever the remote is queried, /except/ for the log (IOW, =E2=80=98vc-mw-print-log=E2=80=99.) b3a39473 New =E2=80=98mw-xapi-adjoin-token-request=E2=80=99 function. bf8a70ce Promote several variables to customizable status. Namely: =E2=80=98mw-api-response-hook=E2=80=99 (which is also marked f= or autoloading, as a hook variable with a non-nil default value), =E2=80=98mw-buffer-associate-page-hook=E2=80=99, =E2=80=98mw-buffer-endpoint-safe-hook=E2=80=99, =E2=80=98mw-buffer-try-file-name-hook=E2=80=99. 215e4a07 Split token handling into new mw-xapi.el off mw-api.el. Which means that =E2=80=98mw-xapi-token=E2=80=99 is the new name for =E2=80=98mw-api-token=E2=80=99. Also introduces =E2=80=98mw-api-respo= nse-hook=E2=80=99. 21f8d096 Bump the version to 0.2 and update copyright years. This does /not/ include mw.el, as updating that would (I presume) trigger a release on GNU ELPA. 17ebb542 New mw.el replaces mw-pkg.el, anticipating the forthcoming GNU ELPA inclusion. Also introduces =E2=80=98mw-buffer=E2=80=99, =E2=80=98mw-api=E2=80=99,= and the package=E2=80=99s top-level =E2=80=98mw=E2=80=99 customization groups. --=20 FSF associate member #7257 http://boycottsystemd.org/ =E2=80=A6 3013 B6A0= 230E 334A