aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1996-03-08 05:02:06 +0000
committerRichard M. Stallman1996-03-08 05:02:06 +0000
commitf7a460e052596ccd84cf80f9e4ce8507cf05bbb7 (patch)
tree9ba4965b4329a74fce69fcd713f51fbe6eb7d8af
parent5de50bfbba966eb0e17045d4804e99618d2d8ba4 (diff)
downloademacs-f7a460e052596ccd84cf80f9e4ce8507cf05bbb7.tar.gz
emacs-f7a460e052596ccd84cf80f9e4ce8507cf05bbb7.zip
(rmail-make-basic-summary-line): Limit line count
to reformatted header if we have reformatted it.
-rw-r--r--lisp/mail/rmailsum.el11
1 files changed, 9 insertions, 2 deletions
diff --git a/lisp/mail/rmailsum.el b/lisp/mail/rmailsum.el
index 799f14d0bb8..7cfe5d53c15 100644
--- a/lisp/mail/rmailsum.el
+++ b/lisp/mail/rmailsum.el
@@ -381,8 +381,15 @@ nil for FUNCTION means all messages."
381 (save-excursion 381 (save-excursion
382 (save-restriction 382 (save-restriction
383 (widen) 383 (widen)
384 (let 384 (let ((beg (rmail-msgbeg msgnum))
385 ((lines (count-lines (rmail-msgbeg msgnum) (rmail-msgend msgnum)))) 385 (end (rmail-msgend msgnum))
386 lines)
387 (save-excursion
388 (goto-char beg)
389 ;; Count only lines in the reformatted header,
390 ;; if we have reformatted it.
391 (search-forward "\n*** EOOH ***\n" end t)
392 (setq lines (count-lines (point) end)))
386 (format (cond 393 (format (cond
387 ((<= lines 9) " [%d]") 394 ((<= lines 9) " [%d]")
388 ((<= lines 99) " [%d]") 395 ((<= lines 99) " [%d]")