From unknown Sun Jun 22 07:45:40 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#3987: 23.1; Rmail summary missing dates when case-fold-search is nil Reply-To: emacsbugs0001@cneufeld.ca, 3987@debbugs.gnu.org Resent-From: Christopher Neufeld Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 31 Jul 2009 02:25:08 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: report 3987 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.124900691628325 (code B ref -1); Fri, 31 Jul 2009 02:25:08 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 31 Jul 2009 02:21:56 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: * X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=1.4 required=4.0 tests=FOURLA,IMPRONONCABLE_1, MURPHY_WRONG_WORD1,MURPHY_WRONG_WORD2 autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6V26iuJ026414 for ; Thu, 30 Jul 2009 19:07:12 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MWgBI-00010v-5C for bug-gnu-emacs@gnu.org; Thu, 30 Jul 2009 20:41:08 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MWgBD-0000vH-FV for bug-gnu-emacs@gnu.org; Thu, 30 Jul 2009 20:41:07 -0400 Received: from [199.232.76.173] (port=39639 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MWgBC-0000v5-Va for bug-gnu-emacs@gnu.org; Thu, 30 Jul 2009 20:41:03 -0400 Received: from ottawa-hs-206-191-28-140.s-ip.magma.ca ([206.191.28.140]:38061 helo=londo.cneufeld.ca) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MWgBC-0005Wp-OH for bug-gnu-emacs@gnu.org; Thu, 30 Jul 2009 20:41:03 -0400 Received: from cneufeld.ca (localhost [127.0.0.1]) by londo.cneufeld.ca (8.14.2/8.14.2) with ESMTP id n6V017UG001721 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 30 Jul 2009 20:01:07 -0400 Received: (from neufeld@localhost) by cneufeld.ca (8.14.2/8.14.2/Submit) id n6V017Vf001720; Thu, 30 Jul 2009 20:01:07 -0400 Date: Thu, 30 Jul 2009 20:01:07 -0400 Message-Id: <200907310001.n6V017Vf001720@cneufeld.ca> From: Christopher Neufeld To: bug-gnu-emacs@gnu.org From: Christopher Neufeld X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0.1 (londo.cneufeld.ca [0.0.0.0]); Thu, 30 Jul 2009 20:01:07 -0400 (EDT) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-Greylist: delayed 2392 seconds by postgrey-1.27 at monty-python; Thu, 30 Jul 2009 20:41:01 EDT In GNU Emacs 23.1.1 (x86_64-unknown-linux-gnu, X toolkit) of 2009-07-30 on londo.cneufeld.ca configured using `configure '--prefix=/usr' '--with-x' '--with-xpm' '--with-jpeg' '--with-tiff' '--with-gif' '--with-png' '--enable-font-backend' '--with-xft' '--with-freetype' '--with-x-toolkit=lucid'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: nil value of $XMODIFIERS: nil locale-coding-system: nil default-enable-multibyte-characters: t Major mode: RMAIL Minor modes in effect: pc-selection-mode: t display-time-mode: t tooltip-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent messages: Loading rmailout...done Loading sendmail...done Loading mailalias...done Loading supercite...done Loading delsel...done Loading pc-select...done Counting messages...done (No new mail has arrived) 0 new messages read Computing summary lines...done Some time between 23.0.60 and 23.1, a minor annoyance was introduced into rmail. When case-fold-search is nil, the dates in the rmail summary are all rendered as "??????". This is because of the regular expression in rmailsum.el at line 529. A string such as "May" doesn't match the regular expression: [adfjmnos][acepou][bcglnprtvy] because the capital letter doesn't match when case-fold-search is nil. The easy work-around is to turn on case-fold-search, but it would be nice to fix it properly, so that rmail works no matter what the user-set value is. It may also be useful to do a quick scan of the .el files to see if there are other cases where a nil value of case-fold-search might break some modes or behaviours. -- Christopher Neufeld Home page: http://www.cneufeld.ca/neufeld "Don't edit reality for the sake of simplicity" From unknown Sun Jun 22 07:45:40 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#3987: 23.1; Rmail summary missing dates when case-fold-search is nil Reply-To: Eli Zaretskii , 3987@debbugs.gnu.org Resent-From: Eli Zaretskii Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 01 Aug 2009 08:30:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 3987 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 3987-submit@emacsbugs.donarmstrong.com id=B3987.124911506724399 (code B ref 3987); Sat, 01 Aug 2009 08:30:06 +0000 Received: (at 3987) by emacsbugs.donarmstrong.com; 1 Aug 2009 08:24:27 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.5 required=4.0 tests=AWL,HAS_BUG_NUMBER, RCVD_IN_SBLXBL,RCVD_IN_SBLXBL_CBL autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mtaout5.012.net.il (mtaout5.012.net.il [84.95.2.13]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n718OM35024393 for <3987@emacsbugs.donarmstrong.com>; Sat, 1 Aug 2009 01:24:23 -0700 Received: from conversion-daemon.i_mtaout5.012.net.il by i_mtaout5.012.net.il (HyperSendmail v2004.12) id <0KNO00C00UWQFR00@i_mtaout5.012.net.il> for 3987@emacsbugs.donarmstrong.com; Sat, 01 Aug 2009 11:24:15 +0300 (IDT) Received: from HOME-C4E4A596F7 ([77.126.255.147]) by i_mtaout5.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0KNO00MTWVCF95B0@i_mtaout5.012.net.il>; Sat, 01 Aug 2009 11:24:15 +0300 (IDT) Date: Sat, 01 Aug 2009 11:24:16 +0300 From: Eli Zaretskii In-reply-to: <200907310001.n6V017Vf001720@cneufeld.ca> X-012-Sender: halo1@inter.net.il To: emacsbugs0001@cneufeld.ca, 3987@debbugs.gnu.org Message-id: <83ocr0osb3.fsf@gnu.org> References: <200907310001.n6V017Vf001720@cneufeld.ca> > Date: Thu, 30 Jul 2009 20:01:07 -0400 > From: Christopher Neufeld > From: Christopher Neufeld > Cc: > > It may also be useful to do a quick scan of the .el files to see if > there are other cases where a nil value of case-fold-search might break > some modes or behaviours. How does one do that ``with a quick scan''? From unknown Sun Jun 22 07:45:40 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: owner@emacsbugs.donarmstrong.com From: help-debbugs@gnu.org (Emacs bug Tracking System) To: emacsbugs0001@cneufeld.ca Subject: bug#3987 closed by Eli Zaretskii (Re: bug#3987: 23.1; Rmail summary missing dates when case-fold-search is nil) Message-ID: References: <83prbgosd3.fsf@gnu.org> <200907310001.n6V017Vf001720@cneufeld.ca> X-Emacs-PR-Message: they-closed 3987 X-Emacs-PR-Package: emacs Reply-To: 3987@debbugs.gnu.org Date: Sat, 01 Aug 2009 08:30:10 +0000 Content-Type: multipart/mixed; boundary="----------=_1249115410-24981-1" This is a multi-part message in MIME format... ------------=_1249115410-24981-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the emacs package: #3987: 23.1; Rmail summary missing dates when case-fold-search is nil It has been closed by Eli Zaretskii . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact Eli Zaretskii by replying to this email. --=20 3987: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D3987 Emacs Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1249115410-24981-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 3987-done) by emacsbugs.donarmstrong.com; 1 Aug 2009 08:23:17 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.8 required=4.0 tests=AWL,HAS_BUG_NUMBER, IMPRONONCABLE_1,MURPHY_WRONG_WORD1,MURPHY_WRONG_WORD2,RCVD_IN_SBLXBL, RCVD_IN_SBLXBL_CBL autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from mtaout3.012.net.il (mtaout4.012.net.il [84.95.2.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n718NB7Y024358 for <3987-done@emacsbugs.donarmstrong.com>; Sat, 1 Aug 2009 01:23:12 -0700 Received: from conversion-daemon.i_mtaout3.012.net.il by i_mtaout3.012.net.il (HyperSendmail v2004.12) id <0KNO00K00V4P8800@i_mtaout3.012.net.il> for 3987-done@emacsbugs.donarmstrong.com; Sat, 01 Aug 2009 11:23:05 +0300 (IDT) Received: from HOME-C4E4A596F7 ([77.126.255.147]) by i_mtaout3.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0KNO00LKIVAF67J0@i_mtaout3.012.net.il>; Sat, 01 Aug 2009 11:23:03 +0300 (IDT) Date: Sat, 01 Aug 2009 11:23:04 +0300 From: Eli Zaretskii Subject: Re: bug#3987: 23.1; Rmail summary missing dates when case-fold-search is nil In-reply-to: <200907310001.n6V017Vf001720@cneufeld.ca> X-012-Sender: halo1@inter.net.il To: emacsbugs0001@cneufeld.ca, 3987-done@debbugs.gnu.org Reply-to: Eli Zaretskii Message-id: <83prbgosd3.fsf@gnu.org> References: <200907310001.n6V017Vf001720@cneufeld.ca> > Date: Thu, 30 Jul 2009 20:01:07 -0400 > From: Christopher Neufeld > From: Christopher Neufeld > Cc: > > Some time between 23.0.60 and 23.1, a minor annoyance was introduced into > rmail. When case-fold-search is nil, the dates in the rmail summary are > all rendered as "??????". Fixed with this change: 2009-08-01 Eli Zaretskii * mail/rmailsum.el (rmail-header-summary): Ignore letter-case of month names. (Bug#3987) Index: lisp/mail/rmailsum.el =================================================================== RCS file: /cvsroot/emacs/emacs/lisp/mail/rmailsum.el,v retrieving revision 1.179 diff -u -r1.179 rmailsum.el --- lisp/mail/rmailsum.el 4 Apr 2009 14:21:49 -0000 1.179 +++ lisp/mail/rmailsum.el 1 Aug 2009 08:19:26 -0000 @@ -518,16 +518,19 @@ (concat (save-excursion (if (not (re-search-forward "^Date:" nil t)) " " - (cond ((re-search-forward "\\([^0-9:]\\)\\([0-3]?[0-9]\\)\\([- \t_]+\\)\\([adfjmnos][aceopu][bcglnprtvy]\\)" - (line-end-position) t) + ;; Match month names case-insensitively + (cond ((let ((case-fold-search t)) + (re-search-forward "\\([^0-9:]\\)\\([0-3]?[0-9]\\)\\([- \t_]+\\)\\([adfjmnos][aceopu][bcglnprtvy]\\)" + (line-end-position) t)) (format "%2d-%3s" (string-to-number (buffer-substring (match-beginning 2) (match-end 2))) (buffer-substring (match-beginning 4) (match-end 4)))) - ((re-search-forward "\\([^a-z]\\)\\([adfjmnos][acepou][bcglnprtvy]\\)\\([-a-z \t_]*\\)\\([0-9][0-9]?\\)" - (line-end-position) t) + ((let ((case-fold-search t)) + (re-search-forward "\\([^a-z]\\)\\([adfjmnos][acepou][bcglnprtvy]\\)\\([-a-z \t_]*\\)\\([0-9][0-9]?\\)" + (line-end-position) t)) (format "%2d-%3s" (string-to-number (buffer-substring (match-beginning 4) ------------=_1249115410-24981-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by emacsbugs.donarmstrong.com; 31 Jul 2009 02:21:56 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: * X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=1.4 required=4.0 tests=FOURLA,IMPRONONCABLE_1, MURPHY_WRONG_WORD1,MURPHY_WRONG_WORD2 autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6V26iuJ026414 for ; Thu, 30 Jul 2009 19:07:12 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MWgBI-00010v-5C for bug-gnu-emacs@gnu.org; Thu, 30 Jul 2009 20:41:08 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MWgBD-0000vH-FV for bug-gnu-emacs@gnu.org; Thu, 30 Jul 2009 20:41:07 -0400 Received: from [199.232.76.173] (port=39639 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MWgBC-0000v5-Va for bug-gnu-emacs@gnu.org; Thu, 30 Jul 2009 20:41:03 -0400 Received: from ottawa-hs-206-191-28-140.s-ip.magma.ca ([206.191.28.140]:38061 helo=londo.cneufeld.ca) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MWgBC-0005Wp-OH for bug-gnu-emacs@gnu.org; Thu, 30 Jul 2009 20:41:03 -0400 Received: from cneufeld.ca (localhost [127.0.0.1]) by londo.cneufeld.ca (8.14.2/8.14.2) with ESMTP id n6V017UG001721 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 30 Jul 2009 20:01:07 -0400 Received: (from neufeld@localhost) by cneufeld.ca (8.14.2/8.14.2/Submit) id n6V017Vf001720; Thu, 30 Jul 2009 20:01:07 -0400 Date: Thu, 30 Jul 2009 20:01:07 -0400 Message-Id: <200907310001.n6V017Vf001720@cneufeld.ca> From: Christopher Neufeld To: bug-gnu-emacs@gnu.org From: Christopher Neufeld Subject: 23.1; Rmail summary missing dates when case-fold-search is nil Reply-to: emacsbugs0001@cneufeld.ca X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0.1 (londo.cneufeld.ca [0.0.0.0]); Thu, 30 Jul 2009 20:01:07 -0400 (EDT) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-Greylist: delayed 2392 seconds by postgrey-1.27 at monty-python; Thu, 30 Jul 2009 20:41:01 EDT In GNU Emacs 23.1.1 (x86_64-unknown-linux-gnu, X toolkit) of 2009-07-30 on londo.cneufeld.ca configured using `configure '--prefix=/usr' '--with-x' '--with-xpm' '--with-jpeg' '--with-tiff' '--with-gif' '--with-png' '--enable-font-backend' '--with-xft' '--with-freetype' '--with-x-toolkit=lucid'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: nil value of $XMODIFIERS: nil locale-coding-system: nil default-enable-multibyte-characters: t Major mode: RMAIL Minor modes in effect: pc-selection-mode: t display-time-mode: t tooltip-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent messages: Loading rmailout...done Loading sendmail...done Loading mailalias...done Loading supercite...done Loading delsel...done Loading pc-select...done Counting messages...done (No new mail has arrived) 0 new messages read Computing summary lines...done Some time between 23.0.60 and 23.1, a minor annoyance was introduced into rmail. When case-fold-search is nil, the dates in the rmail summary are all rendered as "??????". This is because of the regular expression in rmailsum.el at line 529. A string such as "May" doesn't match the regular expression: [adfjmnos][acepou][bcglnprtvy] because the capital letter doesn't match when case-fold-search is nil. The easy work-around is to turn on case-fold-search, but it would be nice to fix it properly, so that rmail works no matter what the user-set value is. It may also be useful to do a quick scan of the .el files to see if there are other cases where a nil value of case-fold-search might break some modes or behaviours. -- Christopher Neufeld Home page: http://www.cneufeld.ca/neufeld "Don't edit reality for the sake of simplicity" ------------=_1249115410-24981-1--