1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-11 09:20:51 +00:00
Commit Graph

62 Commits

Author SHA1 Message Date
Dan Nicolaescu
aaa448c984 * widget.el (define-widget): Purecopy the docstring.
* international/mule-cmds.el (charset): Do not purecopy the
docstring here, define-widget does it.

* textmodes/texinfo.el (texinfo-open-quote, texinfo-close-quote):
* textmodes/bibtex-style.el (auto-mode-alist):
* progmodes/inf-lisp.el (inferior-lisp-prompt):
* progmodes/compile.el (compile-command):
* language/korea-util.el (default-korean-keyboard):
* international/mule-conf.el (file-coding-system-alist):
* emacs-lisp/eldoc.el (eldoc-minor-mode-string):
* tooltip.el (tooltip-frame-parameters):
* newcomment.el (comment-end, comment-padding):
* dired.el (dired-trivial-filenames):
* comint.el (comint-file-name-prefix): Purecopy initial values.
2009-11-11 19:24:20 +00:00
Stefan Monnier
8d6c1239cb * help-fns.el (help-function-arglist): Don't check advertised-signature-table.
(describe-function-1): Do it here instead so it also applies to subrs.
* emacs-lisp/eldoc.el (eldoc-get-fnsym-args-string):
Obey advertised-signature-table.
2009-10-02 14:36:54 +00:00
Juanma Barranquero
eec6d5b710 * emacs-lisp/eldoc.el (eldoc-function-argstring-format):
Revert 2007-09-26 change; use `string-match-p' to check for &keywords.
  (eldoc-get-fnsym-args-string, eldoc-highlight-function-argument):
  Use `string-match-p'.
2009-01-24 11:34:57 +00:00
Glenn Morris
fdb0e509dd (eldoc-minor-mode-string, eldoc-message-commands)
(eldoc-print-current-symbol-info): Doc fix (consistent case of "ElDoc").
2009-01-17 20:01:17 +00:00
Glenn Morris
133ea5b2b2 Remove leading `*' from defcustoms.
(eldoc-argument-case, eldoc-echo-area-use-multiline-p)
(eldoc-highlight-function-argument): Doc fix - mention effect of
eldoc-documentation-function.
(eldoc-message-commands-table-size, eldoc-message-commands)
(eldoc-current-idle-delay, eldoc-get-fnsym-args-string): Doc fix.
(eldoc-documentation-function): Mention effect on user options.
2009-01-16 03:24:54 +00:00
Glenn Morris
ae940284fa Add 2009 to copyright years. 2009-01-05 03:18:22 +00:00
Martin Rudalics
4d1243c826 (eldoc-docstring-first-line): Don't match
any but the first "*" in a doc-string.
2008-11-28 10:23:21 +00:00
Glenn Morris
d6cba7ae45 Switch to recommended form of GPLv3 permissions notice. 2008-05-06 03:21:21 +00:00
Miles Bader
59ce725a3b Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-987
2008-01-08 20:46:54 +00:00
Glenn Morris
8b72699e88 Add 2008 to copyright years. 2008-01-07 01:14:52 +00:00
Juanma Barranquero
a1a57a4244 (eldoc-message-commands-table-size, eldoc-message-commands,
eldoc-current-idle-delay): Fix typos in docstrings.
2007-09-27 21:39:31 +00:00
Juanma Barranquero
c4e36c26f6 (eldoc-function-argstring-format): Deal with the case that special
&keywords are at the beginning or end of the argument list.
Also add some (incomplete) support for non-standard arglists.
2007-09-26 15:59:13 +00:00
Juanma Barranquero
d9d31f0a44 (eldoc-message-commands-table-size, eldoc-message-commands,
eldoc-current-idle-delay, eldoc-function-argstring-format):
Fix typos in docstrings.
2007-09-26 11:55:46 +00:00
Glenn Morris
43fcc18a25 Nikolaj Schumacher <n_schumacher at web.de> (tiny change)
(eldoc-highlight-function-argument): New face.
(eldoc-highlight-function-argument): Use it.
2007-08-24 02:30:59 +00:00
Glenn Morris
ae0195c043 (eldoc-get-fnsym-args-string): Doc fix.
(eldoc-highlight-function-argument): Add a doc string.  Tweak previous
change: no need for INDEX to be optional, just need to handle nil.
2007-08-19 03:05:35 +00:00
Glenn Morris
e5eeb98c62 (eldoc-get-fnsym-args-string): Convert
comment to basic doc string.  Also apply eldoc-argument-case in
the help-split-fundoc case.  Adapt for changed behavior of
eldoc-function-argstring, eldoc-function-argstring-format, and
eldoc-highlight-function-argument.
(eldoc-highlight-function-argument): Make INDEX argument
optional, just call eldoc-docstring-format-sym-doc if absent.
(eldoc-function-argstring): Change the behavior.  Now it converts
an argument list to a string.
(eldoc-function-argstring-format): Change the behavior.  Now it
applies `eldoc-argument-case' to a string.
2007-08-18 23:44:21 +00:00
Glenn Morris
4b4a23c466 (eldoc-get-fnsym-args-string): Make second argument optional, for
backwards compatibility, and only highlight args when present.
Fix symbol name typo (doc/args).
2007-08-08 08:14:03 +00:00
Miles Bader
9aecacd08a Merge from emacs--rel--22
Patches applied:

 * emacs--rel--22  (patch 70-73)

   - Update from CVS

