emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* active region persistence
@ 2024-08-01  0:39 Samuel Wales
  2024-08-10 15:44 ` Ihor Radchenko
  0 siblings, 1 reply; 5+ messages in thread
From: Samuel Wales @ 2024-08-01  0:39 UTC (permalink / raw)
  To: emacs-orgmode

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

when i select subtrees and m-s-right, they demote, and then i have no
further use for the active region, and have to press c-g.  is it possible
to turn off the persistence of the region so that it follows earlier
behavior and disappears once done?

i have not found a use for the new behavior yet, and would like to revert
if there is a var controlling it.  thanks.  i realize it was a deliberate
decision and must be a very useful one to others.  :)  ^G feels like a "get
out of wrongness" fallback command, not an "expected thing you to to turn
off the region" command.  but that is just me.



-- 
The Kafka Pandemic

A blog about science, health, human rights, and misopathy:
https://thekafkapandemic.blogspot.com

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

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

* Re: active region persistence
  2024-08-01  0:39 active region persistence Samuel Wales
@ 2024-08-10 15:44 ` Ihor Radchenko
  2024-11-13  3:25   ` Samuel Wales
  0 siblings, 1 reply; 5+ messages in thread
From: Ihor Radchenko @ 2024-08-10 15:44 UTC (permalink / raw)
  To: Samuel Wales; +Cc: emacs-orgmode

Samuel Wales <samologist@gmail.com> writes:

> when i select subtrees and m-s-right, they demote, and then i have no
> further use for the active region, and have to press c-g.  is it possible
> to turn off the persistence of the region so that it follows earlier
> behavior and disappears once done?

No, it is currently not possible.

> i have not found a use for the new behavior yet, and would like to revert
> if there is a var controlling it.  thanks.  i realize it was a deliberate
> decision and must be a very useful one to others.  :)  ^G feels like a "get
> out of wrongness" fallback command, not an "expected thing you to to turn
> off the region" command.  but that is just me.

I do not mind a customization, but would like to see more users looking
for it or to see some use case explained. I find it hard to understand
why would people _not_ want to keep the region active :)

-- 
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] 5+ messages in thread

* Re: active region persistence
  2024-08-10 15:44 ` Ihor Radchenko
@ 2024-11-13  3:25   ` Samuel Wales
  2024-11-14 16:38     ` Max Nikulin
  2024-12-27  9:54     ` Ihor Radchenko
  0 siblings, 2 replies; 5+ messages in thread
From: Samuel Wales @ 2024-11-13  3:25 UTC (permalink / raw)
  To: Ihor Radchenko; +Cc: emacs-orgmode

my q is actually why would a user want the region to remain active?
e.g. select region and then m-w deactivates it.

On Sat, Aug 10, 2024 at 8:43 AM Ihor Radchenko <yantar92@posteo.net> wrote:
>
> Samuel Wales <samologist@gmail.com> writes:
>
> > when i select subtrees and m-s-right, they demote, and then i have no
> > further use for the active region, and have to press c-g.  is it possible
> > to turn off the persistence of the region so that it follows earlier
> > behavior and disappears once done?
>
> No, it is currently not possible.
>
> > i have not found a use for the new behavior yet, and would like to revert
> > if there is a var controlling it.  thanks.  i realize it was a deliberate
> > decision and must be a very useful one to others.  :)  ^G feels like a "get
> > out of wrongness" fallback command, not an "expected thing you to to turn
> > off the region" command.  but that is just me.
>
> I do not mind a customization, but would like to see more users looking
> for it or to see some use case explained. I find it hard to understand
> why would people _not_ want to keep the region active :)
>
> --
> 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>



-- 
The Kafka Pandemic

A blog about science, health, human rights, and misopathy:
https://thekafkapandemic.blogspot.com


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

* Re: active region persistence
  2024-11-13  3:25   ` Samuel Wales
@ 2024-11-14 16:38     ` Max Nikulin
  2024-12-27  9:54     ` Ihor Radchenko
  1 sibling, 0 replies; 5+ messages in thread
From: Max Nikulin @ 2024-11-14 16:38 UTC (permalink / raw)
  To: emacs-orgmode

On 13/11/2024 10:25, Samuel Wales wrote:
> my q is actually why would a user want the region to remain active?
> e.g. select region and then m-w deactivates it.
[...]
>>> when i select subtrees and m-s-right, they demote, and then i have no
>>> further use for the active region, and have to press c-g.  is it possible
>>> to turn off the persistence of the region so that it follows earlier
>>> behavior and disappears once done?

E.g. `indent-rigidly' (C-x TAB) requires explicit C-g to deactivate 
region. In some sense changing indentation and heading level are similar.




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

* Re: active region persistence
  2024-11-13  3:25   ` Samuel Wales
  2024-11-14 16:38     ` Max Nikulin
@ 2024-12-27  9:54     ` Ihor Radchenko
  1 sibling, 0 replies; 5+ messages in thread
From: Ihor Radchenko @ 2024-12-27  9:54 UTC (permalink / raw)
  To: Samuel Wales; +Cc: emacs-orgmode

Samuel Wales <samologist@gmail.com> writes:

> my q is actually why would a user want the region to remain active?
> e.g. select region and then m-w deactivates it.

I just pushed a new option `org-edit-keep-region' that controls whether
region is preserved during structure editing.  The new option is on main
branch.

https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=9d5d23602e

-- 
Ihor Radchenko // yantar92,
Org mode maintainer,
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] 5+ messages in thread

end of thread, other threads:[~2024-12-27  9:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-01  0:39 active region persistence Samuel Wales
2024-08-10 15:44 ` Ihor Radchenko
2024-11-13  3:25   ` Samuel Wales
2024-11-14 16:38     ` Max Nikulin
2024-12-27  9:54     ` 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).