emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-tree-slide as default, sort of
@ 2013-01-28 16:18 henry atting
  2013-01-28 17:17 ` Takaaki ISHIKAWA
  0 siblings, 1 reply; 5+ messages in thread
From: henry atting @ 2013-01-28 16:18 UTC (permalink / raw)
  To: emacs-orgmode

I tried to make org-tree-slide work on every startup of an org file.
Though I did not figure it for the best idea I set an orgmode hook. Now
knowing some of the unwanted side effects this involves I know it actually
is a bad idea.
Is or will it be possible to set this on a per file basis?

henry

-- 
http://literaturlatenight.de

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: org-tree-slide as default, sort of
  2013-01-28 16:18 org-tree-slide as default, sort of henry atting
@ 2013-01-28 17:17 ` Takaaki ISHIKAWA
  2013-01-28 18:37   ` henry atting
  0 siblings, 1 reply; 5+ messages in thread
From: Takaaki ISHIKAWA @ 2013-01-28 17:17 UTC (permalink / raw)
  To: henry atting; +Cc: emacs-orgmode

Dear Henry,


How about the following setting?

(add-hook 'org-mode-hook 'org-tree-slide-mode)

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.

Best,
Takaaki

--
Takaaki ISHIKAWA <takaxp@ieee.org>
  GITI, Waseda University
    ( ' -')b http://about.me/takaxp


On 2013年1月29日Tuesday at 1:18, henry atting wrote:

> I tried to make org-tree-slide work on every startup of an org file.
> Though I did not figure it for the best idea I set an orgmode hook. Now
> knowing some of the unwanted side effects this involves I know it actually
> is a bad idea.
> Is or will it be possible to set this on a per file basis?
>  
> henry
>  
> --  
> http://literaturlatenight.de

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: org-tree-slide as default, sort of
  2013-01-28 17:17 ` Takaaki ISHIKAWA
@ 2013-01-28 18:37   ` henry atting
  2013-01-28 19:33     ` Takaaki ISHIKAWA
  0 siblings, 1 reply; 5+ messages in thread
From: henry atting @ 2013-01-28 18:37 UTC (permalink / raw)
  To: emacs-orgmode


Hi Takaaki,

> [...]
> How about the following setting?
>
> (add-hook 'org-mode-hook 'org-tree-slide-mode)
>
> 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. [...]

Yes, this was exactly my setting.

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 error
message something like `before 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...

henry

-- 
http://literaturlatenight.de

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: org-tree-slide as default, sort of
  2013-01-28 18:37   ` henry atting
@ 2013-01-28 19:33     ` Takaaki ISHIKAWA
  2013-01-28 20:33       ` henry atting
  0 siblings, 1 reply; 5+ messages in thread
From: Takaaki ISHIKAWA @ 2013-01-28 19:33 UTC (permalink / raw)
  To: henry atting; +Cc: emacs-orgmode

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!

In my environment, I cannot reproduce the 2nd case.
Could you test again with the above setting?

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.

Best,
Takaaki


On 2013年1月29日Tuesday at 3:37, henry atting wrote:

>  
> Hi Takaaki,
>  
> > [...]
> > How about the following setting?
> >  
> > (add-hook 'org-mode-hook 'org-tree-slide-mode)
> >  
> > 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. [...]
>  
>  
>  
> Yes, this was exactly my setting.
>  
> 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 error
> message something like `before 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...
>  
> henry
>  
> --  
> http://literaturlatenight.de

--
Takaaki ISHIKAWA <takaxp@ieee.org>
  GITI, Waseda University
    ( ' -')b http://about.me/takaxp

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: org-tree-slide as default, sort of
  2013-01-28 19:33     ` Takaaki ISHIKAWA
@ 2013-01-28 20:33       ` henry atting
  0 siblings, 0 replies; 5+ messages in thread
From: henry atting @ 2013-01-28 20:33 UTC (permalink / raw)
  To: emacs-orgmode; +Cc: takaxp


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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-01-28 20:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-28 16:18 org-tree-slide as default, sort of henry atting
2013-01-28 17:17 ` Takaaki ISHIKAWA
2013-01-28 18:37   ` henry atting
2013-01-28 19:33     ` Takaaki ISHIKAWA
2013-01-28 20:33       ` henry atting

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).