summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/eldoc.el
Commit message (Collapse)AuthorAgeFilesLines
...
* * emacs-lisp/eldoc.el (eldoc-print-current-symbol-info): RefactorLeo Liu2014-03-311-18/+16
| | | | | | out eldoc-documentation-function-default. (eldoc-documentation-function-default): New function. (eldoc-documentation-function): Change value.
* * emacs-lisp/eldoc.el (eldoc-minibuffer-message): ClearLeo Liu2014-03-101-1/+3
| | | | | | eldoc-last-message. Fixes: debbugs:16920
* * etc/NEWS: ElDoc related edit.Glenn Morris2014-01-291-0/+1
| | | | * lisp/emacs-lisp/eldoc.el: Related commentary.
* Replace refs to obsolete alias `turn-on-eldoc-mode' with `eldoc-mode'Glenn Morris2014-01-291-3/+3
| | | | | | | | | | | * lisp/hexl.el (hexl-mode-hook): * lisp/ielm.el (ielm-mode-hook): * lisp/emacs-lisp/lisp-mode.el (emacs-lisp-mode-hook) (lisp-interaction-mode-hook): * lisp/progmodes/cfengine.e (cfengine3-documentation-function): Replace obsolete alias `turn-on-eldoc-mode' with `eldoc-mode'. * lisp/emacs-lisp/eldoc.el: Same in commentary.
* * lisp/emacs-lisp/eldoc.el: Properly remove message in minibuffer case.Stefan Monnier2014-01-211-12/+18
| | | | | | | | (eldoc--message-command-p): New function. (eldoc-display-message-p): Use it. (eldoc-pre-command-refresh-echo-area): In the minibuffer case, the message is not automatically erased for us. (eldoc-print-current-symbol-info): Erase previous message, if any.
* Some minor fixesLeo Liu2014-01-121-1/+1
| | | | | * dired-x.el (dired-mode-map): Fix last change. * emacs-lisp/eldoc.el (eldoc-mode): Add hook locally.
* Re-implement the feature of showing eldoc info after editing.Leo Liu2014-01-121-24/+28
| | | | | | | | | | | | | | | * emacs-lisp/eldoc.el (eldoc-post-insert-mode): Remove. (eldoc-edit-message-commands): New function. (eldoc-print-after-edit): New variable. (eldoc-pre-command-refresh-echo-area): Emit message only by eldoc-message-commands. (eldoc-mode): Restrict eldoc-message-commands to editing commands if eldoc-print-after-edit is set. * progmodes/octave.el (octave-mode-menu): Adapt to change in eldoc. Fixes: debbugs:16346
* * lisp/abbrev.el (define-abbrev): Beware new meaning of fboundp.Stefan Monnier2014-01-061-2/+1
| | | | | | | | | | | * lisp/emacs-lisp/elint.el (elint-find-builtins): * lisp/emacs-lisp/eldoc.el (eldoc-symbol-function): * lisp/emacs-lisp/bytecomp.el (byte-compile-callargs-warn) (byte-compile-file-form-defmumble, byte-compile, byte-compile-form): * lisp/emacs-lisp/byte-opt.el (byte-compile-inline-expand): * lisp/apropos.el (apropos-safe-documentation): * lisp/subr.el (symbol-file): Remove redundant fboundp. * lisp/progmodes/idlw-shell.el (idlwave-shell-comint-filter): Use defalias.
* Update copyright year to 2014 by running admin/update-copyright.Paul Eggert2014-01-011-1/+1
|
* Fix eldoc-in-minibuffer's modeline update.Stefan Monnier2013-12-031-11/+8
| | | | | | | * lisp/emacs-lisp/eldoc.el (eldoc-minibuffer-message): Call force-mode-line-update is the proper buffer. Fixes: debbugs:16042
* Use with-demoted-errors now that it can format any error messagesGlenn Morris2013-09-111-21/+20
| | | | | | | | | | | | | | | | * dframe.el (dframe-timer-fn): * files.el (dir-locals-read-from-file): * mpc.el (mpc--status-timer-run, mpc--status-idle-timer-run, mpc-format): * reveal.el (reveal-post-command): * saveplace.el (load-save-place-alist-from-file): * shell.el (shell-resync-dirs): * w32-common-fns.el (x-get-selection-value): * emacs-lisp/copyright.el (copyright-find-copyright): * emacs-lisp/eldoc.el (eldoc-print-current-symbol-info): * emulation/tpu-edt.el (tpu-copy-keyfile): * play/bubbles.el (bubbles--mark-neighbourhood): * progmodes/executable.el (executable-make-buffer-file-executable-if-script-p): * term/pc-win.el (x-get-selection-value): Use with-demoted-errors.
* Misc changes to reduce use of `(lambda...); and other cleanups.Stefan Monnier2013-08-291-3/+4
| | | | | | | | | | | | | | | | | | | * lisp/cus-edit.el: Use lexical-binding. (customize-push-and-save, customize-apropos) (custom-buffer-create-internal): Use closures. * lisp/progmodes/bat-mode.el (bat-mode-syntax-table): "..." are strings. * lisp/progmodes/ada-xref.el: Use setq. * lisp/net/tramp.el (with-tramp-progress-reporter): Avoid setq. * lisp/dframe.el: Use lexical-binding. (dframe-frame-mode): Fix calling convention for hooks. Use a closure. * lisp/speedbar.el (speedbar-frame-mode): Adjust call accordingly. * lisp/descr-text.el: Use lexical-binding. (describe-text-widget, describe-text-sexp, describe-property-list): Use closures. * lisp/comint.el (comint-history-isearch-push-state): Use a closure. * lisp/calculator.el: Use lexical-binding. (calculator-number-to-string): Make it work with lexical-binding. (calculator-funcall): Same and use cl-letf.
* Make sure eldoc can be turned off properly.Leo Liu2013-03-181-14/+13
| | | | | | | | * emacs-lisp/eldoc.el (eldoc-schedule-timer): Conditionalize on eldoc-mode. (eldoc-display-message-p): Revert last change. (eldoc-display-message-no-interference-p) (eldoc-print-current-symbol-info): Tweak.
* * simple.el (eval-expression-minibuffer-setup-hook): New hook.Leo Liu2013-03-171-16/+64
| | | | | | | | | | | | | | | | (eval-expression): Run it. Extend eldoc to display info in the mode-line. * emacs-lisp/eldoc.el (eldoc-post-insert-mode): New minor mode. (eldoc-mode-line-string): New variable. (eldoc-minibuffer-message): New function. (eldoc-message-function): New variable. (eldoc-message): Use it. (eldoc-display-message-p) (eldoc-display-message-no-interference-p): Support eldoc-post-insert-mode. Fixes: debbugs:13978
* * lisp/emacs-lisp/eldoc.el (eldoc-highlight-function-argument):Michael Heerdegen2013-02-171-1/+2
| | | | | | Use font-lock-keyword-face for macros and special forms. Fixes: debbugs:8345
* Update copyright notices for 2013.Paul Eggert2013-01-011-1/+1
|
* Add 2012 to FSF copyright years for Emacs filesGlenn Morris2012-01-051-1/+1
|
* Spelling fixes.Paul Eggert2011-11-141-1/+1
|
* Fix more minor mode docstrings.Chong Yidong2011-10-191-8/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emulation/cua-base.el (cua-mode): * lisp/mail/footnote.el (footnote-mode): * lisp/mail/mailabbrev.el (mail-abbrevs-mode): * lisp/net/xesam.el (xesam-minor-mode): * lisp/progmodes/bug-reference.el (bug-reference-mode): * lisp/progmodes/cap-words.el (capitalized-words-mode): * lisp/progmodes/compile.el (compilation-minor-mode) (compilation-shell-minor-mode): * lisp/progmodes/gud.el (gud-tooltip-mode): * lisp/progmodes/hideif.el (hide-ifdef-mode): * lisp/progmodes/idlw-shell.el (idlwave-shell-electric-debug-mode): * lisp/progmodes/subword.el (subword-mode): * lisp/progmodes/vhdl-mode.el (vhdl-electric-mode, vhdl-stutter-mode): * lisp/progmodes/which-func.el (which-function-mode): * lisp/term/tvi970.el (tvi970-set-keypad-mode): * lisp/term/vt100.el (vt100-wide-mode): * lisp/textmodes/flyspell.el (flyspell-mode): * lisp/textmodes/ispell.el (ispell-minor-mode): * lisp/textmodes/nroff-mode.el (nroff-electric-mode): * lisp/textmodes/paragraphs.el (use-hard-newlines): * lisp/textmodes/refill.el (refill-mode): * lisp/textmodes/reftex.el (reftex-mode): * lisp/textmodes/rst.el (rst-minor-mode): * lisp/textmodes/sgml-mode.el (html-autoview-mode) (sgml-electric-tag-pair-mode): * lisp/textmodes/tex-mode.el (latex-electric-env-pair-mode): * lisp/vc/diff-mode.el (diff-auto-refine-mode, diff-minor-mode): * lisp/emulation/crisp.el (crisp-mode): * lisp/emacs-lisp/eldoc.el (eldoc-mode): * lisp/emacs-lisp/checkdoc.el (checkdoc-minor-mode): Doc fixes for new minor mode behavior. * lisp/erc/erc-fill.el (erc-fill-mode): * lisp/erc/erc-track.el (erc-track-minor-mode): Doc fix. * lisp/erc/erc.el (define-erc-module): Fix autogenerated docstring to reflect Emacs 24 minor mode changes. * lisp/gnus/gnus-cite.el (gnus-message-citation-mode): Doc fix (in Emacs 24, calling a minor mode from Lisp with nil arg enables it, so we have to make the working a bit ambiguous here).
* Convert consecutive FSF copyright years to ranges.Glenn Morris2011-01-241-2/+1
|
* Nuke arch-tags.Glenn Morris2011-01-151-1/+0
|
* Merge from emacs-23Stefan Monnier2011-01-141-1/+1
|\
| * Add 2011 to FSF/AIST copyright years.Glenn Morris2011-01-021-1/+1
| |
* | Fix bug#6265: * eldoc.el: Add completions for new commands left-* and right-*.Juanma Barranquero2010-06-011-7/+7
|/
* Add 2010 to copyright years.Glenn Morris2010-01-131-1/+1
|
* * widget.el (define-widget): Purecopy the docstring.Dan Nicolaescu2009-11-111-1/+1
| | | | | | | | | | | | | | | | | * 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.
* * help-fns.el (help-function-arglist): Don't check advertised-signature-table.Stefan Monnier2009-10-021-1/+4
| | | | | | (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.
* * emacs-lisp/eldoc.el (eldoc-function-argstring-format):Juanma Barranquero2009-01-241-4/+4
| | | | | | 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'.
* (eldoc-minor-mode-string, eldoc-message-commands)Glenn Morris2009-01-171-4/+6
| | | | (eldoc-print-current-symbol-info): Doc fix (consistent case of "ElDoc").
* Remove leading `*' from defcustoms.Glenn Morris2009-01-161-11/+23
| | | | | | | | | (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.
* Add 2009 to copyright years.Glenn Morris2009-01-051-1/+1
|
* (eldoc-docstring-first-line): Don't matchMartin Rudalics2008-11-281-1/+3
| | | | any but the first "*" in a doc-string.
* Switch to recommended form of GPLv3 permissions notice.Glenn Morris2008-05-061-6/+4
|
* Merge from emacs--rel--22Miles Bader2008-01-081-1/+1
|\ | | | | | | Revision: emacs@sv.gnu.org/emacs--devo--0--patch-987
| * Add 2008 to copyright years.Glenn Morris2008-01-071-1/+1
| |
| * (eldoc-message-commands-table-size, eldoc-message-commands,Juanma Barranquero2007-09-271-3/+3
| | | | | | | | eldoc-current-idle-delay): Fix typos in docstrings.
* | (eldoc-function-argstring-format): Deal with the case that specialJuanma Barranquero2007-09-261-1/+2
| | | | | | | | | | &keywords are at the beginning or end of the argument list. Also add some (incomplete) support for non-standard arglists.
* | (eldoc-message-commands-table-size, eldoc-message-commands,Juanma Barranquero2007-09-261-4/+4
| | | | | | | | | | eldoc-current-idle-delay, eldoc-function-argstring-format): Fix typos in docstrings.
* | Nikolaj Schumacher <n_schumacher at web.de> (tiny change)Glenn Morris2007-08-241-1/+6
| | | | | | | | | | (eldoc-highlight-function-argument): New face. (eldoc-highlight-function-argument): Use it.
* | (eldoc-get-fnsym-args-string): Doc fix.Glenn Morris2007-08-191-8/+11
| | | | | | | | | | (eldoc-highlight-function-argument): Add a doc string. Tweak previous change: no need for INDEX to be optional, just need to handle nil.
* | (eldoc-get-fnsym-args-string): ConvertGlenn Morris2007-08-181-41/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | (eldoc-get-fnsym-args-string): Make second argument optional, forGlenn Morris2007-08-081-4/+5
| | | | | | | | | | backwards compatibility, and only highlight args when present. Fix symbol name typo (doc/args).
* | Merge from emacs--rel--22Miles Bader2007-07-261-1/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | 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
| * Switch license to GPLv3 or later.Glenn Morris2007-07-251-1/+1
| |
* | (eldoc-last-data): Revise documentation.Stefan Monnier2007-07-121-30/+90
|/ | | | | | | | | | | | | | (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.
* (turn-on-eldoc-mode): Doc fix.Richard M. Stallman2007-05-061-1/+1
|
* Add 2007 to copyright years.Glenn Morris2007-01-211-1/+1
|
* Update copyright years.Glenn Morris2006-12-071-1/+1
|
* * window.el (mouse-autoselect-window-timer)Chong Yidong2006-09-081-1/+1
| | | | | | | | | | | | | | | | | (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.
* Update years in copyright notice; nfc.Thien-Thi Nguyen2006-02-061-1/+1
|