aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | ; Merge from origin/emacs-26Glenn Morris2019-10-260-0/+0
|\ \ | |/ | | | | | | | | The following commit was skipped: bba9757 Backport: Fix an assignment to free variable warning
| * Backport: Fix an assignment to free variable warningTino Calancha2019-09-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | It fixes a bug introduced by commit 'query-replace-regexp undo: Update next-replacement after undo' (30c4f35a6fc8a6507930923766c3126ac1c2063f) See https://lists.gnu.org/archive/html/emacs-devel/2019-09/msg00364.html * lisp/replace.el(perform-replace): Rename variable to next-replacement-replaced. (cherry picked from commit cbc10ec71e9f189e8d6fd5c6927aec4872e0fd96)
* | Rework face hints for partial-string completion stylesJoão Távora2019-10-261-13/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Don't use completions-first-difference for the 'substring', 'flex' and 'partial-completion' styles, since there can be really no reasonable definition of a "first" difference there. Make completions-common-part inherit from 'underline' so that it is useful by default for all completion styles. * lisp/minibuffer.el (completions-common-part): Adjust description and change default value. (completions-first-difference): Ajust docstring. (completion-pcm--hilit-commonality): Don't use completions-first-difference.
* | Allow completion styles to adjust completion metadataJoão Távora2019-10-261-24/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit re-does the now-reverted commit with the same title. That version relied on generic functions, which cannot be used yet in files such as lisp/minibuffer.el. This version uses a symbol property completion--adjust-metadata instead. The new facility allows completion styles to have a say in metadata properties such as cycle-sort-function and display-sort-function. This is especially useful for completion styles such as 'flex', which generally produce many matches, including some potentially "obscure" ones. The default sorting strategy would often bubble the latter to the top of the list. The sorting function for 'flex' considers pre-computed matching scores and is thus much better than the default for this particular style. Additionally, it overrides the completion table's cycle-sort-function or display-sort-function properties if they exist, although it still uses them to pre-sort the result, so that they are still relevant for resolving ties. * lisp/minibuffer.el (completion--nth-completion) (completion--flex-adjust-metadata): New helper. (flex): Put completion--adjust-metadata property.
* | Revert "Allow completion styles to adjust completion metadata"João Távora2019-10-261-37/+9
| | | | | | | | | | | | | | | | | | Unbreaks the build. This reverts commit 7fc0292f5c49d11fc39853f8bc25586d54221e6a. Unfortunately, cl-defgeneric has some problems when used in lisp/minibuffer.el.
* | subr.el (run-window-configuration-change-hook): Mark obsoleteStefan Monnier2019-10-262-0/+3
| |
* | Allow completion styles to adjust completion metadataJoão Távora2019-10-261-9/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new facility, realized in the completion-adjust-metadata-for-style generic, allows completion styles to have a say in metadata properties such as cycle-sort-function and display-sort-function. This is especially useful for completion styles such as 'flex', which generally produce many matches, including some potentially "obscure" ones. The default sorting strategy would often bubble the latter to the top of the list. The sorting function for 'flex' considers pre-computed matching scores and is thus much better than the default for this particular style. Additionally, it overrides the completion table's cycle-sort-function or display-sort-function properties if they exist, although it still uses them to pre-sort the result, so that they are still relevant for resolving ties. * lisp/minibuffer.el (completion--nth-completion): Call completion-adjust-metadata-for-style. (completion-adjust-metadata-for-style): New generic. (completion-adjust-metadata-for-style 'flex): New method.
* | Replay key if kboard is interrupted while initializing (Bug#37782)memeplex2019-10-261-1/+10
| | | | | | | | | | | | | | | | | | | | | | The problem with the original fix for bug#5095 is that it drops the current event, which is a valid character event and not -2. Thus, the first ESC character sent by the terminal after turning on focus tracking is lost and we get '[' and 'I' events separately inserted into the buffer afterwards. * src/keyboard.c (read_key_sequence): Add key as mock_input and replay sequence using new keyboard, when the key is not -2.
* | Remove redundant initialization of fringe bitmap (Bug#37756)memeplex2019-10-261-1/+0
| | | | | | | | | | * src/fringe.c (Fdefine-fringe-bitmap): Remove redundant zeroing of fb.bits that only zeroed half of the array anyway.
* | Improve the documentation of 'vc-tor'Eli Zaretskii2019-10-262-1/+10
| | | | | | | | | | | | | | * lisp/vc/vc-dispatcher.el (vc-tor): Add :version. Enhance the doc string. * etc/NEWS: Announce the new option.
* | New defcustom 'vc-tor'Richard Stallman2019-10-261-1/+7
| | | | | | | | | | * lisp/vc/vc-dispatcher.el (vc-tor): New user option. (vc-do-command): If vc-tor is non-nil, use 'torsocks'.
* | Adapt doc-view to latest image-mode changesTassilo Horn2019-10-251-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The functions image-scroll-down, image-scroll-up, image-next-line, and image-previous-line now return pixel values instead of multiples of character height as of commit 9c66b09950. * lisp/doc-view.el (doc-view-scroll-up-or-next-page): (doc-view-scroll-down-or-previous-page): (doc-view-next-line-or-next-page): (doc-view-previous-line-or-previous-page): (doc-view-insert-image): Adapt to image-scroll-up/down and image-next/previous-line now returning pixel values instead of multiples of character heights. Fixes bug#37874.
* | CC Mode: Fix positioning of point whilst inserting comments without non-wsAlan Mackenzie2019-10-251-9/+18
| | | | | | | | | | | | | | | | | | * lisp/progmodes/cc-cmds.el (c-guess-fill-prefix): When determining a new block comment prefix (i.e. there isn't one already there to copy), and that prefix is hard up against a comment closer, ensure there are at least two spaces before the closer. (c-indent-new-comment-line): Amend the strategy for ensuring that point isn't left hard up against the comment closer after M-j.
* | time-stamp-tests: consistently name the time varsStephen Gildea2019-10-251-95/+97
| | | | | | | | | | * time-stamp-tests.el (with-time-stamp-test-env): rename local variable 'ref-time' to 'ref-time1', for parallelism with ref-time2 and ref-time3.
* | Merge branch 'master' of git.sv.gnu.org:/srv/git/emacsMichael Albinus2019-10-2523-403/+289
|\ \
| * | windmove.el: Suppress warnings for obsolete functionsJuanma Barranquero2019-10-251-43/+50
| | | | | | | | | | | | | | | | | | | | | * lisp/windmove.el (windmove-constrain-loc-for-movement) (windmove-wrap-loc-for-movement, windmove-reference-loc) (windmove-other-window-loc): Wrap calls to obsolete functions in `with-suppressed-warnings'.
| * | windmove.el: Mark unused code as obsoleteJuanma Barranquero2019-10-252-157/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/windmove.el (windmove-window-distance-delta) (windmove-coord-add, windmove-constrain-to-range) (windmove-constrain-around-range, windmove-frame-edges) (windmove-constrain-loc-for-movement) (windmove-wrap-loc-for-movement, windmove-reference-loc) (windmove-other-window-loc): Declare obsolete. (windmove-find-other-window, windmove-do-window-select): Doc fixes. * etc/NEWS: Document it.
| * | * lisp/windmove.el (windmove-frame-edges): Simplify.Juanma Barranquero2019-10-251-9/+1
| | |
| * | Fix gnus-thread-hide-subtree defcustomLars Ingebrigtsen2019-10-251-1/+1
| | | | | | | | | | | | | | | | | | * lisp/gnus/gnus-sum.el (gnus-thread-hide-subtree): Make the "Non-nil" predicate do what it's supposed to (i.e., return non-nil on non-nil values (excepting predicates)) (bug#37916).
| * | * lisp/cedet/mode-local.el: Clean up name spaceStefan Monnier2019-10-2414-82/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mostly renaming functions by adding `mode-local--` to their name and leaving an obsolete alias behind, just in case. (define-child-mode): Make obsolete. (mode-local--set-parent): Rename from set-mode-local-parent. (mode-local--new-bindings): Rename from new-mode-local-bindings. Use `obarray-make`. (mode-local--activate-bindings): Rename from activate-mode-local-bindings. (mode-local--deactivate-bindings): Rename from deactivate-mode-local-bindings. (make-obsolete-overload): Rename properties with a `mode-local--` prefix. Adjust all users. (mode-local--overload-obsoleted-by): Rename from overload-obsoleted-by. (mode-local--overload-that-obsolete): Rename from overload-that-obsolete. (mode-local--function-overload-p): Rename from function-overload-p. (mode-local-read-function): Mark obsolete. (mode-local--overload-docstring-extension): Rename from overload-docstring-extension. (mode-local--describe-overload): Rename from describe-mode-local-overload. * lisp/cedet/semantic/fw.el (semantic-install-function-overrides): Remove unused `mode` argument. * lisp/cedet/semantic/grammar-wy.el (semantic-grammar-wy--install-parser): * lisp/cedet/semantic/bovine/grammar.el (bovine-grammar-mode): * lisp/cedet/semantic/texi.el (semantic-default-texi-setup): * lisp/cedet/semantic/wisent/grammar.el (wisent-grammar-setupcode-builder) (wisent-grammar-mode): * lisp/cedet/semantic/html.el (semantic-default-html-setup): Make the `semantic-` prefix explicit to ease grep search. (html-helper-mode): Remove obsolete setting. * lisp/cedet/semantic/wisent/javascript.el: Fix js-mode/javascript-mode mixup so we don't need define-child-mode any more. (semantic-get-local-variables, semantic-ctxt-current-symbol) (semantic-tag-protection, semantic-analyze-scope-calculate-access): Use `js-mode` rather than `javascript-mode` as the mode name since that's the real mode's name. * lisp/cedet/semantic/wisent/python.el (python-2-mode, python-3-mode): Remove child declaration for non-existing modes. * lisp/cedet/srecode/map.el (srecode-map-validate-file-for-mode): Simplify.
| * | Update from GnulibPaul Eggert2019-10-245-63/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This incorporates: 2019-10-23 nstrftime: speed up integer overflow checking 2019-10-23 port better to GCC under macOS 2019-10-15 inttypes: use more-robust test for int range 2019-10-14 update-copyright: use en dashes in .texi ranges * build-aux/update-copyright, lib/intprops.h, lib/inttypes.in.h: * lib/nstrftime.c, lib/verify.h: Copy from Gnulib.
| * | * doc/lispref/display.texi: Document `delay-warning'Juanma Barranquero2019-10-241-3/+9
| | |
| * | rx.el: Refactor user-definition expansionMattias Engdegård2019-10-241-41/+56
| | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/rx.el (rx--translate-not): Simplify structure. * lisp/emacs-lisp/rx.el (rx--expand-def): New. (rx--translate-symbol, rx--translate-form): Use rx--expand-def.
* | | Mention completion styles for Tramp user/host name completionMichael Albinus2019-10-251-3/+4
|/ / | | | | | | | | * doc/misc/tramp.texi (File name completion): Emacs must have one of the completion styles `basic', `emacs21', or `emacs22'.
* | Update FAQ section on large files (Bug#37818)Stefan Kangas2019-10-241-7/+16
| | | | | | | | | | * doc/misc/efaq.texi (Problems with very large files): Extend section and remove information about ancient versions of Emacs.
* | Update FAQ section on Emacs security (Bug#37818)Stefan Kangas2019-10-241-17/+6
| | | | | | | | | | * doc/misc/efaq.texi (Security risks with Emacs): Remove section on movemail. Add section on third-party packages.
* | * lisp/cedet/mode-local.el: Use lexical-binding and `declare`Stefan Monnier2019-10-231-73/+69
| | | | | | | | | | | | | | | | | | | | (with-mode-local-symbol, with-mode-local, setq-mode-local) (defvar-mode-local, defconst-mode-local) (define-overloadable-function, define-mode-local-override): Use `declare` for indent and edebug specs. (xref-mode-local-find-overloadable-regexp): Simplify regexp. (mode-local-setup-edebug-specs): Delete. (edebug-setup-hook): Don't use any more.
* | * lisp/dired.el (dired-mark-pop-up): Set tab-line-format to nil (bug#37699).Juri Linkov2019-10-241-1/+2
| |
* | * lisp/tab-bar.el: Allow to specify interactively where to add a new tab.Juri Linkov2019-10-231-8/+24
| | | | | | | | | | | | | | * lisp/tab-bar.el (tab-bar-new-tab-to): Rename from tab-bar-new-tab. Add optional arg TO-INDEX. (tab-bar-new-tab): New implementation to use relative ARG. (tab-new-to): Alias to tab-bar-new-tab-to.
* | * lisp/tab-bar.el: Rename tab-bar-swap-tabs to tab-bar-move-tab-to.Juri Linkov2019-10-231-7/+10
| | | | | | | | | | | | | | * lisp/tab-bar.el (tab-bar-move-tab-to): Rename from tab-bar-swap-tabs. Change logic to push the moved tab between existing tabs. (tab-bar-move-tab): Call tab-bar-move-tab-to instead of tab-bar-swap-tabs. (tab-move-to): Rename alias from tab-swap.
* | Implement tab close undo feature for tab-bar.Juri Linkov2019-10-231-3/+48
| | | | | | | | | | | | | | | | | | * lisp/tab-bar.el (tab-bar-closed-tabs): New variable. (tab-bar-close-tab): Add closed tab to tab-bar-closed-tabs. Disable tab-bar-mode on closing the last tab. (tab-bar-close-other-tabs): Add all closed tabs to tab-bar-closed-tabs. (tab-bar-undo-close-tab): New command. (tab-undo): Alias to tab-bar-undo-close-tab.
* | * lisp/cedet/semantic/analyze/complete.el: Fix completion-at-pointStefan Monnier2019-10-231-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Completion tables are not supposed to signal errors: emacs -q M-x semantic-mode ; visit a file supported by semantic, such as a C file ; put cursor in a blank space M-x completion-at-point It will error with: "Nothing to complete" (semantic-analyze-possible-completions): Return nil instead of signaling errors.
* | Ensure that the prompt is kept on the final lineLars Ingebrigtsen2019-10-233-0/+23
| | | | | | | | | | | | | | | | | | * lisp/erc/erc-goodies.el (erc-possibly-scroll-to-bottom): New function. (scrolltobottom): Add to erc-insert-done-hook. * lisp/erc/erc.el (erc-insert-done-hook): New hook (bug#11697). (erc-display-line-1): Use it.
* | Make erc-cmd-CLEAR do what its doc string saysLars Ingebrigtsen2019-10-231-1/+2
| | | | | | | | | | * lisp/erc/erc.el (erc-cmd-CLEAR): Delete the buffer contents instead of recentering (bug#31743).
* | Make display of S/MIME signatures slightly betterLars Ingebrigtsen2019-10-231-1/+1
| | | | | | | | | | * lisp/epg.el (epg-signature-to-string): Decode percent escapes (bug#36101).
* | Make Gnus recognise "git am" diffs in all groupsLars Ingebrigtsen2019-10-232-3/+6
| | | | | | | | | | * lisp/gnus/mm-uu.el (mm-uu-diff-groups-regexp): Recognise diffs in all groups (bug#32730).
* | Add version tag to gnutls-min-prime-bitsStefan Kangas2019-10-231-1/+2
| | | | | | | | * lisp/net/gnutls.el (gnutls-min-prime-bits): Add version tag.
* | Avoid extra lines in python-shell font lock buffer (Bug#33959)memeplex2019-10-221-12/+13
| | | | | | | | | | | | * lisp/progmodes/python.el (python-shell-font-lock-comint-output-filter-function): Avoid writing a newline to the font lock buffer when receiving an empty string.
* | Set expected result for a cedet testGlenn Morris2019-10-221-1/+2
| | | | | | | | | | * test/lisp/cedet/srecode-utest-template.el (srecode-utest-project): Test fails on hydra.nixos.org, for some reason.
* | Tab-line horizontal scrolling with UI buttons and commands (bug#37667)Juri Linkov2019-10-234-44/+175
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * etc/images/tabs/left-arrow.xpm: * etc/images/tabs/right-arrow.xpm: New images. * lisp/tab-line.el (tab-line-left-map, tab-line-right-map): New keymaps. (tab-line-left-button, tab-line-right-button): New variables. (tab-line-tab-name-function): Turn defvar into defcustom. (tab-line-tab-name-buffer): New function. (tab-line-tab-name-truncated-buffer): Rename from tab-line-tab-name. (tab-line-tabs-limit): Default to nil. (tab-line-tabs): Behavior depends on tab-line-tabs-limit. (tab-line-format): Use window-parameter tab-line-hscroll. Add left/right buttons. (tab-line-hscroll): New function. (tab-line-hscroll-right, tab-line-hscroll-left): New commands bound to mouse-wheel. Rebind tab-switching commands to mouse-wheel with Ctrl-modifier.
* | Fix "make bootstrap" build warning in tab-bar.elLars Ingebrigtsen2019-10-221-1/+3
| | | | | | | | | | | | * lisp/tab-bar.el (require): Require seq when compiling to avoid a compilation warning. The function it uses is autoloaded, but autoloads aren't loaded when this is built (on "make bootstrap").
* | Fix recent changes in documentationEli Zaretskii2019-10-222-5/+5
| | | | | | | | | | | | | | | | * doc/lispref/edebug.texi (Edebug Eval, Eval List): Reword recently added text to follow conventions. * src/textprop.c (Ftext_properties_at): Don't use passive tense in doc string.
* | Various doc fixes for auto-insert-modeStefan Kangas2019-10-222-9/+10
| | | | | | | | | | | | * doc/misc/autotype.texi (Autoinserting): Various doc fixes. * lisp/autoinsert.el (top-level): Recommend 'auto-insert-mode' over 'add-hook'.
* | Make text-properties-at mention describe-text-propertiesLars Ingebrigtsen2019-10-221-1/+4
| | | | | | | | | | * src/textprop.c (Ftext_properties_at): Mention describe-text-properties in the doc string.
* | Add a fringe exampleLars Ingebrigtsen2019-10-221-0/+11
| | | | | | | | * doc/lispref/display.texi (Fringe Bitmaps): Add an example.
* | rx doc string tweaksMattias Engdegård2019-10-221-3/+4
| | | | | | | | | | * lisp/emacs-lisp/rx.el (rx--translate-seq, rx--translate-or, rx): Say "zero or more" instead of "one or more" where applicable.
* | Make edebug-eval-last-sexp interactively take a zero prefixLars Ingebrigtsen2019-10-223-16/+43
| | | | | | | | | | | | * lisp/emacs-lisp/edebug.el (edebug-eval-last-sexp): Make the zero prefix work analogously to in eval-last-sexp (bug#28895). (edebug-eval-print-last-sexp): Ditto.
* | Show stash counts in button in vc-dirRobert Pluim2019-10-221-16/+37
| | | | | | | | | | | | | | | | | | | | | | | | Based on suggestions from Mattias Engdegård. * lisp/vc/vc-git.el (vc-git--make-button-text): New function to generate text for stash button. (vc-git-make-stash-button): Show stash counts. Delete and recreate button when toggling. (vc-git-dir-extra-headers): Pass counts to vc-git-make-stash-button. Treat stash count <= vc-git-show-stash as equivalent to showing entire list.
* | Move entry for \Ref into LaTeX coreArash Esbati2019-10-221-2/+2
| | | | | | | | | | | | | | * lisp/textmodes/reftex-vars.el (reftex-ref-style-alist): Move entry for \Ref from "Varioref" into "Default" as this macro is part of LaTeX 2019-10-01 kernel. Rearrange entries for "Varioref".
* | * etc/NEWS: Improve documentation of 'package-initialize'.Stefan Kangas2019-10-221-5/+10
| |