summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Avoid duplicates in `package-activated-list'Sam Steingold2022-05-261-2/+3
|/ / | | | | | | | | | | * lisp/emacs-lisp/package.el (package-quickstart-refresh): Calling `package-activate-all' twice leads to duplicates in `package-activated-list' - avoid that.
* | Faster and less recursive byte-compile--first-symbol-with-posMattias Engdegård2022-05-261-31/+26
| | | | | | | | | | | | * lisp/emacs-lisp/bytecomp.el (byte-compile--first-symbol-with-pos) (byte-compile--warning-source-offset): Remove recursion for cdr-traversal of lists, and optimise (bug#55414).
* | Make comp--native-compile delete the temp file it createsLars Ingebrigtsen2022-05-261-42/+53
| | | | | | | | | | * lisp/emacs-lisp/comp.el (comp--native-compile): Delete the temporary files we create (bug#55611).
* | Make memory-report not bug out with symbols with positionsLars Ingebrigtsen2022-05-261-0/+4
| | | | | | | | | | * lisp/emacs-lisp/memory-report.el (memory-report--object-size-1): Don't bug out when there are symbols with positions.
* | Don't have edebug bug out if C-x is reboundLars Ingebrigtsen2022-05-251-1/+4
| | | | | | | | | | * lisp/emacs-lisp/edebug.el (edebug-global-prefix): Don't bug out if C-x has been rebound (bug#55607).
* | Update edebug commentsLars Ingebrigtsen2022-05-251-1/+1
| | | | | | | | | | * lisp/emacs-lisp/edebug.el: Update function name in comments (bug#55607).
* | Fix ert-run-tests-batch-and-exit doc string typoLars Ingebrigtsen2022-05-251-1/+1
| | | | | | | | | | * lisp/emacs-lisp/ert.el (ert-run-tests-batch-and-exit): Fix doc string typo.
* | Autoload package-update-allLars Ingebrigtsen2022-05-251-1/+2
| | | | | | | | | | * lisp/emacs-lisp/package.el (package-update-all): Autoload and tweak querying so that -f works.
* | Fix comp-mvar doc string quotingLars Ingebrigtsen2022-05-241-1/+1
| | | | | | | | | | * lisp/emacs-lisp/comp.el (comp-mvar): Fix quoting of symbol in doc string.
* | Make byte compilation warn about wrong quoting in doc stringsLars Ingebrigtsen2022-05-241-15/+32
| | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/bytecomp.el (byte-compile-docstring-length-warn): Made into obsolete alias. (byte-compile-docstring-style-warn): Also warn about other stylistic issues. (byte-compile-file-form-autoload, byte-compile-file-form-defvar) (byte-compile-file-form-defvar-function, byte-compile-lambda) (byte-compile-defvar, byte-compile-file-form-defalias): Adjust callers.
* | Make `yank-transform-functions` a proper hookStefan Monnier2022-05-241-1/+1
| | | | | | | | | | | | * lisp/subr.el (insert-for-yank): Use `run-hook-wrapped` to run `yank-transform-functions`. * lisp/simple.el (yank-transform-functions): Adjust accordingly.
* | Make the nativecomp test eln directory more reliably be removedLars Ingebrigtsen2022-05-241-12/+22
| | | | | | | | | | | | | | | | | | | | * lisp/startup.el (startup-redirect-eln-cache, normal-top-level): Don't create the nativecomp directory here, because this led to brittle deletions of the directory -- there would be several instances of the directory left over after a test run. * lisp/emacs-lisp/ert.el (ert-run-tests-batch-and-exit): Create the nativecomp directory.
* | Further audits of single quotes in Lisp doc stringsLars Ingebrigtsen2022-05-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * test/manual/etags/el-src/emacs/lisp/progmodes/etags.el (tags-apropos-additional-actions): * lisp/window.el (delete-window-choose-selected): * lisp/vc/ediff-merg.el (ediff-combination-pattern): * lisp/vc/diff.el (diff-no-select): * lisp/tab-bar.el (tab-bar-new-tab-choice): * lisp/simple.el (next-error-message-highlight): (backward-delete-char-untabify): * lisp/ses.el (ses-jump-cell-name-function): * lisp/org/org.el (org-latex-to-html-convert-command): * lisp/org/org-agenda.el (org-agenda-sorting-strategy): * lisp/net/tramp.el (tramp-default-file-modes): * lisp/net/newst-treeview.el (newsticker-treeview-use-feed-name-from-url-list-in-treeview): * lisp/net/eww.el (eww-auto-rename-buffer): * lisp/mwheel.el (mouse-wheel-scroll-amount): * lisp/mail/rmail.el (rmail-re-abbrevs): * lisp/info.el (Info-history-forward-menu): * lisp/gnus/nnselect.el (nnselect-retrieve-headers-override-function): * lisp/gnus/gnus-start.el (gnus-subscribe-hierarchical-interactive): * lisp/fringe.el (fboundp): * lisp/eshell/esh-var.el (eshell-variable-aliases-list): * lisp/emacs-lisp/checkdoc.el (checkdoc-column-zero-backslash-before-paren): * lisp/dired-aux.el (dired-confirm-shell-command): * lisp/calendar/calendar.el (calendar-time-zone-style): * lisp/ansi-color.el (ansi-color-faces-vector): (ansi-color-names-vector): Audit use of various single quotes in Lisp doc strings.
* | Audit symbol quoting in Lisp doc stringsLars Ingebrigtsen2022-05-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/vc/vc-svn.el (vc-svn-dir-status-files): * lisp/so-long.el (so-long-mode-maintain-preserved-variables): * lisp/help-fns.el (help-fns--most-relevant-active-keymap): * lisp/gnus/nnselect.el (nnselect-get-artlist): (nnselect-store-artlist): * lisp/forms.el (forms-enumerate): * lisp/ffap.el (ffap-string-at-point): * lisp/emacs-lisp/byte-run.el (define-obsolete-variable-alias): Audit symbol quoting in Lisp doc strings.
* | Fix previous warning suppression changeLars Ingebrigtsen2022-05-222-3/+3
| | | | | | | | | | | | | | | | * lisp/emacs-lisp/bytecomp.el (byte-compile-emit-callargs-warn) (byte-compile-subr-wrong-args): * lisp/emacs-lisp/byte-run.el (with-suppressed-warnings): * lisp/cedet/semantic/fw.el (semantic-install-function-overrides): The `wrong-args' warning is really called `callargs'.
* | Allow suppressing messages about the wrong number of argumentsLars Ingebrigtsen2022-05-222-16/+18
| | | | | | | | | | | | | | | | * lisp/emacs-lisp/byte-run.el (with-suppressed-warnings): Add `wrong-args'. * lisp/emacs-lisp/bytecomp.el (byte-compile-emit-callargs-warn) (byte-compile-subr-wrong-args): Allow suppressing wrong number of arguments.
* | comp.el: Cosmetic changesStefan Monnier2022-05-221-23/+39
| | | | | | | | | | | | * lisp/emacs-lisp/comp.el (comp-run-async-workers): Tweak code. (comp-run-async-workers): Don't set `buffer-read-only` directly. (native--compile-async): Fix misuse of "path".
* | Rename compare-window-configurations and update docLars Ingebrigtsen2022-05-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/windows.texi (Window Configurations): Update name. * lisp/strokes.el (strokes-window-configuration-changed-p): * lisp/emacs-lisp/byte-opt.el (side-effect-free-fns): Update callers and references. * lisp/subr.el (compare-window-configurations): Make into obsolete alias. * src/window.c (Fwindow_configuration_equal_p): Rename (bug#14964).
* | Fix font-locking of (defun foo (function ...))Lars Ingebrigtsen2022-05-201-0/+3
| | | | | | | | | | | | * lisp/emacs-lisp/lisp-mode.el (lisp--el-funcall-position-p): Don't colorize the `function' in (defun foo (function ...)) as a special form (bug#37074).
* | Fix M-x compile-defun when an interactive form is (list ...)Alan Mackenzie2022-05-181-9/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | This is for when lexical-binding is nil. The problem fixed was M-x compile-defun leaving symbols with position in the compiled function's arglist and interactive form. This fixes bug #55323. Also ensure the doc string is correctly stripped when lexical-binding is t. * lisp/emacs-lisp/bytecomp.el (byte-compile-lambda): For a (list ...) interactive form when lexical-binding is nil, strip the positions from the symbols in the form. Also strip the position from the symbols in the arglist. (byte-compile-make-closure): (Twice) strip symbols from positions in the doc string expression. Add comments.
* | Fix pp-emacs-lisp-code printing of cons cellsLars Ingebrigtsen2022-05-171-1/+1
| | | | | | | | | | * lisp/emacs-lisp/pp.el (pp--insert-lisp): Fix printing of cons cells (bug#55478).
* | Fix package-quickstart breakageLars Ingebrigtsen2022-05-171-1/+1
| | | | | | | | | | | | * lisp/emacs-lisp/package.el (package-quickstart-refresh): Work around syntax-ppss now clobbering match data (but it's not clear whether that's supposed to be allowed) (bug#55447).
* | Fix edebug-tests test failure after prin1 changeLars Ingebrigtsen2022-05-171-1/+2
| | | | | | | | | | * lisp/emacs-lisp/ert-x.el (ert--make-print-advice): Fix test failures in edebug-tests.
* | ; Fix two mail addressesAndrea Corallo2022-05-162-2/+2
| | | | | | | | | | ;* lisp/emacs-lisp/comp.el: Fix author's mail address. ;* lisp/emacs-lisp/comp-cstr.el: Likewise.
* | Minor clarification of package-update-all docstringStefan Kangas2022-05-151-2/+2
| | | | | | | | | | * lisp/emacs-lisp/package.el (package-update-all): Clarify docstring slightly. (Bug#55408)
* | Fix native-comp type of prin1-to-stringLars Ingebrigtsen2022-05-151-1/+1
| | | | | | | | | | * lisp/emacs-lisp/comp.el (comp-known-type-specifiers): Fix type of prin1-to-string.
* | ; Fix typosStefan Kangas2022-05-151-1/+1
| |
* | Remove some XEmacs compat code for display-graphic-pStefan Kangas2022-05-151-4/+2
| | | | | | | | | | | | | | | | | | | | * lisp/dframe.el (dframe-have-timer-flag): * lisp/emacs-lisp/chart.el (chart-face-pixmap-list): * lisp/speedbar.el (speedbar-easymenu-definition-base): Remove XEmacs compat code; assume display-graphic-p is fboundp. * lisp/progmodes/cperl-mode.el (cperl-tags-hier-init): Remove XEmacs compat code.
* | Make 'check-declare-directory' more portableEli Zaretskii2022-05-141-5/+1
| | | | | | | | | | | | * lisp/emacs-lisp/check-declare.el (check-declare-directory): Use 'directory-files-recursively' instead of running Find and Grep in a subprocess. (Bug#55386)
* | ; Fix mistakes in 'declare function' formsEli Zaretskii2022-05-141-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/gdb-mi.el (tooltip-show): * lisp/vc/vc-git.el (grep-expand-template): * lisp/cedet/semantic/imenu.el (pulse-momentary-highlight-one-line): * lisp/mail/feedmail.el (smtpmail-via-smtp): * lisp/mail/rmail.el (rmail-mime-entity-truncated): * lisp/mail/rmailsum.el (rmail-cease-edit): * lisp/progmodes/gud.el (speedbar-toggle-line-expansion) (speedbar-edit-line): * lisp/autoinsert.el (sgml-tag): * lisp/comint.el (url-host, url-type, url-filename): * lisp/progmodes/elisp-mode.el (xref-make, xref-item-location): * lisp/vc/vc-hooks.el (vc-responsible-backend): * lisp/cedet/semantic/complete.el (tooltip-show): * lisp/doc-view.el (tooltip-show): * lisp/follow.el (mwheel-scroll): * lisp/term/pgtk-win.el (pgtk-set-resource): * lisp/progmodes/cperl-mode.el (Info-find-node): * lisp/lpr.el (print-region-function): * lisp/w32-fns.el (w32-version, w32-read-registry): * lisp/emacs-lisp/checkdoc.el (ispell-correct-p, checkdoc-dired): * lisp/progmodes/xref.el (apropos-parse-pattern): * lisp/cus-edit.el (apropos-parse-pattern): * lisp/obsolete/gs.el (x-change-window-property): * lisp/x-dnd.el (x-change-window-property): * lisp/xwidget.el (make-xwidget): * lisp/transient.el (info, Man-find-section, Man-next-section) (Man-getpage-in-background): * lisp/frame.el (x-device-class, pgtk-device-class): * lisp/textmodes/texinfo.el (flymake--log-1): * lisp/term/x-win.el (x-internal-focus-input-context): Fix 'declare function' errors uncovered by 'check-declare'.
* | Fix undigest-tests on MS-WindowsEli Zaretskii2022-05-141-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/ert-x.el (ert-with-temp-file): Accept a new keyword argument :coding CODING to use as the encoding when writing initial text to the temporary file. * test/lisp/mail/undigest-tests.el (rmail-undigest-test-rfc934-digest) (rmail-undigest-test-rfc1153-digest-strict) (rmail-undigest-test-rfc1153-less-strict-digest) (rmail-undigest-test-rfc1153-sloppy-digest) (rmail-undigest-test-rfc1521-mime-digest) (rmail-undigest-test-multipart-mixed-digest): Force the temporary mbox files to have Unix-style EOL format.
* | Tweak querying in package-update-allLars Ingebrigtsen2022-05-141-5/+6
| | | | | | | | | | * lisp/emacs-lisp/package.el (package-update-all): Reverse the QUERY logic to make calling more regular.
* | Add new minor mode `header-line-indent-mode'Lars Ingebrigtsen2022-05-131-49/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is mostly factored out from tabulated-list.el (with bugs fixed). * doc/lispref/modes.texi (Header Lines): Document it. * lisp/display-line-numbers.el (header-line-indent): New variable. (header-line-indent--line-number-width) (header-line-indent--watch-line-number-width) (header-line-indent--window-scroll-function): New helper functions. (header-line-indent-mode): New minor mode. * lisp/display-line-numbers.el (header-line-indent-width): New variable. * lisp/emacs-lisp/tabulated-list.el (tabulated-list-line-number-width) (tabulated-list-watch-line-number-width) (tabulated-list-window-scroll-function): Make into obsolete aliases. (tabulated-list-mode): Use 'header-line-indent-mode'. * lisp/emacs-lisp/tabulated-list.el (tabulated-list-init-header): Adjust the header line format and computation. * src/buffer.c (syms_of_buffer): Mention header-line-indent-mode.
* | Include the number of dependencies in the install promptLars Ingebrigtsen2022-05-131-8/+36
| | | | | | | | | | | | * lisp/emacs-lisp/package.el (package-menu--list-to-prompt): Add the info to the prompt (bug#23346). (package--dependencies): New function.
* | Allow calling package-update-all from the command lineLars Ingebrigtsen2022-05-131-0/+1
| | | | | | | | | | * lisp/emacs-lisp/package.el (package-update-all): Allow calling from the command line with -f package-update-all without any queries.
* | New command 'package-update-all'Lars Ingebrigtsen2022-05-121-20/+38
| | | | | | | | | | | | | | * lisp/emacs-lisp/package.el (package-update-all): New function (bug#19146). (package--updateable-packages): Factored out... (package-update): ... from here.
* | (byte-compile-eval): Avoid some false positive "noruntime" warningsStefan Monnier2022-05-111-2/+8
| | | | | | | | | | * lisp/emacs-lisp/bytecomp.el (byte-compile-eval): Loosen the check before refraining from adding a function to noruntime.
* | Don't signal errors in check-declare-directoryLars Ingebrigtsen2022-05-111-4/+5
| | | | | | | | | | | | * lisp/emacs-lisp/check-declare.el (check-declare-directory): Don't bug out if we don't find any files with declare-function:(bug#55354) because this is a predicate function, and that's inconvenient.
* | Warn about quoted symbols in defcustom choice/other formsLars Ingebrigtsen2022-05-111-4/+28
| | | | | | | | | | | | | | * lisp/emacs-lisp/bytecomp.el (byte-compile--suspicious-defcustom-choice): New function (bug#16271). (byte-compile-nogroup-warn): Use it to warn about forms like (choice (const :tag "foo" 'bar)).
* | Make imenu find defalias entriesLars Ingebrigtsen2022-05-101-0/+9
| | | | | | | | | | * lisp/emacs-lisp/lisp-mode.el (lisp-imenu-generic-expression): Also find defalias (bug#7855).
* | Allow non-interactive use of eldoc-doc-bufferJoão Távora2022-05-091-8/+11
| | | | | | | | | | | | * lisp/emacs-lisp/eldoc.el (eldoc-doc-buffer): Allow non-interactive use. (Version): Bump minor.
* | * lisp/emacs-lisp/oclosure.el (oclosure-define): Fix empty caseStefan Monnier2022-05-081-1/+1
| |
* | Make `x' in package-menu-mode more DWIMLars Ingebrigtsen2022-05-071-4/+27
| | | | | | | | | | | | * lisp/emacs-lisp/package.el (package-menu-mode): Make the doc string more helpful. (package-menu-execute): Make `x' when no files are installed DWIM.
* | Make down-list signal an error if called inside a stringLars Ingebrigtsen2022-05-061-0/+2
| | | | | | | | | | * lisp/emacs-lisp/lisp.el (down-list): Signal an error inside a string (bug#5588).
* | * lisp/emacs-lisp/smie.el (smie-auto-fill): Fix bug#19342Stefan Monnier2022-05-061-1/+3
| |
* | Respect help-window-keep-selected in shortdoc buttonsLars Ingebrigtsen2022-05-061-3/+7
| | | | | | | | | | | | | | | | * lisp/help-fns.el (help-fns--mention-shortdoc-groups): Respect help-window-keep-selected. * lisp/emacs-lisp/shortdoc.el (shortdoc-display-group): Allow reusing the window.
* | Move buffer-local-set-state to subr because it's used at runtimeLars Ingebrigtsen2022-05-061-36/+0
| | | | | | | | | | | | * lisp/subr.el (buffer-local-set-state) (buffer-local-set-state--get, buffer-local-restore-state): Moved from easy-mmode.el because they have to be available run-time.
* | ; Improve documentation of 'buffer-local-set-state'Eli Zaretskii2022-05-061-5/+5
| | | | | | | | | | | | | | | | * lisp/emacs-lisp/easy-mmode.el (buffer-local-set-state) (buffer-local-restore-state): Doc fixes. * doc/lispref/modes.texi (Defining Minor Modes): Fix a typo and improve wording and indexing.
* | Autoload the buffer-local-set* thingsLars Ingebrigtsen2022-05-061-0/+2
| | | | | | | | | | | | * lisp/emacs-lisp/easy-mmode.el (buffer-local-set-state--get) (buffer-local-restore-state): Autoload. Perhaps it would be better to move these functions to subr.el or something...
* | Add new helper macros for minor modes to restore variablesLars Ingebrigtsen2022-05-061-0/+33
| | | | | | | | | | | | | | | | | | | | | | * doc/lispref/modes.texi (Defining Minor Modes): Document it. * lisp/emacs-lisp/easy-mmode.el (buffer-local-set-state): New macro. (buffer-local-set-state--get): Helper function. (buffer-local-restore-state): New function. * lisp/textmodes/word-wrap-mode.el (word-wrap-whitespace-mode): Use it to simplify code.