From: Alex Schroeder <alex@gnu.org>
Subject: rmail-summary-by-topic
Date: Sat, 07 Jan 2006 16:23:40 +0100 [thread overview]
Message-ID: <m2fyo0qcxv.fsf@alpinobombus.local> (raw)
I think rmail-summary-by-topic should use the current subject as a
default -- this would quickly provide the kind of "conversation view"
that Gmail offers, without the need to do threading.
I therefore suggest the following patch. If nobody objects, I can
apply it, too.
*** rmailsum.el 24 Sep 2005 15:43:58 +0200 1.139
--- rmailsum.el 07 Jan 2006 16:17:09 +0100
***************
*** 132,138 ****
but if WHOLE-MESSAGE is non-nil (prefix arg given),
look in the whole message.
SUBJECT is a string of regexps separated by commas."
! (interactive "sTopics to summarize by: \nP")
(rmail-new-summary
(concat "about " subject)
(list 'rmail-summary-by-topic subject whole-message)
--- 132,146 ----
but if WHOLE-MESSAGE is non-nil (prefix arg given),
look in the whole message.
SUBJECT is a string of regexps separated by commas."
! (interactive
! (let* ((subject (with-current-buffer rmail-buffer
! (mail-fetch-field "Subject")))
! (prompt (concat "Topics to summarize by (regexp"
! (if subject ", default current subject" "")
! "): ")))
! (when (string-match rmail-reply-regexp subject)
! (setq subject (substring subject (match-end 0))))
! (list (read-string prompt nil nil subject) current-prefix-arg)))
(rmail-new-summary
(concat "about " subject)
(list 'rmail-summary-by-topic subject whole-message)
--
http://www.emacswiki.org/alex/
reply other threads:[~2006-01-07 15:23 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=m2fyo0qcxv.fsf@alpinobombus.local \
--to=alex@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).