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