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