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