diff options
Diffstat (limited to 'lisp/simple.el')
| -rw-r--r-- | lisp/simple.el | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/simple.el b/lisp/simple.el index f798cd43847..441713a18b8 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -5410,11 +5410,15 @@ also checks the value of `use-empty-active-region'." | |||
| 5410 | ;; region is active when there's no mark. | 5410 | ;; region is active when there's no mark. |
| 5411 | (progn (cl-assert (mark)) t))) | 5411 | (progn (cl-assert (mark)) t))) |
| 5412 | 5412 | ||
| 5413 | (defun region-bounds () | ||
| 5414 | "Return the boundaries of the region as a list of (START . END) positions." | ||
| 5415 | (funcall region-extract-function 'bounds)) | ||
| 5416 | |||
| 5413 | (defun region-noncontiguous-p () | 5417 | (defun region-noncontiguous-p () |
| 5414 | "Return non-nil if the region contains several pieces. | 5418 | "Return non-nil if the region contains several pieces. |
| 5415 | An example is a rectangular region handled as a list of | 5419 | An example is a rectangular region handled as a list of |
| 5416 | separate contiguous regions for each line." | 5420 | separate contiguous regions for each line." |
| 5417 | (> (length (funcall region-extract-function 'bounds)) 1)) | 5421 | (> (length (region-bounds)) 1)) |
| 5418 | 5422 | ||
| 5419 | (defvar redisplay-unhighlight-region-function | 5423 | (defvar redisplay-unhighlight-region-function |
| 5420 | (lambda (rol) (when (overlayp rol) (delete-overlay rol)))) | 5424 | (lambda (rol) (when (overlayp rol) (delete-overlay rol)))) |
| @@ -7568,7 +7572,7 @@ More precisely, a char with closeparen syntax is self-inserted.") | |||
| 7568 | 7572 | ||
| 7569 | ;; This executes C-g typed while Emacs is waiting for a command. | 7573 | ;; This executes C-g typed while Emacs is waiting for a command. |
| 7570 | ;; Quitting out of a program does not go through here; | 7574 | ;; Quitting out of a program does not go through here; |
| 7571 | ;; that happens in the QUIT macro at the C code level. | 7575 | ;; that happens in the maybe_quit function at the C code level. |
| 7572 | (defun keyboard-quit () | 7576 | (defun keyboard-quit () |
| 7573 | "Signal a `quit' condition. | 7577 | "Signal a `quit' condition. |
| 7574 | During execution of Lisp code, this character causes a quit directly. | 7578 | During execution of Lisp code, this character causes a quit directly. |