1. 01 May, 2016 1 commit
  2. 01 Jan, 2016 1 commit
  3. 17 Oct, 2015 1 commit
  4. 02 Sep, 2015 1 commit
    • Paul Eggert's avatar
      Escape ` and ' in doc · 19532d14
      Paul Eggert authored
      Escape apostrophes and grave accents in docstrings if they are
      are supposed to stand for themselves and are not quotes.  Remove
      apostrophes from docstring examples like ‘'(calendar-nth-named-day
      -1 0 10 year)’ that confuse source code with data.  Do some other
      minor docstring fixups as well, e.g., insert a missing close
      quote.
      19532d14
  5. 24 Aug, 2015 1 commit
    • Paul Eggert's avatar
      More-conservative ‘format’ quote restyling · fbb5531f
      Paul Eggert authored
      Instead of restyling curved quotes for every call to ‘format’,
      create a new function ‘format-message’ that does the restyling,
      and using the new function instead of ‘format’ only in contexts
      where this seems appropriate.
      Problem reported by Dmitry Gutov and Andreas Schwab in:
      http://lists.gnu.org/archive/html/emacs-devel/2015-08/msg00826.html
      http://lists.gnu.org/archive/html/emacs-devel/2015-08/msg00827.html
      * doc/lispref/commands.texi (Using Interactive):
      * doc/lispref/control.texi (Signaling Errors, Signaling Errors):
      * doc/lispref/display.texi (Displaying Messages, Progress):
      * doc/lispref/elisp.texi:
      * doc/lispref/help.texi (Keys in Documentation):
      * doc/lispref/minibuf.texi (Minibuffer Misc):
      * doc/lispref/strings.texi (Formatting Strings):
      * etc/NEWS:
      Document the changes.
      * lisp/abbrev.el (expand-region-abbrevs):
      * lisp/apropos.el (apropos-library):
      * lisp/calc/calc-ext.el (calc-record-message)
      (calc-user-function-list):
      * lisp/calc/calc-help.el (calc-describe-key, calc-full-help):
      * lisp/calc/calc-lang.el (math-read-big-balance):
      * lisp/calc/calc-store.el (calc-edit-variable):
      * lisp/calc/calc-units.el (math-build-units-table-buffer):
      * lisp/calc/calc-yank.el (calc-edit-mode):
      * lisp/calendar/icalendar.el (icalendar-export-region)
      (icalendar--add-diary-entry):
      * lisp/cedet/mode-local.el (mode-local-print-binding)
      (mode-local-describe-bindings-2):
      * lisp/cedet/semantic/complete.el (semantic-completion-message):
      * lisp/cedet/semantic/edit.el (semantic-parse-changes-failed):
      * lisp/cedet/semantic/wisent/comp.el (wisent-log):
      * lisp/cedet/srecode/insert.el (srecode-insert-show-error-report):
      * lisp/descr-text.el (describe-text-properties-1, describe-char):
      * lisp/dframe.el (dframe-message):
      * lisp/dired-aux.el (dired-query):
      * lisp/emacs-lisp/byte-opt.el (byte-compile-log-lap-1):
      * lisp/emacs-lisp/bytecomp.el (byte-compile-log)
      (byte-compile-log-file, byte-compile-warn, byte-compile-form):
      * lisp/emacs-lisp/cconv.el (cconv-convert, cconv--analyze-use)
      (cconv-analyze-form):
      * lisp/emacs-lisp/check-declare.el (check-declare-warn):
      * lisp/emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine):
      * lisp/emacs-lisp/cl-macs.el (cl-symbol-macrolet):
      * lisp/emacs-lisp/edebug.el (edebug-format):
      * lisp/emacs-lisp/eieio-core.el (eieio-oref):
      * lisp/emacs-lisp/eldoc.el (eldoc-minibuffer-message)
      (eldoc-message):
      * lisp/emacs-lisp/elint.el (elint-file, elint-log):
      * lisp/emacs-lisp/find-func.el (find-function-library):
      * lisp/emacs-lisp/macroexp.el (macroexp--obsolete-warning):
      * lisp/emacs-lisp/map-ynp.el (map-y-or-n-p):
      * lisp/emacs-lisp/nadvice.el (advice--make-docstring):
      * lisp/emacs-lisp/package.el (package-compute-transaction)
      (package-install-button-action, package-delete-button-action)
      (package-menu--list-to-prompt):
      * lisp/emacs-lisp/timer.el (timer-event-handler):
      * lisp/emacs-lisp/warnings.el (lwarn, warn):
      * lisp/emulation/viper-cmd.el:
      (viper-toggle-parse-sexp-ignore-comments)
      (viper-kill-buffer, viper-brac-function):
      * lisp/emulation/viper-macs.el (viper-record-kbd-macro):
      * lisp/facemenu.el (facemenu-add-new-face):
      * lisp/faces.el (face-documentation, read-face-name)
      (face-read-string, read-face-font, describe-face):
      * lisp/files.el (find-alternate-file, hack-local-variables)
      (hack-one-local-variable--obsolete, write-file)
      (basic-save-buffer, delete-directory):
      * lisp/format.el (format-write-file, format-find-file)
      (format-insert-file):
      * lisp/help-fns.el (help-fns--key-bindings)
      (help-fns--compiler-macro, help-fns--obsolete)
      (help-fns--interactive-only, describe-function-1)
      (describe-variable):
      * lisp/help.el (describe-mode):
      * lisp/info-xref.el (info-xref-output):
      * lisp/info.el (Info-virtual-index-find-node)
      (Info-virtual-index, info-apropos):
      * lisp/international/kkc.el (kkc-error):
      * lisp/international/mule-cmds.el:
      (select-safe-coding-system-interactively)
      (select-safe-coding-system, describe-input-method):
      * lisp/international/mule-conf.el (code-offset):
      * lisp/international/mule-diag.el (describe-character-set)
      (list-input-methods-1):
      * lisp/international/quail.el (quail-error):
      * lisp/minibuffer.el (minibuffer-message):
      * lisp/mpc.el (mpc--debug):
      * lisp/msb.el (msb--choose-menu):
      * lisp/net/ange-ftp.el (ange-ftp-message):
      * lisp/net/gnutls.el (gnutls-message-maybe):
      * lisp/net/newst-backend.el (newsticker--sentinel-work):
      * lisp/net/newst-treeview.el (newsticker--treeview-load):
      * lisp/net/nsm.el (nsm-query-user):
      * lisp/net/rlogin.el (rlogin):
      * lisp/net/soap-client.el (soap-warning):
      * lisp/net/tramp.el (tramp-debug-message):
      * lisp/nxml/nxml-outln.el (nxml-report-outline-error):
      * lisp/nxml/nxml-parse.el (nxml-parse-error):
      * lisp/nxml/rng-cmpct.el (rng-c-error):
      * lisp/nxml/rng-match.el (rng-compile-error):
      * lisp/nxml/rng-uri.el (rng-uri-error):
      * lisp/obsolete/iswitchb.el (iswitchb-possible-new-buffer):
      * lisp/org/org-ctags.el:
      (org-ctags-ask-rebuild-tags-file-then-find-tag):
      * lisp/proced.el (proced-log):
      * lisp/progmodes/ebnf2ps.el (ebnf-log):
      * lisp/progmodes/flymake.el (flymake-log):
      * lisp/progmodes/vhdl-mode.el (vhdl-warning-when-idle):
      * lisp/replace.el (occur-1):
      * lisp/simple.el (execute-extended-command)
      (undo-outer-limit-truncate, define-alternatives):
      * lisp/startup.el (command-line):
      * lisp/subr.el (error, user-error, add-to-list):
      * lisp/tutorial.el (tutorial--describe-nonstandard-key)
      (tutorial--find-changed-keys):
      * src/callint.c (Fcall_interactively):
      * src/editfns.c (Fmessage, Fmessage_box):
      Restyle the quotes of format strings intended for use as a
      diagnostic, when restyling seems appropriate.
      * lisp/subr.el (format-message): New function.
      * src/doc.c (Finternal__text_restyle): New function.
      (syms_of_doc): Define it.
      fbb5531f
  6. 21 Jul, 2015 1 commit
    • Dmitry Gutov's avatar
      Make eldoc timer non-repeatable · 7f58daf8
      Dmitry Gutov authored
      * lisp/emacs-lisp/eldoc.el (eldoc-schedule-timer): Make the timer
      non-repeatable.  Since it's on post-command hook, that just wasted
      CPU cycles.
      7f58daf8
  7. 06 May, 2015 1 commit
    • Stefan Monnier's avatar
      * lisp/cedet/semantic/grammar.el: Fix compiler warnings (bug#20505) · a7d630eb
      Stefan Monnier authored
      (semantic-grammar--template-expand): New function.
      (semantic-grammar-header, semantic-grammar-footer): Use it.
      (semantic-grammar--lex-block-specs): Remove unused var `block-spec'.
      (semantic-grammar-file-regexp): Refine regexp.
      (semantic-grammar-eldoc-get-macro-docstring):
      Use elisp-get-fnsym-args-string when available.
      (semantic-idle-summary-current-symbol-info): Use new elisp-* names
      instead of the old eldoc-* names.
      
      * lisp/emacs-lisp/eldoc.el (eldoc-docstring-format-sym-doc): Move back
      from elisp-mode.el.  Tweak calling convention.
      
      * lisp/progmodes/elisp-mode.el (package-user-dir): Declare.
      (elisp-get-fnsym-args-string): Add `prefix' argument.  Rename from
      elisp--get-fnsym-args-string.
      (elisp--highlight-function-argument): Add `prefix' arg.
      (elisp-get-var-docstring): Rename from elisp--get-var-docstring.
      (elisp--docstring-format-sym-doc): Move back to eldoc.el.
      a7d630eb
  8. 20 Jan, 2015 1 commit
    • Michal Nazarewicz's avatar
      eldoc: modify `eldoc-documentation-function' using `add-function' · fd020a29
      Michal Nazarewicz authored
      * lisp/emacs-lisp/eldoc.el (eldoc-documentation-function): Describe how
      major modes should use `add-function' to alter value of the variable.
      
      * lisp/hexl.el (hexl-mode): Set `eldoc-documentation-function' using
      `add-function' so the default value is always used.
      * lisp/ielm.el (inferior-emacs-lisp-mode): Set
      `eldoc-documentation-function' using `add-function' so the default
      value is always used.
      * lisp/progmodes/cfengine.el (cfengine3-mode): Set
      `eldoc-documentation-function' using `add-function' so the default
      value is always used.
      * lisp/progmodes/elisp-mode (emacs-lisp-mode): Set
      `eldoc-documentation-function' using `add-function' so the default
      value is always used.
      * lisp/progmodes/octave.el (octave-mode): Set
      `eldoc-documentation-function' using `add-function' so the default
      value is always used.
      * lisp/progmodes/python.el (python-mode): Set
      `eldoc-documentation-function' using `add-function' so the default
      value is always used.
      * lisp/simple.el (read--expression): Set `eldoc-documentation-function'
      using `add-function' so the default value is always used.
      fd020a29
  9. 01 Jan, 2015 2 commits
  10. 11 Dec, 2014 1 commit
  11. 15 Oct, 2014 1 commit
  12. 29 Sep, 2014 1 commit
  13. 27 Sep, 2014 2 commits
    • Leo Liu's avatar
      * lisp/emacs-lisp/eldoc.el (eldoc-mode): Fix thinko. · 548e1696
      Leo Liu authored
      * lisp/progmodes/elisp-mode.el (elisp--eldoc-last-data): Use defvar.
      548e1696
    • Stefan Monnier's avatar
      Introduce global-eldoc-mode. Move Elisp-specific code to elisp-mode.el. · e6cfa098
      Stefan Monnier authored
      * lisp/emacs-lisp/eldoc.el (global-eldoc-mode): New minor mode.
      (eldoc-schedule-timer): Obey it.
      (eldoc-documentation-function): Default to nil.
      (eldoc-mode): Don't enable if eldoc-documentation-function is not set.
      (eldoc-documentation-function-default, eldoc-get-fnsym-args-string)
      (eldoc-highlight-function-argument, eldoc-get-var-docstring)
      (eldoc-last-data-store, eldoc-docstring-first-line)
      (eldoc-docstring-format-sym-doc, eldoc-fnsym-in-current-sexp)
      (eldoc-beginning-of-sexp, eldoc-current-symbol)
      (eldoc-function-argstring): Move to elisp-mode.el.
      (eldoc-symbol-function): Remove, unused.
      * lisp/progmodes/elisp-mode.el: New file.  Rename all "eldoc-*" to "elisp--*".
      (elisp-completion-at-point): Rename from lisp-completion-at-point.
      (elisp--preceding-sexp): Rename from preceding-sexp.
      * lisp/loadup.el: Load new file progmodes/elisp-mode.
      * lisp/ielm.el (inferior-emacs-lisp-mode): Set eldoc-documentation-function.
      * lisp/emacs-lisp/lisp.el (lisp--local-variables-1, lisp--local-variables)
      (lisp--local-variables-completion-table, lisp--expect-function-p)
      (lisp--form-quoted-p, lisp--company-doc-buffer)
      (lisp--company-doc-string, lisp--company-location)
      (lisp-completion-at-point): Move to elisp-mode.el.
      * lisp/emacs-lisp/lisp-mode.el (lisp--mode-syntax-table): New syntax-table,
      extracted from emacs-lisp-mode-syntax-table.
      (emacs-lisp-mode-abbrev-table, emacs-lisp-mode-syntax-table): Move to
      elisp-mode.el.
      (lisp-imenu-generic-expression): Add comments to document what comes
      from which Lisp dialect.
      (emacs-lisp-mode-map, emacs-lisp-byte-compile)
      (emacs-lisp-byte-compile-and-load, emacs-lisp-mode-hook)
      (emacs-lisp-mode, emacs-list-byte-code-comment-re)
      (emacs-lisp-byte-code-comment)
      (emacs-lisp-byte-code-syntax-propertize, emacs-lisp-byte-code-mode)
      (lisp-interaction-mode-map, lisp-interaction-mode)
      (eval-print-last-sexp, last-sexp-setup-props)
      (last-sexp-toggle-display, prin1-char, preceding-sexp)
      (eval-last-sexp-1, eval-last-sexp-print-value)
      (eval-last-sexp-fake-value, eval-sexp-add-defvars, eval-last-sexp)
      (eval-defun-1, eval-defun-2, eval-defun): Move to elisp-mode.el.
      * src/lisp.mk (lisp): Add elisp-mode.elc.
      e6cfa098
  14. 11 Sep, 2014 1 commit
    • Paul Eggert's avatar
      Spelling fixes. · 0f2ed592
      Paul Eggert authored
      * lisp/ses.el (ses-file-format-extend-parameter-list): Rename from
      ses-file-format-extend-paramter-list.  All uses changed.
      * lisp/gnus-cloud.el (gnus-cloud-parse-version-1): Fix misspelling
      of ":delete".
      0f2ed592
  15. 04 Sep, 2014 2 commits
  16. 18 Aug, 2014 1 commit
    • Thierry Volpiatto's avatar
      * lisp/emacs-lisp/eldoc.el (eldoc-highlight-function-argument): Add support · 2e7d4343
      Thierry Volpiatto authored
      for &key args.
      * emacs-lisp/eldoc.el (eldoc-argument-case): Obsolete and change default.
      (eldoc-function-argstring-format): Remove.
      (eldoc-function-argstring): Always return upcase args.
      Use help-make-usage.  Don't add parens.
      (eldoc-get-fnsym-args-string): Don't obey eldoc-argument-case since
      it's too late to do it right (bug#18048).
      2e7d4343
  17. 31 Mar, 2014 1 commit
  18. 10 Mar, 2014 1 commit
  19. 30 Jan, 2014 2 commits
  20. 21 Jan, 2014 1 commit
  21. 12 Jan, 2014 2 commits
    • Leo Liu's avatar
      Some minor fixes · 3b922c70
      Leo Liu authored
      * dired-x.el (dired-mode-map): Fix last change.
      * emacs-lisp/eldoc.el (eldoc-mode): Add hook locally.
      3b922c70
    • Leo Liu's avatar
      Re-implement the feature of showing eldoc info after editing. · 9b335362
      Leo Liu authored
      * 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
      9b335362
  22. 06 Jan, 2014 1 commit
    • Stefan Monnier's avatar
      * lisp/abbrev.el (define-abbrev): Beware new meaning of fboundp. · 6bdd9204
      Stefan Monnier authored
      * 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.
      6bdd9204
  23. 01 Jan, 2014 1 commit
  24. 04 Dec, 2013 1 commit
  25. 12 Sep, 2013 1 commit
    • Glenn Morris's avatar
      Use with-demoted-errors now that it can format any error messages · 30213927
      Glenn Morris authored
      * 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.
      30213927
  26. 29 Aug, 2013 1 commit
    • Stefan Monnier's avatar
      Misc changes to reduce use of `(lambda...); and other cleanups. · 40f7e0e8
      Stefan Monnier authored
      * 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.
      40f7e0e8
  27. 18 Mar, 2013 1 commit
    • Leo Liu's avatar
      Make sure eldoc can be turned off properly. · 33cef733
      Leo Liu authored
      * 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.
      33cef733
  28. 17 Mar, 2013 1 commit
    • Leo Liu's avatar
      * simple.el (eval-expression-minibuffer-setup-hook): New hook. · 69489f1d
      Leo Liu authored
      (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
      69489f1d
  29. 18 Feb, 2013 1 commit
  30. 01 Jan, 2013 1 commit
  31. 11 Jan, 2012 1 commit
  32. 05 Jan, 2012 1 commit
  33. 14 Nov, 2011 1 commit
  34. 20 Oct, 2011 1 commit
    • Chong Yidong's avatar
      Fix more minor mode docstrings. · ac6c8639
      Chong Yidong authored
      * 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).
      ac6c8639
  35. 25 Jan, 2011 1 commit