unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* toc on one side, contents on the other ?
@ 2020-06-06 15:54 Jean-Christophe Helary
  2020-06-06 16:04 ` Drew Adams
  0 siblings, 1 reply; 8+ messages in thread
From: Jean-Christophe Helary @ 2020-06-06 15:54 UTC (permalink / raw)
  To: Help Gnu Emacs mailing list

I'm trying to keep an org file TOC in one window and send narrowed buffers to another window, but I can't seem to find how to do that with vanilla org/emacs.


-- 
Jean-Christophe Helary @brandelune
http://mac4translators.blogspot.com




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

* RE: toc on one side, contents on the other ?
  2020-06-06 15:54 toc on one side, contents on the other ? Jean-Christophe Helary
@ 2020-06-06 16:04 ` Drew Adams
  2020-06-06 20:34   ` Eric Abrahamsen
  0 siblings, 1 reply; 8+ messages in thread
From: Drew Adams @ 2020-06-06 16:04 UTC (permalink / raw)
  To: Jean-Christophe Helary, Help Gnu Emacs mailing list

> I'm trying to keep an org file TOC in one window and send narrowed buffers to
> another window, but I can't seem to find how to do that with vanilla
> org/emacs.

Maybe `narrow-indirect.el' will help - dunno.

https://www.emacswiki.org/emacs/NarrowIndirect

You may also need to fiddle with `display-buffer-alist'
or whatever, to get buffers shown where you want them - dunno.



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

* Re: toc on one side, contents on the other ?
  2020-06-06 16:04 ` Drew Adams
@ 2020-06-06 20:34   ` Eric Abrahamsen
  2020-06-06 20:42     ` Drew Adams
  2020-06-07  4:25     ` Jean-Christophe Helary
  0 siblings, 2 replies; 8+ messages in thread
From: Eric Abrahamsen @ 2020-06-06 20:34 UTC (permalink / raw)
  To: Drew Adams; +Cc: Jean-Christophe Helary, Help Gnu Emacs mailing list

Drew Adams <drew.adams@oracle.com> writes:

>> I'm trying to keep an org file TOC in one window and send narrowed buffers to
>> another window, but I can't seem to find how to do that with vanilla
>> org/emacs.
>
> Maybe `narrow-indirect.el' will help - dunno.
>
> https://www.emacswiki.org/emacs/NarrowIndirect
>
> You may also need to fiddle with `display-buffer-alist'
> or whatever, to get buffers shown where you want them - dunno.

Or the org-toc package seems to do this, or almost this. I don't know
if it counts as "vanilla", but it's part of the org-plus-contrib
package.

It doesn't seem to do a narrowing thing by default, but I'll bet it
wouldn't be hard to add.

Actually, thanks for reminding me this exists! It's pretty useful.



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

* RE: toc on one side, contents on the other ?
  2020-06-06 20:34   ` Eric Abrahamsen
@ 2020-06-06 20:42     ` Drew Adams
  2020-06-06 21:28       ` Eric Abrahamsen
  2020-06-07  4:25     ` Jean-Christophe Helary
  1 sibling, 1 reply; 8+ messages in thread
From: Drew Adams @ 2020-06-06 20:42 UTC (permalink / raw)
  To: Eric Abrahamsen; +Cc: Jean-Christophe Helary, Help Gnu Emacs mailing list

> Or the org-toc package seems to do this, or almost this. I don't know
> if it counts as "vanilla", but it's part of the org-plus-contrib
> package.
> 
> It doesn't seem to do a narrowing thing by default, but I'll bet it
> wouldn't be hard to add.
> 
> Actually, thanks for reminding me this exists! It's pretty useful.

You're welcome.  But I didn't consciously remind you
of `org-plus-contrib', if that's what you meant by
"this".  I wasn't even aware of that package. ;-)



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

* Re: toc on one side, contents on the other ?
  2020-06-06 20:42     ` Drew Adams
@ 2020-06-06 21:28       ` Eric Abrahamsen
  0 siblings, 0 replies; 8+ messages in thread
From: Eric Abrahamsen @ 2020-06-06 21:28 UTC (permalink / raw)
  To: Drew Adams; +Cc: Jean-Christophe Helary, Help Gnu Emacs mailing list

Drew Adams <drew.adams@oracle.com> writes:

