From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Re: Showing hidden subtree automatically if point is hidden when the buffer is opened Date: Wed, 29 Jul 2009 13:41:10 +0800 Message-ID: <87k51sgi6h.fsf@bzg.ath.cx> References: <878wi9agq8.fsf@bzg.ath.cx> <87y6q93tay.fsf@bzg.ath.cx> <87ab2ou09h.fsf@bzg.ath.cx> 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 1MW1um-00067J-T5 for emacs-orgmode@gnu.org; Wed, 29 Jul 2009 01:41:24 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MW1uh-00060i-KD for emacs-orgmode@gnu.org; Wed, 29 Jul 2009 01:41:24 -0400 Received: from [199.232.76.173] (port=52525 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MW1uh-00060Q-BI for emacs-orgmode@gnu.org; Wed, 29 Jul 2009 01:41:19 -0400 Received: from rv-out-0708.google.com ([209.85.198.245]:52581) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MW1ug-0006v7-AP for emacs-orgmode@gnu.org; Wed, 29 Jul 2009 01:41:18 -0400 Received: by rv-out-0708.google.com with SMTP id f25so297225rvb.6 for ; Tue, 28 Jul 2009 22:41:17 -0700 (PDT) In-Reply-To: (User's message of "Tue, 28 Jul 2009 18:46:58 +0000 (UTC)") 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: User Cc: emacs-orgmode@gnu.org User writes: > Bastien googlemail.com> writes: >> >> If you load this *after* loading the saveplace hook then it should >> be okay. Thanks to Nick Dokos for shaking my brain on this :) > > Well, wasn't my original solution with the null timer much nicer? > You didn't have to worry about making sure you put org-mode hook > last and that it loads after saveplace hook. Yes, but it's not straightforward to understand. To me, "running a task when Emacs is idle for 0 seconds" is very similar to "run immediately" - that's why I didn't understand why you'd put this first. Why not checking if this run-with-idle-timer trick is necessary? My understanding is that org-mode hooks will be called *after* saveplace restores the point. (I just want to avoid unnecessary tricks for people who use Worg as a place to learn things.) > I tend to favor solutions which avoid such potential problems. :) If it ain't broken, don't fix it ;) -- Bastien