unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Leo <sdl.web@gmail.com>
To: emacs-devel@gnu.org
Subject: Re: [sdl.web@gmail.com: misbehaviour of outline-backward-same-level]
Date: Fri, 13 Apr 2007 09:36:53 +0100	[thread overview]
Message-ID: <m2slb4k6vu.fsf@sl392.st-edmunds.cam.ac.uk> (raw)
In-Reply-To: 874pnk1ytk.fsf@ambire.localdomain

Dear Thien-Thi,

----- Thien-Thi Nguyen (2007-04-13) wrote:-----

> () Richard Stallman <rms@gnu.org>
> () Thu, 12 Apr 2007 21:41:44 -0400
>
>    `outline-backward-same-level' will move from a heading line to a
>    non-heading line when on the first level-1 heading.
>
>    To reproduce:
>       o  Open the attached file
>       o  Go to "* Head 1"
>       o  "C-c C-b" (which runs the command outline-backward-same-level)
>       o  Cursor moved to the first line of the buffer
>
> docstring sez:
>
>    Move backward to the ARG'th subheading at same level as this one.
>    Stop at the first and last subheadings of a superior heading.
>
> since there is no superior level for the top-level, the current
> behavior seems reasonable.  it is analogous to what happens when you
> hold down `C-M-a' in ~/.emacs; it is coherent in that respect for the
> general "go backward before first top-level" case.  i see no need to
> change it.

However, C-M-e can then move back to the defun while C-c C-f
('outline-forward-same-level') won't, i.e. users are trapped in the area
above the first heading.

So it needs fixing, one way or the other. But for consistency, fixing
C-c C-f is acceptable also.

> if downstream code depends on some particular non-standard behavior,
> then i would urge those dependencies to be examined and either removed
> or reworked.
>
> on the other hand, in similar spirit i suggested postponing the
> definition of `turn-off-hideshow' but that was not agreed upon, so
> perhaps my interpretation of the vague concepts of cohesion, harmony
> and long-term maintenance burden, are themselves not "in the outline"
> (yuk yuk) of the emacs hackers' practice.
>
> in any case, what is the dependency?  ie, how does org mode misbehave
> given current `outline-backward-same-level' behavior?

Org uses outline's functions for navigating. So it has exactly the same
behavior as outline.

regards,
-- 
Leo <sdl.web AT gmail.com>                         (GPG Key: 9283AA3F)

  reply	other threads:[~2007-04-13  8:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-13  1:41 [sdl.web@gmail.com: misbehaviour of outline-backward-same-level] Richard Stallman
2007-04-13  8:08 ` Thien-Thi Nguyen
2007-04-13  8:36   ` Leo [this message]
2007-04-13  8:52     ` Leo

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.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=m2slb4k6vu.fsf@sl392.st-edmunds.cam.ac.uk \
    --to=sdl.web@gmail.com \
    --cc=emacs-devel@gnu.org \
    /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.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).