Article View: gnu.emacs.bug
Article #98965Emacs 18.56 (time.el) : Symbolic link fools Check for empty mail file
From: Boaz Ben-Zvi
Date: Tue, 22 Jan 1991 21:33
Date: Tue, 22 Jan 1991 21:33
22 lines
1577 bytes
1577 bytes
This is how display-time-filter (in time.el / 18.56) checks if the mail-spool-file is empty: ;; file not empty? (> (nth 7 (file-attributes mail-spool-file)) 0)) However, if one's mail-spool-file is a symbolic link, like mine: lrwxr-xr-x 1 root 32 Sep 14 19:35 /usr/spool/mail/boaz -> /nfs/neutron/usr/spool/mail/boaz The above elisp expression always returns size 32 (i.e. file not empty, I "have" mail). I can propose some sloppy fix, but I wish emacs had some file-size function (that chases down symbolic links). -- Boaz. ======================================================== * Boaz Ben-Zvi (boaz@neutron.lcs.mit.edu) * * MIT: NE43-526 Tel: (617) 253-6212 * ========================================================
Technical Details
Message-ID:
<1991Jan22.213320.16771@mintaka.lcs.mit.edu>Path:
arc1-ca.pugleaf.net!gmdzi!unido!fauern!ira.uka.de!sol.ctr.columbia.edu!caen!sdd.hp.com!usc!ucsd!ucbvax!tut.cis.ohio-state.edu!CONCERTO.LCS.MIT.EDU!boazShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,639e49e5f176b032,start X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1991-01-22 13:33:20 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!fauern!ira.uka.de!sol.ctr.columbia.edu!caen!sdd.hp.com!usc!ucsd!ucbvax!tut.cis.ohio-state.edu!CONCERTO.LCS.MIT.EDU!boaz From: boaz@CONCERTO.LCS.MIT.EDU (Boaz Ben-Zvi) Newsgroups: gnu.emacs.bug Subject: Emacs 18.56 (time.el) : Symbolic link fools Check for empty mail file Keywords: time.el, mail Message-ID: <1991Jan22.213320.16771@mintaka.lcs.mit.edu> Date: 22 Jan 91 21:33:20 GMT Sender: daemon@tut.cis.ohio-state.edu Reply-To: boaz@lcs.mit.edu Distribution: gnu Organization: Laboratory for Computer Science, MIT Lines: 22 Approved: bug-gnu-emacs@prep.ai.mit.edu