[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
edebug-eval-defun fails with non-ASCII characters
From: |
Dave Love |
Subject: |
edebug-eval-defun fails with non-ASCII characters |
Date: |
19 Aug 2002 11:55:41 +0100 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 |
Load edebug and use C-M-x on an expression like this to get `args out
of range' due to looking up a non-ASCII character in a 256-long vector:
(defun £ (?£))
This appears to be an appropriate fix (not extensively tested):
2002-08-16 Dave Love <fx@gnu.org>
* emacs-lisp/edebug.el (edebug-read-syntax-table): Use a char
table to account for non-ASCII characters.
*** edebug.el.~3.49.~ Mon Oct 1 08:30:38 2001
--- edebug.el Fri Aug 16 20:18:21 2002
***************
*** 684,690 ****
(defconst edebug-read-syntax-table
;; Lookup table for significant characters indicating the class of the
;; token that follows. This is not a \"real\" syntax table.
! (let ((table (make-vector 256 'symbol))
(i 0))
(while (< i ?!)
(aset table i 'space)
--- 684,690 ----
(defconst edebug-read-syntax-table
;; Lookup table for significant characters indicating the class of the
;; token that follows. This is not a \"real\" syntax table.
! (let ((table (make-char-table 'syntax-table 'symbol))
(i 0))
(while (< i ?!)
(aset table i 'space)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- edebug-eval-defun fails with non-ASCII characters,
Dave Love <=