diff options
| author | Karl Heuer | 1995-12-21 18:08:12 +0000 |
|---|---|---|
| committer | Karl Heuer | 1995-12-21 18:08:12 +0000 |
| commit | 29fc44ddbc1343e899e22ab55e62d092b8898a5c (patch) | |
| tree | feebd330bdebc0dc81f46752023267d6cb87974a | |
| parent | b55535f3b0e92c9a597ea97d6896bfc35b41a79c (diff) | |
| download | emacs-29fc44ddbc1343e899e22ab55e62d092b8898a5c.tar.gz emacs-29fc44ddbc1343e899e22ab55e62d092b8898a5c.zip | |
(blink-matching-paren-on-screen): New variable.
(blink-matching-open): Obey it.
(shell-command-on-region): If current buffer is
*Shell Command Output*, use the replacement case.
| -rw-r--r-- | lisp/simple.el | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/lisp/simple.el b/lisp/simple.el index fa442280255..e58213e27fc 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -865,7 +865,8 @@ In either case, the output is inserted after point (leaving mark after it)." | |||
| 865 | current-prefix-arg))) | 865 | current-prefix-arg))) |
| 866 | (if (or replace | 866 | (if (or replace |
| 867 | (and output-buffer | 867 | (and output-buffer |
| 868 | (not (or (bufferp output-buffer) (stringp output-buffer))))) | 868 | (not (or (bufferp output-buffer) (stringp output-buffer)))) |
| 869 | (equal (buffer-name (current-buffer)) "*Shell Command Output*")) | ||
| 869 | ;; Replace specified region with output from command. | 870 | ;; Replace specified region with output from command. |
| 870 | (let ((swap (and replace (< start end)))) | 871 | (let ((swap (and replace (< start end)))) |
| 871 | ;; Don't muck with mark unless REPLACE says we should. | 872 | ;; Don't muck with mark unless REPLACE says we should. |
| @@ -2610,6 +2611,11 @@ in the mode line." | |||
| 2610 | (defvar blink-matching-paren t | 2611 | (defvar blink-matching-paren t |
| 2611 | "*Non-nil means show matching open-paren when close-paren is inserted.") | 2612 | "*Non-nil means show matching open-paren when close-paren is inserted.") |
| 2612 | 2613 | ||
| 2614 | (defvar blink-matching-paren-on-screen t | ||
| 2615 | "*Non-nil means show matching open-paren when it is on screen. | ||
| 2616 | nil means don't show it (but the open-paren can still be shown | ||
| 2617 | when it is off screen.") | ||
| 2618 | |||
| 2613 | (defconst blink-matching-paren-distance 12000 | 2619 | (defconst blink-matching-paren-distance 12000 |
| 2614 | "*If non-nil, is maximum distance to search for matching open-paren.") | 2620 | "*If non-nil, is maximum distance to search for matching open-paren.") |
| 2615 | 2621 | ||
| @@ -2657,7 +2663,8 @@ in the mode line." | |||
| 2657 | (progn | 2663 | (progn |
| 2658 | (goto-char blinkpos) | 2664 | (goto-char blinkpos) |
| 2659 | (if (pos-visible-in-window-p) | 2665 | (if (pos-visible-in-window-p) |
| 2660 | (sit-for blink-matching-delay) | 2666 | (and blink-matching-paren-on-screen |
| 2667 | (sit-for blink-matching-delay)) | ||
| 2661 | (goto-char blinkpos) | 2668 | (goto-char blinkpos) |
| 2662 | (message | 2669 | (message |
| 2663 | "Matches %s" | 2670 | "Matches %s" |