* binhex.el (binhex-decode-region-internal)
[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 nnkiboze-score-file (a))
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 display-time-event-handler epg-check-configuration
35        find-coding-system frame-device recenter-top-bottom
36        rmail-swap-buffers-maybe w3-do-setup w3-prepare-buffer w3-region
37        w32-focus-frame w3m-detect-meta-charset w3m-region))
38     (maybe-bind
39      '(w3m-link-map)))
40
41   (when (= emacs-major-version 21)
42     (defun canlock-insert-header (&optional id-for-key id-for-lock password))
43     (defun split-line (&optional arg))
44     (maybe-fbind
45      '(clear-string
46        coding-system-aliasee coding-system-from-name custom-autoload
47        delete-annotation delete-extent device-connection dfw-device
48        events-to-keys find-face font-lock-set-defaults get-char-table
49        glyph-height glyph-width help-buffer int-to-char ldap-search-entries
50        mail-aliases-setup make-annotation make-event make-glyph
51        make-network-process map-extents message-xmas-redefine put-char-table
52        run-mode-hooks set-extent-property set-itimer-function
53        set-keymap-default-binding temp-directory time-to-seconds ucs-to-char
54        unicode-precedence-list unicode-to-char url-generic-parse-url
55        url-http-file-exists-p valid-image-instantiator-format-p
56        vcard-pretty-print w3-coding-system-for-mime-charset window-pixel-height
57        window-pixel-width))
58     (maybe-bind
59      '(eudc-protocol
60        filladapt-mode help-echo-owns-message itimer-list ps-print-color-p
61        smtpmail-default-smtp-server w3-meta-charset-content-type-regexp
62        w3-meta-content-type-charset-regexp))))
63
64 (when (featurep 'xemacs)
65   (defun canlock-insert-header (&optional id-for-key id-for-lock password))
66   (defun ecomplete-add-item (type key text))
67   (defun ecomplete-save nil)
68   (defun hashcash-wait-async (&optional buffer))
69   (defun mail-add-payment (&optional arg async))
70   (defun mail-add-payment-async (&optional arg))
71   (defun netrc-get (alist type))
72   (defun netrc-machine (list machine &optional port defaultport))
73   (defun netrc-machine-user-or-password (mode authinfo-file-or-list machines
74                                               ports defaults))
75   (defun netrc-parse (file))
76   (defun nnkiboze-score-file (a))
77   (defun split-line (&optional arg))
78   (eval-after-load "rmail"
79     '(defun rmail-toggle-header (&optional arg)))
80   (maybe-fbind
81    '(bookmark-default-handler
82      bookmark-get-bookmark-record bookmark-make-record-default
83      bookmark-prop-get clear-string codepage-setup coding-system-from-name
84      cp-supported-codepages create-image delete-overlay detect-coding-string
85      display-time-event-handler epg-check-configuration event-click-count
86      event-end event-start find-coding-systems-for-charsets
87      find-coding-systems-region find-coding-systems-string find-image
88      float-time help-buffer image-size image-type-available-p insert-image
89      mail-abbrevs-setup make-mode-line-mouse-map make-network-process
90      mouse-minibuffer-check mouse-movement-p mouse-scroll-subr overlay-lists
91      pgg-display-output-buffer posn-point posn-window put-image read-event
92      recenter-top-bottom rmail-msg-restore-non-pruned-header
93      rmail-swap-buffers-maybe select-safe-coding-system sort-coding-systems
94      track-mouse ucs-to-char url-generic-parse-url url-http-file-exists-p
95      url-insert-file-contents vcard-pretty-print w3m-detect-meta-charset
96      w3m-region window-edges))
97   (maybe-bind
98    '(adaptive-fill-first-line-regexp
99      buffer-display-table cursor-in-non-selected-windows
100      default-enable-multibyte-characters default-file-name-coding-system
101      eudc-protocol filladapt-mode gnus-agent-expire-current-dirs
102      help-xref-stack-item idna-program installation-directory
103      line-spacing mark-active mouse-selection-click-count
104      mouse-selection-click-count-buffer ps-print-color-p rmail-default-file
105      rmail-default-rmail-file rmail-insert-mime-forwarded-message-function
106      show-trailing-whitespace smtpmail-default-smtp-server
107      temporary-file-directory tool-bar-mode transient-mark-mode url-version
108      w3-meta-charset-content-type-regexp w3m-link-map
109      w3-meta-content-type-charset-regexp))
110
111   (when (or (and (= emacs-major-version 21) (= emacs-minor-version 4))
112             (featurep 'sxemacs))
113     (maybe-fbind
114      '(custom-autoload
115        decode-char display-graphic-p display-images-p display-visual-class
116        get-display-table make-temp-file next-single-char-property-change
117        put-display-table select-frame-set-input-focus set-buffer-multibyte
118        string-as-multibyte timer-set-function unicode-precedence-list
119        unicode-to-char w32-focus-frame x-focus-frame))
120     (maybe-bind
121      '(scroll-margin
122        timer-list)))
123
124   (when (and (= emacs-major-version 21) (= emacs-minor-version 4))
125     (maybe-fbind
126      '(propertize)))
127
128   (unless (featurep 'mule)
129     (maybe-fbind
130      '(ccl-execute-on-string
131        char-charset charsetp coding-system-get find-charset-region
132        get-charset-property pgg-display-output-buffer pgg-parse-crc24-string
133        unicode-precedence-list))
134     (maybe-bind
135      '(current-language-environment
136        language-info-alist pgg-parse-crc24)))
137
138   (unless (featurep 'file-coding)
139     (maybe-fbind
140      '(coding-system-aliasee
141        coding-system-base coding-system-change-eol-conversion coding-system-list
142        coding-system-p decode-coding-region decode-coding-string
143        detect-coding-region encode-coding-region encode-coding-string
144        find-coding-system))
145     (maybe-bind
146      '(buffer-file-coding-system
147        coding-system-for-read coding-system-for-write
148        enable-multibyte-characters file-name-coding-system))))
149
150 (provide 'lpath)
151
152 ;;; arch-tag: d1ad864f-dca6-4d21-aa3f-be3248e66dba