projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
910d170
)
Minor region-noncontiguous-p simplification
author
Basil L. Contovounesios
<contovob@tcd.ie>
Tue, 30 Apr 2019 23:39:54 +0000
(
00:39
+0100)
committer
Basil L. Contovounesios
<contovob@tcd.ie>
Tue, 30 Apr 2019 23:39:54 +0000
(
00:39
+0100)
* lisp/simple.el (region-noncontiguous-p): Don't needlessly traverse
region-bounds.
lisp/simple.el
patch
|
blob
|
history
diff --git
a/lisp/simple.el
b/lisp/simple.el
index 5660f6574f4d3022a70c7e1a6f90f6c10b1b2a2e..acea1f9ddc104d9413998bc30633aecad9eea35c 100644
(file)
--- a/
lisp/simple.el
+++ b/
lisp/simple.el
@@
-5612,7
+5612,7
@@
see `region-noncontiguous-p' and `extract-rectangle-bounds'."
"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."
- (
> (length (region-bounds)) 1
))
+ (
cdr (region-bounds)
))
(defvar redisplay-unhighlight-region-function
(lambda (rol) (when (overlayp rol) (delete-overlay rol))))