emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: =?utf-8?Q?Fran=C3=A7ois?= Pinard <pinard@iro.umontreal.ca>
Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org
Subject: Re: TAB from within a text
Date: Fri, 03 Feb 2012 10:25:41 -0500	[thread overview]
Message-ID: <2541.1328282741@alphaville> (raw)
In-Reply-To: Message from pinard@iro.umontreal.ca (=?utf-8?Q?Fran=C3=A7ois?= Pinard) of "Fri\, 03 Feb 2012 09\:36\:20 EST." <87zkd0j863.fsf@iro.umontreal.ca>

François Pinard <pinard@iro.umontreal.ca> wrote:

> Hi, everybody.
> 
> Writing a longish text for my coworkers this morning, I notice that I do
> not know a quick way for collapsing the whole set of paragraphs I'm
> currently writing, when their header happens to be many screenfuls above
> point.  I have to first return to that header and do TAB there.  Even
> this return was not evident to me at first.  I wrongly thought that `C-c
> C-u' would do it, but it jumps far too much and lands one level higher
> than I expected.  Then, /(org)Motion node/ taught me that I could use
> `C-c C-j <up>' to this purpose; which is slightly convoluted to me, as I
> always perceived `C-c C-j' as a kind of sophisticated "reveal".
> 

Checking the navigation menu, I thought that

C-c C-p == outline-previous-visible-heading
C-c C-b == org-backward-same-level
C-c C-u == outline-up-heading

(in particular, C-c C-p in this case) would be the more natural choices for
navigation.

C-c C-j == org-goto does a lot more than that - in particular, it is modal
and you have to get out of the mode, e.g. by selecting a location and pressing
<RET>.

> Is it unreasonable for me to hope that, instead of `C-c C-j <up> TAB', a
> mere TAB from within a long text would quickly do what I wanted?
> 

It does seem unreasonable to me, looking from the outside in: TAB is
overworked, overloaded and much too smart for its own good, and you are
asking it to be smarter and do more :-) But I wouldn't dismiss it as
impossible: org itself came about from a similar idea applied to outline.el
Whether it's worth it, I don't know: C-c C-p TAB has worked for me and has
seemed painless enough to me so as not to go looking for something "better".

Nick

  parent reply	other threads:[~2012-02-03 15:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-03 14:36 TAB from within a text François Pinard
2012-02-03 14:50 ` Alan Schmitt
2012-02-03 15:30   ` François Pinard
2012-02-03 15:25 ` Nick Dokos [this message]
2012-02-03 15:36   ` François Pinard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2541.1328282741@alphaville \
    --to=nicholas.dokos@hp.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=pinard@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).