emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* missing from the manual
@ 2022-12-24  2:43 Peter Mao
  2022-12-25  8:07 ` Marcin Borkowski
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Peter Mao @ 2022-12-24  2:43 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 352 bytes --]

Dear maintainers,

The following commands are missing from the manual!

org-forward-element
org-backward-element

These two should be mentioned in the manual in section 2.3 "Motion"

I just found them via the *HELP* page for org mode (by accident).  I
thought nothing like them existed in org mode, so I had my own (less well
crafted) commands.

Peter

[-- Attachment #2: Type: text/html, Size: 534 bytes --]

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

* Re: missing from the manual
  2022-12-24  2:43 missing from the manual Peter Mao
@ 2022-12-25  8:07 ` Marcin Borkowski
  2022-12-25  8:19   ` Ihor Radchenko
  2022-12-26 15:03 ` missing from the manual - move commands Max Nikulin
  2023-01-25 13:42 ` [TODO] Document org-forward-element and org-backward-element in the manual (was: missing from the manual) Ihor Radchenko
  2 siblings, 1 reply; 7+ messages in thread
From: Marcin Borkowski @ 2022-12-25  8:07 UTC (permalink / raw)
  To: Peter Mao; +Cc: emacs-orgmode


On 2022-12-24, at 03:43, Peter Mao <peter.mao@gmail.com> wrote:

> Dear maintainers,
>
> The following commands are missing from the manual!
>
> org-forward-element
> org-backward-element
>
> These two should be mentioned in the manual in section 2.3 "Motion"

How are they different from `org-forward-heading-same-level` and
`org-backward-heading-same-level'?  (Not irony etc., I'm genuinely
curious.)

Best,

-- 
Marcin Borkowski
http://mbork.pl


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

* Re: missing from the manual
  2022-12-25  8:07 ` Marcin Borkowski
@ 2022-12-25  8:19   ` Ihor Radchenko
  2022-12-25 21:09     ` Peter Mao
  0 siblings, 1 reply; 7+ messages in thread
From: Ihor Radchenko @ 2022-12-25  8:19 UTC (permalink / raw)
  To: Marcin Borkowski; +Cc: Peter Mao, emacs-orgmode

Marcin Borkowski <mbork@mbork.pl> writes:

>> org-forward-element
>> org-backward-element
>>
>> These two should be mentioned in the manual in section 2.3 "Motion"
>
> How are they different from `org-forward-heading-same-level` and
> `org-backward-heading-same-level'?  (Not irony etc., I'm genuinely
> curious.)

They work on paragraphs, lists, blocks, etc.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>


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

* Re: missing from the manual
  2022-12-25  8:19   ` Ihor Radchenko
@ 2022-12-25 21:09     ` Peter Mao
  0 siblings, 0 replies; 7+ messages in thread
From: Peter Mao @ 2022-12-25 21:09 UTC (permalink / raw)
  To: Ihor Radchenko; +Cc: Marcin Borkowski, emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1223 bytes --]

Also, it moves you to an outer level if you are at an end.

