annotate lisp/gnus/gnus-ems.el @ 140:585fb297b004 r20-2b4

Import from CVS: tag r20-2b4
author cvs
date Mon, 13 Aug 2007 09:32:43 +0200
parents b980b6286996
children 8eaf7971accc
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 ;;; gnus-ems.el --- functions for making Gnus work under different Emacsen
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
2 ;; Copyright (C) 1995,96,97 Free Software Foundation, Inc.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4 ;; Author: Lars Magne Ingebrigtsen <larsi@ifi.uio.no>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5 ;; Keywords: news
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 ;; This file is part of GNU Emacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 ;; GNU Emacs is free software; you can redistribute it and/or modify
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10 ;; it under the terms of the GNU General Public License as published by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 ;; the Free Software Foundation; either version 2, or (at your option)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 ;; any later version.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 ;; GNU Emacs is distributed in the hope that it will be useful,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 ;; GNU General Public License for more details.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 ;; You should have received a copy of the GNU General Public License
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20 ;; along with GNU Emacs; see the file COPYING. If not, write to the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22 ;; Boston, MA 02111-1307, USA.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 ;;; Commentary:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 ;;; Code:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 (eval-when-compile (require 'cl))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
30 ;;; Function aliases later to be redefined for XEmacs usage.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
32 (defvar gnus-xemacs (string-match "XEmacs\\|Lucid" emacs-version)
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
33 "Non-nil if running under XEmacs.")
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
35 (defvar gnus-mouse-2 [mouse-2])
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
36 (defvar gnus-down-mouse-2 [down-mouse-2])
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 30
diff changeset
37
108
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents: 98
diff changeset
38 (eval-and-compile
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 (autoload 'gnus-xmas-define "gnus-xmas")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 (autoload 'gnus-xmas-redefine "gnus-xmas")
136
b980b6286996 Import from CVS: tag r20-2b2
cvs
parents: 118
diff changeset
41 (autoload 'appt-select-lowest-window "appt"))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 (or (fboundp 'mail-file-babyl-p)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 (fset 'mail-file-babyl-p 'rmail-file-p))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 ;;; Mule functions.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 (defun gnus-mule-cite-add-face (number prefix face)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 ;; At line NUMBER, ignore PREFIX and add FACE to the rest of the line.
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
50 (when face
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
51 (let ((inhibit-point-motion-hooks t)
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
52 from to)
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
53 (goto-line number)
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
54 (if (boundp 'MULE)
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
55 (forward-char (chars-in-string prefix))
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
56 (forward-char (length prefix)))
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
57 (skip-chars-forward " \t")
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
58 (setq from (point))
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
59 (end-of-line 1)
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
60 (skip-chars-backward " \t")
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
61 (setq to (point))
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
62 (when (< from to)
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
63 (gnus-overlay-put (gnus-make-overlay from to) 'face face)))))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 (defun gnus-mule-max-width-function (el max-width)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 (` (let* ((val (eval (, el)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67 (valstr (if (numberp val)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 (int-to-string val) val)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 (if (> (length valstr) (, max-width))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70 (truncate-string valstr (, max-width))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 valstr))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 (eval-and-compile
108
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents: 98
diff changeset
74 (if (string-match "XEmacs\\|Lucid" emacs-version)
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
75 nil
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77 (defvar gnus-mouse-face-prop 'mouse-face
140
585fb297b004 Import from CVS: tag r20-2b4
cvs
parents: 136
diff changeset
78 "Property used for highlighting mouse regions."))
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 30
diff changeset
79
108
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents: 98
diff changeset
80 (cond
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81 ((string-match "XEmacs\\|Lucid" emacs-version)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82 (gnus-xmas-define))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84 ((or (not (boundp 'emacs-minor-version))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85 (< emacs-minor-version 30))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86 ;; Remove the `intangible' prop.
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
87 (let ((props (and (boundp 'gnus-hidden-properties)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88 gnus-hidden-properties)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89 (while (and props (not (eq (car (cdr props)) 'intangible)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90 (setq props (cdr props)))
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
91 (when props
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
92 (setcdr props (cdr (cdr (cdr props))))))
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
93 (unless (fboundp 'buffer-substring-no-properties)
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
94 (defun buffer-substring-no-properties (beg end)
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
95 (format "%s" (buffer-substring beg end)))))
108
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents: 98
diff changeset
96
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
97 ((boundp 'MULE)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
98 (provide 'gnusutil))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
99
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
100 (eval-and-compile
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
101 (cond
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
102 ((not window-system)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
103 (defun gnus-dummy-func (&rest args))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
104 (let ((funcs '(mouse-set-point set-face-foreground
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
105 set-face-background x-popup-menu)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
106 (while funcs
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
107 (unless (fboundp (car funcs))
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
108 (fset (car funcs) 'gnus-dummy-func))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
109 (setq funcs (cdr funcs))))))
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
110 (unless (fboundp 'file-regular-p)
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
111 (defun file-regular-p (file)
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
112 (and (not (file-directory-p file))
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
113 (not (file-symlink-p file))
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
114 (file-exists-p file))))
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
115 (unless (fboundp 'face-list)
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
116 (defun face-list (&rest args))))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
117
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
118 (eval-and-compile
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
119 (let ((case-fold-search t))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
120 (cond
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
121 ((string-match "windows-nt\\|os/2\\|emx" (format "%s" system-type))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
122 (setq nnheader-file-name-translation-alist
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
123 (append nnheader-file-name-translation-alist
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
124 '((?: . ?_)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
125 (?+ . ?-))))))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
126
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
127 (defvar gnus-tmp-unread)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
128 (defvar gnus-tmp-replied)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
129 (defvar gnus-tmp-score-char)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
130 (defvar gnus-tmp-indentation)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
131 (defvar gnus-tmp-opening-bracket)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
132 (defvar gnus-tmp-lines)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
133 (defvar gnus-tmp-name)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
134 (defvar gnus-tmp-closing-bracket)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
135 (defvar gnus-tmp-subject-or-nil)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
136
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
137 (defun gnus-ems-redefine ()
108
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents: 98
diff changeset
138 (cond
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
139 ((string-match "XEmacs\\|Lucid" emacs-version)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
140 (gnus-xmas-redefine))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
141
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
142 ((featurep 'mule)
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
143 ;; Mule and new Emacs definitions
108
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents: 98
diff changeset
144
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
145 ;; [Note] Now there are three kinds of mule implementations,
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
146 ;; original MULE, XEmacs/mule and beta version of Emacs including
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
147 ;; some mule features. Unfortunately these API are different. In
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
148 ;; particular, Emacs (including original MULE) and XEmacs are
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
149 ;; quite different.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
150 ;; Predicates to check are following:
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
151 ;; (boundp 'MULE) is t only if MULE (original; anything older than
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
152 ;; Mule 2.3) is running.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
153 ;; (featurep 'mule) is t when every mule variants are running.
108
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents: 98
diff changeset
154
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
155 ;; These implementations may be able to share between original
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
156 ;; MULE and beta version of new Emacs. In addition, it is able to
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
157 ;; detect XEmacs/mule by (featurep 'mule) and to check variable
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
158 ;; `emacs-version'. In this case, implementation for XEmacs/mule
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
159 ;; may be able to share between XEmacs and XEmacs/mule.
108
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents: 98
diff changeset
160
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
161 (defalias 'gnus-truncate-string 'truncate-string)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
162
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
163 (defvar gnus-summary-display-table nil
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
164 "Display table used in summary mode buffers.")
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
165 (fset 'gnus-cite-add-face 'gnus-mule-cite-add-face)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
166 (fset 'gnus-max-width-function 'gnus-mule-max-width-function)
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 108
diff changeset
167 (fset 'gnus-summary-set-display-table 'ignore)
108
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents: 98
diff changeset
168
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
169 (when (boundp 'gnus-check-before-posting)
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
170 (setq gnus-check-before-posting
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
171 (delq 'long-lines
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
172 (delq 'control-chars gnus-check-before-posting))))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
173
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
174 (defun gnus-summary-line-format-spec ()
108
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents: 98
diff changeset
175 (insert gnus-tmp-unread gnus-tmp-replied
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
176 gnus-tmp-score-char gnus-tmp-indentation)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
177 (put-text-property
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
178 (point)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
179 (progn
108
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents: 98
diff changeset
180 (insert
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents: 98
diff changeset
181 gnus-tmp-opening-bracket
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents: 98
diff changeset
182 (format "%4d: %-20s"
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents: 98
diff changeset
183 gnus-tmp-lines
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
184 (if (> (length gnus-tmp-name) 20)
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
185 (truncate-string gnus-tmp-name 20)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
186 gnus-tmp-name))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
187 gnus-tmp-closing-bracket)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
188 (point))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
189 gnus-mouse-face-prop gnus-mouse-face)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
190 (insert " " gnus-tmp-subject-or-nil "\n"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
191 )))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
192
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
193 (defun gnus-region-active-p ()
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
194 "Say whether the region is active."
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
195 (and (boundp 'transient-mark-mode)
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
196 transient-mark-mode
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
197 (boundp 'mark-active)
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
198 mark-active))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
199
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
200 (provide 'gnus-ems)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
201
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
202 ;; Local Variables:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
203 ;; byte-compile-warnings: '(redefine callargs)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
204 ;; End:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
205
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
206 ;;; gnus-ems.el ends here