🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

patch to get new mail when vm-primary-inbox runs vm-mode from auto-mode-alist

#9029
From: Jerry
Date: Tue, 16 Jun 1992 08:24
30 lines
1790 bytes
If vm-primary-inbox matches an entry in auto-mode-alist to run
vm-mode, it wouldn't get any new mail.  Here's a fix:

*** /home/banach/jerry/elisp/vm/vm-folder.el~	Tue Jun 16 00:31:48 1992
--- /home/banach/jerry/elisp/vm/vm-folder.el	Tue Jun 16 02:10:20 1992
***************
*** 1252,1258 ****
      ;; If the buffer's not modified then we know that there can be no
      ;; messages in the folder that are not on disk.
      (or (buffer-modified-p) (setq vm-messages-not-on-disk 0))
!     (let ((first-time (not (eq major-mode 'vm-mode)))
  	  (auto-save-newer (and buffer-file-name
  				(file-newer-than-file-p
  				 (make-auto-save-file-name)
--- 1252,1258 ----
      ;; If the buffer's not modified then we know that there can be no
      ;; messages in the folder that are not on disk.
      (or (buffer-modified-p) (setq vm-messages-not-on-disk 0))
!     (let ((first-time (or (not (eq major-mode 'vm-mode)) vm-primary-inbox-p))
  	  (auto-save-newer (and buffer-file-name
  				(file-newer-than-file-p
  				 (make-auto-save-file-name)



-Jerry
                             Jerry Graves
                          UTEP Math Sysadmin
                       jerry@math.ep.utexas.edu
                    PHONE/FAX  (915) 747-5761/5067
Technical Details
Message-ID: <9206160824.AA07877@banach.math.ep.utexas.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!wendy-fate.uu.net!bug-vm

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f6829,c2e297c65edb3e4,start
X-Google-Attributes: gidf6829,public
X-Google-ArrivalTime: 1992-06-15 20:32:38 PST
Newsgroups: gnu.emacs.vm.bug
Sender: bug-vm-request@uunet.uu.net
Date: Tue, 16 Jun 92 02:24:58 MDT
From: jerry@math.ep.utexas.edu (Jerry)
Message-ID: <9206160824.AA07877@banach.math.ep.utexas.edu>
Subject: patch to get new mail when vm-primary-inbox runs vm-mode from auto-mode-alist
Path: arc1-ca.pugleaf.net!sparky!uunet!wendy-fate.uu.net!bug-vm
Lines: 30