diff options
| author | Richard M. Stallman | 1995-10-18 23:32:26 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-10-18 23:32:26 +0000 |
| commit | be46733f37de1616d8ed2af398f80d39ecec5a29 (patch) | |
| tree | 7e338f95d6fba40455263fe78ab5defa36d20c18 /src | |
| parent | b1428bd860169c42e03bebd119d3be9fb0be1309 (diff) | |
| download | emacs-be46733f37de1616d8ed2af398f80d39ecec5a29.tar.gz emacs-be46733f37de1616d8ed2af398f80d39ecec5a29.zip | |
(Fchar_equal): Handle char-table as case table.
Diffstat (limited to 'src')
| -rw-r--r-- | src/editfns.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/editfns.c b/src/editfns.c index ccfc4a860b1..5254a768569 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -1953,12 +1953,13 @@ Case is ignored if `case-fold-search' is non-nil in the current buffer.") | |||
| 1953 | (c1, c2) | 1953 | (c1, c2) |
| 1954 | register Lisp_Object c1, c2; | 1954 | register Lisp_Object c1, c2; |
| 1955 | { | 1955 | { |
| 1956 | unsigned char *downcase = DOWNCASE_TABLE; | 1956 | Lisp_Object *downcase = DOWNCASE_TABLE; |
| 1957 | CHECK_NUMBER (c1, 0); | 1957 | CHECK_NUMBER (c1, 0); |
| 1958 | CHECK_NUMBER (c2, 1); | 1958 | CHECK_NUMBER (c2, 1); |
| 1959 | 1959 | ||
| 1960 | if (!NILP (current_buffer->case_fold_search) | 1960 | if (!NILP (current_buffer->case_fold_search) |
| 1961 | ? (downcase[0xff & XFASTINT (c1)] == downcase[0xff & XFASTINT (c2)] | 1961 | ? ((XINT (downcase[0xff & XFASTINT (c1)]) |
| 1962 | == XINT (downcase[0xff & XFASTINT (c2)])) | ||
| 1962 | && (XFASTINT (c1) & ~0xff) == (XFASTINT (c2) & ~0xff)) | 1963 | && (XFASTINT (c1) & ~0xff) == (XFASTINT (c2) & ~0xff)) |
| 1963 | : XINT (c1) == XINT (c2)) | 1964 | : XINT (c1) == XINT (c2)) |
| 1964 | return Qt; | 1965 | return Qt; |