From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/25666 Path: main.gmane.org!not-for-mail From: dsg@mitre.org (David S. Goldberg) Newsgroups: gmane.emacs.gnus.general Subject: Re: Moving articles destroys all marks Date: 05 Oct 1999 13:30:58 -0400 Sender: owner-ding@hpc.uh.edu Message-ID: References: <7t17ll78hpv.fsf@fly.srk.fer.hr> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035163010 15217 80.91.224.250 (21 Oct 2002 01:16:50 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 01:16:50 +0000 (UTC) Return-Path: Original-Received: from spinoza.math.uh.edu (spinoza.math.uh.edu [129.7.128.18]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id NAA09894 for ; Tue, 5 Oct 1999 13:33:08 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by spinoza.math.uh.edu (8.9.1/8.9.1) with ESMTP id MAB24454; Tue, 5 Oct 1999 12:32:06 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Tue, 05 Oct 1999 12:33:08 -0500 (CDT) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id MAA04488 for ; Tue, 5 Oct 1999 12:32:55 -0500 (CDT) Original-Received: from linus.mitre.org (linus.mitre.org [129.83.10.1]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id NAA09874 for ; Tue, 5 Oct 1999 13:30:59 -0400 (EDT) Original-Received: from blackbird.mitre.org (blackbird [129.83.65.14]) by linus.mitre.org (8.8.7/8.8.7) with ESMTP id NAA16771 for ; Tue, 5 Oct 1999 13:30:58 -0400 (EDT) Original-Received: (from dsg@localhost) by blackbird.mitre.org (8.8.7/8.8.7) id NAA28578; Tue, 5 Oct 1999 13:30:58 -0400 (EDT) Mail-Copies-To: never Original-To: The Gnus Mailing List X-Face: GUaHTH@nS>[7,ME@-gYZ4#Wl{z"99k@[[Y8AcP0x1paqu.,z9,XSV1WI>{q3f6^e5(zrit <4fV&VHhmE`uidRqtmG27;si9&r;#KSF~E#$%W8w(xdp)H4tW=\2XOk~3=@oGqqpj;m4xf Ow;y26396&,34@9#~4;@*S;E0cq"LM9N(us4P%F(Nxis'Vvfm9?KufH;:Q$dMa-QWGLR&K d0`LJZE8xb*>^yN>b]_NcU:E=Zn\1=#/(OS2 In-Reply-To: Kai.Grossjohann@CS.Uni-Dortmund.DE's message of "05 Oct 1999 18:40:21 +0200" Original-Lines: 17 User-Agent: Gnus/5.070097 (Pterodactyl Gnus v0.97) XEmacs/20.4 (Emerald) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:25666 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:25666 This is untested and almost certainly needs tweaking. (defadvice gnus-summary-move-article (around clear-marks-first activate) (let ((articles (gnus-summary-work-articles (ad-get-arg 0)))) (mapcar 'gnus-summary-clear-mark-forward articles) ad-do-it)) should do the right thing. Btw, I've suggested that the clearing of the marks be done after the move. That was based on an assumption that the article would be marked as read due to selection before the move. However a look at the source shows gnus-mark-article-hook being let to nil before that selection so there shouldn't be a problem. -- Dave Goldberg Post: The Mitre Corporation\MS B325\202 Burlington Rd.\Bedford, MA 01730 Phone: 781-271-3887 Email: dsg@mitre.org