Feedback T-gnus 6.16.
[elisp/gnus.git-] / 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 (maybe-fbind '(Info-directory
13                Info-menu bbdb-create-internal bbdb-records create-image
14                display-graphic-p find-coding-system find-image image-size
15                image-type-available-p insert-image make-mode-line-mouse-map
16                make-temp-file propertize put-image replace-regexp-in-string
17                rmail-msg-is-pruned rmail-msg-restore-non-pruned-header
18                sort-coding-systems spam-BBDB-register-routine
19                spam-enter-ham-BBDB string-to-multibyte tool-bar-add-item
20                tool-bar-add-item-from-menu tool-bar-local-item-from-menu
21                url-generic-parse-url url-http-file-exists-p
22                url-insert-file-contents vcard-pretty-print w32-focus-frame
23                w3m-charset-to-coding-system w3m-region x-focus-frame))
24 (maybe-bind '(filladapt-mode
25               mc-pgp-always-sign rmail-insert-mime-forwarded-message-function
26               url-current-object url-package-name url-package-version
27               w3-meta-charset-content-type-regexp
28               w3-meta-content-type-charset-regexp
29               w3m-cid-retrieve-function-alist w3m-current-buffer
30               w3m-display-inline-images w3m-meta-content-type-charset-regexp
31               w3m-minor-mode-map))
32
33 (if (featurep 'xemacs)
34     (progn
35       (maybe-fbind '(delete-overlay
36                      event-click-count event-end event-start
37                      find-coding-systems-for-charsets
38                      find-coding-systems-region find-coding-systems-string
39                      mail-abbrevs-setup mouse-minibuffer-check
40                      mouse-movement-p mouse-scroll-subr overlay-lists
41                      posn-point posn-window read-event set-buffer-multibyte
42                      track-mouse window-edges))
43       (maybe-bind '(adaptive-fill-first-line-regexp
44                     buffer-display-table buffer-file-coding-system
45                     current-language-environment
46                     default-enable-multibyte-characters
47                     enable-multibyte-characters gnus-agent-expire-current-dirs
48                     language-info-alist mark-active mouse-selection-click-count
49                     mouse-selection-click-count-buffer pgg-parse-crc24
50                     temporary-file-directory transient-mark-mode)))
51   (maybe-fbind '(bbdb-complete-name
52                  delete-annotation delete-extent device-connection dfw-device
53                  events-to-keys font-lock-set-defaults frame-device
54                  get-char-table glyph-height glyph-width mail-aliases-setup
55                  make-annotation make-event make-glyph make-network-process
56                  map-extents message-xmas-redefine put-char-table
57                  set-extent-property temp-directory
58                  valid-image-instantiator-format-p
59                  w3-coding-system-for-mime-charset w3-do-setup
60                  w3-prepare-buffer w3-region window-pixel-height
61                  window-pixel-width))
62   (maybe-bind '(help-echo-owns-message mail-mode-hook mm-w3m-mode-map)))
63
64 (when (and (featurep 'xemacs)
65            (not (featurep 'mule)))
66   (maybe-fbind '(ccl-execute-on-string
67                  char-charset charsetp coding-system-get define-ccl-program
68                  find-charset-region get-charset-property
69                  pgg-parse-crc24-string))
70   (unless (featurep 'file-coding)
71     (maybe-fbind '(coding-system-base
72                    coding-system-list coding-system-p decode-coding-region
73                    decode-coding-string detect-coding-region
74                    encode-coding-region encode-coding-string))))
75
76 (defun nnkiboze-score-file (a)
77   )
78
79 (defun split-line (&optional arg)
80   )
81
82
83 ;; T-gnus.
84 (let ((functions
85        (cond
86         ((featurep 'xemacs)
87          '(frame-char-height frame-char-width))
88         ((>= emacs-major-version 21)
89          '(function-max-args smiley-encode-buffer))
90         ((boundp 'MULE)
91          '(charsetp
92            coding-system-base coding-system-get coding-system-list
93            coding-system-to-mime-charset compose-mail
94            file-name-extension find-coding-systems-for-charsets
95            find-coding-systems-region function-max-args get-charset-property
96            read-passwd ;; See the Mule23@1934 file.
97            smiley-encode-buffer smtpmail-send-it))
98         (t
99          '(function-max-args smiley-encode-buffer))))
100       (common-fns
101        nil)
102       (variables
103        (cond
104         ((featurep 'xemacs)
105          '(font-lock-defaults))
106         ((>= emacs-major-version 21)
107          nil)
108         ((boundp 'MULE)
109          '(adaptive-fill-first-line-regexp
110            default-enable-multibyte-characters enable-multibyte-characters))
111         (t
112          nil)))
113       (common-vars
114        '(default-mime-charset-unlimited navi2ch-mona-font)))
115   (maybe-fbind functions)
116   (maybe-fbind common-fns)
117   (maybe-bind variables)
118   (maybe-bind common-vars))
119
120 (provide 'lpath)