[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
char-table-range
From: |
Kenichi Handa |
Subject: |
char-table-range |
Date: |
Mon, 16 Feb 2004 09:43:14 +0900 (JST) |
User-agent: |
SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.3 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI) |
Luc pointed out the current odd behaviour of
char-table-range. What should we do if values of characters
in the specified range are different?
For the moment, I don't have a good idea. Possible
behaviours are:
(1) return nil
(2) return the first non-nil value in the range.
(3) return the default value of the range (but ascii,
eight-bit-XXXX doesn't have a default value).
(4) signal an error
By the way, I don't know why this function is necessary, in
what situation it is intended to use this function.
Currently, it is used only in cc-vars.el as below.
(defconst c-emacs-features
[...]
;; before and including Emacs 19.34
((and (fboundp 'char-table-p)
(char-table-p table))
(setq entry (car (char-table-range table [?a]))))
but this is equivalent to
(setq entry (car (aref table ?a))))
---
Ken'ichi HANDA
address@hidden
- char-table-range,
Kenichi Handa <=
Re: char-table-range, Luc Teirlinck, 2004/02/15