[gnus git] branch master updated: m0-1-31-gba7652b =2= Start a new file gnus-compat.el for the new compatabilty regime ; Remove commented-out code.

Lars Ingebrigtsen <[email protected]>
Newsgroups gmane.emacs.gnus.cvs
Message-ID <[email protected]>
       via  ba7652b1c0b3dfee4979db1b94f6ce945ba43151 (commit)
       via  b98129d147b959a003d5dca25e951fd61c924606 (commit)
      from  88c1e362cdc09905cf0400b4c9399e409e910b50 (commit)


- Log -----------------------------------------------------------------
commit ba7652b1c0b3dfee4979db1b94f6ce945ba43151
Author: Lars Ingebrigtsen <[email protected]>
Date:   Wed Feb 1 20:25:37 2012 +0100

    Start a new file gnus-compat.el for the new compatabilty regime
    
    * gnus-compat.el: New file.
    * gnus.el (gnus-compat): Require it.

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 16c1823..f005cc3 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,9 @@
 2012-02-01  Lars Ingebrigtsen  <[email protected]>
 
+	* gnus.el (gnus-compat): Require it.
+
+	* gnus-compat.el: New file.
+
 	* gnus-start.el (gnus-clean-old-newsrc): New function.
 	(gnus-read-newsrc-file): Use it.
 
diff --git a/lisp/gnus-compat.el b/lisp/gnus-compat.el
new file mode 100644
index 0000000..db2c452
--- /dev/null
+++ b/lisp/gnus-compat.el
@@ -0,0 +1,38 @@
+;;; gnus-compat.el --- Compatability functions for Gnus
+
+;; Copyright (C) 2012 Free Software Foundation, Inc.
+
+;; Author: Lars Magne Ingebrigtsen <[email protected]>
+;; Keywords: compat
+
+;; This file is part of GNU Emacs.
+
+;; GNU Emacs is free software: you can redistribute it and/or modify
+;; it under the terms of the GNU General Public License as published by
+;; the Free Software Foundation, either version 3 of the License, or
+;; (at your option) any later version.
+
+;; GNU Emacs is distributed in the hope that it will be useful,
+;; but WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+;; GNU General Public License for more details.
+
+;; You should have received a copy of the GNU General Public License
+;; along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.
+
+;;; Commentary:
+
+;; This package defines and redefines a bunch of functions for Gnus
+;; usage.  The basic (and somewhat unsound) idea is to make all
+;; Emacsen look like the current trunk of Emacs.  So it will define
+;; functions "missing" in other Emacs instances, and redefine other
+;; functions to work like the Emacs trunk versions.
+
+(provide 'gnus-compat)
+
+(when (and (not (fboundp 'help-function-arglist))
+	   (fboundp 'function-arglist))
+  (defun help-function-arglist (def &optional preserve-names)
+    (cdr (car (read-from-string (downcase (function-arglist def)))))))
+
+;; gnus-compat.el ends here
diff --git a/lisp/gnus.el b/lisp/gnus.el
index 33ae74e..2ebdfb1 100644
--- a/lisp/gnus.el
+++ b/lisp/gnus.el
@@ -36,6 +36,7 @@
 (require 'wid-edit)
 (require 'mm-util)
 (require 'nnheader)
+(require 'gnus-compat)
 
 ;; These are defined afterwards with gnus-define-group-parameter
 (defvar gnus-ham-process-destinations)

commit b98129d147b959a003d5dca25e951fd61c924606
Author: Lars Ingebrigtsen <[email protected]>
Date:   Wed Feb 1 20:12:15 2012 +0100

    Remove commented-out code.

diff --git a/lisp/gnus-sync.el b/lisp/gnus-sync.el
index 57c834a..6a45c67 100644
--- a/lisp/gnus-sync.el
+++ b/lisp/gnus-sync.el
@@ -172,14 +172,11 @@ and `gnus-topic-alist'.  Also see `gnus-variable-list'."
 (defun gnus-sync-lesync-call (url method headers &optional kvdata)
   "Make an access request to URL using KVDATA and METHOD.
 KVDATA must be an alist."
-  ;;(debug (json-encode kvdata))
-  ;; (when (string-match-p "gmane.emacs.devel" url) (debug kvdata))
   (flet ((json-alist-p (list) (gnus-sync-json-alist-p list))) ; temp patch
     (let ((url-request-method method)
           (url-request-extra-headers headers)
           (url-request-data (if kvdata (json-encode kvdata) nil)))
       (with-current-buffer (url-retrieve-synchronously url)
-        ;;(debug (buffer-string))
         (let ((data (gnus-sync-lesync-parse)))
           (gnus-message 12 "gnus-sync-lesync-call: %s URL %s sent %S got %S"
                         method url `((headers . ,headers) (data ,kvdata)) data)

-----------------------------------------------------------------------
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we listed those
revisions in full, above.

Summary of changes:
 lisp/ChangeLog                      |    4 ++++
 lisp/{rfc2045.el => gnus-compat.el} |   33 +++++++++++++++------------------
 lisp/gnus-sync.el                   |    3 ---
 lisp/gnus.el                        |    1 +
 4 files changed, 20 insertions(+), 21 deletions(-)
 copy lisp/{rfc2045.el => gnus-compat.el} (50%)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnus Project".

The branch, master has been updated


hooks/post-receive
-- 
Gnus Project
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.