Article View: gnu.emacs.vm.bug
Article #9259Re: fancy date formatter based on the age of a message
From: Kimball Collins
Date: Sat, 01 Feb 1992 08:43
Date: Sat, 01 Feb 1992 08:43
33 lines
1713 bytes
1713 bytes
kyle@wendy-fate.uu.net writes:
> > > > thanks. this updates one line. how do i have it update the whole
> > > > summary?
> > >
> > > Kill the summary buffer and type `h'.
> >
> > how do i do this in a function?
>
> Assuming the current buffer is the folder buffer,
>
> (and vm-summary-buffer (kill-buffer vm-summary-buffer))
> (vm-summarize t)
this runs into the bug where the summary goes to the bottom if it was
on the top, anbd it doesn't move the cursor. ideas?
(defun my-vm-toggle-summary-format ()
(interactive)
(if (equal my-vm-summary-type 2)
(setq vm-summary-format my-vm-summary-format-type-1
my-vm-summary-type 1)
(setq vm-summary-format my-vm-summary-format-type-2
my-vm-summary-type 2))
(message "type %d" my-vm-summary-type)
(vm-discard-cached-data)
;;(vm-update-summary-and-mode-line)
(and vm-summary-buffer (kill-buffer vm-summary-buffer))
(vm-summarize t)
)
Technical Details
Message-ID:
<9202010843.AA17644@ptolemy.arc.nasa.gov>Path:
arc1-ca.pugleaf.net!sparky!uunet!wendy-fate.uu.net!bug-vmReferences:
<9201280047.AA14058@wendy-fate.UU.NET> <9201291745.AA21654@wendy-fate.UU.NET> <KPC.92Jan26152551@chaos.arc.nasa.gov> <KPC.92Jan28202151@zog.arc.nasa.gov> <KPC.92Jan29163331@zog.arc.nasa.gov> <9201301929.AA02188@wendy-fate.UU.NET>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f6829,df1b868ecf01259d X-Google-Attributes: gidf6829,public X-Google-ArrivalTime: 1992-02-01 00:48:35 PST Newsgroups: gnu.emacs.vm.bug Sender: bug-vm-request@uunet.uu.net Date: Sat, 1 Feb 92 00:43:19 PST From: Kimball Collins <kpc@ptolemy.arc.nasa.gov> Message-ID: <9202010843.AA17644@ptolemy.arc.nasa.gov> Subject: Re: fancy date formatter based on the age of a message References: <9201280047.AA14058@wendy-fate.UU.NET> <9201291745.AA21654@wendy-fate.UU.NET> <KPC.92Jan26152551@chaos.arc.nasa.gov> <KPC.92Jan28202151@zog.arc.nasa.gov> <KPC.92Jan29163331@zog.arc.nasa.gov> <9201301929.AA02188@wendy-fate.UU.NET> Path: arc1-ca.pugleaf.net!sparky!uunet!wendy-fate.uu.net!bug-vm