X-Git-Url: http://cgit.sxemacs.org/?p=gnus;a=blobdiff_plain;f=lisp%2Flpath.el;h=91613a22174529a794b7a9711578a4edb19a81ac;hp=3cbe92e3032f1d9c10b751056c0e1dbc6fc54136;hb=f59e2e33112ea1a959113c4bdc0c4ee9c26b51d7;hpb=09e46667132cf99d7cb1cacb1e3011f036309cb0 diff --git a/lisp/lpath.el b/lisp/lpath.el index 3cbe92e30..91613a221 100644 --- a/lisp/lpath.el +++ b/lisp/lpath.el @@ -9,86 +9,120 @@ (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 - help-buffer image-size image-type-available-p insert-image - line-number-at-pos make-mode-line-mouse-map make-network-process - make-temp-file pgg-display-output-buffer 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 help-xref-stack-item - 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 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 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 shr-put-image (data alt &optional flags)) + (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 completion-at-point display-time-event-handler + epg-check-configuration find-coding-system frame-device gnutls-negotiate + libxml-parse-html-region recenter-top-bottom rmail-swap-buffers-maybe + shr-insert-document w3-do-setup w3-parse-buffer w3-prepare-buffer + w3-region w3m-detect-meta-charset w3m-region)) + (maybe-bind + '(epa-file-encrypt-to 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 pgg-parse-crc24)) - (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 (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)) + (defun shr-put-image (data alt &optional flags)) + (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 + completion-at-point 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 gnutls-negotiate help-buffer ido-completing-read image-size + image-type-available-p insert-image libxml-parse-html-region + 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 process-type put-image + read-char-choice read-event recenter-top-bottom + rmail-msg-restore-non-pruned-header rmail-swap-buffers-maybe + select-safe-coding-system set-network-process-option shr-insert-document + sort-coding-systems track-mouse ucs-to-char url-generic-parse-url + 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 buffer-save-without-query completion-styles + completion-styles-alist cursor-in-non-selected-windows + default-enable-multibyte-characters default-file-name-coding-system + epa-file-encrypt-to eudc-protocol filladapt-mode + gnus-agent-expire-current-dirs help-xref-stack-item idna-program + installation-directory iswitchb-mode iswitchb-temp-buflist 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)) -(defun nnkiboze-score-file (a) - ) + (when (or (and (= emacs-major-version 21) (= emacs-minor-version 4)) + (featurep 'sxemacs)) + (maybe-fbind + '(current-idle-time + custom-autoload decode-char display-graphic-p display-images-p + display-visual-class get-display-table help-function-arglist + make-temp-file next-single-char-property-change put-display-table + select-frame-set-input-focus set-buffer-multibyte set-char-table-range + string-as-multibyte timer-set-function unicode-precedence-list + unicode-to-char)) + (maybe-bind + '(header-line-format + scroll-margin timer-list))) -(defun split-line (&optional arg) - ) + (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))) -(provide 'lpath) + (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)))) -;;; arch-tag: d1ad864f-dca6-4d21-aa3f-be3248e66dba +(provide 'lpath)