emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 8245e5b 11/23: Remove XEmacs-specific code dealing


From: Reuben Thomas
Subject: [Emacs-diffs] master 8245e5b 11/23: Remove XEmacs-specific code dealing with enable-multibyte-characters
Date: Tue, 13 Dec 2016 19:44:36 +0000 (UTC)

branch: master
commit 8245e5b9b00b4a839aa201d7883d5e55e8f66879
Author: Reuben Thomas <address@hidden>
Commit: Reuben Thomas <address@hidden>

    Remove XEmacs-specific code dealing with enable-multibyte-characters
    
    * lisp/textmodes/ispell.el (ispell-decode-string):
    (ispell-init-process):  Remove XEmacs-specific guard.
---
 lisp/textmodes/ispell.el |   19 +++----------------
 1 file changed, 3 insertions(+), 16 deletions(-)

diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el
index 6a28db6..f0bb569 100644
--- a/lisp/textmodes/ispell.el
+++ b/lisp/textmodes/ispell.el
@@ -1451,17 +1451,8 @@ used as key in `ispell-local-dictionary-alist' and 
`ispell-dictionary-alist'.")
 This is passed to the Ispell process using the `-p' switch.")
 
 (defun ispell-decode-string (str)
-  "Decodes multibyte character strings.
-Protects against bogus binding of `enable-multibyte-characters' in XEmacs."
-  ;; FIXME: enable-multibyte-characters is read-only, so bogus bindings are
-  ;; really nasty (they signal an error in Emacs): Who does that?  --Stef
-  (if (and (or (featurep 'xemacs)
-              (and (boundp 'enable-multibyte-characters)
-                   enable-multibyte-characters))
-          (fboundp 'decode-coding-string)
-          (ispell-get-coding-system))
-      (decode-coding-string str (ispell-get-coding-system))
-    str))
+  "Decodes multibyte character strings."
+  (decode-coding-string str (ispell-get-coding-system)))
 
 ;; Return a string decoded from Nth element of the current dictionary.
 (defun ispell-get-decoded-string (n)
@@ -2871,11 +2862,7 @@ Keeps argument list for future Ispell invocations for no 
async support."
 
       (if ispell-async-processp
          (set-process-filter ispell-process 'ispell-filter))
-      ;; Protect against XEmacs bogus binding of `enable-multibyte-characters'.
-      (if (and (or (featurep 'xemacs)
-                  (and (boundp 'enable-multibyte-characters)
-                       enable-multibyte-characters))
-              (fboundp 'set-process-coding-system)
+      (if (and enable-multibyte-characters
                ;; Evidently, some people use the synchronous mode even
                ;; when async subprocesses are supported, in which case
                ;; set-process-coding-system is bound, but



reply via email to

[Prev in Thread] Current Thread [Next in Thread]