|
From: | Juri Linkov |
Subject: | bug#55234: 28.1; replace-string in rectangle regio |
Date: | Mon, 06 Jun 2022 10:43:20 +0300 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) |
>> (defun rectangle--extract-region (orig &optional delete) >> ... >> (let* ((strs (funcall (if delete >> #'delete-extract-rectangle >> #'extract-rectangle) >> - (region-beginning) (region-end))) >> + ;; Avoid recursive calls >> + (let (rectangle-mark-mode) (region-beginning)) >> + (let (rectangle-mark-mode) (region-end)))) >> (str (mapconcat #'identity strs "\n"))) >> (when (eq last-command 'kill-region) >> ;; Try to prevent kill-region from appending this to some > > Is it intended to - at the end - call the original functions here? Wouldn't it go to infinite recursion when the advice on region-beginning will call region-bounds that calls rectangle--extract-region again?
[Prev in Thread] | Current Thread | [Next in Thread] |