(nnimap-open-connection): Give an error if nnimap-stream is unknown.
[gnus] / lisp / lpath.el
1 ;; Shut up.
2
3 (defun maybe-fbind (args)
4   (while args
5     (or (fboundp (car args))
6         (defalias (car args) 'ignore))
7     (setq args (cdr args))))
8
9 (defun maybe-bind (args)
10   (mapcar (lambda (var) (unless (boundp var) (set var nil))) args))
11
12 (unless (featurep 'xemacs)
13   (maybe-fbind '(pgg-display-output-buffer url-generic-parse-url))
14   (maybe-bind '(help-xref-stack-item
15                 url-version w3-meta-charset-content-type-regexp
16                 w3-meta-content-type-charset-regexp))
17
18   (when (<= emacs-major-version 22)
19     (defun ecomplete-add-item (type key text))
20     (defun ecomplete-save nil)
21     (defun hashcash-wait-async (&optional buffer))
22     (defun mail-add-payment (&optional arg async))
23     (defun mail-add-payment-async (&optional arg))
24     (defun netrc-get (alist type))
25     (defun netrc-machine (list machine &optional port defaultport))
26     (defun netrc-machine-user-or-password (mode authinfo-file-or-list machines
27                                                 ports defaults))
28     (defun netrc-parse (file))
29     (maybe-fbind
30      '(Info-index
31        Info-index-next Info-menu bbdb-complete-name bookmark-default-handler
32        bookmark-get-bookmark-record bookmark-make-record-default
33        bookmark-prop-get display-time-event-handler epg-check-configuration
34        find-coding-system frame-device recenter-top-bottom
35        rmail-swap-buffers-maybe w3-do-setup w3-parse-buffer w3-prepare-buffer
36        w3-region w3m-detect-meta-charset w3m-region))
37     (maybe-bind
38      '(w3m-link-map))))
39
40 (when (featurep 'xemacs)
41   (defun canlock-insert-header (&optional id-for-key id-for-lock password))
42   (defun ecomplete-add-item (type key text))
43   (defun ecomplete-save nil)
44   (defun hashcash-wait-async (&optional buffer))
45   (defun mail-add-payment (&optional arg async))
46   (defun mail-add-payment-async (&optional arg))
47   (defun netrc-get (alist type))
48   (defun netrc-machine (list machine &optional port defaultport))
49   (defun netrc-machine-user-or-password (mode authinfo-file-or-list machines
50                                               ports defaults))
51   (defun netrc-parse (file))
52   (defun split-line (&optional arg))
53   (eval-after-load "rmail"
54     '(defun rmail-toggle-header (&optional arg)))
55   (maybe-fbind
56    '(bookmark-default-handler
57      bookmark-get-bookmark-record bookmark-make-record-default
58      bookmark-prop-get clear-string codepage-setup coding-system-from-name
59      cp-supported-codepages create-image delete-overlay detect-coding-string
60      display-time-event-handler epg-check-configuration event-click-count
61      event-end event-start find-coding-systems-for-charsets
62      find-coding-systems-region find-coding-systems-string find-image
63      float-time help-buffer image-size image-type-available-p insert-image
64      mail-abbrevs-setup make-mode-line-mouse-map make-network-process
65      mouse-minibuffer-check mouse-movement-p mouse-scroll-subr overlay-lists
66      pgg-display-output-buffer posn-point posn-window put-image read-event
67      recenter-top-bottom rmail-msg-restore-non-pruned-header
68      rmail-swap-buffers-maybe select-safe-coding-system sort-coding-systems
69      track-mouse ucs-to-char url-generic-parse-url url-insert-file-contents
70      vcard-pretty-print w3-parse-buffer w3m-detect-meta-charset w3m-region
71      window-edges))
72   (maybe-bind
73    '(adaptive-fill-first-line-regexp
74      buffer-display-table completion-styles completion-styles-alist
75      cursor-in-non-selected-windows default-enable-multibyte-characters
76      default-file-name-coding-system eudc-protocol filladapt-mode
77      gnus-agent-expire-current-dirs help-xref-stack-item idna-program
78      installation-directory line-spacing mark-active
79      mouse-selection-click-count mouse-selection-click-count-buffer
80      ps-print-color-p rmail-default-file rmail-default-rmail-file
81      rmail-insert-mime-forwarded-message-function show-trailing-whitespace
82      smtpmail-default-smtp-server temporary-file-directory tool-bar-mode
83      transient-mark-mode url-version w3-meta-charset-content-type-regexp
84      w3m-link-map w3-meta-content-type-charset-regexp))
85
86   (when (or (and (= emacs-major-version 21) (= emacs-minor-version 4))
87             (featurep 'sxemacs))
88     (maybe-fbind
89      '(custom-autoload
90        decode-char display-graphic-p display-images-p display-visual-class
91        get-display-table make-temp-file next-single-char-property-change
92        put-display-table select-frame-set-input-focus set-buffer-multibyte
93        string-as-multibyte timer-set-function unicode-precedence-list
94        unicode-to-char))
95     (maybe-bind
96      '(header-line-format
97        scroll-margin timer-list)))
98
99   (unless (featurep 'mule)
100     (maybe-fbind
101      '(ccl-execute-on-string
102        char-charset charsetp coding-system-get find-charset-region
103        get-charset-property pgg-display-output-buffer pgg-parse-crc24-string
104        unicode-precedence-list))
105     (maybe-bind
106      '(current-language-environment
107        language-info-alist pgg-parse-crc24)))
108
109   (unless (featurep 'file-coding)
110     (maybe-fbind
111      '(coding-system-aliasee
112        coding-system-base coding-system-change-eol-conversion coding-system-list
113        coding-system-p decode-coding-region decode-coding-string
114        detect-coding-region encode-coding-region encode-coding-string
115        find-coding-system))
116     (maybe-bind
117      '(buffer-file-coding-system
118        coding-system-for-read coding-system-for-write
119        enable-multibyte-characters file-name-coding-system))))
120
121 (provide 'lpath)