diff options
| author | Jim Blandy | 1992-07-22 21:20:04 +0000 |
|---|---|---|
| committer | Jim Blandy | 1992-07-22 21:20:04 +0000 |
| commit | 067ffa38a5d8f117efb94afa8a2edba3d832ee1a (patch) | |
| tree | 5e0aa111aaea3b87012cdf4a979eb1e3118d3819 /src | |
| parent | 21800cb80bdd7f1e5e2d3d96828c11ae96ddaed0 (diff) | |
| download | emacs-067ffa38a5d8f117efb94afa8a2edba3d832ee1a.tar.gz emacs-067ffa38a5d8f117efb94afa8a2edba3d832ee1a.zip | |
*** empty log message ***
Diffstat (limited to 'src')
| -rw-r--r-- | src/fileio.c | 7 | ||||
| -rw-r--r-- | src/keyboard.c | 14 |
2 files changed, 20 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c index 59a7c9eeec0..144ebe00ef2 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -1364,6 +1364,13 @@ duplicates what `expand-file-name' does.") | |||
| 1364 | #endif /* not VMS */ | 1364 | #endif /* not VMS */ |
| 1365 | } | 1365 | } |
| 1366 | 1366 | ||
| 1367 | /* A slightly faster and more convenient way to get | ||
| 1368 | (directory-file-name (expand-file-name FOO)). The return value may | ||
| 1369 | have had its last character zapped with a '\0' character, meaning | ||
| 1370 | that it is acceptable to system calls, but not to other lisp | ||
| 1371 | functions. Callers should make sure that the return value doesn't | ||
| 1372 | escape. */ | ||
| 1373 | |||
| 1367 | Lisp_Object | 1374 | Lisp_Object |
| 1368 | expand_and_dir_to_file (filename, defdir) | 1375 | expand_and_dir_to_file (filename, defdir) |
| 1369 | Lisp_Object filename, defdir; | 1376 | Lisp_Object filename, defdir; |
diff --git a/src/keyboard.c b/src/keyboard.c index 442a4f318ea..ceab36647fd 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -2697,8 +2697,20 @@ read_key_sequence (keybuf, bufsize, prompt) | |||
| 2697 | /* Scan from fkey_end until we find a bound suffix. */ | 2697 | /* Scan from fkey_end until we find a bound suffix. */ |
| 2698 | while (fkey_end < t) | 2698 | while (fkey_end < t) |
| 2699 | { | 2699 | { |
| 2700 | /* Look up meta-characters by prefixing them | ||
| 2701 | with meta_prefix_char. I hate this. */ | ||
| 2702 | if (keybuf[fkey_end++] & 0x80) | ||
| 2703 | fkey_next = | ||
| 2704 | get_keymap_1 (get_keyelt | ||
| 2705 | (access_keymap (fkey_map, meta_prefix_char)), | ||
| 2706 | 0); | ||
| 2707 | else | ||
| 2708 | fkey_next = fkey_map; | ||
| 2709 | |||
| 2700 | fkey_next = | 2710 | fkey_next = |
| 2701 | get_keyelt (access_keymap (fkey_map, keybuf[fkey_end++])); | 2711 | get_keyelt (access_keymap |
| 2712 | (fkey_next, keybuf[(fkey_end++) & 0x7f])); | ||
| 2713 | |||
| 2702 | /* If keybuf[fkey_start..fkey_next] is bound in the | 2714 | /* If keybuf[fkey_start..fkey_next] is bound in the |
| 2703 | function key map and it's a suffix of the current | 2715 | function key map and it's a suffix of the current |
| 2704 | sequence (i.e. fkey_next == t), replace it with | 2716 | sequence (i.e. fkey_next == t), replace it with |