diff options
| author | Gerd Moellmann | 2000-06-16 15:17:41 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-06-16 15:17:41 +0000 |
| commit | 97d4edaaa32e42c7953a46716b1a349efd61dac2 (patch) | |
| tree | ed33b053336ae0ccd91512152af9d00f5312cbfe /src/keymap.c | |
| parent | 6323926761a480b272e1660f66e64738211246a8 (diff) | |
| download | emacs-97d4edaaa32e42c7953a46716b1a349efd61dac2.tar.gz emacs-97d4edaaa32e42c7953a46716b1a349efd61dac2.zip | |
(describe_buffer_bindings): Add `\f\n' in front of titles.
Diffstat (limited to 'src/keymap.c')
| -rw-r--r-- | src/keymap.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/keymap.c b/src/keymap.c index 89271cf3971..fe2368d14cb 100644 --- a/src/keymap.c +++ b/src/keymap.c | |||
| @@ -2479,7 +2479,9 @@ You type Translation\n\ | |||
| 2479 | if (!SYMBOLP (modes[i])) | 2479 | if (!SYMBOLP (modes[i])) |
| 2480 | abort(); | 2480 | abort(); |
| 2481 | 2481 | ||
| 2482 | p = title = (char *) alloca (40 + XSYMBOL (modes[i])->name->size); | 2482 | p = title = (char *) alloca (42 + XSYMBOL (modes[i])->name->size); |
| 2483 | *p++ = '\f'; | ||
| 2484 | *p++ = '\n'; | ||
| 2483 | *p++ = '`'; | 2485 | *p++ = '`'; |
| 2484 | bcopy (XSYMBOL (modes[i])->name->data, p, | 2486 | bcopy (XSYMBOL (modes[i])->name->data, p, |
| 2485 | XSYMBOL (modes[i])->name->size); | 2487 | XSYMBOL (modes[i])->name->size); |
| @@ -2505,17 +2507,17 @@ You type Translation\n\ | |||
| 2505 | if (!NILP (start1)) | 2507 | if (!NILP (start1)) |
| 2506 | { | 2508 | { |
| 2507 | describe_map_tree (start1, 1, shadow, prefix, | 2509 | describe_map_tree (start1, 1, shadow, prefix, |
| 2508 | "Major Mode Bindings", nomenu, 0, 0); | 2510 | "\f\nMajor Mode Bindings", nomenu, 0, 0); |
| 2509 | shadow = Fcons (start1, shadow); | 2511 | shadow = Fcons (start1, shadow); |
| 2510 | } | 2512 | } |
| 2511 | 2513 | ||
| 2512 | describe_map_tree (current_global_map, 1, shadow, prefix, | 2514 | describe_map_tree (current_global_map, 1, shadow, prefix, |
| 2513 | "Global Bindings", nomenu, 0, 1); | 2515 | "\f\nGlobal Bindings", nomenu, 0, 1); |
| 2514 | 2516 | ||
| 2515 | /* Print the function-key-map translations under this prefix. */ | 2517 | /* Print the function-key-map translations under this prefix. */ |
| 2516 | if (!NILP (Vfunction_key_map)) | 2518 | if (!NILP (Vfunction_key_map)) |
| 2517 | describe_map_tree (Vfunction_key_map, 0, Qnil, prefix, | 2519 | describe_map_tree (Vfunction_key_map, 0, Qnil, prefix, |
| 2518 | "Function key map translations", nomenu, 1, 0); | 2520 | "\f\nFunction key map translations", nomenu, 1, 0); |
| 2519 | 2521 | ||
| 2520 | call0 (intern ("help-mode")); | 2522 | call0 (intern ("help-mode")); |
| 2521 | Fset_buffer (descbuf); | 2523 | Fset_buffer (descbuf); |