emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Ediff org files starts folded
@ 2017-10-25 14:04 Alex Branham
  2017-10-25 14:55 ` Tory S. Anderson
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Alex Branham @ 2017-10-25 14:04 UTC (permalink / raw)
  To: Org-mode

Hello -

Whenever I ediff an org file, the three windows start with the content folded and out of site. I have to navigate to windows A, B, and C and hit S-<TAB> until everything is visible. Does anyone know a way to start org mode files unfolded when ediffing them?

Thanks!
Alex

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

* Re: Ediff org files starts folded
  2017-10-25 14:04 Alex Branham
@ 2017-10-25 14:55 ` Tory S. Anderson
  2017-10-25 15:02   ` Neil Jerram
  2017-10-25 18:25 ` Jorge Morais Neto
  2017-10-25 18:30 ` Oleh Krehel
  2 siblings, 1 reply; 8+ messages in thread
From: Tory S. Anderson @ 2017-10-25 14:55 UTC (permalink / raw)
  To: Alex Branham; +Cc: Org-mode

I've wondered the same thing. Normally I just manually <S-TAB> and 
open all bullets before ediffing, but this assumes, of course, 
that the file is already open. 

Alex Branham <alex.branham@gmail.com> writes:

> Hello -
>
> Whenever I ediff an org file, the three windows start with the 
> content folded and out of site. I have to navigate to windows A, 
> B, and C and hit S-<TAB> until everything is visible. Does 
> anyone know a way to start org mode files unfolded when ediffing 
> them?
>
> Thanks!
> Alex

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

* Re: Ediff org files starts folded
  2017-10-25 14:55 ` Tory S. Anderson
@ 2017-10-25 15:02   ` Neil Jerram
  0 siblings, 0 replies; 8+ messages in thread
From: Neil Jerram @ 2017-10-25 15:02 UTC (permalink / raw)
  To: Tory S. Anderson, Alex Branham; +Cc: Org-mode

org-startup-folded nil


On 25/10/17 15:55, Tory S. Anderson wrote:
> I've wondered the same thing. Normally I just manually <S-TAB> and 
> open all bullets before ediffing, but this assumes, of course, that 
> the file is already open.
> Alex Branham <alex.branham@gmail.com> writes:
>
>> Hello -
>>
>> Whenever I ediff an org file, the three windows start with the 
>> content folded and out of site. I have to navigate to windows A, B, 
>> and C and hit S-<TAB> until everything is visible. Does anyone know a 
>> way to start org mode files unfolded when ediffing them?
>>
>> Thanks!
>> Alex
>

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

* Re: Ediff org files starts folded
  2017-10-25 14:04 Alex Branham
  2017-10-25 14:55 ` Tory S. Anderson
@ 2017-10-25 18:25 ` Jorge Morais Neto
  2017-10-25 18:30 ` Oleh Krehel
  2 siblings, 0 replies; 8+ messages in thread
From: Jorge Morais Neto @ 2017-10-25 18:25 UTC (permalink / raw)
  To: Alex Branham; +Cc: Org-mode

On 25 October 2017 at 12:04, Alex Branham <alex.branham@gmail.com> wrote:
> Whenever I ediff an org file, the three windows start with the content folded and out of site. I have to navigate to windows A, B, and C and hit S-<TAB> until everything is visible. Does anyone know a way to start org mode files unfolded when ediffing them?

Spacemacs automatically unfolds both buffers when ediff’ing Org Mode.  I
suppose the mechanism is the presence of ~'show-all~ in
~ediff-prepare-buffer-hook~.  The downside is that, when you finish
ediff’ing, the affected Org buffers are still completely unfolded.

If you want this behavior, perhaps you should use the new function name
– ~outline-show-all~ – instead, because ~show-all~ is an obsolete alias
since GNU Emacs 25.1.

Regards

-- 
- I am Brazilian.  I hope my English is correct and I welcome feedback
- Please adopt free formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z
- Free (as in free speech) software for Android: https://f-droid.org/

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

