aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBasil L. Contovounesios2019-05-01 00:39:54 +0100
committerBasil L. Contovounesios2019-05-01 00:39:54 +0100
commit7dafbe3ab91e838803a84ab388bca03ff985e312 (patch)
tree8637296c281795b40b0b637cce202d0278473147
parent910d170771ac74ab76d6dcb2dda3f3167e01b705 (diff)
downloademacs-7dafbe3ab91e838803a84ab388bca03ff985e312.tar.gz
emacs-7dafbe3ab91e838803a84ab388bca03ff985e312.zip
Minor region-noncontiguous-p simplification
* lisp/simple.el (region-noncontiguous-p): Don't needlessly traverse region-bounds.
-rw-r--r--lisp/simple.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/simple.el b/lisp/simple.el
index 5660f6574f4..acea1f9ddc1 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -5612,7 +5612,7 @@ see `region-noncontiguous-p' and `extract-rectangle-bounds'."
5612 "Return non-nil if the region contains several pieces. 5612 "Return non-nil if the region contains several pieces.
5613An example is a rectangular region handled as a list of 5613An example is a rectangular region handled as a list of
5614separate contiguous regions for each line." 5614separate contiguous regions for each line."
5615 (> (length (region-bounds)) 1)) 5615 (cdr (region-bounds)))
5616 5616
5617(defvar redisplay-unhighlight-region-function 5617(defvar redisplay-unhighlight-region-function
5618 (lambda (rol) (when (overlayp rol) (delete-overlay rol)))) 5618 (lambda (rol) (when (overlayp rol) (delete-overlay rol))))