3 (defun maybe-fbind (args)
5 (or (fboundp (car args))
6 (defalias (car args) 'ignore))
7 (setq args (cdr args))))
9 (defun maybe-bind (args)
10 (mapcar (lambda (var) (unless (boundp var) (set var nil))) args))
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-detect-meta-charset w3m-region x-focus-frame))
24 (maybe-bind '(eudc-protocol
25 filladapt-mode mc-pgp-always-sign
26 rmail-insert-mime-forwarded-message-function url-current-object
27 url-package-name url-package-version
28 w3-meta-charset-content-type-regexp
29 w3-meta-content-type-charset-regexp
30 w3m-cid-retrieve-function-alist w3m-current-buffer
31 w3m-display-inline-images w3m-minor-mode-map))
33 (if (featurep 'xemacs)
35 (maybe-fbind '(delete-overlay
36 detect-coding-string eudc-expand-inline event-click-count
37 event-end event-start 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
62 (maybe-bind '(help-echo-owns-message mail-mode-hook mm-w3m-mode-map)))
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))))
76 (defun nnkiboze-score-file (a)
79 (defun split-line (&optional arg)
87 '(frame-char-height frame-char-width))
89 '(function-max-args smiley-encode-buffer))))
91 '(lsdb-complete-name))
95 '(font-lock-defaults))
99 '(default-mime-charset-unlimited navi2ch-mona-font)))
100 (maybe-fbind functions)
101 (maybe-fbind common-fns)
102 (maybe-bind variables)
103 (maybe-bind common-vars))