* lisp/calc/calc.el (calc-grab-region): Heed `rectangle-mark-mode'
(bug#50403).
;;; Code:
(require 'calc-macs)
+(require 'rect)
;; Declare functions which are defined elsewhere.
(declare-function calc-set-language "calc-lang" (lang &optional option no-refresh))
"Parse the region as a vector of numbers and push it on the Calculator stack."
(interactive "r\nP")
(require 'calc-ext)
- (calc-do-grab-region top bot arg))
+ (if rectangle-mark-mode
+ (calc-do-grab-rectangle top bot arg)
+ (calc-do-grab-region top bot arg)))
;;;###autoload
(defun calc-grab-rectangle (top bot arg)