unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#50403: 27.2; calc-grab-region should check rectangle-mark-mode
@ 2021-09-05 16:24 Howard Melman
  2021-09-06  9:19 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 5+ messages in thread
From: Howard Melman @ 2021-09-05 16:24 UTC (permalink / raw)
  To: 50403

calc-grab-region should check if rectangle-mark-mode is
non-nil and if so it should behave as calc-grab-rectangle
otherwise it should work as it does.

This would allow a single keybinding of calc-grab-region to
serve both purposes for those users that use
rectangle-mark-mode. 

In GNU Emacs 27.2 (build 1, x86_64-apple-darwin18.7.0, Carbon Version 158 AppKit 1671.6)
of 2021-03-27 built on Traviss-Mac.local

-- 

Howard





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

* bug#50403: 27.2; calc-grab-region should check rectangle-mark-mode
  2021-09-05 16:24 bug#50403: 27.2; calc-grab-region should check rectangle-mark-mode Howard Melman
@ 2021-09-06  9:19 ` Lars Ingebrigtsen
  2021-09-06  9:37   ` Mattias Engdegård
  0 siblings, 1 reply; 5+ messages in thread
From: Lars Ingebrigtsen @ 2021-09-06  9:19 UTC (permalink / raw)
  To: Howard Melman; +Cc: Mattias Engdegård, 50403

Howard Melman <hmelman@gmail.com> writes:

> calc-grab-region should check if rectangle-mark-mode is
> non-nil and if so it should behave as calc-grab-rectangle
> otherwise it should work as it does.
>
> This would allow a single keybinding of calc-grab-region to
> serve both purposes for those users that use
> rectangle-mark-mode. 

I think that sounds reasonable, but I don't use calc much myself.  I've
added Mattias to the CCs; perhaps he has an opinion here.

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





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

* bug#50403: 27.2; calc-grab-region should check rectangle-mark-mode
  2021-09-06  9:19 ` Lars Ingebrigtsen
@ 2021-09-06  9:37   ` Mattias Engdegård
  2021-09-06 10:56     ` Lars Ingebrigtsen
  0 siblings, 1 reply; 5+ messages in thread
From: Mattias Engdegård @ 2021-09-06  9:37 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: Howard Melman, 50403

6 sep. 2021 kl. 11.19 skrev Lars Ingebrigtsen <larsi@gnus.org>:

> I think that sounds reasonable, but I don't use calc much myself.  I've
> added Mattias to the CCs; perhaps he has an opinion here.

Only that he agrees with the previous speakers!

For that matter, in an ideal world the Emacs region/selection would be:

(1) independent of point and mark
(2) of arbitrary shape (linear, rectangular, possibly discontiguous)
(3) represented by an abstract object type in Lisp

and all operations on the region should be able to cope with any shape, with useful behaviour for special cases.






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

* bug#50403: 27.2; calc-grab-region should check rectangle-mark-mode
  2021-09-06  9:37   ` Mattias Engdegård
@ 2021-09-06 10:56     ` Lars Ingebrigtsen
  2021-09-06 11:22       ` Mattias Engdegård
  0 siblings, 1 reply; 5+ messages in thread
From: Lars Ingebrigtsen @ 2021-09-06 10:56 UTC (permalink / raw)
  To: Mattias Engdegård; +Cc: Howard Melman, 50403

Mattias Engdegård <mattiase@acm.org> writes:

> 6 sep. 2021 kl. 11.19 skrev Lars Ingebrigtsen <larsi@gnus.org>:
>
>> I think that sounds reasonable, but I don't use calc much myself.  I've
>> added Mattias to the CCs; perhaps he has an opinion here.
>
> Only that he agrees with the previous speakers!

OK; I've now pushed this change to Emacs 28.

> For that matter, in an ideal world the Emacs region/selection would be:
>
> (1) independent of point and mark
> (2) of arbitrary shape (linear, rectangular, possibly discontiguous)
> (3) represented by an abstract object type in Lisp
>
> and all operations on the region should be able to cope with any
> shape, with useful behaviour for special cases.

Indeed.  It's a bit ad hoc currently.

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





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

* bug#50403: 27.2; calc-grab-region should check rectangle-mark-mode
  2021-09-06 10:56     ` Lars Ingebrigtsen
@ 2021-09-06 11:22       ` Mattias Engdegård
  0 siblings, 0 replies; 5+ messages in thread
From: Mattias Engdegård @ 2021-09-06 11:22 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: Howard Melman, 50403

6 sep. 2021 kl. 12.56 skrev Lars Ingebrigtsen <larsi@gnus.org>:

> OK; I've now pushed this change to Emacs 28.

Thank you!






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

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

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-05 16:24 bug#50403: 27.2; calc-grab-region should check rectangle-mark-mode Howard Melman
2021-09-06  9:19 ` Lars Ingebrigtsen
2021-09-06  9:37   ` Mattias Engdegård
2021-09-06 10:56     ` Lars Ingebrigtsen
2021-09-06 11:22       ` Mattias Engdegård

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