nndoc.el (nndoc-dissect-mime-parts-sub): Fix last change
[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 23)
19     (maybe-bind '(mail-encode-mml)))
20
21   (when (<= emacs-major-version 22)
22     (defun ecomplete-add-item (type key text))
23     (defun ecomplete-save nil)
24     (defun hashcash-wait-async (&optional buffer))
25     (defun mail-add-payment (&optional arg async))
26     (defun mail-add-payment-async (&optional arg))
27     (defun netrc-get (alist type))
28     (defun netrc-machine (list machine &optional port defaultport))
29     (defun netrc-machine-user-or-password (mode authinfo-file-or-list machines
30                                                 ports defaults))
31     (defun netrc-parse (file))
32     (defun shr-put-image (data alt &optional flags))
33     (maybe-fbind
34      '(Info-index
35        Info-index-next Info-menu bbdb-complete-name bookmark-default-handler
36        bookmark-get-bookmark-record bookmark-make-record-default
37        bookmark-prop-get completion-at-point display-time-event-handler
38        epg-check-configuration find-coding-system frame-device gnutls-negotiate
39        libxml-parse-html-region recenter-top-bottom rmail-swap-buffers-maybe
40        shr-insert-document w3-do-setup w3-parse-buffer w3-prepare-buffer
41        w3-region w3m-detect-meta-charset w3m-region))
42     (maybe-bind
43      '(epa-file-encrypt-to w3m-link-map))))
44
45 (when (featurep 'xemacs)
46   (defun canlock-insert-header (&optional id-for-key id-for-lock password))
47   (defun ecomplete-add-item (type key text))
48   (defun ecomplete-save nil)
49   (defun hashcash-wait-async (&optional buffer))
50   (defun mail-add-payment (&optional arg async))
51   (defun mail-add-payment-async (&optional arg))
52   (defun netrc-get (alist type))
53   (defun netrc-machine (list machine &optional port defaultport))
54   (defun netrc-machine-user-or-password (mode authinfo-file-or-list machines
55                                               ports defaults))
56   (defun netrc-parse (file))
57   (defun split-line (&optional arg))
58   (defun shr-put-image (data alt &optional flags))
59   (eval-after-load "rmail"
60     '(defun rmail-toggle-header (&optional arg)))
61   (maybe-fbind
62    '(bookmark-default-handler
63      bookmark-get-bookmark-record bookmark-make-record-default
64      bookmark-prop-get clear-string codepage-setup coding-system-from-name
65      completion-at-point cp-supported-codepages create-image debbugs-gnu
66      delete-overlay detect-coding-string display-time-event-handler
67      epg-check-configuration event-click-count event-end event-start
68      find-coding-systems-for-charsets find-coding-systems-region
69      find-coding-systems-string find-image float-time gnutls-negotiate
70      help-buffer ido-completing-read image-size image-type-available-p
71      insert-image jka-compr-get-compression-info jka-compr-info-uncompress-args
72      jka-compr-info-uncompress-message jka-compr-info-uncompress-program
73      jka-compr-installed-p jka-compr-make-temp-name libxml-parse-html-region
74      mail-abbrevs-setup make-mode-line-mouse-map make-network-process
75      make-term mouse-minibuffer-check mouse-movement-p mouse-scroll-subr
76      overlay-lists pgg-display-output-buffer posn-point posn-window
77      process-type put-image read-char-choice read-event recenter-top-bottom
78      rmail-msg-restore-non-pruned-header rmail-swap-buffers-maybe
79      select-safe-coding-system set-network-process-option shr-insert-document
80      sort-coding-systems term-char-mode term-mode track-mouse ucs-to-char
81      url-generic-parse-url url-insert-file-contents vcard-pretty-print
82      w3-parse-buffer w3m-detect-meta-charset w3m-region window-edges))
83   (maybe-bind
84    '(adaptive-fill-first-line-regexp
85      buffer-display-table buffer-save-without-query completion-styles
86      completion-styles-alist cursor-in-non-selected-windows
87      default-enable-multibyte-characters default-file-name-coding-system
88      epa-file-encrypt-to eudc-protocol filladapt-mode
89      gnus-agent-expire-current-dirs help-xref-stack-item idna-program
90      installation-directory iswitchb-mode iswitchb-temp-buflist line-spacing
91      mail-encode-mml mark-active mouse-selection-click-count
92      mouse-selection-click-count-buffer ps-print-color-p rmail-default-file
93      rmail-default-rmail-file rmail-insert-mime-forwarded-message-function
94      show-trailing-whitespace smtpmail-default-smtp-server
95      temporary-file-directory tool-bar-mode transient-mark-mode url-version
96      w3-meta-charset-content-type-regexp w3m-link-map
97      w3-meta-content-type-charset-regexp))
98
99   (when (or (and (= emacs-major-version 21) (= emacs-minor-version 4))
100             (featurep 'sxemacs))
101     (maybe-fbind
102      '(current-idle-time
103        custom-autoload decode-char display-graphic-p display-images-p
104        display-visual-class get-display-table help-function-arglist
105        make-temp-file next-single-char-property-change put-display-table
106        select-frame-set-input-focus set-buffer-multibyte set-char-table-range
107        string-as-multibyte timer-set-function unicode-precedence-list
108        unicode-to-char))
109     (maybe-bind
110      '(header-line-format
111        scroll-margin timer-list)))
112
113   (unless (featurep 'mule)
114     (maybe-fbind
115      '(ccl-execute-on-string
116        char-charset charsetp coding-system-get find-charset-region
117        get-charset-property pgg-display-output-buffer unicode-precedence-list))
118     (maybe-bind
119      '(current-language-environment
120        language-info-alist)))
121
122   (unless (featurep 'file-coding)
123     (maybe-fbind
124      '(coding-system-aliasee
125        coding-system-base coding-system-change-eol-conversion coding-system-list
126        coding-system-p decode-coding-region decode-coding-string
127        detect-coding-region encode-coding-region encode-coding-string
128        find-coding-system))
129     (maybe-bind
130      '(buffer-file-coding-system
131        coding-system-for-read coding-system-for-write
132        enable-multibyte-characters file-name-coding-system))))
133
134 (provide 'lpath)