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