For my own use, because I want the command to treat the first item in a
list the same way as the others (when moving forward), I tweaked
org-forward-element from
(let* ((elem (org-element-at-point))

to:
(let* ((elem (progn
                        (when (equal (car (org-element-at-point))
'plain-list)
                          (forward-char))
                        (org-element-at-point)))

The "backward" version behaves exactly as I would like it to.

Peter

On Sun, Dec 25, 2022 at 12:19 AM Ihor Radchenko <yantar92@posteo.net> wrote:

> Marcin Borkowski <mbork@mbork.pl> writes:
>
> >> org-forward-element
> >> org-backward-element
> >>
> >> These two should be mentioned in the manual in section 2.3 "Motion"
> >
> > How are they different from `org-forward-heading-same-level` and
> > `org-backward-heading-same-level'?  (Not irony etc., I'm genuinely
> > curious.)
>
> They work on paragraphs, lists, blocks, etc.
>
> --
> Ihor Radchenko // yantar92,
> Org mode contributor,
> Learn more about Org mode at <https://orgmode.org/>.
> Support Org development at <https://liberapay.com/org-mode>,
> or support my work at <https://liberapay.com/yantar92>
>

[-- Attachment #2: Type: text/html, Size: 2135 bytes --]

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

* Re: missing from the manual - move commands
  2022-12-24  2:43 missing from the manual Peter Mao
  2022-12-25  8:07 ` Marcin Borkowski
@ 2022-12-26 15:03 ` Max Nikulin
  2022-12-27  1:35   ` Peter Mao
  2023-01-25 13:42 ` [TODO] Document org-forward-element and org-backward-element in the manual (was: missing from the manual) Ihor Radchenko
  2 siblings, 1 reply; 7+ messages in thread
From: Max Nikulin @ 2022-12-26 15:03 UTC (permalink / raw)
  To: Peter Mao, emacs-orgmode

On 24/12/2022 09:43, Peter Mao wrote:
> The following commands are missing from the manual!
> 
> org-forward-element
> org-backward-element

I think, the manual was written with assumption that Emacs users are 
familiar with C-up, M-{, C-down, M-} keystrokes.

> These two should be mentioned in the manual in section 2.3 "Motion"

A as person for whom Emacs is almost solely a note taking application 
(thanks to Org), I do not mind. Perhaps the relevant section from Emacs 
should be mentioned as well.

Someone should take the challenge to extend the info "(org) Motion" 
section in a way informative for novices and not boring for experienced 
Emacs users and to emphasize difference of (maybe familiar) shortcuts 
from the fundamental mode.


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

* Re: missing from the manual - move commands
  2022-12-26 15:03 ` missing from the manual - move commands Max Nikulin
@ 2022-12-27  1:35   ` Peter Mao
  0 siblings, 0 replies; 7+ messages in thread
From: Peter Mao @ 2022-12-27  1:35 UTC (permalink / raw)
  To: Max Nikulin; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 843 bytes --]

On Mon, Dec 26, 2022 at 7:03 AM Max Nikulin <manikulin@gmail.com> wrote:

> On 24/12/2022 09:43, Peter Mao wrote:
> > The following commands are missing from the manual!
> >
> > org-forward-element
> > org-backward-element
>
> I think, the manual was written with assumption that Emacs users are
> familiar with C-up, M-{, C-down, M-} keystrokes.
>
Not everyone uses all of the motion commands.  I've been using emacs since
v18, and forward-paragraph and backward-paragraph have never been part of
my repertoire.

In addition, M-right and M-left, which I have used a lot outside of org,
for decades, behave differently in org, so the existence of motion commands
that are common in emacs (outside of org) do not guarantee an equivalent
inside of org.  BTW, I think M-f and M-b are better anyways, but decades of
muscle memory die hard.

Peter

[-- Attachment #2: Type: text/html, Size: 1179 bytes --]

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

* [TODO] Document org-forward-element and org-backward-element in the manual (was: missing from the manual)
  2022-12-24  2:43 missing from the manual Peter Mao
  2022-12-25  8:07 ` Marcin Borkowski
  2022-12-26 15:03 ` missing from the manual - move commands Max Nikulin
@ 2023-01-25 13:42 ` Ihor Radchenko
  2 siblings, 0 replies; 7+ messages in thread
From: Ihor Radchenko @ 2023-01-25 13:42 UTC (permalink / raw)
  To: Peter Mao; +Cc: emacs-orgmode

Peter Mao <peter.mao@gmail.com> writes:

> Dear maintainers,
>
> The following commands are missing from the manual!
>
> org-forward-element
> org-backward-element
>
> These two should be mentioned in the manual in section 2.3 "Motion"

I think we all agreed that it will be a welcome addition.
This also sounds like something others can easily contribute by editing
doc/org-manual.org. Patches welcome!

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>


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

end of thread, other threads:[~2023-01-25 13:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-24  2:43 missing from the manual Peter Mao
2022-12-25  8:07 ` Marcin Borkowski
2022-12-25  8:19   ` Ihor Radchenko
2022-12-25 21:09     ` Peter Mao
2022-12-26 15:03 ` missing from the manual - move commands Max Nikulin
2022-12-27  1:35   ` Peter Mao
2023-01-25 13:42 ` [TODO] Document org-forward-element and org-backward-element in the manual (was: missing from the manual) Ihor Radchenko

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