unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#8083: cua global mark does much more than it announces
@ 2011-02-20  0:12 Lennart Borgman
  2021-01-20 17:54 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: Lennart Borgman @ 2011-02-20  0:12 UTC (permalink / raw)
  To: 8083, storm

cua-toggle-global-mark doc string says:

  "Set or cancel the global marker.
When the global marker is set, CUA cut and copy commands will automatically
insert the deleted or copied text before the global marker, even when the
global marker is in another buffer.
If the global marker isn't set, set the global marker at point in the current
buffer.  Otherwise jump to the global marker position and cancel it.
With prefix argument, don't jump to global mark when cancelling it."

However when cua global mark is set quite a few other things also
happens. For example self-insert-command is remapped so that the
character you type is inserted at cua global mark.

I think also that this desing is not good . It is surprising to an
uninformed user and it interferes very badly with viper for example.

Kim, could we please remove this? Or do you have another suggestion?





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

* bug#8083: cua global mark does much more than it announces
  2011-02-20  0:12 bug#8083: cua global mark does much more than it announces Lennart Borgman
@ 2021-01-20 17:54 ` Lars Ingebrigtsen
  2021-01-22 10:06   ` Kim Storm
  0 siblings, 1 reply; 3+ messages in thread
From: Lars Ingebrigtsen @ 2021-01-20 17:54 UTC (permalink / raw)
  To: Lennart Borgman; +Cc: 8083, storm

Lennart Borgman <lennart.borgman@gmail.com> writes:

> cua-toggle-global-mark doc string says:
>
>   "Set or cancel the global marker.
> When the global marker is set, CUA cut and copy commands will automatically
> insert the deleted or copied text before the global marker, even when the
> global marker is in another buffer.
> If the global marker isn't set, set the global marker at point in the current
> buffer.  Otherwise jump to the global marker position and cancel it.
> With prefix argument, don't jump to global mark when cancelling it."
>
> However when cua global mark is set quite a few other things also
> happens. For example self-insert-command is remapped so that the
> character you type is inserted at cua global mark.

(I'm going through old bug reports that unfortunately got no response at
the time.)

I've now adjusted the doc string to also mention inserted text in Emacs
28.

> I think also that this desing is not good . It is surprising to an
> uninformed user and it interferes very badly with viper for example.
>
> Kim, could we please remove this? Or do you have another suggestion?

I have no opinion on the functionality itself, but I'm going to guess
that there's not much enthusiasm to change it after all these years, so
I'm closing this bug report.  If people want to work on this, please
respond to the debbugs address and we'll reopen.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





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

* bug#8083: cua global mark does much more than it announces
  2021-01-20 17:54 ` Lars Ingebrigtsen
@ 2021-01-22 10:06   ` Kim Storm
  0 siblings, 0 replies; 3+ messages in thread
From: Kim Storm @ 2021-01-22 10:06 UTC (permalink / raw)
  To: Lars Ingebrigtsen, Lennart Borgman; +Cc: 8083

On 20/01/2021 18.54, Lars Ingebrigtsen wrote:
> Lennart Borgman <lennart.borgman@gmail.com> writes:
>
> However when cua global mark is set quite a few other things also
> happens. For example self-insert-command is remapped so that the
> character you type is inserted at cua global mark.

Yes, that is by design.

The main purpose of the global mark is that you can use it to easily 
reorganizing code.

First you set the global mark to the place where you want to move some code.

Then you successively "mark and move" various pieces of code to the 
global mark (and advance the mark).

Typically, while doing this, you would want to add some "separation 
text" between the pieces of moved code, like whitespace, commas, or 
newlines, and that is why "self-insert" is remapped to insert at the 
global mark.

Quirky but useful :-)

> (I'm going through old bug reports that unfortunately got no response at
> the time.)
>
> I've now adjusted the doc string to also mention inserted text in Emacs
> 28.
Thank you!
>> I think also that this desing is not good . It is surprising to an
>> uninformed user and it interferes very badly with viper for example
>>
>> Kim, could we please remove this? Or do you have another suggestion?

I guess we could make an option to disable that specific feature of the 
global mark.

Kim





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

end of thread, other threads:[~2021-01-22 10:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-20  0:12 bug#8083: cua global mark does much more than it announces Lennart Borgman
2021-01-20 17:54 ` Lars Ingebrigtsen
2021-01-22 10:06   ` Kim Storm

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