Function: cua-restrict-regexp-rectangle

cua-restrict-regexp-rectangle is an interactive and byte-compiled function defined in cua-rect.el.gz.

Signature

(cua-restrict-regexp-rectangle ARG)

Documentation

Restrict rectangle to lines (not) matching regexp.

With prefix argument, toggle restriction.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/emulation/cua-rect.el.gz
(defun cua-restrict-regexp-rectangle (arg)
  "Restrict rectangle to lines (not) matching regexp.
With prefix argument, toggle restriction."
  (interactive "P")
  (let ((r (cua--rectangle-restriction)))
    (if (and r (null (car (cdr r))))
      (if arg
          (cua--rectangle-restriction (car r) nil (not (car (cdr (cdr r)))))
        (cua--rectangle-restriction "" nil nil))
      (cua--rectangle-restriction
       (read-from-minibuffer "Restrict rectangle (regexp): "
                             nil nil nil nil) nil arg))))