diff options
| author | Juri Linkov | 2005-12-09 09:47:30 +0000 |
|---|---|---|
| committer | Juri Linkov | 2005-12-09 09:47:30 +0000 |
| commit | 9bb3de4b314713ae5e64e137ddb9d8310e71b2f6 (patch) | |
| tree | 53351fceeb6a90e5b41633c904a5451eb59633cb | |
| parent | a46961def2a4a87e00b1485a2903c0e29d562506 (diff) | |
| download | emacs-9bb3de4b314713ae5e64e137ddb9d8310e71b2f6.tar.gz emacs-9bb3de4b314713ae5e64e137ddb9d8310e71b2f6.zip | |
(ispell-highlight-spelling-error-overlay):
Change overlay priority from 1 to 1001. Reuse existing overlay.
| -rw-r--r-- | lisp/textmodes/ispell.el | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el index 99bcc621765..9e81c224855 100644 --- a/lisp/textmodes/ispell.el +++ b/lisp/textmodes/ispell.el | |||
| @@ -2307,11 +2307,13 @@ otherwise it is displayed normally. | |||
| 2307 | 2307 | ||
| 2308 | The variable `ispell-highlight-face' selects the face to use for highlighting." | 2308 | The variable `ispell-highlight-face' selects the face to use for highlighting." |
| 2309 | (if highlight | 2309 | (if highlight |
| 2310 | (progn | 2310 | (if ispell-overlay |
| 2311 | (move-overlay ispell-overlay start end (current-buffer)) | ||
| 2311 | (setq ispell-overlay (make-overlay start end)) | 2312 | (setq ispell-overlay (make-overlay start end)) |
| 2312 | (overlay-put ispell-overlay 'priority 1) ;higher than lazy overlays | 2313 | (overlay-put ispell-overlay 'priority 1001) ;higher than lazy overlays |
| 2313 | (overlay-put ispell-overlay 'face ispell-highlight-face)) | 2314 | (overlay-put ispell-overlay 'face ispell-highlight-face)) |
| 2314 | (delete-overlay ispell-overlay)) | 2315 | (if ispell-overlay |
| 2316 | (delete-overlay ispell-overlay))) | ||
| 2315 | (if (and ispell-lazy-highlight (boundp 'lazy-highlight-cleanup)) | 2317 | (if (and ispell-lazy-highlight (boundp 'lazy-highlight-cleanup)) |
| 2316 | (if highlight | 2318 | (if highlight |
| 2317 | (let ((isearch-string | 2319 | (let ((isearch-string |