2007-07-25  Glenn Morris  <rgm@gnu.org>

   * Relicense all FSF files to GPLv3 or later.

Revision: emacs@sv.gnu.org/emacs--devo--0--patch-828
2007-07-26 05:28:10 +00:00
Glenn Morris
e0085d62fa Switch license to GPLv3 or later. 2007-07-25 04:14:29 +00:00
Stefan Monnier
1bed504abe (eldoc-last-data): Revise documentation.
(eldoc-print-current-symbol-info): Adjust for changed helper
function signatures.
(eldoc-get-fnsym-args-string): Add `args' argument.  Use new
`eldoc-highlight-function-argument'.
(eldoc-highlight-function-argument): New function.
(eldoc-get-var-docstring): Format documentation with
`font-lock-variable-name-face'.
(eldoc-docstring-format-sym-doc): Add `face' argument and apply it
where suited.
(eldoc-fnsym-in-current-sexp): Return a list with argument index.
(eldoc-beginning-of-sexp): Return number of skipped sexps.
2007-07-12 01:51:52 +00:00
Richard M. Stallman
e850c5e182 (turn-on-eldoc-mode): Doc fix. 2007-05-06 18:10:35 +00:00
Glenn Morris
f0fa15c5e5 Add 2007 to copyright years. 2007-01-21 02:48:43 +00:00
Glenn Morris
d59c31376c Update copyright years. 2006-12-07 05:06:17 +00:00
Chong Yidong
612c16f130 * window.el (mouse-autoselect-window-timer)
(mouse-autoselect-window-position)
	(mouse-autoselect-window-window)
	(mouse-autoselect-window-now): New vars.
	(mouse-autoselect-window-cancel)
	(mouse-autoselect-window-select)
	(mouse-autoselect-window-start): New functions.
	(handle-select-window): Call `mouse-autoselect-window-start' when
	delayed window autoselection is enabled.

	* cus-start.el (mouse-autoselect-window): Handle delayed window
	autoselection.

	* emacs-lisp/eldoc.el: Add `handle-select-window' to the set of
	commands after which it is allowed to print in the echo area.
2006-09-08 14:15:02 +00:00
Thien-Thi Nguyen
ceb4c4d303 Update years in copyright notice; nfc. 2006-02-06 12:31:40 +00:00
Stefan Monnier
c0752bdcf7 Move comments into docstrings.
(eldoc-message-commands): Initialize in its declaration.
Add move-beginning-of-line and move-end-of-line.
(eldoc-add-command, eldoc-add-command-completions)
(eldoc-remove-command, eldoc-remove-command-completions): Simplify.
2005-10-04 21:49:09 +00:00
Eli Zaretskii
156fbeb72c Add move-beginning-of-line, move-end-of-line, end-of-line,
and beginning-of-line to the list of commands after which the echo area
is updated.
2005-08-12 11:21:54 +00:00
Thien-Thi Nguyen
3731a85096 Update years in copyright notice; nfc. 2005-08-06 17:48:15 +00:00
Lute Kamstra
3a35cf56e7 Update FSF's address. 2005-07-04 17:55:18 +00:00
Luc Teirlinck
292c8ae828 (eldoc-mode): Doc fix. 2005-05-18 15:11:36 +00:00
Richard M. Stallman
4021f35884 (eldoc-documentation-function): Add autoload. 2005-05-14 11:25:31 +00:00
Richard M. Stallman
49c650714b Fix previous change. 2005-04-26 11:00:56 +00:00
Richard M. Stallman
0a3e46de17 (eldoc-mode): Doc fix.
(eldoc-documentation-function):
Renamed from eldoc-print-current-symbol-info-function.  Calls changed.
2005-04-26 10:59:44 +00:00
Lute Kamstra
90f5a5a05e (eldoc-mode): Specify :group. 2005-04-04 09:11:34 +00:00
Miles Bader
1f3ddf11e8 Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-196
Remove RCS keywords

2004-04-10  Miles Bader  <miles@gnu.org>

   RCS keyword removal (only non-comment changes are enumerated here):

   * lisp/emacs-lisp/bytecomp.el (byte-compile-version): Variable removed.
   (byte-compile-insert-header): Don't use `byte-compile-version'.
   * lisp/url/url-vars.el (url-version): Use the constant string "Emacs"
   instead of calculating something from the RCS `State' keyword
   [the latter is almost entirely useless anyway].
   * lisp/forms.el (forms-version): Variable removed.
   (forms-mode): Don't use `forms-version'.
   * lisp/recentf.el (recentf-version): Variable removed.
   * lisp/progmodes/delphi.el (delphi-version): Variable removed.
   * lisp/progmodes/ada-mode.el (ada-mode): RCS keyword removed from docstring.
