;; Shut up.
-(defvar byte-compile-default-warnings)
-
(defun maybe-fbind (args)
(while args
(or (fboundp (car args))
- (fset (car args) 'ignore))
+ (defalias (car args) 'ignore))
(setq args (cdr args))))
(defun maybe-bind (args)
(mapcar (lambda (var) (unless (boundp var) (set var nil))) args))
-(if (string-match "XEmacs" emacs-version)
- (progn
- (defvar track-mouse nil)
- (maybe-fbind '(posn-point
- event-start x-popup-menu
- facemenu-get-face window-at coordinates-in-window-p
- compute-motion x-defined-colors easy-menu-create-keymaps
- read-event internal-find-face internal-next-face-id
- make-face-internal set-frame-face-alist frame-face-alist
- facemenu-add-new-face make-face-x-resource-internal
- set-font-size set-font-family posn-window
- run-with-idle-timer mouse-minibuffer-check window-edges
- event-click-count track-mouse read-event mouse-movement-p
- event-end mouse-scroll-subr overlay-lists delete-overlay
- set-face-stipple mail-abbrevs-setup
- make-char-table set-char-table-range font-create-object
- x-color-values widget-make-intangible error-message-string
- w3-form-encode-xwfu gnus-mule-get-coding-system
- decode-coding-string mail-aliases-setup
- mm-copy-tree url-view-url w3-prepare-buffer
- set-buffer-multibyte
- find-non-ascii-charset-region char-charset
- mule-write-region-no-coding-system
- find-charset-region
- find-coding-systems-region get-charset-property
- coding-system-get w3-region
- rmail-summary-exists rmail-select-summary
- rmail-update-summary url-retrieve
- temp-directory
- ))
- (maybe-bind '(global-face-data
- mark-active transient-mark-mode mouse-selection-click-count
- mouse-selection-click-count-buffer buffer-display-table
- font-lock-defaults user-full-name user-login-name
- gnus-newsgroup-name gnus-article-x-face-too-ugly
- gnus-newsgroup-charset
- mail-mode-hook enable-multibyte-characters
- adaptive-fill-first-line-regexp adaptive-fill-regexp
- url-current-mime-headers buffer-file-coding-system
- w3-image-mappings url-current-mime-type
- url-current-callback-func url-current-callback-data
- url-be-asynchronous temporary-file-directory)))
- (maybe-bind '(mail-mode-hook
- enable-multibyte-characters browse-url-browser-function
- adaptive-fill-first-line-regexp adaptive-fill-regexp
- url-current-mime-headers help-echo-owns-message))
- (maybe-fbind '(color-instance-rgb-components temp-directory
- glyph-width annotation-glyph window-pixel-width glyph-height
- window-pixel-height
- make-color-instance color-instance-name specifier-instance
- device-type device-class get-popup-menu-response event-object
- x-defined-colors read-color add-submenu set-font-family
- font-create-object set-font-size frame-device find-face
- set-extent-property make-extent characterp display-error
- set-face-doc-string frame-property face-doc-string
- button-press-event-p next-command-event
- widget-make-intangible glyphp make-glyph set-glyph-image
- set-glyph-property event-glyph glyph-property event-point
- device-on-window-system-p make-gui-button Info-goto-node
- pp-to-string color-name
- gnus-mule-get-coding-system decode-coding-string
- mail-aliases-setup
- mm-copy-tree url-view-url w3-prepare-buffer
- mule-write-region-no-coding-system char-int
- annotationp delete-annotation make-image-specifier
- make-annotation
- w3-do-setup w3-region
- rmail-summary-exists rmail-select-summary rmail-update-summary
- url-generic-parse-url valid-image-instantiator-format-p
- )))
+(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))
+
+ (when (<= emacs-major-version 22)
+ (defun ecomplete-add-item (type key text))
+ (defun ecomplete-save nil)
+ (defun hashcash-wait-async (&optional buffer))
+ (defun mail-add-payment (&optional arg async))
+ (defun mail-add-payment-async (&optional arg))
+ (defun netrc-get (alist type))
+ (defun netrc-machine (list machine &optional port defaultport))
+ (defun netrc-machine-user-or-password (mode authinfo-file-or-list machines
+ ports defaults))
+ (defun netrc-parse (file))
+ (maybe-fbind
+ '(Info-index
+ Info-index-next Info-menu bbdb-complete-name bookmark-default-handler
+ bookmark-get-bookmark-record bookmark-make-record-default
+ bookmark-prop-get display-time-event-handler epg-check-configuration
+ find-coding-system frame-device recenter-top-bottom
+ rmail-swap-buffers-maybe w3-do-setup w3-parse-buffer w3-prepare-buffer
+ w3-region w32-focus-frame w3m-detect-meta-charset w3m-region))
+ (maybe-bind
+ '(w3m-link-map))))
+
+(when (featurep 'xemacs)
+ (defun canlock-insert-header (&optional id-for-key id-for-lock password))
+ (defun ecomplete-add-item (type key text))
+ (defun ecomplete-save nil)
+ (defun hashcash-wait-async (&optional buffer))
+ (defun mail-add-payment (&optional arg async))
+ (defun mail-add-payment-async (&optional arg))
+ (defun netrc-get (alist type))
+ (defun netrc-machine (list machine &optional port defaultport))
+ (defun netrc-machine-user-or-password (mode authinfo-file-or-list machines
+ ports defaults))
+ (defun netrc-parse (file))
+ (defun split-line (&optional arg))
+ (eval-after-load "rmail"
+ '(defun rmail-toggle-header (&optional arg)))
+ (maybe-fbind
+ '(bookmark-default-handler
+ bookmark-get-bookmark-record bookmark-make-record-default
+ bookmark-prop-get clear-string codepage-setup coding-system-from-name
+ cp-supported-codepages create-image delete-overlay 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
+ float-time 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 overlay-lists
+ pgg-display-output-buffer posn-point posn-window put-image read-event
+ recenter-top-bottom rmail-msg-restore-non-pruned-header
+ rmail-swap-buffers-maybe 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 w3-parse-buffer
+ w3m-detect-meta-charset w3m-region window-edges))
+ (maybe-bind
+ '(adaptive-fill-first-line-regexp
+ buffer-display-table completion-styles cursor-in-non-selected-windows
+ default-enable-multibyte-characters default-file-name-coding-system
+ 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-default-file rmail-default-rmail-file
+ rmail-insert-mime-forwarded-message-function show-trailing-whitespace
+ smtpmail-default-smtp-server temporary-file-directory tool-bar-mode
+ transient-mark-mode url-version w3-meta-charset-content-type-regexp
+ w3m-link-map w3-meta-content-type-charset-regexp))
+
+ (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 make-temp-file next-single-char-property-change
+ put-display-table select-frame-set-input-focus set-buffer-multibyte
+ string-as-multibyte timer-set-function unicode-precedence-list
+ unicode-to-char w32-focus-frame x-focus-frame))
+ (maybe-bind
+ '(header-line-format
+ scroll-margin timer-list)))
-(setq load-path (cons "." load-path))
-(require 'custom)
+ (unless (featurep 'mule)
+ (maybe-fbind
+ '(ccl-execute-on-string
+ char-charset charsetp coding-system-get find-charset-region
+ get-charset-property pgg-display-output-buffer pgg-parse-crc24-string
+ unicode-precedence-list))
+ (maybe-bind
+ '(current-language-environment
+ language-info-alist pgg-parse-crc24)))
-(defun md5 (a &optional b c)
- )
+ (unless (featurep 'file-coding)
+ (maybe-fbind
+ '(coding-system-aliasee
+ coding-system-base coding-system-change-eol-conversion coding-system-list
+ coding-system-p decode-coding-region decode-coding-string
+ detect-coding-region encode-coding-region encode-coding-string
+ 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)