diff options
| author | Stefan Kangas | 2020-05-16 15:22:54 +0200 |
|---|---|---|
| committer | Stefan Kangas | 2020-05-16 15:41:29 +0200 |
| commit | 436809b705aaf10776af4615a9691406408735eb (patch) | |
| tree | 3b3f3ac807f8d474d3fa8be21aeb52732c2f1520 /lisp | |
| parent | 5ab12a4b1b8e4b745783797d0e5469096256b0d8 (diff) | |
| download | emacs-436809b705aaf10776af4615a9691406408735eb.tar.gz emacs-436809b705aaf10776af4615a9691406408735eb.zip | |
Remove some XEmacs compat code from semantic
* lisp/cedet/semantic/wisent/comp.el (wisent-ISVALID-TOKEN)
(wisent-parse-nonterminals):
* lisp/cedet/semantic/wisent/wisent.el
(wisent-item-to-string): Remove XEmacs compatibility code.
(wisent-char-p): Redefine as obsolete function alias for
'characterp'.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/cedet/semantic/wisent/comp.el | 4 | ||||
| -rw-r--r-- | lisp/cedet/semantic/wisent/wisent.el | 9 |
2 files changed, 5 insertions, 8 deletions
diff --git a/lisp/cedet/semantic/wisent/comp.el b/lisp/cedet/semantic/wisent/comp.el index 4e9927f23f1..42c5756b987 100644 --- a/lisp/cedet/semantic/wisent/comp.el +++ b/lisp/cedet/semantic/wisent/comp.el | |||
| @@ -3053,7 +3053,7 @@ one.") | |||
| 3053 | 3053 | ||
| 3054 | (defsubst wisent-ISVALID-TOKEN (x) | 3054 | (defsubst wisent-ISVALID-TOKEN (x) |
| 3055 | "Return non-nil if X is a character or an allowed symbol." | 3055 | "Return non-nil if X is a character or an allowed symbol." |
| 3056 | (or (wisent-char-p x) | 3056 | (or (characterp x) |
| 3057 | (wisent-ISVALID-VAR x))) | 3057 | (wisent-ISVALID-VAR x))) |
| 3058 | 3058 | ||
| 3059 | (defun wisent-push-token (symbol &optional nocheck) | 3059 | (defun wisent-push-token (symbol &optional nocheck) |
| @@ -3143,7 +3143,7 @@ the rule." | |||
| 3143 | (cond | 3143 | (cond |
| 3144 | ((or (memq item token-list) (memq item var-list))) | 3144 | ((or (memq item token-list) (memq item var-list))) |
| 3145 | ;; Create new literal character token | 3145 | ;; Create new literal character token |
| 3146 | ((wisent-char-p item) (wisent-push-token item t)) | 3146 | ((characterp item) (wisent-push-token item t)) |
| 3147 | ((error "Symbol `%s' is used, but is not defined as a token and has no rules" | 3147 | ((error "Symbol `%s' is used, but is not defined as a token and has no rules" |
| 3148 | item)))) | 3148 | item)))) |
| 3149 | (setq rhl (1+ rhl) | 3149 | (setq rhl (1+ rhl) |
diff --git a/lisp/cedet/semantic/wisent/wisent.el b/lisp/cedet/semantic/wisent/wisent.el index d8a35d3e7d3..a0a8bed1eaf 100644 --- a/lisp/cedet/semantic/wisent/wisent.el +++ b/lisp/cedet/semantic/wisent/wisent.el | |||
| @@ -55,11 +55,8 @@ | |||
| 55 | ;;;; Runtime stuff | 55 | ;;;; Runtime stuff |
| 56 | ;;;; ------------- | 56 | ;;;; ------------- |
| 57 | 57 | ||
| 58 | ;;; Compatibility | 58 | (define-obsolete-function-alias 'wisent-char-p |
| 59 | (eval-and-compile | 59 | #'characterp "28.1") |
| 60 | (if (fboundp 'char-valid-p) | ||
| 61 | (defalias 'wisent-char-p 'char-valid-p) | ||
| 62 | (defalias 'wisent-char-p 'char-or-char-int-p))) | ||
| 63 | 60 | ||
| 64 | ;;; Printed representation of terminals and nonterminals | 61 | ;;; Printed representation of terminals and nonterminals |
| 65 | (defconst wisent-escape-sequence-strings | 62 | (defconst wisent-escape-sequence-strings |
| @@ -80,7 +77,7 @@ | |||
| 80 | (defsubst wisent-item-to-string (item) | 77 | (defsubst wisent-item-to-string (item) |
| 81 | "Return a printed representation of ITEM. | 78 | "Return a printed representation of ITEM. |
| 82 | ITEM can be a nonterminal or terminal symbol, or a character literal." | 79 | ITEM can be a nonterminal or terminal symbol, or a character literal." |
| 83 | (if (wisent-char-p item) | 80 | (if (characterp item) |
| 84 | (or (cdr (assq item wisent-escape-sequence-strings)) | 81 | (or (cdr (assq item wisent-escape-sequence-strings)) |
| 85 | (format "'%c'" item)) | 82 | (format "'%c'" item)) |
| 86 | (symbol-name item))) | 83 | (symbol-name item))) |