>> Or the org-toc package seems to do this, or almost this. I don't know
>> if it counts as "vanilla", but it's part of the org-plus-contrib
>> package.
>> 
>> It doesn't seem to do a narrowing thing by default, but I'll bet it
>> wouldn't be hard to add.
>> 
>> Actually, thanks for reminding me this exists! It's pretty useful.
>
> You're welcome.  But I didn't consciously remind you
> of `org-plus-contrib', if that's what you meant by
> "this".  I wasn't even aware of that package. ;-)

I guess I was thanking the thread for its existence :)



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

* Re: toc on one side, contents on the other ?
  2020-06-06 20:34   ` Eric Abrahamsen
  2020-06-06 20:42     ` Drew Adams
@ 2020-06-07  4:25     ` Jean-Christophe Helary
  2020-06-08 13:32       ` Eric S Fraga
  1 sibling, 1 reply; 8+ messages in thread
From: Jean-Christophe Helary @ 2020-06-07  4:25 UTC (permalink / raw)
  To: Eric Abrahamsen; +Cc: Help Gnu Emacs mailing list



> On Jun 7, 2020, at 5:34, Eric Abrahamsen <eric@ericabrahamsen.net> wrote:
> 
> Drew Adams <drew.adams@oracle.com> writes:
> 
>>> I'm trying to keep an org file TOC in one window and send narrowed buffers to
>>> another window, but I can't seem to find how to do that with vanilla
>>> org/emacs.
>> 
>> Maybe `narrow-indirect.el' will help - dunno.
>> 
>> https://www.emacswiki.org/emacs/NarrowIndirect
>> 
>> You may also need to fiddle with `display-buffer-alist'
>> or whatever, to get buffers shown where you want them - dunno.
> 
> Or the org-toc package seems to do this, or almost this. I don't know
> if it counts as "vanilla", but it's part of the org-plus-contrib
> package.

Thank you. I tried it. It was basically what I was looking for.

But, (rant) I just don't like the liberties developers take with the windows layout, which may be based *in part* on the emacs infrastructure.

The way windows popup randomly all over the place and the original layout is never restored is a major annoyance in emacs and this package is no exception.

> It doesn't seem to do a narrowing thing by default, but I'll bet it
> wouldn't be hard to add.

But it refers to the correct header, so that's good enough.


-- 
Jean-Christophe Helary @brandelune
http://mac4translators.blogspot.com




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

* Re: toc on one side, contents on the other ?
  2020-06-07  4:25     ` Jean-Christophe Helary
@ 2020-06-08 13:32       ` Eric S Fraga
  2020-06-08 14:02         ` Jean-Christophe Helary
  0 siblings, 1 reply; 8+ messages in thread
From: Eric S Fraga @ 2020-06-08 13:32 UTC (permalink / raw)
  To: help-gnu-emacs

On Sunday,  7 Jun 2020 at 13:25, Jean-Christophe Helary wrote:
> The way windows popup randomly all over the place and the original
> layout is never restored is a major annoyance in emacs and this
> package is no exception.

There's never a solution to this problem that would satisfy all
unfortunately!

My own solution is to have a frame for each different working area so I
don't have to worry about window arrangements generally.  E.g. I have
one frame for gnus, one or more for agenda (& related), and one each for
any documents I may be working on (code or org or both).

It helps to use a tiling window manager... but YMMV of course!

-- 
Eric S Fraga via Emacs 28.0.50 & org 9.3.7 on Debian bullseye/sid




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

* Re: toc on one side, contents on the other ?
  2020-06-08 13:32       ` Eric S Fraga
@ 2020-06-08 14:02         ` Jean-Christophe Helary
  0 siblings, 0 replies; 8+ messages in thread
From: Jean-Christophe Helary @ 2020-06-08 14:02 UTC (permalink / raw)
  To: Eric S Fraga; +Cc: Help Gnu Emacs mailing list



> On Jun 8, 2020, at 22:32, Eric S Fraga <e.fraga@ucl.ac.uk> wrote:
> 
> On Sunday,  7 Jun 2020 at 13:25, Jean-Christophe Helary wrote:
>> The way windows popup randomly all over the place and the original
>> layout is never restored is a major annoyance in emacs and this
>> package is no exception.
> 
> There's never a solution to this problem that would satisfy all
> unfortunately!
> 
> My own solution is to have a frame for each different working area so I
> don't have to worry about window arrangements generally.  E.g. I have
> one frame for gnus, one or more for agenda (& related), and one each for
> any documents I may be working on (code or org or both).

Thank you Eric.

I've been trying perspectives.el for the last few days. Nice how it "sandboxes" buffers within separate perspectives.



-- 
Jean-Christophe Helary @brandelune
http://mac4translators.blogspot.com




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

end of thread, other threads:[~2020-06-08 14:02 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-06 15:54 toc on one side, contents on the other ? Jean-Christophe Helary
2020-06-06 16:04 ` Drew Adams
2020-06-06 20:34   ` Eric Abrahamsen
2020-06-06 20:42     ` Drew Adams
2020-06-06 21:28       ` Eric Abrahamsen
2020-06-07  4:25     ` Jean-Christophe Helary
2020-06-08 13:32       ` Eric S Fraga
2020-06-08 14:02         ` Jean-Christophe Helary

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