annotate lisp/gnus/gnus-ems.el @ 136:b980b6286996 r20-2b2

Import from CVS: tag r20-2b2
author cvs
date Mon, 13 Aug 2007 09:31:12 +0200
parents 7d55a9ba150c
children 585fb297b004
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
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78 "Property used for highlighting mouse regions.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80 (defvar gnus-article-x-face-command
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81 "{ echo '/* Width=48, Height=48 */'; uncompface; } | icontopbm | xv -quit -"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82 "String or function to be executed to display an X-Face header.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83 If it is a string, the command will be executed in a sub-shell
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
84 asynchronously. The compressed face will be piped to this command."))
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 30
diff changeset
85
108
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents: 98
diff changeset
86 (cond
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87 ((string-match "XEmacs\\|Lucid" emacs-version)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88 (gnus-xmas-define))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90 ((or (not (boundp 'emacs-minor-version))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91 (< emacs-minor-version 30))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92 ;; Remove the `intangible' prop.
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
93 (let ((props (and (boundp 'gnus-hidden-properties)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
94 gnus-hidden-properties)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
95 (while (and props (not (eq (car (cdr props)) 'intangible)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
96 (setq props (cdr props)))
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
97 (when props
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
98 (setcdr props (cdr (cdr (cdr props))))))
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
99 (unless (fboundp 'buffer-substring-no-properties)
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
100 (defun buffer-substring-no-properties (beg end)
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
101 (format "%s" (buffer-substring beg end)))))
108
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents: 98
diff changeset
102
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
103 ((boundp 'MULE)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
104 (provide 'gnusutil))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
105
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
106 (eval-and-compile
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
107 (cond
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
108 ((not window-system)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
109 (defun gnus-dummy-func (&rest args))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
110 (let ((funcs '(mouse-set-point set-face-foreground
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
111 set-face-background x-popup-menu)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
112 (while funcs
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
113 (unless (fboundp (car funcs))
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
114 (fset (car funcs) 'gnus-dummy-func))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
115 (setq funcs (cdr funcs))))))
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
116 (unless (fboundp 'file-regular-p)
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
117 (defun file-regular-p (file)
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
118 (and (not (file-directory-p file))
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
119 (not (file-symlink-p file))
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
120 (file-exists-p file))))
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
121 (unless (fboundp 'face-list)
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
122 (defun face-list (&rest args))))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
123
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
124 (eval-and-compile
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
125 (let ((case-fold-search t))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
126 (cond
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
127 ((string-match "windows-nt\\|os/2\\|emx" (format "%s" system-type))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
128 (setq nnheader-file-name-translation-alist
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
129 (append nnheader-file-name-translation-alist
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
130 '((?: . ?_)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
131 (?+ . ?-))))))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
132
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
133 (defvar gnus-tmp-unread)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
134 (defvar gnus-tmp-replied)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
135 (defvar gnus-tmp-score-char)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
136 (defvar gnus-tmp-indentation)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
137 (defvar gnus-tmp-opening-bracket)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
138 (defvar gnus-tmp-lines)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
139 (defvar gnus-tmp-name)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
140 (defvar gnus-tmp-closing-bracket)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
141 (defvar gnus-tmp-subject-or-nil)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
142
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
143 (defun gnus-ems-redefine ()
108
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents: 98
diff changeset
144 (cond
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
145 ((string-match "XEmacs\\|Lucid" emacs-version)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
146 (gnus-xmas-redefine))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
147
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
148 ((featurep 'mule)
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
149 ;; Mule and new Emacs definitions
108
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents: 98
diff changeset
150
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
151 ;; [Note] Now there are three kinds of mule implementations,
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
152 ;; original MULE, XEmacs/mule and beta version of Emacs including
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
153 ;; some mule features. Unfortunately these API are different. In
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
154 ;; particular, Emacs (including original MULE) and XEmacs are
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
155 ;; quite different.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
156 ;; Predicates to check are following:
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
157 ;; (boundp 'MULE) is t only if MULE (original; anything older than
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
158 ;; Mule 2.3) is running.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
159 ;; (featurep 'mule) is t when every mule variants are running.
108
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents: 98
diff changeset
160
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
161 ;; These implementations may be able to share between original
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
162 ;; 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
163 ;; detect XEmacs/mule by (featurep 'mule) and to check variable
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
164 ;; `emacs-version'. In this case, implementation for XEmacs/mule
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
165 ;; may be able to share between XEmacs and XEmacs/mule.
108
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents: 98
diff changeset
166
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
167 (defalias 'gnus-truncate-string 'truncate-string)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
168
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
169 (defvar gnus-summary-display-table nil
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
170 "Display table used in summary mode buffers.")
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
171 (fset 'gnus-cite-add-face 'gnus-mule-cite-add-face)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
172 (fset 'gnus-max-width-function 'gnus-mule-max-width-function)
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 108
diff changeset
173 (fset 'gnus-summary-set-display-table 'ignore)
108
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents: 98
diff changeset
174
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
175 (when (boundp 'gnus-check-before-posting)
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
176 (setq gnus-check-before-posting
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
177 (delq 'long-lines
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
178 (delq 'control-chars gnus-check-before-posting))))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
179
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
180 (defun gnus-summary-line-format-spec ()
108
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents: 98
diff changeset
181 (insert gnus-tmp-unread gnus-tmp-replied
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
182 gnus-tmp-score-char gnus-tmp-indentation)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
183 (put-text-property
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
184 (point)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
185 (progn
108
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents: 98
diff changeset
186 (insert
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents: 98
diff changeset
187 gnus-tmp-opening-bracket
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents: 98
diff changeset
188 (format "%4d: %-20s"
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents: 98
diff changeset
189 gnus-tmp-lines
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
190 (if (> (length gnus-tmp-name) 20)
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
191 (truncate-string gnus-tmp-name 20)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
192 gnus-tmp-name))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
193 gnus-tmp-closing-bracket)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
194 (point))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
195 gnus-mouse-face-prop gnus-mouse-face)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
196 (insert " " gnus-tmp-subject-or-nil "\n"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
197 )))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
198
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
199 (defun gnus-region-active-p ()
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
200 "Say whether the region is active."
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
201 (and (boundp 'transient-mark-mode)
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
202 transient-mark-mode
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
203 (boundp 'mark-active)
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
204 mark-active))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
205
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
206 (provide 'gnus-ems)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
207
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
208 ;; Local Variables:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
209 ;; byte-compile-warnings: '(redefine callargs)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
210 ;; End:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
211
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
212 ;;; gnus-ems.el ends here