* lpath.el: Rearrange.
[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))
14   (maybe-bind '(help-xref-stack-item))
15
16   (when (<= emacs-major-version 22)
17     (defun nnkiboze-score-file (a))
18     (maybe-fbind
19      '(Info-menu
20        bbdb-complete-name display-time-event-handler epg-check-configuration
21        find-coding-system w3-do-setup w3-prepare-buffer w3-region
22        w32-focus-frame w3m-detect-meta-charset w3m-region)))
23
24   (when (= emacs-major-version 21)
25     (defun split-line (&optional arg))
26     (maybe-fbind
27      '(clear-string
28        custom-autoload delete-annotation events-to-keys font-lock-set-defaults
29        get-char-table glyph-height glyph-width help-buffer ldap-search-entries
30        mail-aliases-setup make-annotation make-event make-network-process
31        message-xmas-redefine put-char-table run-mode-hooks set-itimer-function
32        set-keymap-default-binding temp-directory unicode-precedence-list
33        url-http-file-exists-p valid-image-instantiator-format-p
34        vcard-pretty-print w3-coding-system-for-mime-charset window-pixel-height
35        window-pixel-width))
36     (maybe-bind
37      '(eudc-protocol
38        filladapt-mode help-echo-owns-message itimer-list ps-print-color-p))))
39
40 (when (featurep 'xemacs)
41   (defun nnkiboze-score-file (a))
42   (defun split-line (&optional arg))
43   (maybe-fbind
44    '(clear-string
45      codepage-setup create-image detect-coding-string
46      display-time-event-handler epg-check-configuration event-click-count
47      event-end event-start find-coding-systems-for-charsets
48      find-coding-systems-region find-coding-systems-string find-image
49      help-buffer image-size image-type-available-p insert-image
50      mail-abbrevs-setup make-mode-line-mouse-map make-network-process
51      mouse-minibuffer-check mouse-movement-p mouse-scroll-subr
52      pgg-display-output-buffer posn-point posn-window put-image read-event
53      select-safe-coding-system sort-coding-systems track-mouse
54      url-http-file-exists-p vcard-pretty-print w3m-detect-meta-charset
55      window-edges))
56   (maybe-bind
57    '(adaptive-fill-first-line-regexp
58      buffer-display-table cursor-in-non-selected-windows
59      default-enable-multibyte-characters eudc-protocol filladapt-mode
60      gnus-agent-expire-current-dirs help-xref-stack-item line-spacing
61      mark-active mouse-selection-click-count mouse-selection-click-count-buffer
62      rmail-insert-mime-forwarded-message-function show-trailing-whitespace
63      tool-bar-mode transient-mark-mode))
64
65   (when (or (and (= emacs-major-version 21) (= emacs-minor-version 4))
66             (featurep 'sxemacs))
67     (maybe-fbind
68      '(custom-autoload
69        display-graphic-p display-images-p display-visual-class
70        select-frame-set-input-focus unicode-precedence-list w32-focus-frame
71        x-focus-frame))
72     (maybe-bind
73      '(default-file-name-coding-system)))
74
75   (unless (featurep 'mule)
76     (maybe-fbind
77      '(ccl-execute-on-string
78        charsetp coding-system-get get-charset-property
79        pgg-display-output-buffer pgg-parse-crc24-string
80        unicode-precedence-list))
81     (maybe-bind
82      '(current-language-environment
83        default-file-name-coding-system language-info-alist pgg-parse-crc24)))
84
85   (unless (featurep 'file-coding)
86     (maybe-fbind
87      '(coding-system-base
88        coding-system-change-eol-conversion coding-system-list coding-system-p
89        find-coding-system))
90     (maybe-bind
91      '(buffer-file-coding-system
92        coding-system-for-read coding-system-for-write
93        enable-multibyte-characters file-name-coding-system))))
94
95 (provide 'lpath)
96
97 ;;; arch-tag: d1ad864f-dca6-4d21-aa3f-be3248e66dba