2003-05-01 Steve Youngs <youngs@xemacs.org>
authorSteve Youngs <steve@sxemacs.org>
Wed, 30 Apr 2003 17:20:10 +0000 (17:20 +0000)
committerSteve Youngs <steve@sxemacs.org>
Wed, 30 Apr 2003 17:20:10 +0000 (17:20 +0000)
* lpath.el: Add a section for non-Mule XEmacsen.
fbind `find-charset-string' and `coding-system-base' in that
section.

* gnus-util.el (gnus-completing-read-maybe-default): New.
(gnus-completing-read): Use it.

* mm-view.el (mm-view-pkcs7-decrypt): Ditto.

* gnus-art.el (gnus-read-string): New.
(gnus-summary-pipe-to-muttprint): Use it.

* gnus-xmas.el (gnus-xmas-open-network-stream): New.

* dns.el (dns-make-network-process): Use it.

Take care of some differences between XEmacs 21.1 and newer
versions of XEmacs.

Also, fix up some mutilations of Kai's name in lisp/ChangeLog caused
by somebody else's checkin.

lisp/ChangeLog
lisp/dns.el
lisp/gnus-art.el
lisp/gnus-util.el
lisp/gnus-xmas.el
lisp/lpath.el
lisp/mm-view.el

index e5ea97d..ccf6ab6 100644 (file)
@@ -1,3 +1,24 @@
+2003-05-01  Steve Youngs  <youngs@xemacs.org>
+
+       * lpath.el: Add a section for non-Mule XEmacsen.
+       fbind `find-charset-string' and `coding-system-base' in that
+       section. 
+
+       * gnus-util.el (gnus-completing-read-maybe-default): New.
+       (gnus-completing-read): Use it.
+
+       * mm-view.el (mm-view-pkcs7-decrypt): Ditto.
+
+       * gnus-art.el (gnus-read-string): New.
+       (gnus-summary-pipe-to-muttprint): Use it.
+
+       * gnus-xmas.el (gnus-xmas-open-network-stream): New.
+
+       * dns.el (dns-make-network-process): Use it.
+
+       Take care of some differences between XEmacs 21.1 and newer
+       versions of XEmacs.
+
 2003-04-30  Teodor Zlatanov  <tzz@bwh.harvard.edu>
 
        * gnus-registry.el (gnus-registry-split-fancy-with-parent): added
@@ -10,7 +31,7 @@
        (gnus-register-action): optimized logical flow
        (gnus-summary-prepare-hook): added gnus-registry-register-message-ids
 
