+2005-03-16 Kenichi Handa <handa@m17n.org>
+
+ * language/ethio-util.el (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.
+
2005-03-16 Juri Linkov <juri@jurta.org>
* emacs-lisp/find-func.el (find-function-regexp):
;; 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)
(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))
(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))