From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Mike Ballard Newsgroups: gmane.emacs.help Subject: elisp question Date: Wed, 20 Aug 2003 07:37:40 GMT Organization: EarthLink Inc. -- http://www.EarthLink.net Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1061399619 11943 80.91.224.253 (20 Aug 2003 17:13:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 20 Aug 2003 17:13:39 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 20 19:13:38 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19pWWg-0001b8-00 for ; Wed, 20 Aug 2003 19:13:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19pNfR-00012Q-Ia for geh-help-gnu-emacs@m.gmane.org; Wed, 20 Aug 2003 03:46:05 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!stamper.news.atl.earthlink.net!newsread1.news.atl.earthlink.net.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help X-Newsreader: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Original-Lines: 42 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Original-NNTP-Posting-Host: 67.75.10.231 Original-X-Complaints-To: abuse@earthlink.net Original-X-Trace: newsread1.news.atl.earthlink.net 1061365060 67.75.10.231 (Wed, 20 Aug 2003 00:37:40 PDT) Original-NNTP-Posting-Date: Wed, 20 Aug 2003 00:37:40 PDT Original-Xref: shelby.stanford.edu gnu.emacs.help:116014 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:11933 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:11933 Hi - I don't know much about elisp but was able to piece together a little snippet that pretty much does what I want. And that's to determine if a post is to Usenet and write a copy to a file. The problem is if I post again to the same group (w/o restarting Gnus) I get the mb msg ' has changed on disk - really edit the buffer?' I'd like to eliminate that (I can post to other groups fine so long as I don't try more than one post to any group during a single Gnus session). If there was some way to add code which re-reads the disk file before it's written to a second time that (apparently) would fix it. Or there's probably a better way that I have no idea about. (The "touch" is in there in case the file doesn't already exist and I wonder if it's the problem? I tried using file-exists-p but have sort of been going in circles (backwards) without success). Can someone tell me how to alter the code below either by re-reading the disk file before it's written again or if "touch" is the problem maybe someone could tell me how to use file-exists-p? I think I'd still need the "touch" (or something) for the occasions when the file does not yet exist. (start-process-shell-command "foo" "bar" "/bin/touch" (format "/dd/Gnus/posts/%s.posts" group)) (if (not (message-news-p)) "nnfolder:../mail/mail_cc" (format "nnfolder:../posts/%s.posts" group))) Mike -- mike.ballard--at--earthlink.net "Roses are red, violets are blue, I'm schizophrenic and so am I"