emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-indent-mode makes set-goal-column behave surprising
@ 2024-07-29 10:52 Martin Edström
  2024-08-02 13:25 ` Martin Edström
  0 siblings, 1 reply; 5+ messages in thread
From: Martin Edström @ 2024-07-29 10:52 UTC (permalink / raw)
  To: emacs-orgmode

Hello, pinging back on two old emails that seem related:

https://lists.gnu.org/archive/html/emacs-orgmode/2008-01/msg00030.html
https://lists.gnu.org/archive/html/emacs-orgmode/2011-05/msg00654.html

A bug that can be reproduced on Emacs -Q:

- Open an org file that has subtrees at various levels
- Do M-x org-indent-mode RET
- Go forward a few chars inside a line, then do M-x set-goal-column RET RET
- Now move up and down lines. You'll see that it does not stick to any sensible "goal column".

I myself rely on this technique (set-goal-column), for example to edit the start of each list item in a list, without having to navigate to beginning of line again on each item. But it only works if there are no headings (or org-indent-mode is disabled).


^ permalink raw reply	[flat|nested] 5+ messages in thread
* org-indent-mode makes set-goal-column behave surprising
@ 2024-07-28  9:48 Martin Edström
  2024-09-23 18:06 ` Ihor Radchenko
  0 siblings, 1 reply; 5+ messages in thread
From: Martin Edström @ 2024-07-28  9:48 UTC (permalink / raw)
  To: emacs-orgmode

Hello, pinging back on two old emails that seem related:

https://lists.gnu.org/archive/html/emacs-orgmode/2008-01/msg00030.html
https://lists.gnu.org/archive/html/emacs-orgmode/2011-05/msg00654.html

A bug that can be reproduced on Emacs -Q:

- Open an org file that has subtrees at various levels
- Do M-x org-indent-mode RET
- Go forward a few chars inside a line, then do M-x set-goal-column RET RET
- Now move up and down lines. You'll see that it does not stick to any sensible "goal column".

I myself rely on this technique (set-goal-column), for example to edit the start of each list item in a list, without having to navigate to beginning of line again on each item.  But it only works if there are no headings (or org-indent-mode is disabled).

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

end of thread, other threads:[~2024-09-23 18:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-29 10:52 org-indent-mode makes set-goal-column behave surprising Martin Edström
2024-08-02 13:25 ` Martin Edström
2024-09-23 18:04   ` Ihor Radchenko
  -- strict thread matches above, loose matches on Subject: below --
2024-07-28  9:48 Martin Edström
2024-09-23 18:06 ` 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).