X-Git-Url: http://cgit.sxemacs.org/?a=blobdiff_plain;f=lisp%2Flpath.el;h=434284fb99b47e9b30c5c26f8b9e0ff033a5c83d;hb=4855104819bbe96bd7f6dd031392f9a241023d51;hp=e59759cb730ea08317a38fdbb360408301425a5c;hpb=b0705c39dfd7ea9a92c108dfe908928e4eb926fe;p=gnus diff --git a/lisp/lpath.el b/lisp/lpath.el index e59759cb7..434284fb9 100644 --- a/lisp/lpath.el +++ b/lisp/lpath.el @@ -9,83 +9,107 @@ (defun maybe-bind (args) (mapcar (lambda (var) (unless (boundp var) (set var nil))) args)) -(maybe-fbind '(Info-directory - Info-menu clear-string cp-supported-codepages create-image - custom-autoload display-graphic-p display-time-event-handler - epg-check-configuration find-coding-system find-image image-size - image-type-available-p insert-image line-number-at-pos - make-mode-line-mouse-map make-network-process make-temp-file - propertize put-image 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 unicode-precedence-list - 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 rmail-insert-mime-forwarded-message-function - url-version w3-meta-charset-content-type-regexp - w3-meta-content-type-charset-regexp)) +(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 '(codepage-setup - delete-overlay detect-coding-string display-images-p - 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 - select-frame-set-input-focus select-safe-coding-system - string-as-multibyte timer-set-function track-mouse - window-edges)) - (maybe-bind '(adaptive-fill-first-line-regexp - buffer-display-table buffer-file-coding-system - current-language-environment cursor-in-non-selected-windows - default-enable-multibyte-characters - default-file-name-coding-system enable-multibyte-characters - gnus-agent-expire-current-dirs anguage-info-alist - line-spacing mark-active mouse-selection-click-count - mouse-selection-click-count-buffer pgg-parse-crc24 - show-trailing-whitespace temporary-file-directory - timer-list tool-bar-mode transient-mark-mode))) - (maybe-fbind '(bbdb-complete-name - delete-annotation delete-extent device-connection dfw-device - events-to-keys find-face 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 - map-extents message-xmas-redefine put-char-table - run-mode-hooks set-extent-property set-itimer-function - set-keymap-default-binding 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 - itimer-list mail-mode-hook mm-w3m-mode-map nobreak-char-display - 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 find-charset-region - get-charset-property pgg-parse-crc24-string)) - (maybe-bind '(language-info-alist)) - (unless (featurep 'file-coding) - (maybe-fbind '(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)) - (maybe-bind '(coding-system-for-read - coding-system-for-write file-name-coding-system)))) + (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)