From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takaaki ISHIKAWA Subject: Re: org-tree-slide as default, sort of Date: Tue, 29 Jan 2013 04:33:08 +0900 Message-ID: <762AB53550094322B2607F0066552B57@ieee.org> References: <8738xlb7rk.fsf@bye.fritz.box> <54903FF45BF246568D04EDB5737CEF9A@ieee.org> <87d2wpcfwy.fsf@bye.fritz.box> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:51970) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TzuSD-0004Qo-DH for emacs-orgmode@gnu.org; Mon, 28 Jan 2013 14:33:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TzuSB-0000VY-FJ for emacs-orgmode@gnu.org; Mon, 28 Jan 2013 14:33:17 -0500 Received: from mail-pb0-f52.google.com ([209.85.160.52]:50561) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TzuSB-0000US-8n for emacs-orgmode@gnu.org; Mon, 28 Jan 2013 14:33:15 -0500 Received: by mail-pb0-f52.google.com with SMTP id uo5so1650672pbc.11 for ; Mon, 28 Jan 2013 11:33:12 -0800 (PST) In-Reply-To: <87d2wpcfwy.fsf@bye.fritz.box> Content-Disposition: inline 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: henry atting Cc: emacs-orgmode@gnu.org Hi Henry, 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=21 In my environment, I cannot reproduce the 2nd case. Could you test again with the above setting=3F =46inally, 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. Best, Takaaki On 2013=E5=B9=B41=E6=9C=8829=E6=97=A5Tuesday at 3:37, henry atting wrote:= > =20 > Hi Takaaki, > =20 > > =5B...=5D > > How about the following setting=3F > > =20 > > (add-hook 'org-mode-hook 'org-tree-slide-mode) > > =20 > > If you have already tried the setting with the latest version of org-= tree-slide, > > and also encountered issues, please let me know the details. > > I'll try to reproduce and fix it. =5B...=5D > =20 > =20 > =20 > Yes, this was exactly my setting. > =20 > At first it breaks org-publish. If I export a file the resulting html > file will only contain the first top level headline and the second, 3rd= > ... level headlines. All other top level headlines are ignored. > Secondly it breaks gnus/message mode when started with a hook to load > orgstruct mode like this: > (add-hook 'message-mode-hook 'turn-on-orgstruct) > When I want to write a new mail only an empty buffer opens with an erro= r > message something like =60before first heading'. > Thirdly I think org-tree-slide should ignore org-agenda or vice versa. > When I open org-agenda frequently the org-tree-slide greeting message > appears in the echo area. Maybe it slows it down... > =20 > henry > =20 > -- =20 > http://literaturlatenight.de -- Takaaki ISHIKAWA GITI, Waseda University ( ' -')b http://about.me/takaxp