unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Glenn Morris <rgm@gnu.org>
To: Xavier Maillard <xma@gnu.org>
Cc: 2333@emacsbugs.donarmstrong.com
Subject: bug#2333: 23.0.90; rmail: rmail-summary-by-topic is not reliable
Date: Wed, 18 Feb 2009 16:56:18 -0500	[thread overview]
Message-ID: <y3ljs3h0jh.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <200902142325.n1ENP3s3027009@zogzog.maillard.mobi> (Xavier Maillard's message of "Sun, 15 Feb 2009 00:25:03 +0100")

Xavier Maillard wrote:

>  7840D  3-Feb          admin@flosoft.biz [114] { summit } Re: [Summit] Prepaid cellphones
[...]
> Doing C-M-t RET -i.e. choosing default subject as the topic returns:
> No previous message. More generally, rmail-summary-by-topic is
> rather unreliable since less than 50% of the time it will return
> correct results.

One problem is that rmail-summary-by-topic does not regexp-quote the
default expression to search for. This leads to the confusing result
that you can fail to find the current message, if the subject happens
to contain regexp special characters, eg "[ ]" in your example.

The patch for that is trivial, and seems like the right thing to do.

The "no previous message" message indicates that more care needs to be
taken somewhere when there are no matches.


*** rmailsum.el	15 Feb 2009 02:52:16 -0000	1.170
--- rmailsum.el	18 Feb 2009 21:55:17 -0000
***************
*** 155,161 ****
   look in the whole message.
  SUBJECT is a string of regexps separated by commas."
    (interactive
!    (let* ((subject (rmail-simplified-subject))
  	  (prompt (concat "Topics to summarize by (regexp"
  			  (if subject ", default current subject" "")
  			  "): ")))
--- 155,161 ----
   look in the whole message.
  SUBJECT is a string of regexps separated by commas."
    (interactive
!    (let* ((subject (regexp-quote (rmail-simplified-subject)))
  	  (prompt (concat "Topics to summarize by (regexp"
  			  (if subject ", default current subject" "")
  			  "): ")))






  parent reply	other threads:[~2009-02-18 21:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <dcd4dfm7cl.fsf@fencepost.gnu.org>
2009-02-14 23:25 ` bug#2333: 23.0.90; rmail: rmail-summary-by-topic is not reliable Xavier Maillard
     [not found]   ` <handler.2333.B.123465396613879.ack@emacsbugs.donarmstrong.com>
2009-02-16  7:24     ` bug#2333: Acknowledgement (23.0.90; rmail: rmail-summary-by-topic is not reliable) Xavier Maillard
2009-02-18 21:56   ` Glenn Morris [this message]
2009-02-19  3:35   ` bug#2333: marked as done " Emacs bug Tracking System

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=y3ljs3h0jh.fsf@fencepost.gnu.org \
    --to=rgm@gnu.org \
    --cc=2333@emacsbugs.donarmstrong.com \
    --cc=xma@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).