diff options
| author | Richard M. Stallman | 1994-04-28 02:34:20 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-04-28 02:34:20 +0000 |
| commit | 988c2f83a88c774cec9d35644365dd7dc85a3bc0 (patch) | |
| tree | afc049a2ed8fdd7fb319daae105a910b91b4b2c5 /src | |
| parent | fe8fd4091778445d0ad37c31905e9033572635f7 (diff) | |
| download | emacs-988c2f83a88c774cec9d35644365dd7dc85a3bc0.tar.gz emacs-988c2f83a88c774cec9d35644365dd7dc85a3bc0.zip | |
(read1): Allow `\C- ' and `\C-?'.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lread.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lread.c b/src/lread.c index 105e9c5efe0..545256904d6 100644 --- a/src/lread.c +++ b/src/lread.c | |||
| @@ -1217,6 +1217,12 @@ read1 (readcharfun) | |||
| 1217 | } | 1217 | } |
| 1218 | else | 1218 | else |
| 1219 | { | 1219 | { |
| 1220 | /* Allow `\C- ' and `\C-?'. */ | ||
| 1221 | if (c == (CHAR_CTL | ' ')) | ||
| 1222 | c = 0; | ||
| 1223 | else if (c == (CHAR_CTL | '?')) | ||
| 1224 | c = 127; | ||
| 1225 | |||
| 1220 | if (c & CHAR_META) | 1226 | if (c & CHAR_META) |
| 1221 | /* Move the meta bit to the right place for a string. */ | 1227 | /* Move the meta bit to the right place for a string. */ |
| 1222 | c = (c & ~CHAR_META) | 0x80; | 1228 | c = (c & ~CHAR_META) | 0x80; |