all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* char-table-range
@ 2004-02-16  0:43 Kenichi Handa
  2004-02-16  1:30 ` char-table-range Luc Teirlinck
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Kenichi Handa @ 2004-02-16  0:43 UTC (permalink / raw)
  Cc: teirllm

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
handa@m17n.org

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2004-03-04 16:41 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-16  0:43 char-table-range Kenichi Handa
2004-02-16  1:30 ` char-table-range Luc Teirlinck
2004-02-18 23:38   ` char-table-range Richard Stallman
2004-02-19  1:28     ` char-table-range Luc Teirlinck
2004-02-19 15:40       ` char-table-range Luc Teirlinck
2004-02-20 13:42       ` char-table-range Richard Stallman
2004-02-21  0:03         ` char-table-range Luc Teirlinck
     [not found]           ` <200403020247.LAA16492@etlken.m17n.org>
2004-03-03  3:39             ` char-table-range Luc Teirlinck
2004-03-03  4:50               ` char-table-range Kenichi Handa
2004-03-04 16:41                 ` char-table-range Richard Stallman
2004-03-03  4:51               ` char-table-range Kenichi Handa
2004-02-19  1:52     ` char-table-range Luc Teirlinck
2004-02-20 13:42       ` char-table-range Richard Stallman
2004-02-16  2:12 ` char-table-range Luc Teirlinck
2004-02-16  4:08   ` char-table-range Kenichi Handa
2004-02-18 17:55 ` char-table-range Richard Stallman

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.