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