* nnmail.el (nnmail-pathname-coding-system): Default to the `file-name'
[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        w3-prepare-buffer w3-region w32-focus-frame w3m-detect-meta-charset
25        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   (maybe-fbind
55    '(clear-string
56      codepage-setup create-image detect-coding-string
57      display-time-event-handler epg-check-configuration event-click-count
58      event-end event-start find-coding-systems-for-charsets
59      find-coding-systems-region find-coding-systems-string find-image
60      help-buffer image-size image-type-available-p insert-image
61      mail-abbrevs-setup make-mode-line-mouse-map make-network-process
62      mouse-minibuffer-check mouse-movement-p mouse-scroll-subr
63      pgg-display-output-buffer posn-point posn-window put-image read-event
64      select-safe-coding-system sort-coding-systems track-mouse ucs-to-char
65      url-generic-parse-url url-http-file-exists-p url-insert-file-contents
66      vcard-pretty-print w3m-detect-meta-charset w3m-region window-edges))
67   (maybe-bind
68    '(adaptive-fill-first-line-regexp
69      buffer-display-table cursor-in-non-selected-windows
70      default-enable-multibyte-characters eudc-protocol
71      filladapt-mode gnus-agent-expire-current-dirs
72      help-xref-stack-item idna-program installation-directory
73      line-spacing mark-active mouse-selection-click-count
74      mouse-selection-click-count-buffer ps-print-color-p
75      rmail-insert-mime-forwarded-message-function
76      show-trailing-whitespace tool-bar-mode transient-mark-mode
77      url-version w3-meta-charset-content-type-regexp w3m-link-map
78      w3-meta-content-type-charset-regexp))
79
80   (when (or (and (= emacs-major-version 21) (= emacs-minor-version 4))
81             (featurep 'sxemacs))
82     (maybe-fbind
83      '(custom-autoload
84        decode-char display-graphic-p display-images-p display-visual-class
85        get-display-table put-display-table select-frame-set-input-focus
86        unicode-precedence-list unicode-to-char w32-focus-frame x-focus-frame))
87     (maybe-bind
88      '(default-file-name-coding-system scroll-margin)))
89
90   (when (and (= emacs-major-version 21) (= emacs-minor-version 4))
91     (maybe-fbind
92      '(propertize)))
93
94   (unless (featurep 'mule)
95     (maybe-fbind
96      '(ccl-execute-on-string
97        charsetp coding-system-get get-charset-property
98        pgg-display-output-buffer pgg-parse-crc24-string
99        unicode-precedence-list))
100     (maybe-bind
101      '(current-language-environment
102        default-file-name-coding-system language-info-alist pgg-parse-crc24)))
103
104   (unless (featurep 'file-coding)
105     (maybe-fbind
106      '(coding-system-aliasee
107        coding-system-base coding-system-change-eol-conversion coding-system-list
108        coding-system-p find-coding-system))
109     (maybe-bind
110      '(buffer-file-coding-system
111        coding-system-for-read coding-system-for-write
112        enable-multibyte-characters file-name-coding-system))))
113
114 (provide 'lpath)
115
116 ;;; arch-tag: d1ad864f-dca6-4d21-aa3f-be3248e66dba