🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.vm.bug
Article #9260

Re: fancy date formatter based on the age of a message

#9260
From: Kimball Collins
Date: Sat, 01 Feb 1992 08:44
33 lines
1512 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: <9202010844.AA17718@ptolemy.arc.nasa.gov>
Path: arc1-ca.pugleaf.net!sparky!uunet!wendy-fate.uu.net!bug-vm
References: <9201280047.AA14058@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:36 PST
Newsgroups: gnu.emacs.vm.bug
Sender: bug-vm-request@uunet.uu.net
Date: Sat, 1 Feb 92 00:44:45 PST
From: Kimball Collins <kpc@ptolemy.arc.nasa.gov>
Message-ID: <9202010844.AA17718@ptolemy.arc.nasa.gov>
Subject: Re: fancy date formatter based on the age of a message
References: <9201280047.AA14058@wendy-fate.UU.NET>
Path: arc1-ca.pugleaf.net!sparky!uunet!wendy-fate.uu.net!bug-vm