-2003-04-30  Kai Gro\e,A_\e(Bjohann  <kai.grossjohann@gmx.net>
+2003-04-30  Kai Großjohann  <kai.grossjohann@gmx.net>
 
        * gnus-delay.el (gnus-delay-article): Call
        `gnus-agent-queue-setup' to create the delay group.
 
        * smime.el (smime-decrypt-region): Insert From header.
 
-2003-04-21  Kai Gro\e,A_\e(Bjohann  <kai.grossjohann@gmx.net>
+2003-04-21  Kai Großjohann  <kai.grossjohann@gmx.net>
 
        * gnus-fun.el (gnus-face-from-file, gnus-convert-png-to-face):
        Max length of header is 726, not 740.  From Gaute B Strokkenes
        (gnus-agent-article-alist, gnus-agent-article-alist)
        (gnus-agent-cat-defaccessor): Doc fixes.
 
-2003-03-04  Kai Gro\e,A_\e(Bjohann  <kai.grossjohann@uni-duisburg.de>
+2003-03-04  Kai Großjohann  <kai.grossjohann@uni-duisburg.de>
 
        * gnus-agent.el (gnus-function-implies-unread-1): Grok
        byte-compiled functions.
        no spam.
        * spam.el (spam-ham-move-routine): New `copy' argument.
 
-2003-02-24  Kai Gro\e,A_\e(Bjohann  <kai.grossjohann@uni-duisburg.de>
+2003-02-24  Kai Großjohann  <kai.grossjohann@uni-duisburg.de>
        From Martin Thornquist <martint@ifi.uio.no>
 
        * gnus-topic.el (gnus-topic-select-group): Select last group if
        (gnus-agent-regenerate-group): Now clears the message buffer when
        finished.
 
-2003-02-23  Kai Gro\e,A_\e(Bjohann  <kai.grossjohann@uni-duisburg.de>
+2003-02-23  Kai Großjohann  <kai.grossjohann@uni-duisburg.de>
 
        * gnus.el (gnus-agent-target-move-group-header): New variable.
        * gnus-draft.el (gnus-draft-send): If special header
 
        * gnus-util.el (gnus-fetch-original-field): New function.
 
-2003-02-23  Kai Gro\e,A_\e(Bjohann  <kai.grossjohann@uni-duisburg.de>
+2003-02-23  Kai Großjohann  <kai.grossjohann@uni-duisburg.de>
 
        * message.el (message-mode): \\(...\\) around additional
        paragraph-separate alternative.
        * gnus-start.el (gnus-get-unread-articles-in-group): Make sure
        the entry for the group exists before we alter it.
 
-2003-02-22  Kai Gro\e,A_\e(Bjohann  <kai.grossjohann@uni-duisburg.de>
+2003-02-22  Kai Großjohann  <kai.grossjohann@uni-duisburg.de>
 
        * message.el (message-mode): MML tags separate paragraphs.  Small
        change from David S Goldberg <david.goldberg6@verizon.net>.
        gnus-summary-kill-process-mark and gnus-summary-yank-process-mark
        around process-mark manipulation on the group
 
-2003-02-17  Kai Gro\e,A_\e(Bjohann  <kai.grossjohann@uni-duisburg.de>
+2003-02-17  Kai Großjohann  <kai.grossjohann@uni-duisburg.de>
 
        * gnus-sum.el (gnus-summary-make-menu-bar): Add MIME/Multipart
        submenu.
        * gnus-art.el (gnus-article-prepare): Don't set agent mark if
        online.
 
-2003-02-14  Kai Gro\e,A_\e(Bjohann  <kai.grossjohann@uni-duisburg.de>
+2003-02-14  Kai Großjohann  <kai.grossjohann@uni-duisburg.de>
 
        * gnus-agent.el (gnus-agent-group-make-menu-bar): Include all
        commands.
        (spam-mark-spam-as-expired-and-move-routine): made the article
        move conditional, so it's not called even if there's nothing to move
 
-2003-02-13  Kai Gro\e,A_\e(Bjohann  <kai.grossjohann@uni-duisburg.de>
+2003-02-13  Kai Großjohann  <kai.grossjohann@uni-duisburg.de>
 
        * message.el (message-unix-mail-delimiter): Accept any whitespace
        after the email address and before the date; do not require the
        * gnus.el (spam group parameters): change 'other to 'const in
        the group parameter definitions to soothe XEmacs
 
-2003-02-04  Kai Gro\e,A_\e(Bjohann  <kai.grossjohann@uni-duisburg.de>
+2003-02-04  Kai Großjohann  <kai.grossjohann@uni-duisburg.de>
 
        * gnus-delay.el (gnus-delay-article): Really create
        nndraft:delayed group if it doesn't exist.
        * nnheader.el (nnheader-directory-separator-character): New
        variable.
 
-2003-01-24  Kai Gro\e,A_\e(Bjohann  <kai.grossjohann@uni-duisburg.de>
+2003-01-24  Kai Großjohann  <kai.grossjohann@uni-duisburg.de>
 
        * gnus-agent.el (gnus-agent-max-fetch-size)
        (gnus-agent-article-alist, gnus-agent-get-undownloaded-list)
 
        * gnus.el: Oort Gnus v0.14 is released.
 
-2003-01-24  Kai Gro\e,A_\e(Bjohann  <kai.grossjohann@uni-duisburg.de>
+2003-01-24  Kai Großjohann  <kai.grossjohann@uni-duisburg.de>
 
        * gnus-sum.el (gnus-summary-prepare-threads): Reset state for %B
        before beginning.  Tiny patch from Mark Thomas
        calculation of net characters added for use in the gnus-data
        structure.
 
-2003-01-18  Kai Gro\e,A_\e(Bjohann  <kai.grossjohann@uni-duisburg.de>
+2003-01-18  Kai Großjohann  <kai.grossjohann@uni-duisburg.de>
 
        * nnmail.el (nnmail-process-unix-mail-format): Improve error
        message.  Suggested by Jari Aalto.
 2003-01-12  Simon Josefsson  <jas@extundo.com>
 
        * sieve.el (sieve-upload-and-bury): New.  Suggested by
-       kai.grossjohann@uni-duisburg.de (Kai Gro\e,A_\e(Bjohann).
+       kai.grossjohann@uni-duisburg.de (Kai Großjohann).
 
        * sieve-mode.el (sieve-mode-map): Bind s-u-a-b to C-c C-c.
-       Suggested by kai.grossjohann@uni-duisburg.de (Kai Gro\e,A_\e(Bjohann).
+       Suggested by kai.grossjohann@uni-duisburg.de (Kai Großjohann).
 
 2003-01-12  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
 
        * dig.el (query-dig): Doc fix.
 
-2003-01-02  Kai Gro\e,A_\e(Bjohann  <kai.grossjohann@uni-duisburg.de>
+2003-01-02  Kai Großjohann  <kai.grossjohann@uni-duisburg.de>
 
        * gnus-agent.el (gnus-agent-fetch-selected-article): Update whole
        summary buffer line, not just the download mark.
 
        * binhex.el (binhex-decoder-program): Fix docstring.
 
-2002-12-21  Kai Gro\e,A_\e(Bjohann  <kai.grossjohann@uni-duisburg.de>
+2002-12-21  Kai Großjohann  <kai.grossjohann@uni-duisburg.de>
 
        * mm-decode.el (mm-mailcap-command): Do not backslash-quote
        special chars if the mailcap file uses single quotes around %s.
        * gnus-agent.el (gnus-close-agent): Don't blank out the list of
        covered methods.
 
-2002-12-12  Kai Gro\e,A_\e(Bjohann  <kai.grossjohann@uni-duisburg.de>
+2002-12-12  Kai Großjohann  <kai.grossjohann@uni-duisburg.de>
 
        * nntp.el (nntp-with-open-group-first-pass): Do not wrap in
        eval-when-compile.  Suggested by Kevin Greiner.
        Because of an unknown bug, the group buffer is saved in .overview
        file.
 
-2002-12-09  Kai Gro\e,A_\e(Bjohann  <kai.grossjohann@uni-duisburg.de>
+2002-12-09  Kai Großjohann  <kai.grossjohann@uni-duisburg.de>
 
        * nntp.el (nntp-send-command): Braino in last commit.  Replace
        `and' with `or'.
 
-2002-12-08  Kai Gro\e,A_\e(Bjohann  <kai.grossjohann@uni-duisburg.de>
+2002-12-08  Kai Großjohann  <kai.grossjohann@uni-duisburg.de>
 
        * nntp.el (nntp-send-command): Assume that echo does not happen
        when nntp-open-connection-function is nntp-open-network-stream.
        * rfc2047.el (rfc2047-decode-region): Remove newlines between
        decoded words.
 
-2002-12-03  Kai Gro\e,A_\e(Bjohann  <kai.grossjohann@uni-duisburg.de>
+2002-12-03  Kai Großjohann  <kai.grossjohann@uni-duisburg.de>
 
        * gnus.el (fboundp): After loading mm-util, make sure it was the
        right one.
 
-2002-11-29  Kai Gro\e,A_\e(Bjohann  <kai.grossjohann@uni-duisburg.de>
+2002-11-29  Kai Großjohann  <kai.grossjohann@uni-duisburg.de>
 
        * gnus-art.el (gnus-inhibit-mime-unbuttonizing): Moved here from
        gnus-sum.  Made into a user option.
 
        * binhex.el (binhex-decode-region): Don't hardcode point-min == 1.
 
-2002-11-29  Kai Gro\e,A_\e(Bjohann  <kai.grossjohann@uni-duisburg.de>
+2002-11-29  Kai Großjohann  <kai.grossjohann@uni-duisburg.de>
 
        * gnus-sum.el (gnus-simplify-ignored-prefixes)
        (gnus-summary-mark-article-as-unread)
 
        * nnrss.el (nnrss-group-alist): Update the link of Jabber.
 
-2002-11-26  Kai Gro\e,A_\e(Bjohann  <kai.grossjohann@uni-duisburg.de>
+2002-11-26  Kai Großjohann  <kai.grossjohann@uni-duisburg.de>
 
        * gnus-sum.el (gnus-summary-insert-old-articles): Remove
        superfluous function call.
        * gnus-agent.el: Autoload number-at-point instead.
        (gnus-agent-check-overview-buffer): No warning for deactivate-mark.
 
-2002-11-26  Kai Gro\e,A_\e(Bjohann  <kai.grossjohann@uni-duisburg.de>
+2002-11-26  Kai Großjohann  <kai.grossjohann@uni-duisburg.de>
 
        * gnus-agent.el (gnus-agent-check-overview-buffer): Explicitly
        require thingatpt (for number-at-point) and protect against
        deactivate-mark being unbound (on XEmacs).
 
-2002-11-25  Kai Gro\e,A_\e(Bjohann  <kai.grossjohann@uni-duisburg.de>
+2002-11-25  Kai Großjohann  <kai.grossjohann@uni-duisburg.de>
 
        * gnus-agent.el (gnus-agent-check-overview-buffer): Make debugger
        print message on entry.
        * gnus-range.el (gnus-range-difference): New function.
        * gnus-sum.el (gnus-summary-insert-old-articles): Use it.
 
-2002-11-24  Kai Gro\e,A_\e(Bjohann  <kai.grossjohann@uni-duisburg.de>
+2002-11-24  Kai Großjohann  <kai.grossjohann@uni-duisburg.de>
 
        * gnus-sum.el (gnus-summary-insert-old-articles): Use
        gnus-remove-from-range instead of gnus-range-difference which
        doesn't exist.
 
-2002-11-23  Kai Gro\e,A_\e(Bjohann  <kai.grossjohann@uni-duisburg.de>
+2002-11-23  Kai Großjohann  <kai.grossjohann@uni-duisburg.de>
        From Kevin Greiner <kgreiner@xpediantsolutions.com>.
 
        * gnus-agent.el (gnus-agent-downloaded-article-face): New face,
        of article numbers.  The range is not expanded into a list
        until the optional ALL parameter has been applied.
 
-2002-11-18  Kai Gro\e,A_\e(Bjohann  <kai.grossjohann@uni-duisburg.de>
+2002-11-18  Kai Großjohann  <kai.grossjohann@uni-duisburg.de>
 
        * gnus-agent.el (gnus-category-mode): Typo in doc string.
 
 
        * mml.el (mml-preview): Bind message-this-is-mail if it is mail.
 
-2002-11-13  Kai Gro\e,A_\e(Bjohann  <kai.grossjohann@uni-duisburg.de>
+2002-11-13  Kai Großjohann  <kai.grossjohann@uni-duisburg.de>
 
        * gnus.el (gnus-summary-line-format): Document %C.
 
        (spam-stat-reduce-size): No longer remove words
        with values close to 0.5, because the default value is 0.2.
 
-2002-10-31  Kai Gro\e,A_\e(Bjohann  <kai.grossjohann@uni-duisburg.de>
+2002-10-31  Kai Großjohann  <kai.grossjohann@uni-duisburg.de>
 
        * gnus-util.el (gnus-user-date-format-alist): Clarify and correct
        documentation.
 
-2002-10-28  Kai Gro\e,A_\e(Bjohann  <kai.grossjohann@uni-duisburg.de>
+2002-10-28  Kai Großjohann  <kai.grossjohann@uni-duisburg.de>
 
        * gnus-agent.el (gnus-agent-fetched-headers)
        (gnus-agent-load-fetched-headers)
        type values ("url" size) regardless of the values of
        mm-url-use-external.
 
-2002-10-26  Kai Gro\e,A_\e(Bjohann  <kai.grossjohann@uni-duisburg.de>
+2002-10-26  Kai Großjohann  <kai.grossjohann@uni-duisburg.de>
 
        * nnimap.el (nnimap-request-article-part): Try harder to show
        group name in debugging message.
 
-2002-10-25  Kai Gro\e,A_\e(Bjohann  <kai.grossjohann@uni-duisburg.de>
+2002-10-25  Kai Großjohann  <kai.grossjohann@uni-duisburg.de>
 
        * gnus-agent.el (gnus-agent-save-fetched-headers): Create
        directory if it doesn't exist.
 
        * gnus-agent.el (gnus-agent-load-alist): Fix parenthesis.
 
-2002-10-24  Kai Gro\e,A_\e(Bjohann  <kai.grossjohann@uni-duisburg.de>
+2002-10-24  Kai Großjohann  <kai.grossjohann@uni-duisburg.de>
 
        * gnus-agent.el (gnus-agent-save-alist, gnus-agent-load-alist):
        Remove unused optional arg DIR and corresponding code.
 
        * gnus-agent.el (gnus-agent-fetch-headers): Add some comments.
 
-2002-10-23  Kai Gro\e,A_\e(Bjohann  <kai.grossjohann@uni-duisburg.de>
+2002-10-23  Kai Großjohann  <kai.grossjohann@uni-duisburg.de>
 
        * gnus-agent.el (gnus-agent-fetched-headers): New variable,
        contains range of headers that have been fetched by the agent
        * nnslashdot.el: Removed some test lines.
        More test.
 
-2002-10-21  Kai Gro\e,A_\e(Bjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
+2002-10-21  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
 
        * gnus-agent.el (gnus-agent-fetch-headers): Remove articles that
        are known to be downloaded already.
 
        * gnus-srvr.el (gnus-server-prepare): Removed superfluous cdr.
 
-2002-10-20  Kai Gro\e,A_\e(Bjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
+2002-10-20  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
 
        * gnus-agent.el (gnus-agent-fetch-group-1): After fetching
        headers from the group, update variable `articles' to contain
        * nnimap.el (nnimap-open-server): Check imap-state in IMAP server
        buffer.
 
-2002-10-18  Kai Gro\e,A_\e(Bjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
+2002-10-18  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
 
        * gnus-spec.el (gnus-make-format-preserve-properties)
        (gnus-xmas-format, gnus-parse-simple-format): Preserve text
 
        * spam-stat.el: Check for the existence of hash functions instead
        of the Emacs version to decide whether to load cl.  Suggested by
-       Kai Gro\e,A_\e(Bjohann.
+       Kai Großjohann.
 
-2002-10-15  Kai Gro\e,A_\e(Bjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
+2002-10-15  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
 
        * gnus-agent.el (gnus-agent-fetch-selected-article): Open history
        if it isn't open yet.
        * pgg.el (pgg-insert-url-with-w3): Ignore errors.
        (pgg-fetch-key-function): Nil if w3 is not installed.
 
-2002-10-08  Kai Gro\e,A_\e(Bjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
+2002-10-08  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
 
        * gnus-agent.el (gnus-agent-fetch-selected-article): Bind
        gnus-agent-current-history.
 
        * imap.el (imap-parse-status): Don't use read to read token.
 
-2002-10-05  Kai Gro\e,A_\e(Bjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
+2002-10-05  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
 
        * gnus-agent.el (gnus-agent-fetch-selected-article): Do nothing
        for methods not covered by the agent, and when unplugged.
 
        * message.el (message-required-mail-headers): Remove Lines:.
 
-2002-10-03  Kai Gro\e,A_\e(Bjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
+2002-10-03  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
        From Jesper Harder.
 
        * gnus-group.el (gnus-group-fetch-charter,
        * nnmaildir.el (nnmaildir--group-maxnum-art): fix maximum article
        number when there are no articles.
 
-2002-10-03  Kai Gro\e,A_\e(Bjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
+2002-10-03  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
 
        * gnus-agent.el (gnus-agent-summary-fetch-group): Optional prefix
        arg ALL means to fetch all articles, not only downloadable ones.
        when articles are found.  Suggested by Nevin Kapur
        <nevin@jhu.edu>.
 
-2002-09-17  Kai Gro\e,A_\e(Bjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
+2002-09-17  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
        From Reiner Steib <reiner.steib@gmx.de>.
 
        * message.el (message-strip-subject-trailing-was)
index 6c470f5..1a3a903 100644 (file)
@@ -282,11 +282,13 @@ If TCP-P, the first two bytes of the package with be the length field."
 
 ;;; Interface functions.
 
+(autoload 'gnus-xmacs-open-network-stream "gnus-xmas" nil nil 'macro)
+
 (defmacro dns-make-network-process (server)
   (if (featurep 'xemacs)
       `(let ((coding-system-for-read 'binary)
             (coding-system-for-write 'binary))
-        (open-network-stream "dns" (current-buffer) ,server "domain" 'udp))
+        (gnus-xmas-open-network-stream "dns" (current-buffer) ,server "domain" 'udp))
     `(let ((server ,server)
           (coding-system-for-read 'binary)
           (coding-system-for-write 'binary))
index 3945b4c..a27a2cd 100644 (file)
@@ -3226,9 +3226,17 @@ The directory to save in defaults to `gnus-article-save-directory'."
       (shell-command-on-region (point-min) (point-max) command nil)))
   (setq gnus-last-shell-command command))
 
+(defmacro gnus-read-string (prompt &optional initial-contents history 
+                           default-value)
+  "Like `read-string' but allow for older XEmacsen that don't have the 5th arg."
+  (if (and (featurep 'xemacs)
+          (< emacs-minor-version 2))
+      `(read-string ,prompt ,initial-contents ,history)
+    `(read-string ,prompt ,initial-contents ,history ,default-value)))
+
 (defun gnus-summary-pipe-to-muttprint (&optional command)
   "Pipe this article to muttprint."
-  (setq command (read-string
+  (setq command (gnus-read-string
                 "Print using command: " gnus-summary-muttprint-program
                 nil gnus-summary-muttprint-program))
   (gnus-summary-save-in-pipe command))
index 2e86b3a..23c418e 100644 (file)
@@ -1224,12 +1224,22 @@ SPEC is a predicate specifier that contains stuff like `or', `and',
    (t
     (list 'local-map map))))
 
+(defmacro gnus-completing-read-maybe-default (prompt table &optional predicate 
+                                             require-match initial-contents 
+                                             history default)
+  "Like `completing-read', allowing for non-existent 7th arg in older XEmacsen."
+  `(completing-read ,prompt ,table ,predicate ,require-match
+                    ,initial-contents ,history
+                    ,@(if (and (featurep 'xemacs) (< emacs-minor-version 2))
+                          ()
+                        (list default))))
+
 (defun gnus-completing-read (prompt table &optional predicate require-match
                                    history)
   (when (and history
             (not (boundp history)))
     (set history nil))
-  (completing-read
+  (gnus-completing-read-maybe-default
    (if (symbol-value history)
        (concat prompt " (" (car (symbol-value history)) "): ")
      (concat prompt ": "))
index 1806ceb..9225a5a 100644 (file)
@@ -875,6 +875,16 @@ Warning: Don't insert text immediately after the image."
    nil
    history))
 
+;; This macro is because XEmacs versions prior to 21.2 do not have the
+;; PROTOCOL argument to `open-network-stream'.
+(defmacro gnus-xmas-open-network-stream (name buffer host service &optional protocol)
+  "Like `open-network-stream' but take into account older XEmacs versions."
+  (if (and (featurep 'xemacs)
+          (fboundp 'open-network-stream)
+          (emacs-version>= 21 2))
+      `(open-network-stream ,name ,buffer ,host ,service ,protocol)
+    `(open-network-stream ,name ,buffer ,host ,service)))
+
 (provide 'gnus-xmas)
 
 ;;; gnus-xmas.el ends here
index fb9029c..50f0ec4 100644 (file)
                w3-meta-charset-content-type-regexp
                w3-meta-content-type-charset-regexp)))
 
+(when (and (featurep 'xemacs)
+          (not (featurep 'mule)))
+  (progn
+    (maybe-fbind '(coding-system-base find-charset-string))))
+
+
 (defun nnkiboze-score-file (a)
   )
 
index 05c4df8..7ed1685 100644 (file)
@@ -558,6 +558,8 @@ map.")))
   (sit-for 1)
   t)
 
+(autoload 'gnus-completing-read-maybe-default "gnus-util" nil nil 'macro)
+
 (defun mm-view-pkcs7-decrypt (handle)
   (insert-buffer-substring (mm-handle-buffer handle))
   (goto-char (point-min))
@@ -568,7 +570,7 @@ map.")))
    (if (= (length smime-keys) 1)
        (cadar smime-keys)
      (smime-get-key-by-email
-      (completing-read
+      (gnus-completing-read-maybe-default
        (concat "Decipher using which key? "
               (if smime-keys (concat "(default " (caar smime-keys) ") ")
                 ""))