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 create-image display-graphic-p
14 display-time-event-handler find-coding-system find-image
15 image-size image-type-available-p insert-image
16 make-mode-line-mouse-map make-temp-file propertize put-image
17 replace-regexp-in-string rmail-msg-is-pruned
18 rmail-msg-restore-non-pruned-header sort-coding-systems
19 tool-bar-add-item tool-bar-add-item-from-menu
20 tool-bar-local-item-from-menu url-generic-parse-url
21 url-http-file-exists-p url-insert-file-contents
22 vcard-pretty-print w32-focus-frame w3m-detect-meta-charset
23 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 header-line-format language-info-alist mark-active
49 mouse-selection-click-count
50 mouse-selection-click-count-buffer pgg-parse-crc24
51 scroll-margin temporary-file-directory
52 transient-mark-mode)))
53 (maybe-fbind '(bbdb-complete-name
54 delete-annotation delete-extent device-connection dfw-device
55 events-to-keys font-lock-set-defaults frame-device
56 get-char-table glyph-height glyph-width ldap-search-entries
57 mail-aliases-setup make-annotation make-event make-glyph
58 make-network-process map-extents message-xmas-redefine
59 put-char-table set-extent-property temp-directory
60 valid-image-instantiator-format-p
61 w3-coding-system-for-mime-charset w3-do-setup
62 w3-prepare-buffer w3-region window-pixel-height
64 (maybe-bind '(help-echo-owns-message mail-mode-hook mm-w3m-mode-map
65 show-nonbreak-escape)))
67 (when (and (featurep 'xemacs)
68 (not (featurep 'mule)))
69 (maybe-fbind '(ccl-execute-on-string
70 char-charset charsetp coding-system-get define-ccl-program
71 find-charset-region get-charset-property
72 pgg-parse-crc24-string))
73 (unless (featurep 'file-coding)
74 (maybe-fbind '(coding-system-base
75 coding-system-list coding-system-p decode-coding-region
76 decode-coding-string detect-coding-region
77 encode-coding-region encode-coding-string))))
79 (defun nnkiboze-score-file (a)
82 (defun split-line (&optional arg)
90 '(frame-char-height frame-char-width))
92 '(function-max-args smiley-encode-buffer))))
94 '(lsdb-complete-name))
98 '(font-lock-defaults))
102 '(default-mime-charset-unlimited navi2ch-mona-font)))
103 (maybe-fbind functions)
104 (maybe-fbind common-fns)
105 (maybe-bind variables)
106 (maybe-bind common-vars))