New answers tagged

8

Remove the backslashes before e, 0 and 9. (let ((char ?e)) (if (<= ?0 char ?9) (message "It's a digit") (message "It's not a digit"))) With the backslashes: \e is the escape char - ASCII 27. \0 is the null char - ASCII 0. \9 isn't special, so it's the same as 9 - ASCII 57. 27 is >= 0 and <= 57.


Top 50 recent answers are included