summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
Commit message (Collapse)AuthorAgeFilesLines
* Improve package install/delete button actionMasahiro Nakamura2020-10-141-4/+2
| | | | | | * lisp/emacs-lisp/package.el (package-install-button-action) (package-delete-button-action): Run describe-package instead of revert-buffer in order to use newer package-desc (bug#43983).
* Fix error in file shortdoc groupLars Ingebrigtsen2020-10-111-0/+1
| | | | | * lisp/emacs-lisp/shortdoc.el (number): Add some more numeric stuff (and clean up some arglists).
* Improve documentation of shortdoc featuresEli Zaretskii2020-10-111-6/+7
| | | | | | | | | | * lisp/help-fns.el (help-fns-describe-function-functions): Doc fix. * lisp/emacs-lisp/shortdoc.el (define-short-documentation-group) (shortdoc-display-group, shortdoc-add-function): Doc fixes. * doc/lispref/help.texi (Documentation Groups): Improve the recently-added documentation and the indexing.
* Add more numeric shortdocsLars Ingebrigtsen2020-10-111-3/+23
| | | | | * lisp/emacs-lisp/shortdoc.el (shortdoc-section) (shortdoc-example): Lighten up colours on light backgrounds.
* Tweak shortdoc colours on light backgroundsLars Ingebrigtsen2020-10-111-2/+2
| | | | | * lisp/emacs-lisp/shortdoc.el (shortdoc-section) (shortdoc-example): Lighten up colours on light backgrounds.
* Autoload shortdoc command and adjust NEWSLars Ingebrigtsen2020-10-111-0/+1
| | | | * lisp/emacs-lisp/shortdoc.el (shortdoc-display-group): Autoload.
* Use Unicode arrows in shortdoc resultsLars Ingebrigtsen2020-10-111-7/+13
| | | | | * lisp/emacs-lisp/shortdoc.el (shortdoc--display-function): Use Unicode arrows if possible.
* Add support for displaying short documentation for function groupsLars Ingebrigtsen2020-10-111-0/+1077
| | | | | | | | | * doc/lispref/help.texi (Documentation Groups): Document it. * lisp/help-fns.el (help-fns--mention-shortdoc-groups): Output references to the shortdocs. * lisp/emacs-lisp/shortdoc.el: New file.
* * lisp/emacs-lisp/easy-mmode.el (define-minor-mode): Doc tweakStefan Monnier2020-10-101-0/+4
| | | | Try and clarify the meaning of `init-value`.
* ; shorten https://lists.gnu.org/archive/html/... linksStefan Kangas2020-10-091-1/+1
|
* Make update-file-autoloads respect generated-autoload-fileLars Ingebrigtsen2020-10-041-0/+1
| | | | | | * lisp/emacs-lisp/autoload.el (update-file-autoloads): Make update-file-autoloads respect `generated-autoload-file', as documented.
* Merge from origin/emacs-27Glenn Morris2020-10-024-6/+6
|\ | | | | | | | | | | | | | | | | 78eacf31e8 ; Fix many typos in symbols in docs and comments d5d12707d6 * doc/misc/flymake.texi (Using Flymake): Fix a typo. (Bug... # Conflicts: # lisp/allout.el # lisp/progmodes/ebrowse.el
| * ; Fix many typos in symbols in docs and commentsStefan Kangas2020-10-024-6/+6
| |
* | Merge from origin/emacs-27Glenn Morris2020-10-022-4/+24
|\| | | | | | | | | 41dcbeccf3 Make aliases introduced in previous patch obsolete 4997032c05 Restore some public debugging functions removed in Emacs 27
| * Make aliases introduced in previous patch obsoleteLars Ingebrigtsen2020-10-011-2/+4
| | | | | | | | | | * lisp/emacs-lisp/debug.el (debugger-toggle-locals): (debug-help-follow): Make reinstated aliases obsolete.
| * Restore some public debugging functions removed in Emacs 27Gemini Lasswell2020-10-012-4/+22
| | | | | | | | | | | | | | | | * lisp/emacs-lisp/backtrace.el (backtrace--to-string): New function. (backtrace-to-string): Use it. Fix whitespace (bug#40728). * lisp/emacs-lisp/debug.el (debugger-insert-backtrace): New function. Mark it as obsolete. (debugger-toggle-locals, debug-help-follow): New aliases.
* | Stop using a dynamically bound 'generated-autoload-file' variableLars Ingebrigtsen2020-10-022-66/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/loading.texi (Autoload): Document change of name (bug#39823). * lisp/emacs-lisp/autoload.el (autoload-find-generated-file): Pass the file name in. (autoload-generated-file): Ditto. (autoload-file-load-name): Ditto. (generate-file-autoloads): Ditto. (autoload--setup-output): Ditto. (autoload-generate-file-autoloads): Ditto, and alter doc string to reflect when `generated-autoload-file' is heeded. (update-file-autoloads): Pass outfile in to functions. (autoload-find-destination): Ditto. (update-directory-autoloads): Make into an obsolete shim around `make-directory-autoloads'. (make-directory-autoloads): Renamed from `update-directory-autoloads' with new semantics. (batch-update-autoloads): Adjust caller. * lisp/emacs-lisp/package.el (package-generate-autoloads): Adjust caller.
* | Don't quote lambdas in several placesStefan Kangas2020-10-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * admin/find-gc.el (find-gc-unsafe): * lisp/align.el (align-rules-list): * lisp/comint.el (comint-arguments): * lisp/double.el (isearch-mode-map): * lisp/ehelp.el (electric-help-command-loop): * lisp/emacs-lisp/cl-macs.el (cl-defstruct): * lisp/emulation/cua-rect.el (cua--copy-rectangle-as-kill) (cua-copy-rectangle-as-text): * lisp/eshell/esh-var.el (eshell-parse-variable-ref): * lisp/hexl.el (hexl-insert-multibyte-char): * lisp/international/titdic-cnv.el (tsang-quick-converter) (ziranma-converter): * lisp/language/tibet-util.el (tibetan-decompose-precomposition-alist): * lisp/mail/mailalias.el (mail-get-names): * lisp/mh-e/mh-e.el (mh-auto-fields-list, mh-identity-default): * lisp/mouse.el (mouse-buffer-menu-map, mouse-buffer-menu-alist): * lisp/play/gametree.el (gametree-make-heading-function): * lisp/shell.el (shell--command-completion-data): * lisp/talk.el (talk-update-buffers): * lisp/tempo.el (tempo-insert-template, tempo-is-user-element) (tempo-build-collection): * lisp/term.el (term-input-filter, term-pager-help): * lisp/textmodes/table.el (table-delete-column): * lisp/url/url-cache.el (url-cache-create-filename-human-readable): * lisp/textmodes/tex-mode.el (latex-imenu-create-index): Don't quote lambdas.
* | Clarify the "Forgot to expand macro" messageLars Ingebrigtsen2020-09-301-1/+2
| | | | | | | | | | * lisp/emacs-lisp/bytecomp.el (byte-compile-form): Make the define-after-use warning for macros clearer (bug#43678).
* | Minor fixes of recent changesEli Zaretskii2020-09-301-1/+1
| | | | | | | | | | | | * lisp/emacs-lisp/generic.el (define-generic-mode): Fix typos. * etc/NEWS: Adjust an entry due to recent changes.
* | * lisp/emacs-lisp/cl-macs.el (hash-table): Define the type's typep testStefan Monnier2020-09-291-0/+1
| |
* | define-generic-mode doc string fixLars Ingebrigtsen2020-09-301-0/+4
| | | | | | | | | | * lisp/emacs-lisp/generic.el (define-generic-mode): Say what a generic mode is (bug#43713).
* | Give better error feedback on wrong password in .gpg filesLars Ingebrigtsen2020-09-301-0/+1
| | | | | | | | | | | | | | | | | | | | * lisp/epa-file.el (epa-file--find-file-not-found-function): Do a user-error when there's a wrong password (bug#43704). (epa--wrong-password-p): New function. (epa-file-insert-file-contents): Use it, and stash the error away for later signalling. * lisp/emacs-lisp/subr-x.el (if-let): Autoload.
* | Handle single-argument `apply' consistently (bug#40968)Pip Cet2020-09-271-13/+16
| | | | | | | | | | | | | | | | | | * src/eval.c (Fapply): Handle (apply nil) without crashing. Document single-argument form. * lisp/emacs-lisp/byte-opt.el (byte-optimize-apply): Don't attempt to optimize single-argument apply. * doc/lispref/functions.texi (Calling Functions): Document single-argument apply. Provide example (bug#40968).
* | string-search robustness and documentation improvement (bug#43598)Mattias Engdegård2020-09-251-0/+1
| | | | | | | | | | | | | | | | * src/fns.c (Fstring_search): Check START-POS argument range. Simplify logic. Improve doc string. * test/src/fns-tests.el (string-search): Add test cases. * doc/lispref/strings.texi (Text Comparison): Elaborate. * lisp/emacs-lisp/byte-opt.el (pure-fns): Mark string-search as pure.
* | Mark string-search as being side effect freeLars Ingebrigtsen2020-09-251-1/+2
| | | | | | | | | | * lisp/emacs-lisp/byte-opt.el (side-effect-free-fns): Add string-search.
* | ; * lisp/emacs-lisp/lisp.el: rename parameter in last changeMattias Engdegård2020-09-231-28/+28
| |
* | Don't signal scan-error when moving by sexp interactivelyMattias Engdegård2020-09-231-45/+95
| | | | | | | | | | | | | | * lisp/emacs-lisp/lisp.el (forward-sexp, backward-sexp, forward-list) (backward-list, down-list, up-list, mark-sexp, kill-sexp) (backward-kill-sexp): Remove unsightly scan-error when running interactively and no further movement by sexp can be made (bug#43489).
* | Make delete-pair only delete pairs that are part of insert-pair-alistmartin rudalics2020-09-221-6/+31
| | | | | | | | | | * lisp/emacs-lisp/lisp.el (delete-pair): Only delete pairs that are part of `insert-pair-alist' (bug#4136).
* | Fix off-by-one error in eldoc--handle-docsLars Ingebrigtsen2020-09-221-0/+4
| | | | | | | | | | * lisp/emacs-lisp/eldoc.el (eldoc--handle-docs): We have one extra line to use if we don't show the truncation message (bug#43543).
* | ; Fix typosStefan Kangas2020-09-214-6/+6
| |
* | Allow disabling the verbose eldoc truncation messageLars Ingebrigtsen2020-09-211-2/+11
| | | | | | | | | | | | | | | | * doc/emacs/programs.texi (Lisp Doc): Document it. * lisp/emacs-lisp/eldoc.el (eldoc-display-truncation-message): New variable (bug#43543). (eldoc--handle-docs): Use it.
* | ; * lisp/emacs-lisp/syntax.el (syntax-propertize-function): Doc fix.Glenn Morris2020-09-201-1/+1
| |
* | Merge from origin/emacs-27Glenn Morris2020-09-201-1/+6
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | df04f3e755 Fix a rare segfault in syntax.c fd1fe1e1ec Add doc to syntax-propertize-function saying it must do a ... fcd599bbea Minor copyedits of doc of 'with-silent-modifications' 759399cdb1 Improve documentation of 'max-mini-window-height' 3223302aa2 Use modern constant names for the NS pasteboard 985703d380 Fix doc string of 'toggle-menu-bar-mode-from-frame' 184a4977c7 Make vc-bzr tests work with brz 3.1 (bug#43314) # Conflicts: # lisp/emacs-lisp/syntax.el # src/syntax.c
| * Add doc to syntax-propertize-function saying it must do a 100% jobAlan Mackenzie2020-09-191-1/+6
| | | | | | | | | | | | | | | | | | | | and cannot be combined with other ways of applying syntax-table text properties. * lisp/emacs-lisp/syntax.el (syntax-propertize-function): Amend doc string. * doc/lispref/syntax.texi (Syntax Properties): Amend the description of the variable.
* | Document and extend menu-bar-make-toggle someDrew Adams2020-09-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2020-09-19 Lars Ingebrigtsen <larsi@gnus.org> * lisp/menu-bar.el (menu-bar-showhide-fringe-menu): Adjust caller. (menu-bar-search-options-menu): Ditto. (menu-bar-options-menu): Ditto. (menu-bar-options-menu): Ditto. * lisp/progmodes/gdb-mi.el (menu): Ditto. * lisp/emacs-lisp/find-func.el (find-function-regexp): Add menu-bar-make-toggle-command. * lisp/menu-bar.el (menu-bar-make-toggle): Compatibility wrapper. 2020-09-19 Drew Adams <drew.adams@oracle.com> * lisp/menu-bar.el (menu-bar-make-toggle-command): Add doc string and allow setting all keywords (bug#17954).
* | Allow customizing hooks defined via define-minor-modeLars Ingebrigtsen2020-09-191-0/+3
| | | | | | | | | | * lisp/emacs-lisp/easy-mmode.el (define-minor-mode): Allow using Customize on the hooks (bug#10773).
* | Save and restore point in ewoc-invalidateAndrii Kolomoiets2020-09-181-20/+28
| | | | | | | | | | | | | | | | * lisp/emacs-lisp/ewoc.el (ewoc--refresh-node): Save and restore point line and column offset. (eowc-map) (ewoc--invalidate) (ewoc-set-hf): Don't use save-excursion * lisp/vc/vc-dir.el (vc-dir-update): Don't save/restore point on calling 'ewoc-invalidate'.
* | Revert "Make delete-pair only delete pairs that are part of insert-pair-alist"Lars Ingebrigtsen2020-09-181-31/+6
| | | | | | | | | | | | This reverts commit 82de8ecc080d91dd05f2432d2d07feb2955aeec4. This patch breaks doing `M-x delete-pair' on "foo" in text-mode.
* | Fix up previous autoload-find-generated-file changeLars Ingebrigtsen2020-09-171-1/+1
| | | | | | | | | | * lisp/emacs-lisp/autoload.el (autoload-find-generated-file): Use the correct name for find-file-hook.
* | Make package install not bug out on weird stuff in find-file-hooksLars Ingebrigtsen2020-09-171-0/+1
| | | | | | | | | | | | * lisp/emacs-lisp/autoload.el (autoload-find-generated-file): Users may have read-only-mode in find-file-hooks (bug#43460) so just disable all the hooks here.
* | Make delete-pair only delete pairs that are part of insert-pair-alistmartin rudalics2020-09-171-6/+31
| | | | | | | | | | * lisp/emacs-lisp/lisp.el (delete-pair): Only delete pairs that are part of `insert-pair-alist' (bug#4136).
* | * test/lisp/emacs-lisp/find-func-tests.el: New file (for bug#43393)Stefan Monnier2020-09-141-0/+12
| | | | | | | | | | | | | | | | * lisp/emacs-lisp/ert-x.el (ert-simulate-keys): New macro. * test/lisp/international/mule-tests.el (mule-cmds--test-universal-coding-system-argument): Use it and enable the test also in batch mode.
* | Revert "Fix completion in `read-library-name'"Lars Ingebrigtsen2020-09-141-14/+4
| | | | | | | | | | | | | | This reverts commit ed44217d3245ddc8f2cf75c9499d5bb37848cfd7. This commit broke the use case of `M-x load-library RET o/or TAB' to expand to org/org.
* | Fix compilation warning in cl-lib.elLars Ingebrigtsen2020-09-121-0/+1
| | | | | | | | | | * lisp/emacs-lisp/cl-lib.el (cl-old-struct-compat-mode): Put the minor mode in the tools group (to avoid a compilation warning).
* | Add gv-define-expander for plist-getNaoya Yamashita2020-09-091-0/+11
| | | | | | | | | | | | | | | | | | | | It is necessary to make plist-get as a generalized variable, and this definition allows user to use setf and other useful functions on plist-get. * lisp/emacs-lisp/gv.el: Add gv-define-expander for plist-get * lisp/emacs-lisp/gv-tests.el: Add new tests for plist-get
* | (define-minor-mode): Don't compute a default :group (bug#41145)Stefan Monnier2020-09-091-10/+1
| | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/easy-mmode.el (define-minor-mode): Rely on the `defcustom`s own defaulting for the :group. * lisp/display-fill-column-indicator.el (global-display-fill-column-indicator-mode): Remove now redundant :group. * lisp/cus-dep.el (custom--get-def): New function. (custom-make-dependencies): Use it.
* | Use format-prompt in calls to completing-read with a default valueLars Ingebrigtsen2020-09-062-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/textmodes/rst.el (rst-insert-list-new-item): * lisp/tab-bar.el (tab-bar-switch-to-tab): * lisp/profiler.el (profiler-start): * lisp/frame.el (set-frame-font): * lisp/erc/erc.el (erc-join-channel): * lisp/emacs-lock.el (emacs-lock--set-mode): * lisp/emacs-lisp/elp.el (elp-set-master): * lisp/emacs-lisp/checkdoc.el () (checkdoc-this-string-valid-engine): * lisp/calendar/todo-mode.el (todo-find-filtered-items-file): * lisp/calendar/calendar.el (calendar-set-date-style): Use `format-prompt' in calls to completing-read that has a default value, but didn't mention that in the prompt.
* | Disable display-warning buttons when doing batch compilesLars Ingebrigtsen2020-09-061-8/+11
| | | | | | | | | | * lisp/emacs-lisp/warnings.el (display-warning): Don't output the buttons when we're not interactive (bug#43244).
* | Use `format-prompt' when prompting with default valuesLars Ingebrigtsen2020-09-069-49/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/woman.el (woman-file-name): * lisp/wid-edit.el (widget-file-prompt-value) (widget-coding-system-prompt-value): * lisp/w32-fns.el (w32-set-system-coding-system): * lisp/vc/vc.el (vc-print-root-log): * lisp/vc/vc-annotate.el (vc-annotate): * lisp/vc/emerge.el (emerge-read-file-name): * lisp/vc/ediff.el (ediff-directories) (ediff-directory-revisions, ediff-directories3) (ediff-merge-directories, ) (ediff-merge-directories-with-ancestor) (ediff-merge-directory-revisions) (ediff-merge-directory-revisions-with-ancestor) (ediff-merge-revisions, ediff-merge-revisions-with-ancestor) (ediff-revision): * lisp/vc/ediff-util.el (ediff-toggle-regexp-match): * lisp/vc/ediff-mult.el (ediff-filegroup-action): * lisp/vc/add-log.el (prompt-for-change-log-name): * lisp/textmodes/table.el (table-insert-row-column) (table-span-cell, table-split-cell-horizontally) (table-split-cell, table-justify, table-generate-source) (table-insert-sequence, table-capture) (table--read-from-minibuffer, table--query-justification): * lisp/textmodes/sgml-mode.el (sgml-tag, sgml-tag-help): * lisp/textmodes/reftex-ref.el (reftex-goto-label): * lisp/textmodes/refer.el (refer-get-bib-files): * lisp/textmodes/css-mode.el (css-lookup-symbol): * lisp/term.el (serial-read-name, serial-read-speed): * lisp/speedbar.el (speedbar-change-initial-expansion-list): * lisp/simple.el (previous-matching-history-element) (set-variable): * lisp/ses.el (ses-read-cell, ses-set-column-width): * lisp/replace.el (query-replace-read-from) (occur-read-primary-args): * lisp/rect.el (string-rectangle, string-insert-rectangle): * lisp/progmodes/tcl.el (tcl-help-on-word): * lisp/progmodes/sh-script.el (sh-set-shell): * lisp/progmodes/python.el (python-eldoc-at-point): * lisp/progmodes/octave.el (octave-completing-read) (octave-update-function-file-comment, octave-insert-defun): * lisp/progmodes/inf-lisp.el (lisp-symprompt): * lisp/progmodes/cperl-mode.el (cperl-info-on-command) (cperl-perldoc): * lisp/progmodes/compile.el (compilation-find-file): * lisp/net/rcirc.el (rcirc-prompt-for-encryption): * lisp/net/eww.el (eww): * lisp/net/browse-url.el (browse-url-with-browser-kind): * lisp/man.el (man): * lisp/mail/sendmail.el (sendmail-query-user-about-smtp): * lisp/mail/mailalias.el (build-mail-aliases): * lisp/mail/mailabbrev.el (merge-mail-abbrevs) (rebuild-mail-abbrevs): * lisp/locate.el (locate-prompt-for-search-string): * lisp/isearch.el (isearch-occur): * lisp/international/ogonek.el (ogonek-read-encoding) (ogonek-read-prefix): * lisp/international/mule.el (read-buffer-file-coding-system) (set-terminal-coding-system, set-keyboard-coding-system) (set-next-selection-coding-system, recode-region): * lisp/international/mule-cmds.el () (universal-coding-system-argument, search-unencodable-char) (select-safe-coding-system-interactively): * lisp/info.el (Info-search, Info-search-backward, Info-menu): * lisp/info-look.el (info-lookup-interactive-arguments): * lisp/imenu.el (imenu--completion-buffer): * lisp/ibuf-ext.el (mode, used-mode, ibuffer-mark-by-mode): * lisp/hi-lock.el (hi-lock-unface-buffer) (hi-lock-read-face-name): * lisp/help.el (view-emacs-news, where-is): * lisp/help-fns.el (describe-variable, describe-symbol) (describe-keymap): * lisp/gnus/mm-decode.el (mm-save-part): * lisp/gnus/gnus-sum.el (gnus-summary-browse-url): * lisp/gnus/gnus-group.el (gnus-group--read-bug-ids) (gnus-group-set-current-level): * lisp/frame.el (make-frame-on-monitor) (close-display-connection, select-frame-by-name): * lisp/format.el (format-encode-buffer, format-encode-region): * lisp/files.el (recode-file-name): * lisp/files-x.el (read-file-local-variable) (read-file-local-variable-value, ) (read-file-local-variable-mode): * lisp/ffap.el (ffap-menu-ask): * lisp/faces.el (face-read-string): * lisp/facemenu.el (facemenu-set-charset): * lisp/erc/erc-dcc.el (erc-dcc-do-GET-command): * lisp/emulation/edt-mapper.el (edt-mapper): * lisp/emacs-lisp/trace.el (trace--read-args) (trace-function-foreground, trace-function-background): * lisp/emacs-lisp/smie.el (smie-config-set-indent): * lisp/emacs-lisp/re-builder.el (reb-change-syntax): * lisp/emacs-lisp/package.el (describe-package): * lisp/emacs-lisp/find-func.el (read-library-name) (find-function-read): * lisp/emacs-lisp/ert.el (ert-read-test-name) (ert-run-tests-interactively): * lisp/emacs-lisp/disass.el (disassemble): * lisp/emacs-lisp/debug.el (debug-on-entry) (debug-on-variable-change): * lisp/emacs-lisp/advice.el (ad-read-advised-function) (ad-read-advice-class, ad-read-advice-name, ad-read-regexp): * lisp/dired-x.el (dired--mark-suffix-interactive-spec): * lisp/dired-aux.el (dired-diff): * lisp/cus-edit.el (custom-variable-prompt, customize-mode) (customize-changed-options): * lisp/completion.el (interactive-completion-string-reader): * lisp/calendar/timeclock.el (timeclock-ask-for-project): * lisp/calc/calcalg3.el (calc-get-fit-variables): * lisp/calc/calc-store.el (calc-edit-variable): * lisp/calc/calc-bin.el (calc-word-size): * lisp/bookmark.el (bookmark-set-internal): * lisp/abbrev.el (read-abbrev-file): Use `format-prompt' for prompting (bug#12443).