diff options
| author | Richard M. Stallman | 1993-06-13 21:43:15 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-06-13 21:43:15 +0000 |
| commit | 82318db5ea5b898910d7ccbaa2afc057c9528e60 (patch) | |
| tree | bed7efff4fff370d02980e5bc54003a47d1a249d | |
| parent | eca5b04cf9929953c4a711795703ff8bd063e5d7 (diff) | |
| download | emacs-82318db5ea5b898910d7ccbaa2afc057c9528e60.tar.gz emacs-82318db5ea5b898910d7ccbaa2afc057c9528e60.zip | |
(isearch-highlight): If no face `isearch', use `region'.
| -rw-r--r-- | lisp/isearch.el | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/isearch.el b/lisp/isearch.el index 46b9e0c978b..6ac5fb62d0e 100644 --- a/lisp/isearch.el +++ b/lisp/isearch.el | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | 4 | ||
| 5 | ;; Author: Daniel LaLiberte <liberte@cs.uiuc.edu> | 5 | ;; Author: Daniel LaLiberte <liberte@cs.uiuc.edu> |
| 6 | 6 | ||
| 7 | ;; |$Date: 1993/06/06 22:11:22 $|$Revision: 1.41 $ | 7 | ;; |$Date: 1993/06/09 11:53:58 $|$Revision: 1.42 $ |
| 8 | 8 | ||
| 9 | ;; This file is not yet part of GNU Emacs, but it is based almost | 9 | ;; This file is not yet part of GNU Emacs, but it is based almost |
| 10 | ;; entirely on isearch.el which is part of GNU Emacs. | 10 | ;; entirely on isearch.el which is part of GNU Emacs. |
| @@ -1332,11 +1332,13 @@ If there is no completion possible, say so and continue searching." | |||
| 1332 | (defvar isearch-overlay nil) | 1332 | (defvar isearch-overlay nil) |
| 1333 | 1333 | ||
| 1334 | (defun isearch-highlight (beg end) | 1334 | (defun isearch-highlight (beg end) |
| 1335 | (if (or (null search-highlight) (not (internal-find-face 'isearch nil))) | 1335 | (if (null search-highlight) |
| 1336 | nil | 1336 | nil |
| 1337 | (or isearch-overlay (setq isearch-overlay (make-overlay beg end))) | 1337 | (or isearch-overlay (setq isearch-overlay (make-overlay beg end))) |
| 1338 | (move-overlay isearch-overlay beg end (current-buffer)) | 1338 | (move-overlay isearch-overlay beg end (current-buffer)) |
| 1339 | (overlay-put isearch-overlay 'face 'isearch))) | 1339 | (overlay-put isearch-overlay 'face |
| 1340 | (if (internal-find-face 'isearch nil) | ||
| 1341 | 'isearch 'region)))) | ||
| 1340 | 1342 | ||
| 1341 | (defun isearch-dehighlight (totally) | 1343 | (defun isearch-dehighlight (totally) |
| 1342 | (if isearch-overlay | 1344 | (if isearch-overlay |