2004-04-10 05:55:49 +00:00
Dave Love
a3d819fcaa (eldoc-print-current-symbol-info-function):
New.
(eldoc-print-current-symbol-info): Use it.
2003-09-06 17:32:31 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Juanma Barranquero
66d0d12c98 (eldoc-echo-area-use-multiline-p): Don't quote nil and t in docstrings. 2003-05-06 17:36:16 +00:00
Stefan Monnier
d16ba2e708 (eldoc-echo-area-multiline-supported-p, eldoc-use-idle-timer-p): Remove.
(timer): Never require.  It only works in current Emacs anyway.
(eldoc-mode, eldoc-message, eldoc-display-message-p)
(eldoc-docstring-format-sym-doc, eldoc-remove-command): Simplify.
2003-02-11 00:11:55 +00:00
John Paul Wallington
14f0195b44 Update copyright. 2003-01-03 11:53:46 +00:00
John Paul Wallington
2dba57c18e (eldoc-get-var-docstring): Only return a
documentation string when `sym' is non-nil.
2003-01-03 11:46:20 +00:00
Stefan Monnier
a2dff4d3d3 (eldoc-print-current-symbol-info):
Turn errors into messages so they don't get ignored.
(eldoc-get-fnsym-args-string): Use help-split-fundoc.
(eldoc-beginning-of-sexp): Simplify.
(eldoc-function-arglist): Remove.
(eldoc-function-argstring): Use help-function-arglist instead.
(eldoc-function-argstring-from-docstring-method-table)
(eldoc-function-argstring-from-docstring): Remove.
2002-11-19 23:32:54 +00:00
Richard M. Stallman
e3b2eba1b6 (eldoc-minor-mode-string): Fix custom type. 2002-01-08 23:57:49 +00:00
Stefan Monnier
95193cc5c4 (eldoc-mode): Use define-minor-mode. 2001-11-16 23:58:48 +00:00
Andreas Schwab
7cc35ed26d (eldoc): Don't make parent of itself. 2000-12-02 20:10:49 +00:00
Noah Friedman
03a9c6d06a (eldoc-minor-mode-string): Add autoload cookie; otherwise autoloaded
add-minor-mode call complains in Emacs 21.
Use add-minor-mode to set minor-mode-alist, if available.

(eldoc-echo-area-use-multiline-p): New user option.
(eldoc-echo-area-multiline-supported-p): New variable.
(eldoc-docstring-format-sym-doc): Use them.
(eldoc-mode): If not using idle timers, append to local post and
pre command hooks.  Suggested by David Byers <davby@ida.liu.se>.

(eldoc-display-message-no-interference-p): Don't interfere with edebug.
Add autoload cookie for eldoc-mode minor-mode-alist initialization.

(eldoc-function-arglist): New function.
(eldoc-function-argstring): Use it.
2000-07-24 00:38:34 +00:00
Andreas Schwab
0ba87ff4f3 (eldoc-argument-case): Fix customize type. 1998-10-30 10:59:23 +00:00
Noah Friedman
44faf98195 (eldoc-message): Check for 1-arg case, and store string in
eldoc-last-message without consing a new string.
Rearrange logic from nested if's into cond's.

(eldoc-print-fnsym-args): Renamed to eldoc-get-fnsym-args-string.
Do not print message; just return string.

(eldoc-get-var-docstring): Renamed from eldoc-print-var-docstring.
Do not print message; just return string.
Cache that string in eldoc-last-data.

(eldoc-last-data): Make into a vector.
(eldoc-get-fnsym-args-string): Use new data form of structure.
(eldoc-get-var-docstring): Here also.

(eldoc-last-data-store): New function.
(eldoc-get-fnsym-args-string): Use it.
(eldoc-get-var-docstring): Here also.

(eldoc-docstring-first-line): Minimize interim string consing.
Call substitute-command-keys on the result.

(eldoc-print-var-docstrings, eldoc-print-docstring,
eldoc-docstring-message): Functions removed.
(eldoc-docstring-format-sym-doc): New function, functionality ripped out of
eldoc-docstring-message.
(eldoc-get-fnsym-args-string, eldoc-get-var-docstring): Use it.
1998-09-19 02:15:26 +00:00
Noah Friedman
bc74e94e2b [top level]: Add up-list' and down-list' to eldoc-message-commands. 1997-07-09 12:44:15 +00:00
Noah Friedman
c128637667 (eldoc-message-commands): Move docstring into comments, since this isn't
a user variable.

(eldoc-message-commands-table-size, eldoc-use-idle-timer-p,
eldoc-function-argstring-from-docstring-method-table): Use defvar,
not defconst.

(eldoc-last-data): Use cons explicitly; don't rely on dotted pair read
syntax.  I'm worried the latter might get compiled as read-only data someday.

(eldoc-docstring-message): If truncating symbol name, show ending of name
rather than beginning.  The former is generally more unique.

(eldoc-function-argstring-from-docstring-method-table): Handle
pathological `save-restriction' case.

[top level]: Add `indent-for-tab-command' to eldoc-message-commands.
1997-05-22 06:47:41 +00:00