* Re: Ediff org files starts folded
  2017-10-25 14:04 Alex Branham
  2017-10-25 14:55 ` Tory S. Anderson
  2017-10-25 18:25 ` Jorge Morais Neto
@ 2017-10-25 18:30 ` Oleh Krehel
  2017-10-25 18:43   ` Alex Branham
  2017-11-02 23:54   ` Stig Brautaset
  2 siblings, 2 replies; 8+ messages in thread
From: Oleh Krehel @ 2017-10-25 18:30 UTC (permalink / raw)
  To: Alex Branham; +Cc: Org-mode

Here's what I use:

(defun ora-ediff-prepare-buffer ()
  (when (memq major-mode '(org-mode emacs-lisp-mode))
    (outline-show-all)))

(add-hook 'ediff-prepare-buffer-hook 'ora-ediff-prepare-buffer)

regards,
Oleh

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

* Re: Ediff org files starts folded
  2017-10-25 18:30 ` Oleh Krehel
@ 2017-10-25 18:43   ` Alex Branham
  2017-11-02 23:54   ` Stig Brautaset
  1 sibling, 0 replies; 8+ messages in thread
From: Alex Branham @ 2017-10-25 18:43 UTC (permalink / raw)
  To: Oleh Krehel; +Cc: Org-mode

Thanks, I think this does exactly what I was looking for!

Alex

On Wed 25 Oct 2017 at 18:30, Oleh Krehel <ohwoeowho@gmail.com> wrote:

> Here's what I use:
>
> (defun ora-ediff-prepare-buffer ()
>   (when (memq major-mode '(org-mode emacs-lisp-mode))
>     (outline-show-all)))
>
> (add-hook 'ediff-prepare-buffer-hook 'ora-ediff-prepare-buffer)
>
> regards,
> Oleh

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

* Re: Ediff org files starts folded
       [not found] <mailman.97.1509033615.24552.emacs-orgmode@gnu.org>
@ 2017-10-26 17:31 ` edgar
  0 siblings, 0 replies; 8+ messages in thread
From: edgar @ 2017-10-26 17:31 UTC (permalink / raw)
  To: emacs-orgmode

Yeah, it would be nice to have something that folds the tree back to its 
original state after the ediff! (excitement)

-------------------------------------------------

ONLY AT VFEmail! - Use our Metadata Mitigator to keep your email out of the NSA's hands!
$24.95 ONETIME Lifetime accounts with Privacy Features!  
15GB disk! No bandwidth quotas!
Commercial and Bulk Mail Options!  

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

* Re: Ediff org files starts folded
  2017-10-25 18:30 ` Oleh Krehel
  2017-10-25 18:43   ` Alex Branham
@ 2017-11-02 23:54   ` Stig Brautaset
  1 sibling, 0 replies; 8+ messages in thread
From: Stig Brautaset @ 2017-11-02 23:54 UTC (permalink / raw)
  To: Oleh Krehel; +Cc: Alex Branham, Org-mode


Oleh Krehel <ohwoeowho@gmail.com> writes:

> Here's what I use:
>
> (defun ora-ediff-prepare-buffer ()
>   (when (memq major-mode '(org-mode emacs-lisp-mode))
>     (outline-show-all)))
>
> (add-hook 'ediff-prepare-buffer-hook 'ora-ediff-prepare-buffer)

Thank you! This works very well for me. It's been on my TODO list to
figure out how to do this for a while.

Stig

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

end of thread, other threads:[~2017-11-02 23:54 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <mailman.97.1509033615.24552.emacs-orgmode@gnu.org>
2017-10-26 17:31 ` Ediff org files starts folded edgar
2017-10-25 14:04 Alex Branham
2017-10-25 14:55 ` Tory S. Anderson
2017-10-25 15:02   ` Neil Jerram
2017-10-25 18:25 ` Jorge Morais Neto
2017-10-25 18:30 ` Oleh Krehel
2017-10-25 18:43   ` Alex Branham
2017-11-02 23:54   ` Stig Brautaset

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).