Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

bug#12389: 24.2.50; mark, transient-mark-mode and registers

2 views
Skip to first unread message

Jambunathan K

unread,
Sep 8, 2012, 3:10:04 PM9/8/12
to 12...@debbugs.gnu.org

Full disclosure: I use transient-mark-mode.

Item-1
======

My upvotes for de-activating mark after `prepend-to-register' and
`append-to-register.

I always use C-g after append-to-register. If I don't, I find the
highlighted region expanding with cursor motion annoying.


Discussions on Bug#10056 seem to suggest that the current position is
ambivalent. The discussion seems to favor status quo rather than
provide a use case that will support the status quo.

http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10056#26

Item-2
======

1. Enable transient-mark-mode
2. C-SPC
3. <down> <down>
4. C-g
5. C-u C-x r s a

Now as a transient mark user, I find disappearance of a non-highlighted
text in (5) surprising. Comments?





In GNU Emacs 24.2.50.19 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
of 2012-09-09 on debian-6.05
Bzr revision: 109935 el...@gnu.org-20120908112032-bpwxcs4nm9livigz
Windowing system distributor `The X.Org Foundation', version 11.0.10707000
Important settings:
value of $LANG: en_IN
locale-coding-system: iso-latin-1-unix
default enable-multibyte-characters: t




Stefan Monnier

unread,
Sep 8, 2012, 4:17:32 PM9/8/12
to Jambunathan K, 12...@debbugs.gnu.org
> Item-1
> ======
> My upvotes for de-activating mark after `prepend-to-register' and
> `append-to-register.

Fine by me.

> Item-2
> ======
> 1. Enable transient-mark-mode
> 2. C-SPC
> 3. <down> <down>
> 4. C-g
> 5. C-u C-x r s a

That's normal: the same happens with C-w instead of C-u C-x r s a.

> Now as a transient mark user, I find disappearance of a non-highlighted
> text in (5) surprising. Comments?

What did you expect to happen? That the text is copied but not deleted?
Or that neither happens and you get an error.
If you want an error, you can set mark-even-if-inactive to nil.


Stefan



Jambunathan K

unread,
Oct 3, 2012, 10:31:04 AM10/3/12
to Stefan Monnier, 12...@debbugs.gnu.org
Stefan Monnier <mon...@iro.umontreal.ca> writes:

>> Item-1
>> ======
>> My upvotes for de-activating mark after `prepend-to-register' and
>> `append-to-register.
>
> Fine by me.

I am attaching a patch.

Please leave the bug open. I will continue my discussion on Item-2
sometime later.

bug12389.diff

Stefan Monnier

unread,
Oct 6, 2012, 1:16:43 PM10/6/12
to Jambunathan K, 12...@debbugs.gnu.org
> I am attaching a patch.

Thanks, installed,


Stefan



0 new messages