diff options
| author | Richard M. Stallman | 1993-12-23 01:56:43 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-12-23 01:56:43 +0000 |
| commit | b6c537745e6b9ad2065275cee1a245a208455e54 (patch) | |
| tree | e036617b09e4f855efe15c12826dca1e0124a765 /src | |
| parent | 5b8bcf48ed4d65ec026ac4bf1ee59cf3f225e70a (diff) | |
| download | emacs-b6c537745e6b9ad2065275cee1a245a208455e54.tar.gz emacs-b6c537745e6b9ad2065275cee1a245a208455e54.zip | |
(Fsubstitute_command_keys): Ignore menu bar bindings.
(Fdocumentation_property): 3 args is maximum.
Diffstat (limited to 'src')
| -rw-r--r-- | src/doc.c | 11 |
1 files changed, 10 insertions, 1 deletions
| @@ -183,7 +183,7 @@ subcommands.)"); | |||
| 183 | return doc; | 183 | return doc; |
| 184 | } | 184 | } |
| 185 | 185 | ||
| 186 | DEFUN ("documentation-property", Fdocumentation_property, Sdocumentation_property, 2, 2, 0, | 186 | DEFUN ("documentation-property", Fdocumentation_property, Sdocumentation_property, 2, 3, 0, |
| 187 | "Return the documentation string that is SYMBOL's PROP property.\n\ | 187 | "Return the documentation string that is SYMBOL's PROP property.\n\ |
| 188 | This is like `get', but it can refer to strings stored in the\n\ | 188 | This is like `get', but it can refer to strings stored in the\n\ |
| 189 | `etc/DOC' file; and if the value is a string, it is passed through\n\ | 189 | `etc/DOC' file; and if the value is a string, it is passed through\n\ |
| @@ -409,6 +409,8 @@ thus, \\=\\=\\=\\= puts \\=\\= into the output, and \\=\\=\\=\\[ puts \\=\\[ int | |||
| 409 | } | 409 | } |
| 410 | else if (strp[0] == '\\' && strp[1] == '[') | 410 | else if (strp[0] == '\\' && strp[1] == '[') |
| 411 | { | 411 | { |
| 412 | Lisp_Object firstkey; | ||
| 413 | |||
| 412 | changed = 1; | 414 | changed = 1; |
| 413 | strp += 2; /* skip \[ */ | 415 | strp += 2; /* skip \[ */ |
| 414 | start = strp; | 416 | start = strp; |
| @@ -425,6 +427,13 @@ thus, \\=\\=\\=\\= puts \\=\\= into the output, and \\=\\=\\=\\[ puts \\=\\[ int | |||
| 425 | tem = Fintern (make_string (start, length), Qnil); | 427 | tem = Fintern (make_string (start, length), Qnil); |
| 426 | tem = Fwhere_is_internal (tem, keymap, Qnil, Qt, Qnil); | 428 | tem = Fwhere_is_internal (tem, keymap, Qnil, Qt, Qnil); |
| 427 | 429 | ||
| 430 | /* Disregard menu bar bindings; it is positively annoying to | ||
| 431 | mention them when there's no menu bar, and it isn't terribly | ||
| 432 | useful even when there is a menu bar. */ | ||
| 433 | firstkey = Faref (tem, make_number (0)); | ||
| 434 | if (EQ (firstkey, Qmenu_bar)) | ||
| 435 | tem = Qnil; | ||
| 436 | |||
| 428 | if (NILP (tem)) /* but not on any keys */ | 437 | if (NILP (tem)) /* but not on any keys */ |
| 429 | { | 438 | { |
| 430 | new = (unsigned char *) xrealloc (buf, bsize += 4); | 439 | new = (unsigned char *) xrealloc (buf, bsize += 4); |