From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Davis Herring" Newsgroups: gmane.emacs.devel Subject: Re: A few questions about desktop.el Date: Fri, 8 Jun 2007 17:51:42 -0700 (PDT) Message-ID: <54274.128.165.0.81.1181350302.squirrel@webmail.lanl.gov> References: <58643.128.165.123.132.1146179153.squirrel@webmail.lanl.gov> <877j55gb6p.fsf@jurta.org> <4458C031.5060201@soem.dk> <36957.128.165.123.132.1146760030.squirrel@webmail.lanl.gov> <35277.128.165.123.18.1181337422.squirrel@webmail.lanl.gov> <87d506hz80.fsf@jurta.org> Reply-To: herring@lanl.gov NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1181350315 21131 80.91.229.12 (9 Jun 2007 00:51:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 9 Jun 2007 00:51:55 +0000 (UTC) Cc: Juanma Barranquero , emacs-devel@gnu.org To: "Juri Linkov" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jun 09 02:51:53 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HwpBJ-0000AF-4M for ged-emacs-devel@m.gmane.org; Sat, 09 Jun 2007 02:51:53 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwpBI-0000va-Ia for ged-emacs-devel@m.gmane.org; Fri, 08 Jun 2007 20:51:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwpBE-0000u4-Bo for emacs-devel@gnu.org; Fri, 08 Jun 2007 20:51:48 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwpBC-0000sw-CE for emacs-devel@gnu.org; Fri, 08 Jun 2007 20:51:47 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwpBC-0000sj-8I for emacs-devel@gnu.org; Fri, 08 Jun 2007 20:51:46 -0400 Original-Received: from mailwasher.lanl.gov ([192.65.95.54] helo=mailwasher-b.lanl.gov) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HwpBB-0005q5-Lv for emacs-devel@gnu.org; Fri, 08 Jun 2007 20:51:45 -0400 Original-Received: from mailrelay2.lanl.gov (mailrelay2.lanl.gov [128.165.4.103]) by mailwasher-b.lanl.gov (8.13.8/8.13.8/(ccn-5)) with ESMTP id l590pilk019974 for ; Fri, 8 Jun 2007 18:51:44 -0600 Original-Received: from webmail1.lanl.gov (webmail1.lanl.gov [128.165.4.106]) by mailrelay2.lanl.gov (8.13.8/8.13.8/(ccn-5)) with ESMTP id l590phs3016084; Fri, 8 Jun 2007 18:51:43 -0600 Original-Received: from webmail1.lanl.gov (localhost.localdomain [127.0.0.1]) by webmail1.lanl.gov (8.12.11.20060308/8.12.11) with ESMTP id l590phYH008761; Fri, 8 Jun 2007 18:51:43 -0600 Original-Received: (from apache@localhost) by webmail1.lanl.gov (8.12.11.20060308/8.12.11/Submit) id l590pgtE008758; Fri, 8 Jun 2007 17:51:42 -0700 X-Authentication-Warning: webmail1.lanl.gov: apache set sender to herring@lanl.gov using -f Original-Received: from 128.165.0.81 (SquirrelMail authenticated user 196434) by webmail.lanl.gov with HTTP; Fri, 8 Jun 2007 17:51:42 -0700 (PDT) In-Reply-To: <87d506hz80.fsf@jurta.org> User-Agent: SquirrelMail/1.4.8-6.el3.2lanl X-Priority: 3 (Normal) Importance: Normal X-PMX-Version: 4.7.1.128075 X-detected-kernel: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:72526 Archived-At: > I have in .emacs > > (run-at-time 3600 3600 'desktop-save "~") > > so desktop-save silently saves the desktop every hour. > > Does you patch cause a problem by asking questions about file locks > inside such a timer? Er, I'm guessing it does... it certainly doesn't check to see if it's being run in a less than interactive fashion. (How does one even do that? Either of the standard interactive checks?) But the real question is what would you want it to do there instead of ask? - Is this sort of call supposed to automatically get priority and steal locks and such? If so, what happens when two Emacs instances run this timer (as in interleaved, not even simultaneously)? - Alternatively, is it supposed to always fail if a clash is detected? - Or should there be entirely different heuristics...? I guess I should note (partly just to give this message more than one declarative sentence) that if you don't save the desktop from another Emacs (even if you start one and re-use this autosaved desktop), it won't prompt the next time the timer runs. So if you actually "respect" the clash detection and don't create a conflicting desktop, there won't be a problem. Davis -- This product is sold by volume, not by mass. If it appears too dense or too sparse, it is because mass-energy conversion has occurred during shipping.