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