aboutsummaryrefslogtreecommitdiffstats
path: root/lisp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* * 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’.
* Clarify when tab-line-switch-cycling is usedKiso Katsuyuki2020-09-131-1/+2
| | | | | | * lisp/tab-line.el (tab-line-switch-cycling): Clarify when the variable is used. Copyright-paperwork-exempt: yes
* * lisp/time.el (display-time-world): Make obsolete.Stefan Kangas2020-09-131-2/+2
|
* Make M-x show what aliases point to (Bug#43300)Stefan Kangas2020-09-131-2/+5
| | | | | * lisp/simple.el (read-extended-command--annotation): Show an annotation for aliases saying what it points to.
* Make M-x show obsolete commands (Bug#43300)Stefan Kangas2020-09-131-13/+8
| | | | | | | * lisp/simple.el (read-extended-command): Don't hide obsolete commands. (read-extended-command--annotation): Show an annotation for obsolete commands that says what their new name is.
* Revert "Use format-prompt in read-file-name calls that have a default"Lars Ingebrigtsen2020-09-1313-61/+58
| | | | | | | | This reverts commit de4f347901adffd07bc9bff028dc073fb3c6df33. read-file-name already displays a long path when given a default (like INITIAL in many other prompting functions), so using format-prompt here is superfluous.
* Make `ascii' a coding system alias for `us-ascii'Lars Ingebrigtsen2020-09-131-0/+1
| | | | | * lisp/international/mule-conf.el (ascii): Define `ascii' as a coding system alias to `us-ascii' (bug#43351).
* Mark some diff tests as failing in nonascii directoriesGlenn Morris2020-09-121-1/+5
| | | | | | | | * test/lisp/vc/diff-mode-tests.el (diff-mode-test-font-lock) (diff-mode-test-font-lock-syntax-one-line): Expect failure in non-ascii directories. ; * lisp/vc/diff-mode.el (diff-hunk-file-names): Comment.
* Clean up eww error bufferLars Ingebrigtsen2020-09-131-6/+12
| | | | * lisp/net/eww.el (eww-retrieve): Clean up error buffer after exiting.
* Add a way to use an external command to download HTML in ewwLars Ingebrigtsen2020-09-131-2/+30
| | | | | | | | | * doc/misc/eww.texi (Advanced): Document it. * lisp/net/eww.el (eww-retrieve): New function. (eww-reload): Use it. (eww): Ditto. (eww-retrieve-command): New variable.
* Cleanup in dbus.el, dbus-tests.elMichael Albinus2020-09-121-29/+38
| | | | | | | | | | | * lisp/net/dbus.el (dbus-error-no-reply): New defconst. (dbus-call-method): Use it. (dbus-call-method-asynchronously, dbus-register-signal): Fix docstring. (dbus-unregister-object): Obey :serial entries in `dbus-registered-objects-table'. * test/lisp/net/dbus-tests.el (dbus-test04-register-method) (dbus-test05-register-property): Extend tests.
* C++ Mode: handle __attribute__,etc. inside constructor argument listsAlan Mackenzie2020-09-123-10/+48
| | | | | | | | | | | | | | | | | | | This corrects both the fontification and indentation of these things, fixing bug #42270. * lisp/progmodes/cc-engine.el (c-do-declarators): Skip over "hangon keys" and noise macros whilst scanning a putative C++ function. (c-forward-decl-or-cast-1): When checking for typeless functions, skip over "hangon keys" and noise macros. * lisp/progmodes/cc-mode.el (c-fl-decl-end): Deal with certain invalid "nested declarators" by scanning over them with a recursive call of c-fl-decl-end. * lisp/progmodes/cc-vars.el (c-noise-macro-names) (c-noise-macro-with-parens-names): State in the doc strings that if either of these is a regexp, it must have a submatch 1 which matches the noise macro exactly.
* Fix compilation warning in cl-font-lockLars Ingebrigtsen2020-09-121-0/+1
| | | | | * lisp/progmodes/cl-font-lock.el (cl-font-lock-built-in-mode): Put in the tools group to avoid a compilation warning.
* Fix compilation warning in obsolete/complete.elLars Ingebrigtsen2020-09-121-0/+2
| | | | | * lisp/obsolete/complete.el (completion-base-size): Avoid compilation warning.
* 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).
* dired-omit-mode may not be defined in dired-jumpLars Ingebrigtsen2020-09-121-1/+1
| | | | | * lisp/dired.el (dired-jump): dired-omit-mode is in dired-x, so it may not be defined in dired.
* Support scoring on article age interactively in GnusAlex Bochannek2020-09-121-0/+12
| | | | | * lisp/gnus/gnus-score.el (gnus-summary-score-entry): Support scoring on article age in interactive scoring (bug#43270).
* Default Emacs to UTF-8 instead of Latin-1Glenn Morris2020-09-123-11/+12
| | | | | | | | | | | * doc/emacs/mule.texi (File Name Coding): Document it. * lisp/international/mule-cmds.el (reset-language-environment): Default to utf-8 instead of latin-1. * lisp/mail/sendmail.el (default-sendmail-coding-system): Ditto. * lisp/mh-e/mh-comp.el (mh-send-letter): Ditto.
* Further diff-no-select doc string clarificationLars Ingebrigtsen2020-09-121-1/+2
| | | | * lisp/vc/diff.el (diff-no-select): Doc string clarification.
* Move dired-jump from dired-x to dired (Bug#21981)Stefan Kangas2020-09-123-77/+69
| | | | | | | | | | | | | | | | | | | * lisp/dired-x.el (dired-bind-jump): Change into defvar and make obsolete. (dired-extra-startup): Doc fix. (dired-jump, dired-jump-other-window): Move from here... * lisp/dired.el (dired-jump, dired-jump-other-window): ...to here. * lisp/bindings.el (ctl-x-map, ctl-x-4-map): Bind 'C-j' to 'dired-jump' and 'dired-jump-other-window'. * doc/misc/dired-x.texi (Features, Installation) (Miscellaneous Commands): Remove documentation of 'dired-jump'. * doc/emacs/dired.texi (Dired Enter): Document 'dired-jump' and dired-jump-other-window. * etc/NEWS: Announce the above changes. * test/lisp/dired-tests.el (dired-autoload): Adjust test.
* Add some eshell completion patternsStefan Kangas2020-09-111-0/+3
| | | | | * lisp/eshell/em-cmpl.el (eshell-command-completions-alist): Add 'gunzip', 'bunzip2' and 'unxz'.
* Remove cedet items obsolete since 23.2Stefan Kangas2020-09-1117-397/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/cedet/semantic.el (semantic-toplevel-bovine-table) (semantic-toplevel-bovine-cache) (semantic-before-toplevel-bovination-hook) (semantic-after-toplevel-bovinate-hook, semantic-init-hooks) (semantic-init-mode-hooks, semantic-init-db-hooks) (semantic-bovination-working-type, semantic-bovinate-toplevel) (semantic-bovinate-region-until-error) (semantic-bovinate-from-nonterminal-full): * lisp/cedet/semantic/db-mode.el (semanticdb-mode-hooks): * lisp/cedet/semantic/decorate/mode.el (semantic-decorate-pending-decoration-hooks): * lisp/cedet/semantic/edit.el (semantic-edits-incremental-reparse-failed-hooks): * lisp/cedet/semantic/fw.el (define-mode-overload-implementation): * lisp/cedet/semantic/idle.el (semantic-before-idle-scheduler-reparse-hooks) (semantic-after-idle-scheduler-reparse-hooks): (semantic-eldoc-current-symbol-info) * lisp/cedet/semantic/imenu.el (semantic-imenu-expand-type-parts) (semantic-imenu-bucketize-type-parts) (semantic-imenu-expandable-token): * lisp/cedet/semantic/java.el (semantic-java-prototype-nonterminal): * lisp/cedet/semantic/lex.el (semantic-flex-token-start) (semantic-flex-token-end, semantic-flex-token-text) (semantic-flex-make-keyword-table, semantic-flex-keyword-p) (semantic-flex-keyword-put, semantic-flex-keyword-get) (semantic-flex-map-keywords, semantic-flex-keywords) (semantic-flex-buffer, semantic-flex-list, semantic-flex): * lisp/cedet/semantic/tag-file.el (semantic-find-nonterminal) (semantic-find-dependency): * lisp/cedet/semantic/tag-ls.el (semantic-nonterminal-full-name) (semantic-nonterminal-protection, semantic-nonterminal-abstract) (semantic-nonterminal-leaf): * lisp/cedet/semantic/tag.el (semantic-token-type-parent) (semantic-tag-make-assoc-list, semantic-expand-nonterminal): * lisp/cedet/semantic/util.el (semantic-file-token-stream) (semantic-something-to-stream): * lisp/cedet/semantic/wisent.el (wisent-lex-make-token-table): Delete many items obsolete since Emacs 23.2. * lisp/cedet/semantic.el (semantic--set-buffer-cache) (semantic-fetch-tags): Don't run removed hooks 'semantic-after-toplevel-bovinate-hook' and 'semantic-before-toplevel-bovination-hook'. * lisp/cedet/semantic/bovine/el.el: Remove reference to obsolete variable 'define-mode-overload-implementation'. * lisp/cedet/semantic/doc.el (semantic-doc-snarf-comment-for-tag): Don't bind removed variable 'semantic-ignore-comments'. * lisp/cedet/semantic/fw.el (semantic-overload-symbol-from-function) (semantic-alias-obsolete, semantic-varalias-obsolete): Declare obsolete in favor of standard Emacs 'define-obsolete-*-alias'. * lisp/cedet/semantic/grammar.el (semantic-grammar-ASSOC): Don't use obsolete names. * lisp/cedet/semantic/tag-ls.el (semantic-tag-full-package) (semantic-tag-full-name): Doc fixes. * lisp/cedet/semantic/util.el (semantic-describe-buffer): Don't bind removed variable 'semantic-after-toplevel-bovinate-hook'. * lisp/cedet/semantic/lex.el (semantic-flex-tokens) (semantic-flex-unterminated-syntax-end-function) (semantic-flex-extensions, semantic-flex-syntax-modifications) (semantic-ignore-comments, semantic-flex-enable-newlines) (semantic-flex-enable-whitespace, semantic-flex-enable-bol) (semantic-number-expression, semantic-flex-depth): Make unused variables obsolete. ; * etc/NEWS: List removed items.
* Guard against faulty flow-filled emailsLars Ingebrigtsen2020-09-111-1/+2
| | | | | | * lisp/mail/flow-fill.el (fill-flowed): Don't bug out if there's a space at the end of the buffer. This is probably not allowed in the flow-fill specification, but has been observed in the wild.
* CC Mode: Fix minor bugs in the string handling functionsAlan Mackenzie2020-09-112-9/+25
| | | | | | | | | | These sometimes gave rise to the tail of a buffer being "stringed out". * lixp/progmodes/cc-defs.el (c-will-be-unescaped): New macro. * lisp/progmodes/cc-mode.el (c-before-change-check-unbalanced-strings) (c-after-change-mark-abnormal-strings): Fix bugs in the handling of string fence syntax-table text properties.
* Improve help-echo of Undo and Redo menu itemsEli Zaretskii2020-09-111-2/+2
| | | | | * lisp/menu-bar.el (undo-redo, undo): Improve the wording of help-echo strings.
* Tweak previous mailcap patch (for external viewers)Lars Ingebrigtsen2020-09-111-0/+1
| | | | | * lisp/net/mailcap.el (mailcap-view-mime): Delete contents of the buffer in the external case, too.
* D-Bus: Implement other compound types of propertiesMichael Albinus2020-09-111-14/+34
| | | | | | | | | | | | | | | * doc/misc/dbus.texi (Errors and Events): * etc/NEWS: Mention dbus-show-dbus-errors. * lisp/net/dbus.el (dbus-compound-types): New defconst. (dbus): New defgroup. (dbus-show-dbus-errors): New defcustom. (dbus-ignore-errors): Use it. (dbus-set-property): Simplify. (dbus-property-handler): Implement other compound types of properties. * test/lisp/net/dbus-tests.el (dbus--test-register-service) (dbus-test05-register-property): Extend tests.
* Fix up eldef shortening of the minibufferLars Ingebrigtsen2020-09-111-1/+1
| | | | | | * lisp/minibuf-eldef.el (minibuffer-default--in-prompt-regexps): Don't include the ": " bit in the portion to be replaced (bug#12443).
* Improve diff-no-select doc stringLars Ingebrigtsen2020-09-111-4/+7
| | | | * lisp/vc/diff.el (diff-no-select): Improve the doc string somewhat.
* Fix viewing PDFs from eww with external viewersLars Ingebrigtsen2020-09-111-5/+8
| | | | | | | * lisp/net/mailcap.el (mailcap-view-mime): Most MIME viewers can't take input on stdin (and in any case, "-" is not how many of them designate stdin) (bug#43318). So rewrite to put the data on a file and feed the file name to the viewer.
* Simplify big integer constants in CalcMattias Engdegård2020-09-113-20/+12
| | | | | | | * lisp/calc/calc-comb.el (math-small-factorial-table): * lisp/calc/calc-funcs.el (math-bernoulli-b-cache): * lisp/calc/calc.el (math-2-word-size, math-half-2-word-size): No need for math-read-number-simple.