* nnmail.el (nnmail-pathname-coding-system): Default to the `file-name'
[gnus] / lisp / lpath.el
index 50f0ec4..434284f 100644 (file)
 (defun maybe-bind (args)
   (mapcar (lambda (var) (unless (boundp var) (set var nil))) args))
 
-(maybe-fbind '(Info-directory
-              Info-menu bbdb-create-internal bbdb-records create-image
-              display-graphic-p display-time-event-handler find-image
-              image-size image-type-available-p insert-image
-              make-mode-line-mouse-map make-temp-file open-ssl-stream
-              propertize put-image replace-regexp-in-string
-              rmail-msg-is-pruned rmail-msg-restore-non-pruned-header
-              sort-coding-systems spam-BBDB-register-routine
-              spam-enter-ham-BBDB string-to-multibyte tool-bar-add-item
-              tool-bar-add-item-from-menu tool-bar-local-item-from-menu
-              url-http-file-exists-p vcard-pretty-print w32-focus-frame
-              w3m-charset-to-coding-system x-focus-frame))
-(maybe-bind '(filladapt-mode
-             mc-pgp-always-sign mm-w3m-mode-map rmail-enable-mime-composing
-             rmail-insert-mime-forwarded-message-function
-             w3m-cid-retrieve-function-alist w3m-current-buffer
-             w3m-display-inline-images w3m-meta-content-type-charset-regexp
-             w3m-minor-mode-map))
+(unless (featurep 'xemacs)
+  (maybe-fbind '(pgg-display-output-buffer url-generic-parse-url))
+  (maybe-bind '(help-xref-stack-item
+               url-version w3-meta-charset-content-type-regexp
+               w3-meta-content-type-charset-regexp))
 
-(if (featurep 'xemacs)
-    (progn
-      (maybe-fbind '(Info-directory
-                    Info-menu ccl-execute-on-string char-charset charsetp
-                    coding-system-get coding-system-list coding-system-p
-                    decode-coding-region decode-coding-string
-                    define-ccl-program delete-overlay detect-coding-region
-                    encode-coding-region encode-coding-string
-                    event-click-count event-end event-start
-                    find-charset-region find-coding-systems-for-charsets
-                    find-coding-systems-region find-coding-systems-string
-                    get-charset-property mail-abbrevs-setup
-                    mouse-minibuffer-check mouse-movement-p mouse-scroll-subr
-                    overlay-lists pgg-parse-crc24-string posn-point
-                    posn-window read-event set-buffer-multibyte track-mouse
-                    window-edges w3m-region))
-      (maybe-bind '(adaptive-fill-first-line-regexp
-                   buffer-display-table buffer-file-coding-system
-                   current-language-environment
-                   default-enable-multibyte-characters
-                   enable-multibyte-characters gnus-agent-expire-current-dirs
-                   language-info-alist mark-active mouse-selection-click-count
-                   mouse-selection-click-count-buffer pgg-parse-crc24
-                   temporary-file-directory transient-mark-mode
-                   w3-meta-content-type-charset-regexp
-                   w3-meta-charset-content-type-regexp)))
-  (maybe-fbind '(bbdb-complete-name
-                delete-annotation device-connection dfw-device
-                events-to-keys font-lock-set-defaults frame-device
-                glyph-height glyph-width mail-aliases-setup make-annotation
-                make-event make-glyph make-network-process map-extents
-                message-xmas-redefine set-extent-property temp-directory
-                url-generic-parse-url url-insert-file-contents
-                valid-image-instantiator-format-p
-                w3-coding-system-for-mime-charset w3-do-setup
-                w3-prepare-buffer w3-region w3m-region window-pixel-height
-                window-pixel-width))
-  (maybe-bind '(help-echo-owns-message
-               mail-mode-hook
-               url-current-object url-package-name url-package-version
-               w3-meta-charset-content-type-regexp
-               w3-meta-content-type-charset-regexp)))
+  (when (<= emacs-major-version 22)
+    (defun nnkiboze-score-file (a))
+    (maybe-fbind
+     '(Info-index
+       Info-index-next Info-menu bbdb-complete-name display-time-event-handler
+       epg-check-configuration find-coding-system frame-device w3-do-setup
+       w3-prepare-buffer w3-region w32-focus-frame w3m-detect-meta-charset
+       w3m-region))
+    (maybe-bind
+     '(w3m-link-map)))
 
-(when (and (featurep 'xemacs)
-          (not (featurep 'mule)))
-  (progn
-    (maybe-fbind '(coding-system-base find-charset-string))))
+  (when (= emacs-major-version 21)
+    (defun split-line (&optional arg))
+    (maybe-fbind
+     '(clear-string
+       coding-system-aliasee custom-autoload delete-annotation delete-extent
+       device-connection dfw-device events-to-keys find-face
+       font-lock-set-defaults get-char-table glyph-height glyph-width
+       help-buffer int-to-char ldap-search-entries mail-aliases-setup
+       make-annotation make-event make-glyph make-network-process map-extents
+       message-xmas-redefine put-char-table run-mode-hooks set-extent-property
+       set-itimer-function set-keymap-default-binding temp-directory
+       ucs-to-char unicode-precedence-list unicode-to-char
+       url-generic-parse-url url-http-file-exists-p
+       valid-image-instantiator-format-p vcard-pretty-print
+       w3-coding-system-for-mime-charset window-pixel-height
+       window-pixel-width))
+    (maybe-bind
+     '(eudc-protocol
+       filladapt-mode help-echo-owns-message itimer-list ps-print-color-p
+       w3-meta-charset-content-type-regexp
+       w3-meta-content-type-charset-regexp))))
 
+(when (featurep 'xemacs)
+  (defun nnkiboze-score-file (a))
+  (defun split-line (&optional arg))
+  (maybe-fbind
+   '(clear-string
+     codepage-setup create-image detect-coding-string
+     display-time-event-handler epg-check-configuration event-click-count
+     event-end event-start find-coding-systems-for-charsets
+     find-coding-systems-region find-coding-systems-string find-image
+     help-buffer image-size image-type-available-p insert-image
+     mail-abbrevs-setup make-mode-line-mouse-map make-network-process
+     mouse-minibuffer-check mouse-movement-p mouse-scroll-subr
+     pgg-display-output-buffer posn-point posn-window put-image read-event
+     select-safe-coding-system sort-coding-systems track-mouse ucs-to-char
+     url-generic-parse-url url-http-file-exists-p url-insert-file-contents
+     vcard-pretty-print w3m-detect-meta-charset w3m-region window-edges))
+  (maybe-bind
+   '(adaptive-fill-first-line-regexp
+     buffer-display-table cursor-in-non-selected-windows
+     default-enable-multibyte-characters eudc-protocol
+     filladapt-mode gnus-agent-expire-current-dirs
+     help-xref-stack-item idna-program installation-directory
+     line-spacing mark-active mouse-selection-click-count
+     mouse-selection-click-count-buffer ps-print-color-p
+     rmail-insert-mime-forwarded-message-function
+     show-trailing-whitespace tool-bar-mode transient-mark-mode
+     url-version w3-meta-charset-content-type-regexp w3m-link-map
+     w3-meta-content-type-charset-regexp))
 
-(defun nnkiboze-score-file (a)
-  )
+  (when (or (and (= emacs-major-version 21) (= emacs-minor-version 4))
+           (featurep 'sxemacs))
+    (maybe-fbind
+     '(custom-autoload
+       decode-char display-graphic-p display-images-p display-visual-class
+       get-display-table put-display-table select-frame-set-input-focus
+       unicode-precedence-list unicode-to-char w32-focus-frame x-focus-frame))
+    (maybe-bind
+     '(default-file-name-coding-system scroll-margin)))
 
-(defun split-line (&optional arg)
-  )
+  (when (and (= emacs-major-version 21) (= emacs-minor-version 4))
+    (maybe-fbind
+     '(propertize)))
+
+  (unless (featurep 'mule)
+    (maybe-fbind
+     '(ccl-execute-on-string
+       charsetp coding-system-get get-charset-property
+       pgg-display-output-buffer pgg-parse-crc24-string
+       unicode-precedence-list))
+    (maybe-bind
+     '(current-language-environment
+       default-file-name-coding-system language-info-alist pgg-parse-crc24)))
+
+  (unless (featurep 'file-coding)
+    (maybe-fbind
+     '(coding-system-aliasee
+       coding-system-base coding-system-change-eol-conversion coding-system-list
+       coding-system-p find-coding-system))
+    (maybe-bind
+     '(buffer-file-coding-system
+       coding-system-for-read coding-system-for-write
+       enable-multibyte-characters file-name-coding-system))))
 
 (provide 'lpath)
+
+;;; arch-tag: d1ad864f-dca6-4d21-aa3f-be3248e66dba