* [sdl.web@gmail.com: misbehaviour of outline-backward-same-level]
@ 2007-04-13 1:41 Richard Stallman
2007-04-13 8:08 ` Thien-Thi Nguyen
0 siblings, 1 reply; 4+ messages in thread
From: Richard Stallman @ 2007-04-13 1:41 UTC (permalink / raw)
To: emacs-devel
Would someone please DTRT and ack?
------- Start of forwarded message -------
X-Spam-Status: No, score=0.0 required=5.0 tests=UNPARSEABLE_RELAY
autolearn=failed version=3.1.0
From: Leo <sdl.web@gmail.com>
To: emacs-pretest-bug@gnu.org
Date: Thu, 12 Apr 2007 11:53:09 +0100
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
Subject: misbehaviour of outline-backward-same-level
- --=-=-=
`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
- --=-=-=
Content-Disposition: attachment; filename=sample.txt
Content-Description: sample.txt
- -*-outline-*-
This is some random text.
* Head 1
* Head 2
** Item 1
** Item 2
* Head 3
- --=-=-=
The bug causes some trouble in org mode (which derives from outline
mode). See:
http://permalink.gmane.org/gmane.emacs.orgmode/1570
- --
Leo
- --=-=-=
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
emacs-pretest-bug mailing list
emacs-pretest-bug@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
- --=-=-=--
------- End of forwarded message -------
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [sdl.web@gmail.com: misbehaviour of outline-backward-same-level]
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
0 siblings, 1 reply; 4+ messages in thread
From: Thien-Thi Nguyen @ 2007-04-13 8:08 UTC (permalink / raw)
To: sdl.web; +Cc: emacs-devel
() 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.
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?
thi
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [sdl.web@gmail.com: misbehaviour of outline-backward-same-level]
2007-04-13 8:08 ` Thien-Thi Nguyen
@ 2007-04-13 8:36 ` Leo
2007-04-13 8:52 ` Leo
0 siblings, 1 reply; 4+ messages in thread
From: Leo @ 2007-04-13 8:36 UTC (permalink / raw)
To: emacs-devel
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)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [sdl.web@gmail.com: misbehaviour of outline-backward-same-level]
2007-04-13 8:36 ` Leo
@ 2007-04-13 8:52 ` Leo
0 siblings, 0 replies; 4+ messages in thread
From: Leo @ 2007-04-13 8:52 UTC (permalink / raw)
To: emacs-devel
----- Me (2007-04-13) wrote:-----
>> 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.
To see the consistency, compare:
| elisp | outline |
|-------+---------|
| C-M-a | C-c C-p |
| C-M-e | C-c C-n |
So now I believe...
> 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.
the behavior with Chong's patch is more correct.
--
Leo <sdl.web AT gmail.com> (GPG Key: 9283AA3F)
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-04-13 8:52 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2007-04-13 8:52 ` Leo
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.