diff options
| author | Andrea Corallo | 2020-12-31 15:32:51 +0100 |
|---|---|---|
| committer | Andrea Corallo | 2021-01-01 12:29:50 +0100 |
| commit | e9f5fadb0ecb64148472f846a99a0d7e95daeaee (patch) | |
| tree | 766f7b10b13f1880bde48de2df2811ba1bc3893e | |
| parent | f78580a0f5b913c60862d2ddedfc6b80e5cb4791 (diff) | |
| download | emacs-e9f5fadb0ecb64148472f846a99a0d7e95daeaee.tar.gz emacs-e9f5fadb0ecb64148472f846a99a0d7e95daeaee.zip | |
* Fix two predicates for missing negation handling
* lisp/emacs-lisp/comp-cstr.el (comp-cstr-empty-p)
(comp-cstr-null-p): Fix missing negation handling.
| -rw-r--r-- | lisp/emacs-lisp/comp-cstr.el | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lisp/emacs-lisp/comp-cstr.el b/lisp/emacs-lisp/comp-cstr.el index c03056e3afe..a53372be006 100644 --- a/lisp/emacs-lisp/comp-cstr.el +++ b/lisp/emacs-lisp/comp-cstr.el | |||
| @@ -139,14 +139,16 @@ Integer values are handled in the `range' slot.") | |||
| 139 | (with-comp-cstr-accessors | 139 | (with-comp-cstr-accessors |
| 140 | (and (null (typeset cstr)) | 140 | (and (null (typeset cstr)) |
| 141 | (null (valset cstr)) | 141 | (null (valset cstr)) |
| 142 | (null (range cstr))))) | 142 | (null (range cstr)) |
| 143 | (null (neg cstr))))) | ||
| 143 | 144 | ||
| 144 | (defsubst comp-cstr-null-p (x) | 145 | (defsubst comp-cstr-null-p (cstr) |
| 145 | "Return t if CSTR is equivalent to the `null' type specifier, nil otherwise." | 146 | "Return t if CSTR is equivalent to the `null' type specifier, nil otherwise." |
| 146 | (with-comp-cstr-accessors | 147 | (with-comp-cstr-accessors |
| 147 | (and (null (typeset x)) | 148 | (and (null (typeset cstr)) |
| 148 | (null (range x)) | 149 | (null (range cstr)) |
| 149 | (equal (valset x) '(nil))))) | 150 | (null (neg cstr)) |
| 151 | (equal (valset cstr) '(nil))))) | ||
| 150 | 152 | ||
| 151 | (defun comp-cstrs-homogeneous (cstrs) | 153 | (defun comp-cstrs-homogeneous (cstrs) |
| 152 | "Check if constraints CSTRS are all homogeneously negated or non-negated. | 154 | "Check if constraints CSTRS are all homogeneously negated or non-negated. |