+2003-03-21 Simon Josefsson <jas@extundo.com>
+
+ * gnus-art.el (article-decode-group-name): Replace Newsgroups and
+ Followup-To data inline.
+
+2003-03-21 Jesper Harder <harder@ifa.au.dk>
+
+ * gnus-art.el (gnus-treat-display-xface): Don't enable if
+ icontopbm isn't available.
+
2003-03-21 Kevin Greiner <kgreiner@xpediantsolutions.com>
* gnus-int.el (gnus-open-server): Catch errors in backend's
(defcustom gnus-treat-display-xface
(and (not noninteractive)
- (or (and (fboundp 'image-type-available-p)
+ (or (memq gnus-article-x-face-command
+ '(x-face-decode-message-header
+ x-face-mule-gnus-article-display-x-face))
+ (and (fboundp 'image-type-available-p)
(image-type-available-p 'xbm)
- (string-match "^0x" (shell-command-to-string "uncompface")))
+ (string-match "^0x" (shell-command-to-string "uncompface"))
+ (executable-find "icontopbm"))
(and (featurep 'xemacs)
- (featurep 'xface))
- (eq 'x-face-mule-gnus-article-display-x-face
- gnus-article-x-face-command))
+ (featurep 'xface)))
'head)
"Display X-Face headers.
Valid values are nil, t, `head', `last', an integer or a predicate.
(when (and (or gnus-group-name-charset-method-alist
gnus-group-name-charset-group-alist)
(gnus-buffer-live-p gnus-original-article-buffer))
- (when (nnmail-fetch-field "Newsgroups")
- (nnheader-replace-header "Newsgroups"
- (gnus-decode-newsgroups
- (with-current-buffer
- gnus-original-article-buffer
- (nnmail-fetch-field "Newsgroups"))
- gnus-newsgroup-name method)))
- (when (nnmail-fetch-field "Followup-To")
- (nnheader-replace-header "Followup-To"
- (gnus-decode-newsgroups
- (with-current-buffer
- gnus-original-article-buffer
- (nnmail-fetch-field "Followup-To"))
- gnus-newsgroup-name method))))))
+ (save-restriction
+ (goto-char (point-min))
+ (article-narrow-to-head)
+ (while (re-search-forward (concat "^\\(Newsgroups\\|Followup-To\\): "
+ "\\(\\(.\\|\n[\t ]\\)*\\)\n[^\t ]")
+ nil t)
+ (replace-match (save-match-data
+ (gnus-decode-newsgroups
+ ;; XXX how to use data in this buffer?
+ (with-current-buffer gnus-original-article-buffer
+ (goto-char (point-min))
+ (re-search-forward
+ (concat "^\\(Newsgroups\\|Followup-To\\): "
+ "\\(\\(.\\|\n[\t ]\\)*\\)\n[^\t ]")
+ nil t)
+ (match-string 2))
+ gnus-newsgroup-name method))
+ t t nil 2))))))
(autoload 'idna-to-unicode "idna")
@cindex slow
Sometimes, a problem do not directly generate a elisp error but
manifests itself by causing Gnus to be very slow. In these cases, you
-can use @kbd{M-x toggle-debug-on-quit} and press @kbd{C-j} when things are
+can use @kbd{M-x toggle-debug-on-quit} and press @kbd{C-g} when things are
slow, and then try to analyze the backtrace (repeating the procedure
helps isolating the real problem areas). A fancier approach is to use
the elisp profiler, ELP. The profiler is (or should be) fully