summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright year to 2020Paul Eggert2020-01-012794-2829/+2873
| | | | Run "TZ=UTC0 admin/update-copyright $(git ls-files)".
* ; * etc/NEWS: Make the description of XDG fallback more accurate.Eli Zaretskii2019-12-311-1/+1
|
* Don't always resort in recently introduced icomplete--sorted-completionsJoão Távora2019-12-311-30/+31
| | | | | | | | | | Doing so breaks icomplete-forward-completions and icomplete-backward-completions. * lisp/icomplete.el (icomplete--sorted-completions): Don't always resort. (cherry picked from commit 639fb50ed4c622f99dfbde32fbdbca42ce36d385)
* Don't force completion recalculation in icomplete-fido-retJoão Távora2019-12-311-4/+2
| | | | | | | | | | | Besides the adverse effect of delaying completions, it tripped up the useful logic of icomplete-force-complete-and-exit in the case where a default was available, but no completions calculated yet. * lisp/icomplete.el (icomplete-fido-ret): Don't force calculation of completions. (cherry picked from commit 13778aa5be7bf028893672d84c2a291f491d8216)
* Correctly cache sorted completions in icomplete--sorted-completionsJoão Távora2019-12-311-29/+30
| | | | | | | * lisp/icomplete.el (icomplete--sorted-completions): Use completion--cache-all-sorted-completions. (cherry picked from commit 83587bb68830bd91124f99ddf8590d1d5f63869f)
* Move flex style's minibuffer-default-aware sorting to lisp/icomplete.elJoão Távora2019-12-312-36/+32
| | | | | | | | | | | | | | | | This moves the logic from the series of commits starting in the commit named: Improve sorting of flex completion style with non-nil minibuffer-default to lisp/icomplete.el, so far the only confirmed beneficiary of that functionality. * lisp/icomplete.el (icomplete--sorted-completions): Consider minibuffer-default here. * lisp/minibuffer.el (completion--flex-adjust-metadata): Simplify. (cherry picked from commit 0d2a711dc9a65dc8eb6e995369e70cddbcd7d9a4)
* Make fido-mode behave more like ido-mode when finding directoriesJoão Távora2019-12-311-2/+19
| | | | | | | | | | | Notably C-x d (M-x dired) and C-x v d (M-x vc-dir) behaved quite differently, having regular files as the default instead of ido's usual "./". * lisp/icomplete.el (icomplete--sorted-completions): New helper. (icomplete-completions): Use it. (cherry picked from commit ee914051fbb4fbff9073a23b5ea7668bf48b5c6a)
* Slightly simplify lisp/icomplete.el with new icomplete--category helperJoão Távora2019-12-311-24/+15
| | | | | | | | | | * lisp/icomplete.el (icomplete-fido-kill) (icomplete-fido-delete-char, icomplete-fido-ret) (icomplete-fido-backward-updir, icomplete-exhibit): Use icomplete--category. (icomplete--category): New helper. (cherry picked from commit 24a1f520f91c278cb8cc57325ea80285a3b252cf)
* Another adjustment to flex completion style's sorting functionJoão Távora2019-12-311-9/+14
| | | | | | | * lisp/minibuffer.el (completion--flex-adjust-metadata): Adjust case when minibuffer-default is non-nil. (cherry picked from commit 9c912049927cfb18b9c8b37039b38ddf51f2fe81)
* ; * test/lisp/calc/calc-tests.el: Fix warningsMattias Engdegård2019-12-301-0/+1
|
* Make minibuffer-tests work in out-of-tree builds (bug#38816)Mattias Engdegård2019-12-301-1/+2
| | | | | * test/lisp/minibuffer-tests.el (completion-table-test-quoting): Set default-directory.
* Make comint-tests more robust (bug#38813)Mattias Engdegård2019-12-301-6/+6
| | | | | | | | | | | * test/lisp/comint-tests.el (comint-test-no-password-function) (comint-test-password-function-with-value) (comint-test-password-function-with-nil): Call accept-process-output as many times as needed, with a slightly more generous timeout (100 ms), after sending the Password: prompt to the process, since there must be time for some back-and-forth communication. Also clear the process-query-on-exit flag, since it doesn't go well with noninteractive tests.
* Fix tar-mode reading the oldgnu Tar formatEli Zaretskii2019-12-301-6/+25
| | | | | | | | | | | | | | | | This makes sure an entry for a long file name will not accidentally appear as a directory, and thus its size will be disregarded, causing corrupted file headers for all the subsequent entries. The original problem happened because the long file name truncated to 99 bytes happened to end in a slash, which tar-mode takes to be the indication of a directory. * lisp/tar-mode.el (tar-header-block-tokenize): Accept an additional argument DISABLE-SLASH; if non-nil, don't set the link-type field of the descriptor to 5 (meaning a directory) just because the name ends in a slash. Use this argument when calling itself recursively, to read the entry of the file with a long name. Set the link-type to 5 if the long name ends in a slash. (Bug#38777)
* Ensure mini-window is resized to show active minibuffer contentsEli Zaretskii2019-12-301-0/+15
| | | | | | * src/keyboard.c (read_char, command_loop_1): Resize the mini-window after clearing the echo area while minibuffer is active. (Bug#38645)
* Fix mini-window resizing under resize-mini-windows = tEli Zaretskii2019-12-301-1/+6
| | | | | | * src/window.c (grow_mini_window): Fix resizing of mini-window when the echo area is cleared, and the caller asks for the mini-window to have zero lines. (Bug#38791)
* Fixes for makeinfo 4.13Glenn Morris2019-12-292-4/+3
| | | | | | * doc/lispref/customize.texi (Variable Definitions): Fix xref. * doc/lispref/internals.texi (Writing Emacs Primitives) (Module Values): Follow xref with comma.
* ; fix previous NEWS entryRobert Pluim2019-12-291-2/+2
|
* Fix crash under -nw on macOS properly this timeRobert Pluim2019-12-291-1/+3
| | | | | | * src/dispextern.h (FACE_COLOR_TO_PIXEL): Only use ns_color_index_to_rgba when we're running under the NS gui (Bug#38564).
* Revert "Check for GUI frame in ns_color_index_to_rgba"Robert Pluim2019-12-291-12/+7
| | | | This reverts commit ea84a95bd8d43612b4a424fb93de25a68ac31d05.
* Ignore all color fonts when using XFTRobert Pluim2019-12-292-1/+24
| | | | | | | | * etc/NEWS: Announce change to matching color fonts when using XFT. * src/ftfont.c (ftfont_list) [HAVE_XFT && FC_COLOR]: Query for the color attribute of the matched font, and skip it if it is not FcFalse (Bug#37786).
* Avoid unbounded growth of cl-random-state components (bug#38753)Mattias Engdegård2019-12-291-1/+1
| | | | | | | | | * lisp/emacs-lisp/cl-extra.el (cl-random): Perform the modulo 2**23 operation before updating the state instead of after. The result is always the same, but it prevents the state from growing into arbitrary large bignums. Patch from Christopher Wellons.
* Sync with Tramp 2.4.3Michael Albinus2019-12-294-20/+29
| | | | | | | | | | | | * doc/misc/trampver.texi: * lisp/net/trampver.el: Change version to "2.4.3". * lisp/net/tramp.el: Bump version. (tramp-handle-shell-command): The temp file for error-buffer is remote. * test/lisp/net/tramp-tests.el (tramp-test30-make-process): Simplify buffer generation. (tramp-test32-shell-command): Extend test.
* ; xref-references-in-directory: Autoload as wellDmitry Gutov2019-12-291-0/+1
|
* Fix up requiresDmitry Gutov2019-12-291-1/+3
| | | | | | | | * lisp/progmodes/project.el (project-files): Remove (require 'xref). (project--files-in-directory): Add it here instead. (project-find-regexp, project-or-external-find-regexp): And here. For 'xref--show-xrefs'.
* Extract xref-matches-in-files from project--find-regexp-in-filesDmitry Gutov2019-12-293-49/+52
| | | | | | | * lisp/progmodes/xref.el (xref-matches-in-files): Extract from project--find-regexp-in-files. * lisp/dired-aux.el (dired-do-find-regexp): Also use it here.
* Rename xref-collect-references and xref-collect-matchesDmitry Gutov2019-12-292-16/+27
| | | | | | | | | | | * lisp/progmodes/xref.el (xref-references-in-directory): Rename from xref-collect-references. Update the sole caller. (xref-matches-in-directory): Rename from xref-collect-matches. Update all callers (all of them are in the /tests/ dir). * test/lisp/progmodes/xref-tests.el (xref-tests-data-dir): Don't use the EMACS_TEST_DIRECTORY env var. It doesn't work when running interactively.
* ; Improve the docstring some moreDmitry Gutov2019-12-291-2/+3
|
* Improve docstringsDmitry Gutov2019-12-291-2/+5
| | | | | * lisp/progmodes/xref.el (xref-collect-matches) (xref-collect-references): Improve docstrings.
* Fix when expose draws partially visible first glyph (bug#38731)Alan Third2019-12-291-1/+1
| | | | | * src/xdisp.c (expose_area): When the face extends to the end of the line draw text from the correct x coordinate.
* Don't require semantic/fwDmitry Gutov2019-12-281-1/+0
| | | | | | * lisp/progmodes/xref.el (xref-collect-matches): Don't require semantic/fw, we haven't been using semantic-find-file-noselect here for a while.
* Do some renames for clarityDmitry Gutov2019-12-281-7/+9
| | | | | | | * lisp/progmodes/xref.el (xref--last-file-buffer): Rename from xref--last-visiting-buffer. Update users. (xref--find-file-buffer): Rename from xref--find-buffer-visiting to match the standard function that gets called inside. Ditto.
* Rearrange NEWS, add missing documentationEli Zaretskii2019-12-2813-273/+516
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * etc/NEWS: Rearrange and mark entries whether documented or not. * doc/lispref/streams.texi (Output Variables): Document the new default of 'print-quoted'. * doc/lispref/keymaps.texi (Functions for Key Lookup): Document that KEYMAP arg to 'lookup-key' can also be a list. * doc/lispref/customize.texi (Variable Definitions): Document the :local keyword of 'defcustom'. * doc/lispref/numbers.texi (Float Basics): Document changes in 'logb'. * doc/lispref/hooks.texi (Standard Hooks): Document 'comint-password-function'. * doc/emacs/display.texi (Text Scale): Document text-size adjustment using the mouse wheel. * doc/emacs/frames.texi (Mouse Commands): Document image scaling with the mouse wheel. * doc/emacs/windows.texi (Window Convenience): Document 'global-tab-line-mode'. * doc/emacs/search.texi (Repeat Isearch, Symbol Search) (Isearch Yank): Document the new support for numeric arguments in Isearch commands. (Special Isearch): Document 'M-s M->' and 'M-s M-<'. (Search Customizations): Document 'isearch-lazy-count'. Improve indexing. (Not Exiting Isearch): Document the new value of 'isearch-allow-scroll'. * doc/emacs/maintaining.texi (Xref Commands): Document the new 'g' key binding. * doc/emacs/package.texi (Package Installation): Document changes in 'package-check-signature'. * doc/emacs/maintaining.texi (VC Change Log): Document 'vc-log-search'. * doc/emacs/dired.texi (Operating on Files): Document 'dired-vc-rename'.
* Fix interactive spec in netrc-parseXu Chunyang2019-12-281-1/+1
| | | | | * lisp/net/netrc.el (netrc-parse): Fix placement of interactive spec (bug#38773).
* Fix documentation of define-obsolete-* functionsEli Zaretskii2019-12-282-9/+9
| | | | | | | | | | | * doc/lispref/functions.texi (Obsolete Functions): Make documentation of functions that obsolete symbols match the advertised calling conventions. * lisp/emacs-lisp/byte-run.el (define-obsolete-function-alias) (define-obsolete-variable-alias, define-obsolete-face-alias): State in the doc strings that WHEN is a mandatory argument, to be consistent with the advertised calling convention. (Bug#38675)
* Fix recent gnus-start.el breakageLars Ingebrigtsen2019-12-281-1/+1
| | | | | | * lisp/gnus/gnus-start.el (gnus-group-change-level): Fix previous patch that made info nil when adding new groups (thereby making gnus-newsrc-alist invalid).
* (xref--find-buffer-visiting): Speed up by using get-file-bufferDmitry Gutov2019-12-271-4/+2
| | | | | | | * lisp/progmodes/xref.el (xref--find-buffer-visiting): Speed up by using get-file-buffer. (xref--collect-matches): Remove the condition on remote-id. (https://lists.gnu.org/archive/html/emacs-devel/2019-12/msg00753.html)
* project--vc-list-files: Recurse into submodulesDmitry Gutov2019-12-271-8/+43
| | | | | | | * lisp/progmodes/project.el (project-try-vc): Do not treat a Git submodule as a project root, go up to the parent repo. (project--git-submodules): New function. (project--vc-list-files): Use it. Recurse into submodules.
* Merge branch 'emacs-27' of git.savannah.gnu.org:/srv/git/emacs into emacs-27Eli Zaretskii2019-12-272-3/+6
|\
| * xref--collect-matches: Speed up on remoteDmitry Gutov2019-12-271-2/+5
| | | | | | | | | | | | * lisp/progmodes/xref.el (xref--collect-matches): Don't call find-buffer-visiting on remote file names, it's pretty slow (bug#34343).
| * ; project--find-regexp-in-files: Avoid prepending remote-id twice (bug#34343)Dmitry Gutov2019-12-271-1/+1
| |
* | Minor improvements of buffer documentationEli Zaretskii2019-12-271-0/+4
|/ | | | | | * doc/emacs/buffers.texi (Buffers): Say that buffers are killed when no longer needed. Suggested by Jean-Christophe Helary <jean.christophe.helary@traduction-libre.org>.
* ; Use regexp type in tramp-adb-prompt (backport, do not merge)Mattias Engdegård2019-12-271-1/+1
| | | | | | * lisp/net/tramp-adb.el (tramp-adb-prompt): Use 'regexp' instead of 'string' as type for values that are regexps in defcustom declarations.
* Fix installer buildPhillip Lord2019-12-261-5/+9
| | | | | * admin/nt/dist-build/build-zips.sh: Ensure that NSIS build always uses the actual build number to locate its files.
* Update Windows build documentationPhillip Lord2019-12-261-4/+49
| | | | | * admin/nt/dist-build/README-scripts: Update with branch and snapshot information.
* Calc: add missing dynamic variable declarationsMattias Engdegård2019-12-262-0/+30
| | | | | | | | | | * lisp/calc/calc-alg.el (math-simplify-only, calc-simplify-mode) (math-expand-formulas, calc-poly-div-remainder) (math-living-dangerously, math-simplifying, calc-angle-mode) (calc-prefer-frac, math-poly-base-variable): Declare dynamic variables. * test/lisp/calc/calc-tests.el (calc-poly-div): Add test for at least one bug caused by missing declarations.
* * doc/emacs/buffers.texi (Kill Buffer): Improve indexing.Eli Zaretskii2019-12-261-0/+2
|
* Speed up dired-do-find-regexpDmitry Gutov2019-12-261-7/+14
| | | | | | | * lisp/dired-aux.el (dired-do-find-regexp): Speed up (bug#36857). Previously, 'find' was called for every marked file (for plain files and directories both). Now 'find' is only called for directories.
* ; Remove outdated declarationsDmitry Gutov2019-12-261-2/+0
|
* ; Clarify the assumptionDmitry Gutov2019-12-261-1/+2
|
* project--find-regexp-in-files: Support remote filesDmitry Gutov2019-12-261-1/+7
| | | | | * lisp/progmodes/project.el (project--find-regexp-in-files): Support remote files (bug#34343).