From mboxrd@z Thu Jan 1 00:00:00 1970 From: jmcbray@carcosa.net (Jason F. McBrayer) Subject: Re: Auto-saving/loading files (without prompts) Date: Fri, 06 Mar 2009 10:21:07 -0500 Message-ID: References: <87ocwjzts2.fsf@CPU107.opentrends.net> <20524da70903021021m3403e57etf9b796aab7371a73@mail.gmail.com> <87vdqrrcxw.fsf@gollum.intra.norang.ca> <87zlg27snk.fsf@CPU107.opentrends.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LfbrQ-000248-PE for emacs-orgmode@gnu.org; Fri, 06 Mar 2009 10:21:16 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LfbrN-00023X-23 for emacs-orgmode@gnu.org; Fri, 06 Mar 2009 10:21:16 -0500 Received: from [199.232.76.173] (port=52651 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LfbrM-00023M-Lp for emacs-orgmode@gnu.org; Fri, 06 Mar 2009 10:21:12 -0500 Received: from cdptpa-omtalb.mail.rr.com ([75.180.132.121]:58591) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LfbrM-00086l-7P for emacs-orgmode@gnu.org; Fri, 06 Mar 2009 10:21:12 -0500 In-Reply-To: (David Thole's message of "Thu, 5 Mar 2009 12:41:57 -0600 (CST)") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: David Thole Cc: emacs-orgmode@gnu.org David Thole writes: > The main thing I'd like to fix if the overal solution doesn't work is > a way to reload the file without confirming. So if I try to refresh > the agenda buffer that it would automatically reload the file too, > without confirmation. I have an emacs lisp command I created that > does this for me. auto-revert-mode; see also global-auto-revert-mode. You may have lost work if you check stuff out over uncommitted changes, but I gather you're aware of that and have a workflow that avoids it. --8<---------------cut here---------------start------------->8--- auto-revert-mode is an interactive compiled Lisp function in `autorevert.el'. (auto-revert-mode &optional arg) Toggle reverting buffer when file on disk changes. With arg, turn Auto Revert mode on if and only if arg is positive. This is a minor mode that affects only the current buffer. Use `global-auto-revert-mode' to automatically revert all buffers. Use `auto-revert-tail-mode' if you know that the file will only grow without being changed in the part that is already in the buffer. --8<---------------cut here---------------end--------------->8--- -- +-----------------------------------------------------------+ | Jason F. McBrayer jmcbray@carcosa.net | | If someone conquers a thousand times a thousand others in | | battle, and someone else conquers himself, the latter one | | is the greatest of all conquerors. --- The Dhammapada |