X-Git-Url: http://cgit.sxemacs.org/?a=blobdiff_plain;f=lisp%2Flpath.el;h=434284fb99b47e9b30c5c26f8b9e0ff033a5c83d;hb=4855104819bbe96bd7f6dd031392f9a241023d51;hp=2128c641d4edfc3862e6f43c5b962a26026bd1fb;hpb=900db562d82af1a9f0603c58f8c0af521c203544;p=gnus diff --git a/lisp/lpath.el b/lisp/lpath.el index 2128c641d..434284fb9 100644 --- a/lisp/lpath.el +++ b/lisp/lpath.el @@ -9,78 +9,107 @@ (defun maybe-bind (args) (mapcar (lambda (var) (unless (boundp var) (set var nil))) args)) -(maybe-fbind '(Info-directory - Info-menu create-image display-graphic-p - display-time-event-handler find-coding-system find-image - image-size image-type-available-p insert-image - make-mode-line-mouse-map make-temp-file propertize put-image - replace-regexp-in-string rmail-msg-is-pruned - rmail-msg-restore-non-pruned-header sort-coding-systems - tool-bar-add-item tool-bar-add-item-from-menu - tool-bar-local-item-from-menu url-generic-parse-url - url-http-file-exists-p url-insert-file-contents - vcard-pretty-print w32-focus-frame w3m-detect-meta-charset - w3m-region x-focus-frame)) -(maybe-bind '(eudc-protocol - filladapt-mode mc-pgp-always-sign - rmail-insert-mime-forwarded-message-function url-current-object - url-package-name url-package-version - w3-meta-charset-content-type-regexp - w3-meta-content-type-charset-regexp - w3m-cid-retrieve-function-alist w3m-current-buffer - w3m-display-inline-images 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 '(delete-overlay - detect-coding-string eudc-expand-inline event-click-count - event-end event-start find-coding-systems-for-charsets - find-coding-systems-region find-coding-systems-string - mail-abbrevs-setup mouse-minibuffer-check - mouse-movement-p mouse-scroll-subr overlay-lists - posn-point posn-window read-event set-buffer-multibyte - track-mouse window-edges)) - (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 - header-line-format language-info-alist mark-active - mouse-selection-click-count - mouse-selection-click-count-buffer pgg-parse-crc24 - scroll-margin temporary-file-directory - transient-mark-mode))) - (maybe-fbind '(bbdb-complete-name - delete-annotation delete-extent device-connection dfw-device - events-to-keys font-lock-set-defaults frame-device - get-char-table glyph-height glyph-width ldap-search-entries - mail-aliases-setup make-annotation make-event make-glyph - make-network-process map-extents message-xmas-redefine - put-char-table set-extent-property temp-directory - valid-image-instantiator-format-p - w3-coding-system-for-mime-charset w3-do-setup - w3-prepare-buffer w3-region window-pixel-height - window-pixel-width)) - (maybe-bind '(help-echo-owns-message mail-mode-hook mm-w3m-mode-map - show-nonbreak-escape))) + (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))) - (maybe-fbind '(ccl-execute-on-string - char-charset charsetp coding-system-get define-ccl-program - find-charset-region get-charset-property - pgg-parse-crc24-string)) - (unless (featurep 'file-coding) - (maybe-fbind '(coding-system-base - coding-system-list coding-system-p decode-coding-region - decode-coding-string detect-coding-region - encode-coding-region encode-coding-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)) + + (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 nnkiboze-score-file (a) - ) + (when (and (= emacs-major-version 21) (= emacs-minor-version 4)) + (maybe-fbind + '(propertize))) -(defun split-line (&optional arg) - ) + (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)