aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Document use of uniquify-buffer-name-style as a function.feature/uniquify-as-functionJimmy Aguilar Mena2020-09-152-0/+17
|
* 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-143-5/+63
| | | | | | | | * 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).
* Don't retry reading after receiving EINVALPip Cet2020-09-141-1/+3
| | | | | * src/process.c (wait_reading_process_output): Don't retry reading from an fd after an unknown error (bug#6074).
* 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-143-6/+32
| | | | | | | * 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).
* Support build of Emacs on ARM Macos machinesLars Ingebrigtsen2020-09-141-1/+1
| | | | | * configure.ac: Add support for aarch64-* on Macos (i.e., 64-bit ARM) (bug#43369).
* Calc: fix binomial coefficients for negative arguments (bug#16999)Mattias Engdegård2020-09-142-13/+96
| | | | | | | | | | | | | | | | | | 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 builds without modulesGlenn Morris2020-09-132-0/+4
| | | | | * src/data.c (Finteractive_form): * src/eval.c (Fcommandp): Fix builds without modules.
* 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
* Add facility to make module functions interactive (Bug#23486).Philipp Stephani2020-09-139-16/+130
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/module-env-28.h: Add field for 'make_interactive' function. * src/emacs-module.c (Lisp_Module_Function): Add new field holding the interactive form. (allocate_module_function): Adapt to structure layout change. (module_make_interactive, module_function_interactive_form): New functions. (initialize_environment): Use them. * src/eval.c (Fcommandp): * src/data.c (Finteractive_form): Also handle interactive module functions. * test/data/emacs-module/mod-test.c (Fmod_test_identity): New test function. (emacs_module_init): Create two interactive module test functions. * test/src/emacs-module-tests.el (module/interactive/return-t) (module/interactive/return-t-int, module/interactive/identity): New unit tests. * doc/lispref/internals.texi (Module Functions): Document new function. Rework paragraph about wrapping module functions, as the example no longer applies. * etc/NEWS: Document new facility.
* 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)
* Improve frame-title-format and icon-title-formatStefan Kangas2020-09-132-2/+12
| | | | | | * src/xdisp.c (syms_of_xdisp): Replace 'invocation-name' with the text "%b - GNU Emacs" and replace "@" with " at ". (Bug#41147) * etc/NEWS: Announce the above change.
* Fix punctuation in EWW manualEli Zaretskii2020-09-131-4/+5
| | | | | * doc/misc/eww.texi (Advanced): Fix punctuation of a recent change.
* ; * etc/NEWS: Document a recent change.Eli Zaretskii2020-09-131-0/+5
|
* ; * 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’.
* Kill gpg-agents started by mml-sec-tests (bug#43358)Lars Ingebrigtsen2020-09-131-1/+15
|
* Update .gitignore with ccls filesBrian Leung2020-09-131-0/+6
| | | | | | | * .gitignore: Ignore files used by ccls, a language server for C (bug#43365). Copyright-paperwork-exempt: yes
* Doc string clarification in file-directory-pLars Ingebrigtsen2020-09-131-0/+5
| | | | | * src/fileio.c (Ffile_directory_p): Mention that "" is a special case (bug#43375).
* 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-132-0/+4
| | | | | * lisp/international/mule-conf.el (ascii): Define `ascii' as a coding system alias to `us-ascii' (bug#43351).
* Fix a conversion failure in tramp-archive-tests (Bug#43353)Michael Albinus2020-09-131-3/+12
| | | | | | * test/lisp/net/tramp-archive-tests.el (tramp-archive-test-file-archive-hexlified): New defun. (tramp-archive-test02-file-name-dissect): Use it. (Bug#43353)
* Don't force LC_ALL=C upon make check (bug#43353)Glenn Morris2020-09-121-6/+1
| | | | | | * test/Makefile.in (TEST_LOCALE): Remove. (emacs): Don't force LC_ALL=C, since it causes problems with non-ascii directories. This mirrors a 7-year old lisp/Makefile change.
* Mark some diff tests as failing in nonascii directoriesGlenn Morris2020-09-122-1/+14
| | | | | | | | * 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.
* Fix up example code from previous eww.texi commitLars Ingebrigtsen2020-09-131-3/+1
| | | | | * doc/misc/eww.texi (Advanced): Simplify example command (and "--virtual-time-budget=3000" makes Chromium unstable).
* Add a way to use an external command to download HTML in ewwLars Ingebrigtsen2020-09-133-2/+52
| | | | | | | | | * 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.
* Adapt some tests for Emacs's excitingly variable quoting formatGlenn Morris2020-09-124-37/+42
| | | | | | | | * test/lisp/subr-tests.el (subr-test-version-parsing): * test/lisp/emacs-lisp/gv-tests.el (gv-dont-define-expander-other-file): * test/src/callint-tests.el (call-interactively/incomplete-multibyte-sequence): * test/src/emacs-module-tests.el (module/describe-function-1): Don't fail if curly quotes are in use, as they can be if LC_ALL != C.
* ; Fix copyright yearsGlenn Morris2020-09-121-1/+1
|
* Cleanup in dbus.el, dbus-tests.elMichael Albinus2020-09-122-44/+98
| | | | | | | | | | | * 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.
* Small Texinfo markup fixesGlenn Morris2020-09-122-3/+3
| | | | | * doc/misc/dbus.texi (Register Objects): * doc/misc/gnus.texi (Searching): Texinfo markup fixes.
* 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.