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

68 Commits

Author SHA1 Message Date
Masatake YAMATO
6dfa731f20 * emacs-lisp/find-func.el (find-function-noselect): Handle
subroutines.
* help-fns.el (help-C-file-name): Added autoload mark for
`find-function-noselect'.
2005-05-30 18:06:02 +00:00
Nick Roberts
1bd5397742 (describe-variable): Remove hyperlinks in a
variable's value as these are quite frequently inappropriate.
2005-05-19 00:13:09 +00:00
Thien-Thi Nguyen
5ee2cf8a5a (help-with-tutorial): Revert last change. 2005-03-30 22:51:39 +00:00
Thien-Thi Nguyen
c48d7fa0ab (help-with-tutorial): Delete title line. 2005-03-30 15:44:40 +00:00
Lute Kamstra
02f244c8ed (help-with-tutorial): Make sure that users cannot remove the entire
text of the tutorial by means of `undo'.
2005-02-03 19:42:19 +00:00
Richard M. Stallman
1bc9c7ed8b Whitespace/comment change. 2005-01-07 16:12:34 +00:00
Richard M. Stallman
20a514ceed (variable-at-point): New arg ANY-SYMBOL. 2005-01-05 01:09:23 +00:00
Richard M. Stallman
38fb035434 (describe-function-1): Call symbol-file with `defun'.
(describe-variable): Call symbol-file with `defvar'.
2004-12-27 16:24:20 +00:00
Kim F. Storm
e9e50b12cd (describe-variable): Add follow-link property to "below" button. 2004-12-17 15:17:02 +00:00
Juri Linkov
f507d6a153 * help-fns.el (variable-at-point):
As a last resort try striping non-word prefixes and suffixes.
2004-12-16 13:06:05 +00:00
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