summaryrefslogtreecommitdiff
path: root/lisp
Commit message (Collapse)AuthorAgeFilesLines
...
* | Fix typo, reported by Manuel UbertiDmitry Gutov2020-09-181-1/+1
| | | | | | | | | | * lisp/progmodes/project.el (project-kill-buffer-conditions): Fix typo.
* | * lisp/tab-bar.el (tab-bar-new-tab-to): Fix tabs not reappearing (bug#42052)James N. V. Cash2020-09-181-1/+0
| | | | | | | | Copyright-paperwork-exempt: yes
* | 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 recent change in wid-editMauro Aranda2020-09-171-1/+2
| | | | | | | | | | | | * lisp/wid-edit.el (widget-button--check-and-call-button): Record the ending position of event, because we might need it when the :mouse-down-action function returns non-nil (bug#20664).
* | Doc string typo fix for mode-line-position-column-formatLars Ingebrigtsen2020-09-171-1/+1
| | | | | | | | | | * lisp/bindings.el (mode-line-position-column-format): Fix typo in doc string.
* | Make face names clickable in Customize buffersOleh Krehel2020-09-171-13/+14
| | | | | | | | | | * lisp/cus-edit.el (custom-face-value-create): Make the face name a clickable button (bug#20664).
* | Refactor a very long wid-edit function and add additional checkingLars Ingebrigtsen2020-09-171-73/+78
| | | | | | | | | | | | * lisp/wid-edit.el (widget-button--check-and-call-button): Factor out a too-long condition/call... (widget-button-click): From here.
* | Allow binding keys in `query-replace-map'Juri Linkov2020-09-171-0/+2
| | | | | | | | | | * lisp/replace.el (perform-replace): Allow binding keys in `query-replace-map' (bug#20687).
* | 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.
* | cperl-mode: Add new value "PBP" for 'cperl-set-style'Harald Jörg2020-09-171-8/+33
| | | | | | | | | | | | | | | | | | | | * lisp/progmodes/cperl-mode.el (cperl-style-alist) (cperl-set-style): Add indentation style recommended by Damian Conway's book "Perl Best Practices". * test/lisp/progmodes/cperl-mode-tests.el (cperl-mode-test-indent-styles): Add a test to verify indentation and unraveling of conditionals (bug#43457).
* | Work on D-Bus properties etcMichael Albinus2020-09-171-9/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/dbus.el (seq, subr-x): Require. (dbus-error-disconnected, dbus-error-service-unknown): New defconst. (dbus-set-property, dbus-register-property): Use `keywordp'. Fix proper value sending a signal. * test/lisp/net/dbus-tests.el (dbus-test04-register-method): Extend test. (dbus--test-signal-received): New defvar. (dbus--test-signal-handler): New defun. (dbus-test05-register-signal) (dbus-test06-register-property-emits-signal): New tests. (dbus-test06-register-property) (dbus-test06-register-property-several-paths): Rename tests.
* | Allow user-defined scoring in GnusAlex Bochannek2020-09-171-10/+44
| | | | | | | | | | * lisp/gnus/gnus-score.el (gnus-score-func): New function (bug#43413). * doc/misc/gnus.texi (Score File Format): Document it.
* | 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).
* | Give Lisp control on the lossage sizeTino Calancha2020-09-171-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a command 'lossage-size' to set the maximum number or recorded keystrokes (Bug#38796). * src/keyboard.c (lossage_limit): Static variable with the current lossage size limit. (MIN_NUM_RECENT_KEYS): Renamed from NUM_RECENT_KEYS. Set it as 100 and use it as the minimum value for lossage_limit. Keep the same default for the vector size as before (300). (lossage-size): New command. (update_recent_keys): Helper function. (command_loop_1) (record_char) (recent-keys) (syms_of_keyboard): Use lossage_limit as the vector size. * lisp/help.el (view-lossage): Mention the new command in the docstring. * etc/NEWS (Changes in Emacs 28.1): Announce this change. * doc/emacs/help.texi (Misc Help): Update manual. * test/src/keyboard-tests.el (keyboard-lossage-size): Add test.
* | Fix up previous change for column/line spec mechanism in the mode lineLars Ingebrigtsen2020-09-171-43/+45
| | | | | | | | | | | | | | | | * lisp/bindings.el (column-number-indicator-zero-based): Make obsolete (bug#28648). (mode-line-position-column-line-format): New variable. (mode-line-position--column-line-properties): New const. (mode-line-position): Use it.
* | Remove pointless use of internAndreas Schwab2020-09-173-7/+7
| | | | | | | | | | | | | | | | * lisp/mwheel.el (mouse-wheel-left-event) (mouse-wheel-right-event): Replace use of intern with quoted symbol. * lisp/profiler.el (profiler-calltree-build-unified): Likewise. * lisp/vc/ediff-util.el (ediff-debug-info): Likewise.
* | D-Bus: keep type information in D-Bus eventsMichael Albinus2020-09-161-32/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/misc/dbus.texi (Errors and Events): * etc/NEWS: D-Bus events keep the type information of their arguments. * lisp/net/dbus.el (dbus-check-event): Fix docstring. (dbus-delete-types, dbus-flatten-types): New defuns. (dbus-handle-event, dbus-register-property, dbus-property-handler): Handle type information. (dbus-set-property): Fix thinko. * src/dbusbind.c (XD_BASIC_DBUS_TYPE): Simplify. (xd_dbus_type_to_symbol): New function. (xd_retrieve_arg): Return type information for the arguments. (xd_read_message_1): Return type information for the error name. (dbus-registered-objects-table): Fix docstring.
* | Fix problem with previous dired.el changeLars Ingebrigtsen2020-09-161-1/+3
| | | | | | | | | | | | | | | | * lisp/dired.el (dired-get-filename): dired-current-directory can't be called before the dired buffer has been set up. (add-hook 'dired-mode-hook 'dired-sort-toggle) calls dired-get-filename in a way that exposes this problem, so avoid it.
* | Tweak previous report-emacs-bug-hook changeLars Ingebrigtsen2020-09-161-1/+2
| | | | | | | | | | | | * lisp/mail/emacsbug.el (report-emacs-bug-hook): Add to the hook locally so sending stuff from Message afterwards won't trigger the same question.
* | ; Minor fix for nsxwidget patchMasahiro Nakamura2020-09-161-2/+2
| | | | | | | | | | | | | | | | * lisp/xwdget.el (xwidget-webkit-download-dir) (xwidget-webkit-save-as-file): Set version to 28.1 because the patch was introduced in Emacs 28.0.50. * src/nsxwidget.m: Fix typo.
* | Make sgml-validate not bug out from buffers not visiting a fileLars Ingebrigtsen2020-09-151-4/+3
| | | | | | | | | | * lisp/textmodes/sgml-mode.el (sgml-validate): Don't bug out when running from a buffer that's not visiting a file (bug#22906).
* | Use a square root character in calc displaysLars Ingebrigtsen2020-09-151-1/+2
| | | | | | | | | | | | * lisp/calc/calccomp.el (math-compose-sqrt): Use a square root character, if possible (bug#22919). Suggested by Zephyr Pellerin <zephyr.pellerin@gmail.com>.
* | Fix up previous replace-in-string commitLars Ingebrigtsen2020-09-151-1/+5
| | | | | | | | * lisp/subr.el (replace-in-string): Fix thinko in implementation.
* | Allow controlling the look of the line/column indicatorsLars Ingebrigtsen2020-09-152-7/+37
| | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/modes.texi (Mode Line Variables): Document them. * lisp/bindings.el (mode-line-position-line-format): New variable (bug#28648). (mode-line-position-column-format): Ditto. (mode-line-position): Use them. * lisp/simple.el (column-number-mode): Mention them. (line-number-mode): Ditto.
* | Add new, simple `replace-in-string' functionLars Ingebrigtsen2020-09-151-0/+30
| | | | | | | | | | | | * lisp/subr.el (replace-in-string): New, side-effect-free function. * doc/lispref/searching.texi (Search and Replace): Document it.
* | * lisp/window.el: Add provide statementStefan Kangas2020-09-151-0/+2
| | | | | | | | | | * lisp/window.el (window): Put a `provide' form to help with the popular `use-package' external package (bug#37053).
* | Enable uniquify-buffer-name-style to be a function.Jimmy Aguilar Mena2020-09-151-5/+16
| | | | | | | | | | | | | | * lisp/uniquify.el (uniquify-buffer-name-style) : Add "Other" custom option (uniquify-get-proposed-name) : Add condition for when uniquify-buffer-name-style is a function.
* | Fix mailclient-send-it after recent browse-url rewriteLars Ingebrigtsen2020-09-151-1/+1
| | | | | | | | | | | | * lisp/mail/mailclient.el (mailclient-send-it): Make this function work again after the browse-url machinery was changed to use browse-url-default-handlers instead.
* | Fix regression in non-querying about mail addresses in "emacs -Q"Lars Ingebrigtsen2020-09-151-6/+9
| | | | | | | | | | * lisp/mail/emacsbug.el (report-emacs-bug-hook): Don't query about the mail address if using an external mailer (bug#43386).
* | Check that the buffer in diff-buffer-with-file is visiting a fileDaniel Martín2020-09-151-0/+2
| | | | | | | | | | | | * lisp/vc/diff.el (diff-buffer-with-file): Signal a specific error when the buffer passed to diff-buffer-with-file is not visiting a file (bug#43401).
* | * 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.
* | Tweak the `C-x v =' command when done from a diff bufferKevin Ryde2020-09-141-3/+10
| | | | | | | | | | * lisp/vc/vc.el (vc-diff): Offer to save the relevant buffer(s) when doing `C-x v =' from a diff buffer (bug#5773).
* | Fix problem of marking files with hidden subdirsStephen Berman2020-09-142-16/+21
| | | | | | | | | | | | | | | | * lisp/dired.el (dired-unhide-subdir): (dired-subdir-hidden-p): (dired-subdir-min): Moved from subr-x. (dired-get-filename): Get the correct filename when directories are hidden (bug#8484).
* | Allow preserving (some) text properties from completion tablesLars Ingebrigtsen2020-09-141-4/+10
| | | | | | | | | | | | | | * doc/lispref/minibuf.texi (Text from Minibuffer): Document it. * lisp/minibuffer.el (completion--replace): Preserve text properties on completed items (bug#43218).
* | Allow hitting RET on info node names with multiple whitespace charsLars Ingebrigtsen2020-09-141-2/+5
| | | | | | | | | | | | | | * lisp/info.el (info--node-canonicalize-whitespace): New function (bug#10784). (Info-extract-menu-node-name): Use it. (Info-find-node): Use it.
* | 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.
* | Further fixups in minibuffer-default--in-prompt-regexpsLars Ingebrigtsen2020-09-141-2/+2
| | | | | | | | | | | | * lisp/minibuf-eldef.el (minibuffer-default--in-prompt-regexps): Really allow shortening the default prompt format to [foo] (if requested) (bug#12443).
* | Calc: fix binomial coefficients for negative arguments (bug#16999)Mattias Engdegård2020-09-141-13/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For some values outside integers 0≤k≤n, (n choose k) gave wrong results, entered infinite recursion or used unreasonably amounts of stack space. This change fixes that and extends the function to all integer arguments using the definitions from M. J. Kronenburg (https://arxiv.org/abs/1105.3689). * lisp/calc/calc-comb.el (calcFunc-choose): Fix sign error to prevent infinite recursion and extend function to handle all integer arguments. (math-choose-iter, math-choose-float-iter): Rewrite in iterative form; no TCO in elisp yet. * test/lisp/calc/calc-tests.el (calc-tests--fac, calc-tests--choose) (calc-tests--check-choose, calc-tests--explain-choose) (calc-tests--calc-to-number): New helper functions. (calc-choose): New test.
* | * lisp/simple.el (undo-redo): Rephrase error message.Mattias Engdegård2020-09-141-1/+1
| |
* | Fix up report-emacs-bug action on invalid From headersLars Ingebrigtsen2020-09-141-55/+57
| | | | | | | | | | * lisp/mail/emacsbug.el (report-emacs-bug-hook): Move point to the From header if the user has to edit the From header.
* | Fix compilation-mode-map doc stringakater2020-09-141-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/compile.el (compilation-mode-map): Remove mention of compilation-minor-mode-map (bug#43382). As the comment in the body says: ;; Don't inherit from compilation-minor-mode-map, ;; because that introduces a menu bar item we don't want. ;; That confuses C-down-mouse-3. and the map actually inherits from special-mode-map. Copyright-paperwork-exempt: yes
* | Escape ampersand in table.el LaTeX outputReuben Thomas2020-09-131-1/+1
| | | | | | | | | | * lisp/textmodes/table.el (table--generate-source-scan-lines): Add ampersand '&' to the list of characters to escape in LaTeX output.
* | Further fixups of the variable-pitch eww header line changeLars Ingebrigtsen2020-09-131-4/+6
| | | | | | | | | | * lisp/net/eww.el (eww-update-header-line-format): Protect against :url not being set.
* | Improve wording of cua-mode menu entryStefan Kangas2020-09-131-1/+1
| | | | | | | | | | * lisp/menu-bar.el (menu-bar-options-menu): Improve wording of the cua-mode menu entry. (Bug#43323)
* | ; * lisp/tab-line.el (tab-line-switch-cycling): Fix last change.Eli Zaretskii2020-09-131-1/+1
| |
* | Make diff--refine-hunk bug out less on broken patchesLars Ingebrigtsen2020-09-131-2/+3
| | | | | | | | | | * lisp/vc/diff-mode.el (diff--refine-hunk): Don't bug out on broken patches where we can't find the middle.
* | Make the eww header work again even if the title is nilLars Ingebrigtsen2020-09-131-7/+8
| | | | | | | | | | * lisp/net/eww.el (eww-update-header-line-format): Don't bug out if the title isn't set at all.
* | Make ERC desktop notifications lenient to invalid XML charactersDario Gjorgjevski2020-09-132-12/+18
| | | | | | | | | | | | | | | | * lisp/xml.el (xml-invalid-characters-re): New constant. * lisp/erc/erc-desktop-notifications.el (erc-notifications-notify): Strip IRC control codes and invalid XML characters before notifying (bug#43328).
* | Don't eagerly store articles in the Agent by defaultLars Ingebrigtsen2020-09-133-10/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/gnus/gnus-agent.el (gnus-agent-store-article): Made obsolete. * lisp/gnus/gnus-art.el (gnus-request-article-this-buffer): Don't call it. * lisp/gnus/gnus-async.el (gnus-async-article-callback): Ditto (bug#43356). This partially reverts f3b146e943cd733fb716c75048f24b73826e5f30, which in was response to what appears to be an erroneous feature-request - bug#8502. Instead this should be done instead: “If I read an article while plugged, do they get entered into the Agent?” *No*. If you want this behavior, add ‘gnus-agent-fetch-selected-article’ to ‘gnus-select-article-hook’.