summaryrefslogtreecommitdiff
path: root/lisp/language
diff options
context:
space:
mode:
authorKenichi Handa <handa@m17n.org>2005-03-16 11:34:41 +0000
committerKenichi Handa <handa@m17n.org>2005-03-16 11:34:41 +0000
commit7bf880c67e5fc4a8faa2bf54f99032b13f7aee6a (patch)
tree8ae91eee8459d9e10403e737b019ccc36ad8e083 /lisp/language
parent3d4543401ae404bd47b097985fd98100d283ac6e (diff)
downloademacs-7bf880c67e5fc4a8faa2bf54f99032b13f7aee6a.tar.gz
(sera-being-called-by-w3): New variable.
(ethio-sera-to-fidel-ethio): Check also sera-being-called-by-w3. (ethio-fidel-to-sera-buffer): Likewise.
Diffstat (limited to 'lisp/language')
-rw-r--r--lisp/language/ethio-util.el18
1 files changed, 12 insertions, 6 deletions
diff --git a/lisp/language/ethio-util.el b/lisp/language/ethio-util.el
index 5a81f59f9dc..aec352a5f75 100644
--- a/lisp/language/ethio-util.el
+++ b/lisp/language/ethio-util.el
@@ -419,6 +419,8 @@ If nil, use uppercases.")
;; To avoid byte-compiler warnings. It should never be set globally.
(defvar ethio-sera-being-called-by-w3)
+;; This variable will be bound by some third-party package.
+(defvar sera-being-called-by-w3)
;;;###autoload
(defun ethio-sera-to-fidel-region (beg end &optional secondary force)
@@ -590,9 +592,11 @@ the conversion of \"a\"."
(cond
;; skip from "<" to ">" (or from "&" to ";") if in w3-mode
- ((and (boundp 'ethio-sera-being-called-by-w3)
- ethio-sera-being-called-by-w3
- (or (= ch ?<) (= ch ?&)))
+ ((and (or (= ch ?<) (= ch ?&))
+ (or (and (boundp 'ethio-sera-being-called-by-w3)
+ ethio-sera-being-called-by-w3)
+ (and (boundp 'sera-being-called-by-w3)
+ sera-being-called-by-w3)))
(search-forward (if (= ch ?<) ">" ";")
nil 0))
@@ -1177,9 +1181,11 @@ See also the descriptions of the variables
(goto-char (1+ (match-end 0)))) ; because we inserted one byte (\)
;; skip from "<" to ">" (or from "&" to ";") if called from w3
- ((and (boundp 'ethio-sera-being-called-by-w3)
- ethio-sera-being-called-by-w3
- (or (= ch ?<) (= ch ?&)))
+ ((and (or (= ch ?<) (= ch ?&))
+ (or (and (boundp 'ethio-sera-being-called-by-w3)
+ ethio-sera-being-called-by-w3)
+ (and (boundp 'sera-being-called-by-w3)
+ sera-being-called-by-w3)))
(search-forward (if (= ch ?<) ">" ";")
nil 0))