mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-10 01:34:36 -08:00
Remove XEmacs compat code from Gnus helper libraries
* lisp/gnus/plstore.el (plstore-called-interactively-p): Remove. * lisp/gnus/pop3.el (pop3-make-date): Remove XEmacs compat. * lisp/gnus/sieve-mode.el: Remove XEmacs compat. * lisp/gnus/spam-stat.el (spam-stat-called-interactively-p): Remove.
This commit is contained in:
parent
9f7711815b
commit
4f8de080ef
8 changed files with 11 additions and 45 deletions
|
|
@ -554,18 +554,6 @@ If no one is selected, symmetric encryption will be performed. "
|
|||
(plstore-mode-original)
|
||||
(plstore-mode-decoded)))
|
||||
|
||||
(eval-when-compile
|
||||
(defmacro plstore-called-interactively-p (kind)
|
||||
(condition-case nil
|
||||
(progn
|
||||
(eval '(called-interactively-p 'any))
|
||||
;; Emacs >=23.2
|
||||
`(called-interactively-p ,kind))
|
||||
;; Emacs <23.2
|
||||
(wrong-number-of-arguments '(called-interactively-p))
|
||||
;; XEmacs
|
||||
(void-function '(interactive-p)))))
|
||||
|
||||
;;;###autoload
|
||||
(define-derived-mode plstore-mode emacs-lisp-mode "PLSTORE"
|
||||
"Major mode for editing PLSTORE files."
|
||||
|
|
@ -573,7 +561,7 @@ If no one is selected, symmetric encryption will be performed. "
|
|||
(add-hook 'write-contents-functions #'plstore--write-contents-functions)
|
||||
(define-key plstore-mode-map "\C-c\C-c" #'plstore-mode-toggle-display)
|
||||
;; to create a new file with plstore-mode, mark it as already decoded
|
||||
(if (plstore-called-interactively-p 'any)
|
||||
(if (called-interactively-p 'any)
|
||||
(setq plstore-encoded t)
|
||||
(plstore-mode-decoded)))
|
||||
|
||||
|
|
|
|||
|
|
@ -644,9 +644,7 @@ If NOW, use that time instead."
|
|||
(format " %s "
|
||||
(capitalize (car (rassoc (nth 4 (decode-time now))
|
||||
parse-time-months))))
|
||||
(format-time-string "%Y %H:%M:%S " now)
|
||||
;; We do all of this because XEmacs doesn't have the %z spec.
|
||||
(format "%s%02d%02d" sign (/ zone 3600) (/ (% zone 3600) 60)))))
|
||||
(format-time-string "%Y %H:%M:%S %z" now))))
|
||||
|
||||
(defun pop3-munge-message-separator (start end)
|
||||
"Check to see if a message separator exists. If not, generate one."
|
||||
|
|
|
|||
|
|
@ -90,7 +90,6 @@ ftp://ftp.math.psu.edu/pub/simpson/chinese/hzp/hzp.doc"
|
|||
(while (re-search-forward (if rfc1843-decode-hzp
|
||||
rfc1843-hzp-word-regexp
|
||||
rfc1843-word-regexp) (point-max) t)
|
||||
;;; Text with extents may cause XEmacs crash
|
||||
(setq str (buffer-substring-no-properties
|
||||
(match-beginning 1)
|
||||
(match-end 1)))
|
||||
|
|
|
|||
|
|
@ -356,9 +356,7 @@ The buffer may be narrowed."
|
|||
;; it appears to be the cleanest way.
|
||||
;; Play safe and don't assume the form of the word syntax entry --
|
||||
;; copy it from ?a.
|
||||
(if (featurep 'xemacs)
|
||||
(put-char-table t (get-char-table ?a (standard-syntax-table)) table)
|
||||
(set-char-table-range table t (aref (standard-syntax-table) ?a)))
|
||||
(set-char-table-range table t (aref (standard-syntax-table) ?a))
|
||||
(modify-syntax-entry ?\\ "\\" table)
|
||||
(modify-syntax-entry ?\" "\"" table)
|
||||
(modify-syntax-entry ?\( "(" table)
|
||||
|
|
|
|||
|
|
@ -204,9 +204,8 @@ Turning on Sieve mode runs `sieve-mode-hook'."
|
|||
(set (make-local-variable 'comment-end) "")
|
||||
;;(set (make-local-variable 'comment-start-skip) "\\(^\\|\\s-\\);?#+ *")
|
||||
(set (make-local-variable 'comment-start-skip) "#+ *")
|
||||
(unless (featurep 'xemacs)
|
||||
(set (make-local-variable 'font-lock-defaults)
|
||||
'(sieve-font-lock-keywords nil nil ((?_ . "w")))))
|
||||
(set (make-local-variable 'font-lock-defaults)
|
||||
'(sieve-font-lock-keywords nil nil ((?_ . "w"))))
|
||||
(easy-menu-add-item nil nil sieve-mode-menu))
|
||||
|
||||
;; Menu
|
||||
|
|
|
|||
|
|
@ -588,13 +588,9 @@ A string or a list of strings is returned."
|
|||
"Get certificate for MAIL from the ldap server at HOST."
|
||||
(let ((ldapresult
|
||||
(funcall
|
||||
(if (featurep 'xemacs)
|
||||
(progn
|
||||
(require 'smime-ldap)
|
||||
'smime-ldap-search)
|
||||
(progn
|
||||
(require 'ldap)
|
||||
'ldap-search))
|
||||
(progn
|
||||
(require 'ldap)
|
||||
'ldap-search)
|
||||
(concat "mail=" mail)
|
||||
host '("userCertificate") nil))
|
||||
(retbuf (generate-new-buffer (format "*certificate for %s*" mail)))
|
||||
|
|
|
|||
|
|
@ -493,18 +493,6 @@ where DIFF is the difference between SCORE and 0.5."
|
|||
(setcdr (nthcdr 14 result) nil)
|
||||
result))
|
||||
|
||||
(eval-when-compile
|
||||
(defmacro spam-stat-called-interactively-p (kind)
|
||||
(condition-case nil
|
||||
(progn
|
||||
(eval '(called-interactively-p 'any))
|
||||
;; Emacs >=23.2
|
||||
`(called-interactively-p ,kind))
|
||||
;; Emacs <23.2
|
||||
(wrong-number-of-arguments '(called-interactively-p))
|
||||
;; XEmacs
|
||||
(void-function '(interactive-p)))))
|
||||
|
||||
(defun spam-stat-score-buffer ()
|
||||
"Return a score describing the spam-probability for this buffer.
|
||||
Add user supplied modifications if supplied."
|
||||
|
|
@ -522,7 +510,7 @@ Add user supplied modifications if supplied."
|
|||
(error nil)))
|
||||
(ans
|
||||
(if score1s (+ score0 score1s) score0)))
|
||||
(when (spam-stat-called-interactively-p 'any)
|
||||
(when (called-interactively-p 'any)
|
||||
(message "%S" ans))
|
||||
ans))
|
||||
|
||||
|
|
|
|||
|
|
@ -90,8 +90,8 @@
|
|||
(setq last (match-beginning 0))
|
||||
(setq footer-alist (yenc-parse-line (match-string 0)))
|
||||
(setq work-buffer (generate-new-buffer " *yenc-work*"))
|
||||
(unless (featurep 'xemacs)
|
||||
(with-current-buffer work-buffer (set-buffer-multibyte nil)))
|
||||
(with-current-buffer work-buffer
|
||||
(set-buffer-multibyte nil))
|
||||
(while (< first last)
|
||||
(setq char (char-after first))
|
||||
(cond ((or (eq char ?\r)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue