[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master c89dc9d 08/23: Remove XEmacs and old Emacs highligh
From: |
Reuben Thomas |
Subject: |
[Emacs-diffs] master c89dc9d 08/23: Remove XEmacs and old Emacs highlighting code |
Date: |
Tue, 13 Dec 2016 19:44:36 +0000 (UTC) |
branch: master
commit c89dc9d8f354260cb1a32823660b676166fdaf94
Author: Reuben Thomas <address@hidden>
Commit: Reuben Thomas <address@hidden>
Remove XEmacs and old Emacs highlighting code
* lisp/textmodes/ispell.el
(ispell-highlight-spelling-error-xemacs): Remove.
(ispell-highlight-spelling-error): Assume display-color-p exists.
---
lisp/textmodes/ispell.el | 22 +++-------------------
1 file changed, 3 insertions(+), 19 deletions(-)
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el
index 6246eb3..95e87e4 100644
--- a/lisp/textmodes/ispell.el
+++ b/lisp/textmodes/ispell.el
@@ -2633,17 +2633,6 @@ Optional REFRESH will unhighlighted then highlight,
using block cursor
(if (eq 'block refresh) start (- start 2)) end t))))
-(defun ispell-highlight-spelling-error-xemacs (start end &optional highlight)
- "Highlight the word from START to END using `isearch-highlight'.
-When the optional third arg HIGHLIGHT is set, the word is highlighted,
-otherwise it is displayed normally."
- (if highlight
- (isearch-highlight start end)
- (isearch-dehighlight))
- ;;(sit-for 0)
- )
-
-
(defun ispell-highlight-spelling-error-overlay (start end &optional highlight)
"Highlight the word from START to END using overlays.
When the optional third arg HIGHLIGHT is set, the word is highlighted
@@ -2679,14 +2668,9 @@ The variable `ispell-highlight-face' selects the face to
use for highlighting."
(defun ispell-highlight-spelling-error (start end &optional highlight refresh)
- (cond
- ((featurep 'xemacs)
- (ispell-highlight-spelling-error-xemacs start end highlight))
- ((and (featurep 'faces)
- (or (and (fboundp 'display-color-p) (display-color-p))
- window-system))
- (ispell-highlight-spelling-error-overlay start end highlight))
- (t (ispell-highlight-spelling-error-generic start end highlight refresh))))
+ (if (display-color-p)
+ (ispell-highlight-spelling-error-overlay start end highlight)
+ (ispell-highlight-spelling-error-generic start end highlight refresh)))
(defun ispell-display-buffer (buffer)
"Show BUFFER in new window above selected one.
- [Emacs-diffs] master e1aa788 18/23: Remove boundp test for always-bound symbol, (continued)
- [Emacs-diffs] master e1aa788 18/23: Remove boundp test for always-bound symbol, Reuben Thomas, 2016/12/13
- [Emacs-diffs] master 6e88249 12/23: Remove XEmacs-specific horizontal scrollbar handling in ispell.el, Reuben Thomas, 2016/12/13
- [Emacs-diffs] master 8315d50 15/23: Remove support for old versions of supercite and GNUS from ispell.el, Reuben Thomas, 2016/12/13
- [Emacs-diffs] master 51d011d 04/23: Remove tests for built-in functions, Reuben Thomas, 2016/12/13
- [Emacs-diffs] master 8af9cb2 19/23: Remove meaningless defconst ispell-version, Reuben Thomas, 2016/12/13
- [Emacs-diffs] master 3affed0 16/23: Remove unused constant, Reuben Thomas, 2016/12/13
- [Emacs-diffs] master 8245e5b 11/23: Remove XEmacs-specific code dealing with enable-multibyte-characters, Reuben Thomas, 2016/12/13
- [Emacs-diffs] master ff5dedd 10/23: Remove XEmacs-specific code from ispell.el, Reuben Thomas, 2016/12/13
- [Emacs-diffs] master 97f327d 22/23: Minor docstring and comment fixes to ispell.el, Reuben Thomas, 2016/12/13
- [Emacs-diffs] master f25c8b3 01/23: Remove ispell.el pre-GNU Emacs comments, Reuben Thomas, 2016/12/13
- [Emacs-diffs] master c89dc9d 08/23: Remove XEmacs and old Emacs highlighting code,
Reuben Thomas <=
- [Emacs-diffs] master 6b5ac58 20/23: Remove XEmacs-specific ispell-with-no-warnings, Reuben Thomas, 2016/12/13
- [Emacs-diffs] master b989c41 14/23: Remove remaining mentions of XEmacs from ispell.el, Reuben Thomas, 2016/12/13
- [Emacs-diffs] master db6e1f8 17/23: Remove support for ispell < 3.1.12, Reuben Thomas, 2016/12/13
- [Emacs-diffs] master 94834bd 21/23: Remove unused variable, Reuben Thomas, 2016/12/13
- [Emacs-diffs] master 028249e 05/23: Generalise over-specific documentation, Reuben Thomas, 2016/12/13
- [Emacs-diffs] master ada717e 09/23: Remove some commented-out code, Reuben Thomas, 2016/12/13
- [Emacs-diffs] master 8886f15 13/23: Remove XEmacs-specific minibuffer handling code from ispell.el, Reuben Thomas, 2016/12/13
- [Emacs-diffs] master 9e6618b 23/23: Remove support for aspell < 0.60 (from 2004), Reuben Thomas, 2016/12/13
- [Emacs-diffs] master a3ca97e 03/23: Remove unused ispell-looking-back, Reuben Thomas, 2016/12/13