diff options
| author | Daniel Mendler <mail@daniel-mendler.de> | 2023-01-20 17:14:08 +0100 |
|---|---|---|
| committer | Daniel Mendler <mail@daniel-mendler.de> | 2023-01-20 17:45:45 +0100 |
| commit | 2aa415a6fa0ab87802e79b119f09746080425bc6 (patch) | |
| tree | 82c108af616e8d24e1787bc5c85dfe4230d2f34b /compat-25.el | |
| parent | 071ce274a4cf63d54b061f478a14e56bea00d01f (diff) | |
compat-29: Add use-region-noncontiguous-p
Diffstat (limited to 'compat-25.el')
| -rw-r--r-- | compat-25.el | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/compat-25.el b/compat-25.el index f0ac3ac..4a4aff9 100644 --- a/compat-25.el +++ b/compat-25.el @@ -73,7 +73,14 @@ usage: (bool-vector &rest OBJECTS)" ;;;; Defined in simple.el ;; `save-excursion' behaved like `save-mark-and-excursion' before 25.1. -(compat-defalias save-mark-and-excursion save-excursion) +(compat-defalias save-mark-and-excursion save-excursion) ;; <compat-tests:save-mark-and-excursion> + +(declare-function region-bounds nil) ;; Defined in compat-26.el +(compat-defun region-noncontiguous-p () ;; <compat-tests:region-noncontiguous-p> + "Return non-nil if the region contains several pieces. +An example is a rectangular region handled as a list of +separate contiguous regions for each line." + (let ((bounds (region-bounds))) (and (cdr bounds) bounds))) ;;;; Defined in subr.el |
