aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2016-02-10 14:24:11 +1100
committerLars Ingebrigtsen2016-02-10 14:24:11 +1100
commita3c2634f90ae744ae53c408257c416a9645cf158 (patch)
tree7197273e5b8afa0146abfe959353b877f0aeb6af
parent5b458e9ec92f02fcdcd1642263af440f5b6395d8 (diff)
downloademacs-a3c2634f90ae744ae53c408257c416a9645cf158.tar.gz
emacs-a3c2634f90ae744ae53c408257c416a9645cf158.zip
Get rid of gnus-ems-redefine
* lisp/gnus/gnus-ems.el (gnus-mouse-face-prop): Remove.
-rw-r--r--lisp/gnus/gnus-art.el8
-rw-r--r--lisp/gnus/gnus-cite.el2
-rw-r--r--lisp/gnus/gnus-ems.el41
-rw-r--r--lisp/gnus/gnus-msg.el4
-rw-r--r--lisp/gnus/gnus-salt.el3
-rw-r--r--lisp/gnus/gnus-spec.el5
-rw-r--r--lisp/gnus/gnus-sum.el10
-rw-r--r--lisp/gnus/gnus.el4
8 files changed, 9 insertions, 68 deletions
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el
index 147c258b4ba..96d2adbf566 100644
--- a/lisp/gnus/gnus-art.el
+++ b/lisp/gnus/gnus-art.el
@@ -6197,7 +6197,7 @@ If nil, don't show those extra buttons."
6197 (gnus-mime-display-alternative 6197 (gnus-mime-display-alternative
6198 ',ihandles ',not-pref ',begend ,id)) 6198 ',ihandles ',not-pref ',begend ,id))
6199 keymap ,gnus-mime-button-map 6199 keymap ,gnus-mime-button-map
6200 ,gnus-mouse-face-prop ,gnus-article-mouse-face 6200 mouse-face ,gnus-article-mouse-face
6201 face ,gnus-article-button-face 6201 face ,gnus-article-button-face
6202 gnus-part ,id 6202 gnus-part ,id
6203 article-type multipart 6203 article-type multipart
@@ -6222,7 +6222,7 @@ If nil, don't show those extra buttons."
6222 (gnus-mime-display-alternative 6222 (gnus-mime-display-alternative
6223 ',ihandles ',handle ',begend ,id)) 6223 ',ihandles ',handle ',begend ,id))
6224 keymap ,gnus-mime-button-map 6224 keymap ,gnus-mime-button-map
6225 ,gnus-mouse-face-prop ,gnus-article-mouse-face 6225 mouse-face ,gnus-article-mouse-face
6226 face ,gnus-article-button-face 6226 face ,gnus-article-button-face
6227 gnus-part ,id 6227 gnus-part ,id
6228 gnus-data ,handle 6228 gnus-data ,handle
@@ -8189,7 +8189,7 @@ url is put as the `gnus-button-url' overlay property on the button."
8189 (gnus-add-text-properties 8189 (gnus-add-text-properties
8190 from to 8190 from to
8191 (nconc (and gnus-article-mouse-face 8191 (nconc (and gnus-article-mouse-face
8192 (list gnus-mouse-face-prop gnus-article-mouse-face)) 8192 (list 'mouse-face gnus-article-mouse-face))
8193 (list 'gnus-callback fun) 8193 (list 'gnus-callback fun)
8194 (and data (list 'gnus-data data)))) 8194 (and data (list 'gnus-data data))))
8195 (widget-convert-button 'link from to :action 'gnus-widget-press-button 8195 (widget-convert-button 'link from to :action 'gnus-widget-press-button
@@ -9018,8 +9018,6 @@ For example:
9018 (interactive) 9018 (interactive)
9019 (gnus-mime-security-run-function 'mm-pipe-part)) 9019 (gnus-mime-security-run-function 'mm-pipe-part))
9020 9020
9021(gnus-ems-redefine)
9022
9023(provide 'gnus-art) 9021(provide 'gnus-art)
9024 9022
9025(run-hooks 'gnus-art-load-hook) 9023(run-hooks 'gnus-art-load-hook)
diff --git a/lisp/gnus/gnus-cite.el b/lisp/gnus/gnus-cite.el
index 502a3be3555..aa3635fdf7b 100644
--- a/lisp/gnus/gnus-cite.el
+++ b/lisp/gnus/gnus-cite.el
@@ -1248,8 +1248,6 @@ When enabled, it automatically turns on `font-lock-mode'."
1248 "Turn off `gnus-message-citation-mode'." 1248 "Turn off `gnus-message-citation-mode'."
1249 (gnus-message-citation-mode -1)) 1249 (gnus-message-citation-mode -1))
1250 1250
1251(gnus-ems-redefine)
1252
1253(provide 'gnus-cite) 1251(provide 'gnus-cite)
1254 1252
1255;; Local Variables: 1253;; Local Variables:
diff --git a/lisp/gnus/gnus-ems.el b/lisp/gnus/gnus-ems.el
index 167bc8083c6..7c3a2cc02a1 100644
--- a/lisp/gnus/gnus-ems.el
+++ b/lisp/gnus/gnus-ems.el
@@ -65,47 +65,6 @@
65 (truncate-string-to-width valstr ,max-width) 65 (truncate-string-to-width valstr ,max-width)
66 valstr))) 66 valstr)))
67 67
68(eval-and-compile
69 (if (featurep 'xemacs)
70 (gnus-xmas-define)
71 (defvar gnus-mouse-face-prop 'mouse-face
72 "Property used for highlighting mouse regions.")))
73
74(defvar gnus-tmp-unread)
75(defvar gnus-tmp-replied)
76(defvar gnus-tmp-score-char)
77(defvar gnus-tmp-indentation)
78(defvar gnus-tmp-opening-bracket)
79(defvar gnus-tmp-lines)
80(defvar gnus-tmp-name)
81(defvar gnus-tmp-closing-bracket)
82(defvar gnus-tmp-subject-or-nil)
83(defvar gnus-check-before-posting)
84(defvar gnus-mouse-face)
85(defvar gnus-group-buffer)
86
87(defun gnus-ems-redefine ()
88 (cond
89 ((featurep 'mule)
90 ;; Mule and new Emacs definitions
91
92 ;; [Note] Now there are three kinds of mule implementations,
93 ;; original MULE, XEmacs/mule and Emacs 20+ including
94 ;; MULE features. Unfortunately these APIs are different. In
95 ;; particular, Emacs (including original Mule) and XEmacs are
96 ;; quite different. However, this version of Gnus doesn't support
97 ;; anything other than XEmacs 20+ and Emacs 20.3+.
98
99 ;; Predicates to check are following:
100 ;; (boundp 'MULE) is t only if Mule (original; anything older than
101 ;; Mule 2.3) is running.
102 ;; (featurep 'mule) is t when other mule variants are running.
103
104 ;; It is possible to detect XEmacs/mule by (featurep 'mule) and
105 ;; (featurep 'xemacs). In this case, the implementation for
106 ;; XEmacs/mule may be shareable between XEmacs and XEmacs/mule.
107 )))
108
109(provide 'gnus-ems) 68(provide 'gnus-ems)
110 69
111;;; gnus-ems.el ends here 70;;; gnus-ems.el ends here
diff --git a/lisp/gnus/gnus-msg.el b/lisp/gnus/gnus-msg.el
index b95bec2ace6..ff16e4a15db 100644
--- a/lisp/gnus/gnus-msg.el
+++ b/lisp/gnus/gnus-msg.el
@@ -2006,10 +2006,6 @@ this is a reply."
2006 (insert "From: " (message-make-from) "\n")))) 2006 (insert "From: " (message-make-from) "\n"))))
2007 nil 'local))))) 2007 nil 'local)))))
2008 2008
2009;;; Allow redefinition of functions.
2010
2011(gnus-ems-redefine)
2012
2013(provide 'gnus-msg) 2009(provide 'gnus-msg)
2014 2010
2015;;; gnus-msg.el ends here 2011;;; gnus-msg.el ends here
diff --git a/lisp/gnus/gnus-salt.el b/lisp/gnus/gnus-salt.el
index d3e82fd7074..bc25ae691af 100644
--- a/lisp/gnus/gnus-salt.el
+++ b/lisp/gnus/gnus-salt.el
@@ -889,9 +889,6 @@ it in the environment specified by BINDINGS."
889 (set-window-point 889 (set-window-point
890 (gnus-get-buffer-window (current-buffer) t) (cdr region))))))) 890 (gnus-get-buffer-window (current-buffer) t) (cdr region)))))))
891 891
892;;; Allow redefinition of functions.
893(gnus-ems-redefine)
894
895(provide 'gnus-salt) 892(provide 'gnus-salt)
896 893
897;;; gnus-salt.el ends here 894;;; gnus-salt.el ends here
diff --git a/lisp/gnus/gnus-spec.el b/lisp/gnus/gnus-spec.el
index 87b9b254e00..380474d925b 100644
--- a/lisp/gnus/gnus-spec.el
+++ b/lisp/gnus/gnus-spec.el
@@ -79,7 +79,6 @@ text properties. This is only needed on XEmacs, as Emacs does this anyway."
79(defvar gnus-tmp-news-method) 79(defvar gnus-tmp-news-method)
80(defvar gnus-tmp-news-server) 80(defvar gnus-tmp-news-server)
81(defvar gnus-mouse-face) 81(defvar gnus-mouse-face)
82(defvar gnus-mouse-face-prop)
83(defvar gnus-tmp-header) 82(defvar gnus-tmp-header)
84(defvar gnus-tmp-from) 83(defvar gnus-tmp-from)
85 84
@@ -228,7 +227,7 @@ Return a list of updated types."
228(defun gnus-mouse-face-function (form type) 227(defun gnus-mouse-face-function (form type)
229 `(gnus-put-text-property 228 `(gnus-put-text-property
230 (point) (progn ,@form (point)) 229 (point) (progn ,@form (point))
231 gnus-mouse-face-prop 230 mouse-face
232 ,(if (equal type 0) 231 ,(if (equal type 0)
233 'gnus-mouse-face 232 'gnus-mouse-face
234 `(quote ,(symbol-value (intern (format "gnus-mouse-face-%d" type))))))) 233 `(quote ,(symbol-value (intern (format "gnus-mouse-face-%d" type)))))))
@@ -743,7 +742,7 @@ If PROPS, insert the result."
743 gnus-tmp-name)) 742 gnus-tmp-name))
744 gnus-tmp-closing-bracket) 743 gnus-tmp-closing-bracket)
745 (point)) 744 (point))
746 gnus-mouse-face-prop gnus-mouse-face) 745 'mouse-face gnus-mouse-face)
747 (insert " " gnus-tmp-subject-or-nil "\n")) 746 (insert " " gnus-tmp-subject-or-nil "\n"))
748 747
749(provide 'gnus-spec) 748(provide 'gnus-spec)
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el
index b02e8fd52d2..9d0d1fcda38 100644
--- a/lisp/gnus/gnus-sum.el
+++ b/lisp/gnus/gnus-sum.el
@@ -12462,7 +12462,7 @@ If REVERSE, save parts that do not match TYPE."
12462 (forward-line -1) ; back to `b' 12462 (forward-line -1) ; back to `b'
12463 (gnus-add-text-properties 12463 (gnus-add-text-properties
12464 b (1- e) (list 'gnus-number gnus-reffed-article-number 12464 b (1- e) (list 'gnus-number gnus-reffed-article-number
12465 gnus-mouse-face-prop gnus-mouse-face)) 12465 'mouse-face gnus-mouse-face))
12466 (gnus-data-enter 12466 (gnus-data-enter
12467 after-article gnus-reffed-article-number 12467 after-article gnus-reffed-article-number
12468 gnus-unread-mark b (car pslist) 0 (- e b)) 12468 gnus-unread-mark b (car pslist) 0 (- e b))
@@ -12604,16 +12604,16 @@ If REVERSE, save parts that do not match TYPE."
12604 (let* ((beg (point-at-bol)) 12604 (let* ((beg (point-at-bol))
12605 (end (point-at-eol)) 12605 (end (point-at-eol))
12606 ;; Fix by Mike Dugan <dugan@bucrf16.bu.edu>. 12606 ;; Fix by Mike Dugan <dugan@bucrf16.bu.edu>.
12607 (from (if (get-text-property beg gnus-mouse-face-prop) 12607 (from (if (get-text-property beg 'mouse-face)
12608 beg 12608 beg
12609 (or (next-single-property-change 12609 (or (next-single-property-change
12610 beg gnus-mouse-face-prop nil end) 12610 beg 'mouse-face nil end)
12611 beg))) 12611 beg)))
12612 (to 12612 (to
12613 (if (= from end) 12613 (if (= from end)
12614 (- from 2) 12614 (- from 2)
12615 (or (next-single-property-change 12615 (or (next-single-property-change
12616 from gnus-mouse-face-prop nil end) 12616 from 'mouse-face nil end)
12617 end)))) 12617 end))))
12618 ;; If no mouse-face prop on line we will have to = from = end, 12618 ;; If no mouse-face prop on line we will have to = from = end,
12619 ;; so we highlight the entire line instead. 12619 ;; so we highlight the entire line instead.
@@ -13118,8 +13118,6 @@ BOOKMARK is a bookmark name or a bookmark record."
13118 13118
13119(gnus-summary-make-all-marking-commands) 13119(gnus-summary-make-all-marking-commands)
13120 13120
13121(gnus-ems-redefine)
13122
13123(provide 'gnus-sum) 13121(provide 'gnus-sum)
13124 13122
13125(run-hooks 'gnus-sum-load-hook) 13123(run-hooks 'gnus-sum-load-hook)
diff --git a/lisp/gnus/gnus.el b/lisp/gnus/gnus.el
index 996bb9e6b7b..2690e5eb930 100644
--- a/lisp/gnus/gnus.el
+++ b/lisp/gnus/gnus.el
@@ -4435,10 +4435,6 @@ prompt the user for the name of an NNTP server to use."
4435 (require 'debbugs-gnu) 4435 (require 'debbugs-gnu)
4436 (debbugs-gnu nil "gnus")) 4436 (debbugs-gnu nil "gnus"))
4437 4437
4438;; Allow redefinition of Gnus functions.
4439
4440(gnus-ems-redefine)
4441
4442(provide 'gnus) 4438(provide 'gnus)
4443 4439
4444;;; gnus.el ends here 4440;;; gnus.el ends here