* bug#45912: 28.0.50; RMAIL-summary changes colors after 99,999th message
@ 2021-01-15 22:12 Andrea G. Monaco
2021-01-16 9:02 ` Eli Zaretskii
2021-01-16 17:45 ` Andrea G. Monaco
0 siblings, 2 replies; 4+ messages in thread
From: Andrea G. Monaco @ 2021-01-15 22:12 UTC (permalink / raw)
To: 45912
Hello,
my RMAIL-summary buffer uses different colors after the 99,999th
message.
Before, it uses green for unread messages and black for read ones, as
usual. From the 100,000th onwards, it uses normal black for unread; read
ones are displayed in usual black, except for the first 5 characters of
the second field (date) which are blue.
Thanks,
Andrea Monaco
In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.5, cairo version 1.16.0)
of 2020-12-01 built on agm
Repository revision: 90a543e630012cc58c175d5bf3ffd42bb156c6b6
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12004000
System Description: Debian GNU/Linux 10 (buster)
Configured features:
XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND DBUS GSETTINGS GLIB NOTIFY
INOTIFY LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS LIBSYSTEMD JSON
PDUMPER LCMS2
Important settings:
value of $LC_MONETARY: it_IT.UTF-8
value of $LC_NUMERIC: it_IT.UTF-8
value of $LC_TIME: it_IT.UTF-8
value of $LANG: en_US.UTF-8
value of $XMODIFIERS: @im=ibus
locale-coding-system: utf-8-unix
Major mode: RMAIL Summary
Minor modes in effect:
tooltip-mode: t
global-eldoc-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
buffer-read-only: t
line-number-mode: t
transient-mark-mode: t
Load-path shadows:
None found.
Features:
(shadow sort mail-extr shr-color color shr kinsoku svg xml dom
browse-url url url-proxy url-privacy url-expand url-methods url-history
url-cookie url-domsuf url-util url-parse url-vars mailcap emacsbug
sendmail qp rmailsum rmailmm message rmc puny dired dired-loaddefs
rfc822 mml easymenu mml-sec epa derived epg epg-config gnus-util
text-property-search time-date mm-decode mm-bodies mm-encode mailabbrev
gmm-utils mailheader mail-parse rfc2231 rmail rmail-loaddefs auth-source
cl-seq eieio eieio-core cl-macs eieio-loaddefs cl-loaddefs cl-lib
password-cache json subr-x map seq byte-opt gv bytecomp byte-compile
cconv rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils tooltip
eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel
term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image
regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode
lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch
timer select scroll-bar mouse jit-lock font-lock syntax facemenu
font-core term/tty-colors frame minibuffer cl-generic cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european
ethiopic indian cyrillic chinese composite charscript charprop
case-table epa-hook jka-cmpr-hook help simple abbrev obarray
cl-preloaded nadvice button loaddefs faces cus-face macroexp files
window text-properties overlay sha1 md5 base64 format env code-pages
mule custom widget hashtable-print-readable backquote threads dbusbind
inotify lcms2 dynamic-setting system-font-setting font-render-setting
cairo move-toolbar gtk x-toolkit x multi-tty make-network-process emacs)
Memory information:
((conses 16 174754 39214)
(symbols 48 7922 1)
(strings 32 125536 24349)
(string-bytes 1 12663878)
(vectors 16 119773)
(vector-slots 8 1440146 131455)
(floats 8 139 350)
(intervals 56 4415 1172)
(buffers 984 14))
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#45912: 28.0.50; RMAIL-summary changes colors after 99,999th message
2021-01-15 22:12 bug#45912: 28.0.50; RMAIL-summary changes colors after 99,999th message Andrea G. Monaco
@ 2021-01-16 9:02 ` Eli Zaretskii
2021-01-16 17:45 ` Andrea G. Monaco
1 sibling, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2021-01-16 9:02 UTC (permalink / raw)
To: Andrea G. Monaco; +Cc: 45912
> From: "Andrea G. Monaco" <andrea.monaco@autistici.org>
> Date: Fri, 15 Jan 2021 23:12:03 +0100
>
> my RMAIL-summary buffer uses different colors after the 99,999th
> message.
> Before, it uses green for unread messages and black for read ones, as
> usual. From the 100,000th onwards, it uses normal black for unread; read
> ones are displayed in usual black, except for the first 5 characters of
> the second field (date) which are blue.
It's clear that Rmail didn't expect to see more than 99999 messages in
any mail folder.
Does the patch below fix the issue?
diff --git a/lisp/mail/rmailsum.el b/lisp/mail/rmailsum.el
index 60b67ed..d29115a 100644
--- a/lisp/mail/rmailsum.el
+++ b/lisp/mail/rmailsum.el
@@ -51,10 +51,10 @@ rmail-summary-line-count-flag
:group 'rmail-summary)
(defvar rmail-summary-font-lock-keywords
- '(("^.....D.*" . font-lock-string-face) ; Deleted.
- ("^.....-.*" . font-lock-type-face) ; Unread.
+ '(("^ *[0-9]+D.*" . font-lock-string-face) ; Deleted.
+ ("^ *[0-9]+-.*" . font-lock-type-face) ; Unread.
;; Neither of the below will be highlighted if either of the above are:
- ("^.....[^D-] \\(......\\)" 1 font-lock-keyword-face) ; Date.
+ ("^ *[0-9]+[^D-] \\(......\\)" 1 font-lock-keyword-face) ; Date.
("{ \\([^\n}]+\\) }" 1 font-lock-comment-face)) ; Labels.
"Additional expressions to highlight in Rmail Summary mode.")
^ permalink raw reply related [flat|nested] 4+ messages in thread
* bug#45912: 28.0.50; RMAIL-summary changes colors after 99,999th message
2021-01-15 22:12 bug#45912: 28.0.50; RMAIL-summary changes colors after 99,999th message Andrea G. Monaco
2021-01-16 9:02 ` Eli Zaretskii
@ 2021-01-16 17:45 ` Andrea G. Monaco
2021-01-16 18:19 ` Eli Zaretskii
1 sibling, 1 reply; 4+ messages in thread
From: Andrea G. Monaco @ 2021-01-16 17:45 UTC (permalink / raw)
To: 45912
> Does the patch below fix the issue?
It seems it does. Thanks!
Andrea Monaco
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#45912: 28.0.50; RMAIL-summary changes colors after 99,999th message
2021-01-16 17:45 ` Andrea G. Monaco
@ 2021-01-16 18:19 ` Eli Zaretskii
0 siblings, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2021-01-16 18:19 UTC (permalink / raw)
To: Andrea G. Monaco; +Cc: 45912-done
> From: "Andrea G. Monaco" <andrea.monaco@autistici.org>
> Date: Sat, 16 Jan 2021 18:45:36 +0100
>
> > Does the patch below fix the issue?
>
> It seems it does. Thanks!
Thanks for testing. I've now installed the patch on the master
branch, and I'm closing this bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-01-16 18:19 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-15 22:12 bug#45912: 28.0.50; RMAIL-summary changes colors after 99,999th message Andrea G. Monaco
2021-01-16 9:02 ` Eli Zaretskii
2021-01-16 17:45 ` Andrea G. Monaco
2021-01-16 18:19 ` Eli Zaretskii
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.