From mboxrd@z Thu Jan 1 00:00:00 1970 From: henry atting Subject: Re: org-tree-slide as default, sort of Date: Mon, 28 Jan 2013 21:33:02 +0100 Message-ID: <87wquxujy9.fsf@bye.fritz.box> References: <8738xlb7rk.fsf@bye.fritz.box> <54903FF45BF246568D04EDB5737CEF9A@ieee.org> <87d2wpcfwy.fsf@bye.fritz.box> <762AB53550094322B2607F0066552B57@ieee.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:39537) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TzvOD-0007XQ-O9 for emacs-orgmode@gnu.org; Mon, 28 Jan 2013 15:33:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TzvOA-0008Fx-Rq for emacs-orgmode@gnu.org; Mon, 28 Jan 2013 15:33:13 -0500 Received: from plane.gmane.org ([80.91.229.3]:53460) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TzvOA-0008Fe-Li for emacs-orgmode@gnu.org; Mon, 28 Jan 2013 15:33:10 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TzvOQ-0001dz-Gg for emacs-orgmode@gnu.org; Mon, 28 Jan 2013 21:33:26 +0100 Received: from port-92-195-123-104.dynamic.qsc.de ([92.195.123.104]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 28 Jan 2013 21:33:26 +0100 Received: from snd by port-92-195-123-104.dynamic.qsc.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 28 Jan 2013 21:33:26 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Cc: takaxp@ieee.org Hi Takaaki, > I reproduced the first and the 3rd case you reported. > I think the following setting is better than using org-mode-hook. > > (add-hook 'find-file-hook > '(lambda () (when (eq major-mode 'org-mode) > > (org-tree-slide-mode)))) > > When you call org-agenda, it will visit many org-files listed in > org-agenda-files. This is why multiple displaying of greeting message is occurred. > But actually, the message should be a custom variable. > I'll change it, thanks! Great, thanks. > In my environment, I cannot reproduce the 2nd case. > Could you test again with the above setting? With the above setting it works fine now. > Finally, when org-tree-slide is active, org-publish will export > the narrowed tree only. If you want to export whole trees, > please turn off org-tree-slide temporarily. This is what I currently do. However the problem is if you publish a project with let's say 10 files then you will have to open all 10 and toggle org-tree-slice mode manually, given that you made changes on all 10 files. Or you evaluate (remove-hook 'find-file-hook ...) That said since I have no project with 10 files which I change all at once turning off org-tree-slide manually is sufficient for me. Thanks, henry -- http://literaturlatenight.de