1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-17 10:06:13 +00:00
Commit Graph

58 Commits

Author SHA1 Message Date
Jan Djärv
84c2fd9f35 * help-fns.el (help-C-file-name): File name must be in build-files
to be returned.
2004-11-09 08:20:44 +00:00
Juri Linkov
95da5522bb (variable-at-point): read -> intern. 2004-10-30 01:06:58 +00:00
Daniel Pfeiffer
cb32aefcd4 (describe-variable): Use it to make "below" a hyperlink. 2004-10-13 18:54:21 +00:00
Juri Linkov
cc3064a5e9 (variable-at-point): Try `find-tag-default' when other methods failed. 2004-09-02 16:37:22 +00:00
Juanma Barranquero
8c1138beaf (help-argument-name): Inherit from italic face only if the frame
supports it.
2004-06-06 21:44:22 +00:00
Juri Linkov
575f611801 (help-argument-name): Add :group 'help. 2004-06-06 02:49:56 +00:00
Juanma Barranquero
048fa48b8d (help-argument-name): Unconditionally inherit from 'italic (pending
investigation of problem with `supports' in `defface').
2004-06-05 01:49:53 +00:00
Juanma Barranquero
8be2a2dd85 (help-argument-name): Reintroduce face.
(help-default-arg-highlight): Use it, now that
`face-differs-from-default-p' can be trusted.
2004-06-04 23:26:14 +00:00
Juanma Barranquero
7d57db2916 (help-add-fundoc-usage): Use %S only for output of `help-make-usage'.
(help-highlight-arguments): Skip function name before searching for
arguments.
2004-05-22 01:58:25 +00:00
Juanma Barranquero
aae424b96f (help-arg-highlighting-function, help-argument-name): Delete.
(help-default-arg-highlight): New function.
(help-do-arg-highlighting): Use it.
2004-05-13 01:18:00 +00:00
Juanma Barranquero
00ed4f9098 (help-split-fundoc, help-add-fundoc-usage): Make arguments match their use in
docstring.
(help-arg-highlighting-function): New variable.
(help-argument-name): Mention it in the docstring.
(help-do-arg-highlight): Use it.  Expand regexp to accept also ARG-xxx and
xxx-ARG references.
2004-05-11 23:50:25 +00:00
Juanma Barranquero
55fdba3190 (help-argument-name): Default to italic.
(help-highlight-arguments): Always return (usage . doc).
2004-05-09 22:41:34 +00:00
Juanma Barranquero
60c249555a (help-highlight-arguments): Fix braino. 2004-05-09 01:28:34 +00:00
Juanma Barranquero
fef3a3ab7c (help-highlight-arguments): Don't try to highlight missing or autoloaded
arglists.  Accept structured arguments, like the first ones of `do' and
`flet'.
2004-05-09 00:45:49 +00:00
Juanma Barranquero
6aab5f13cd (help-do-arg-highlight): Temporarily set ?\- to be a word constituent so
FOO-ARG is not recognized as an arg.
(help-highlight-arguments): Don't skip lists in mandatory arguments.
2004-05-07 22:41:22 +00:00
Juanma Barranquero
1c34b5a97d (help-argument-name): Default to bold; don't inherit from
font-lock-variable-name-face.
(help-do-arg-highlight): Grok also ARGth occurrences in the docstring.
2004-05-06 01:12:06 +00:00
Juanma Barranquero
c57ada27c8 (help-argument-name): New face, inheriting from
font-lock-variable-name-face, to highlight function arguments in
`describe-function' and `describe-key'.
(help-do-arg-highlight): Auxiliary function to highlight a given list of
arguments in a string.
(help-highlight-arguments): Highlight the function arguments and all uses
of them in the docstring.
(describe-function-1): Use it. Do docstring output via `insert', not
'princ', so text attributes are preserved.
2004-05-04 00:22:29 +00:00
Juanma Barranquero
9242b3b792 (help-add-fundoc-usage): Use %S instead of %s to format arglist so default
values in CL-style argument lists are correctly shown.
2004-05-01 13:55:16 +00:00
Stefan Monnier
3ff0a7e940 (help-C-file-name): Use new subr-name.
Prepend `src/' to the file name.
(help-C-source-directory, help-subr-name, help-find-C-source): Remove.
(describe-function-1, describe-variable): Only find a C source file name
if DOC is already loaded.
2004-04-29 18:46:13 +00:00
Richard M. Stallman
19a151e59b (describe-function-1): If many non-control non-meta
keys run the command, don't list all of them.
2004-04-20 20:51:11 +00:00
Juri Linkov
7226605688 (help-with-tutorial): Call `hack-local-variables'
to put into effect local variables from TUTORIAL files.
2004-04-18 22:12:23 +00:00
Stefan Monnier
154ee9b737 (help-C-source-directory): New var.
(help-subr-name, help-C-file-name, help-find-C-source): New funs.
(describe-function-1, describe-variable): Use them.
2004-04-07 19:38:54 +00:00
Luc Teirlinck
47f8b8f126 (describe-categories): Doc fix. 2004-02-20 03:48:32 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Stefan Monnier
b0622c6d46 (describe-variable): Mention permanent local status. 2003-05-13 18:35:16 +00:00
Stefan Monnier
f8daddcffb (help-add-fundoc-usage): Use t for "no arglist". 2003-05-06 13:54:21 +00:00
Stefan Monnier
95734598cd (help-add-fundoc-usage): Allow arglist to be a string. 2003-05-04 00:30:34 +00:00
John Paul Wallington
88ff724bdf (help-add-fundoc-usage): Pass an empty string to `format' if
no newlines are necessary.
2003-04-12 04:28:43 +00:00
Kim F. Storm
023b93f6b0 Renamed remap-command to command-remapping. All uses changed. 2003-02-12 23:13:43 +00:00
Juanma Barranquero
a01ba4f1b1 (describe-function-1): Change output for keyboard macros. 2003-02-12 11:41:37 +00:00
Juanma Barranquero
71296446d3 Trailing whitespace deleted. 2003-02-04 11:26:42 +00:00
Markus Rost
13eb72d26e (describe-variable): Use custom-variable-p. 2003-01-07 19:17:46 +00:00
Stefan Monnier
dcae291f23 (describe-variable): Look for (defvar . <sym>) in the
load-history since `defvar' now uses this format.
2002-11-20 14:37:19 +00:00
Stefan Monnier
bbb7041afb (help-with-tutorial): Use minibuffer-completion-help.
(help-split-fundoc): Don't support old syntax any more.
(help-add-fundoc-usage): New fun.
2002-09-27 22:59:41 +00:00
Richard M. Stallman
e06d1742ac (help-with-tutorial): Properly set up
completion-reference-buffer in the *Completion* buffer.
2002-09-05 02:38:41 +00:00
Stefan Monnier
f63f0981b6 (help-split-fundoc): Replace the function name
from the docstring with the one that should be displayed.
(help-make-usage): Understand CL style arglists.
(describe-function-1): Adapt to the new behavior of help-split-fundoc.
(describe-variable): Use delete-region.
2002-08-19 21:23:08 +00:00
Stefan Monnier
26f194777a (locate-library): Use locate-file(-completion).
(help-split-fundoc): Tighten the regexp and recognize a usage-info
where the function name is `fn'.
(help-function-arglist): Follow aliases and macros.
(describe-function-1): Use keymapp.
If the docstring contains a usage info, use it even if the function is
not a subroutine.  Find usage info in aliases' docstring if necessary.
(describe-variable): Get the value before setting up the *Help* buffer.
2002-08-15 01:38:45 +00:00
John Paul Wallington
dd66897fd5 (describe-function-1): Skip arglist note if
function's definition is a keymap.
2002-08-06 17:21:19 +00:00
Markus Rost
32d9a725a5 (describe-function-1): Test function for obsolescence only if it is a
symbol.
2002-07-31 22:28:30 +00:00
Juanma Barranquero
3b622b44f5 (describe-function-1): Put empty line before "Not documented" text. 2002-07-17 08:12:04 +00:00
Stefan Monnier
2dbbed9eba (help-split-fundoc, help-function-arglist)
(help-make-usage): New funs, extracted from describe-function-1.
(describe-function-1): Use them.
2002-07-16 16:24:59 +00:00
Juanma Barranquero
c72fcfc334 (describe-variable): Remove useless trailing whitespace. 2002-07-15 16:17:01 +00:00
Juanma Barranquero
50a2c5f9e9 (describe-variable): Show documentation for aliased variable if alias does not
have its own.
2002-07-15 15:38:49 +00:00
Richard M. Stallman
e870de8835 (help-with-tutorial): Display completion list right away. 2002-07-12 23:26:17 +00:00
Juanma Barranquero
d00a340891 (describe-variable): Put `defvaralias' info before the documentation (patch from
John Paul Wallington <jpw@shootybangbang.com>). Remove useless "Documentation:"
string.
2002-07-12 16:56:03 +00:00
Pavel Janík
9327f13439 (describe-variable): Mention if the variable is an alias. 2002-07-12 08:58:32 +00:00
Juanma Barranquero
b0d6450266 (describe-function-1): Use semicolon instead of dot.
(describe-variable): Likewise.
2002-06-27 16:10:23 +00:00
Juanma Barranquero
8c26938091 (describe-variable): Capitalize "not documented" message.
(describe-function-1): Likewise. Also, document the obsolescence
of the function, if applicable.
2002-06-27 07:16:00 +00:00
Stefan Monnier
d24c52bbe5 (describe-variable): Only use `buffer' is still live.
Use `delete-region' instead of save-excursion + delete-char.
Document the obsolescence of the variable, if applicable.
2002-06-23 21:02:45 +00:00
Markus Rost
35679c3f5c (describe-function-1): If the source is `loaddefs.el', look for the
real source.  This is necessary only for defaliases.
2002-05-08 18:05:28 +00:00