summaryrefslogtreecommitdiff
path: root/lisp
Commit message (Collapse)AuthorAge
* Merge remote-tracking branch 'origin/master' into athena/unstableSean Whitton2021-08-19
|\
| * Make icomplete-forward-completions O(1) when icomplete-scroll is tJoão Távora2021-08-19
| | | | | | | | | | | | | | | | | | In particular, this makes the recently added icomplete-vertical-goto-last (bug#49005) be O(n) instead of O(n^2). That used to be almost unbearably slow for large n. * lisp/icomplete.el (icomplete-forward-completions): don't call last unless needed.
| * Correctly call completion-in-region in shell.elMadhu2021-08-19
| | | | | | | | | | | | | | | | * lisp/shell.el (shell-dynamic-complete-command) (shell-dynamic-complete-environment-variable): Correctly call completion-in-region (bug#50125). Copyright-paperwork-exempt: yes
| * ; Fix escaping in recent ibuf-ext.el doc change.Basil L. Contovounesios2021-08-19
| |
| * Fix space at the start of appt mode line elementLars Ingebrigtsen2021-08-19
| | | | | | | | | | | | * lisp/calendar/appt.el (appt-check): Add space at the end (bug#18164) -- all `global-mode-string' elements should have it there to get an even space distribution.
| * Add ibuffer-saved-filter-groups example to the doc stringLars Ingebrigtsen2021-08-19
| | | | | | | | | | * lisp/ibuf-ext.el (ibuffer-saved-filter-groups): Add an example for this complicated syntax (bug#18694).
| * Fix dired switch (that contain quotes and spaces) parsingLars Ingebrigtsen2021-08-19
| | | | | | | | | | * lisp/files.el (insert-directory): Tokenize shell strings correctly (bug#18875).
| * Fix st.el doc stringLars Ingebrigtsen2021-08-19
| | | | | | | | | | | | * lisp/term/st.el (xterm-st-extra-capabilities): New user option (bug#50119). (terminal-init-st): Use it to avoid a two-second timeout.
| * Add support for history of image tags and completion in the minibufferPeter Münster2021-08-19
| | | | | | | | | | | | | | * lisp/image-dired.el (image-dired-tag-history): New variable holding the tag history. (image-dired-tag-files, image-dired-tag-thumbnail, image-dired-delete-tag) (image-dired-tag-thumbnail-remove): Use it for the user input.
| * Avoid problems when one tag/file is a substring of anotherPeter Münster2021-08-19
| | | | | | | | | | * lisp/image-dired.el (image-dired-remove-tag): End of filename is bound by ";" and end of tag is bound by ";" or end of line.
| * New placement of newline characters in image-dired-db-filePeter Münster2021-08-19
| | | | | | | | | | | | | | | | | | | | | | It's more usual to have the newline at the end of the line, instead of the beginning. This change avoids missing newline at the end of the file, an empty line at the start and eventually a lot of empty lines when `require-final-newline' is not nil. * lisp/image-dired.el (image-dired-write-tags): Insert newline at the end of the line, instead of the beginning. (image-dired-remove-tag): Do not delete empty line at end of buffer.
| * Fix deletion of associated imagePeter Münster2021-08-19
| | | | | | | | | | * lisp/image-dired.el (image-dired-delete-marked): Treat original images first, because point position is used when there are no marked files.
| * Minor doc fixes in icomplete.elEli Zaretskii2021-08-19
| | | | | | | | | | * lisp/icomplete.el (icomplete-section): Add :version. (icomplete--augment): Doc fix.
| * stterm doesn't understand all codes that xterm doesLars Ingebrigtsen2021-08-19
| | | | | | | | | | | | * lisp/term/st.el (xterm-st-extra-capabilities): New user option (bug#50119). (terminal-init-st): Use it to avoid a two-second timeout.
| * ; Correct :version tag of icomplete-selected-match faceJoão Távora2021-08-19
| | | | | | | | * lisp/icomplete.el (icomplete-selected-match): Fix :version
| * Section by 'group-function' in Icomplete and Fido's vertical modesJoão Távora2021-08-19
| | | | | | | | | | | | | | | | | | Fixes: bug#48545 * lisp/icomplete.el (icomplete--augment): Rewrite from icomplete--affixate. (icomplete--render-vertical): Rework. (icomplete--vertical-minibuffer-setup): Separator is hardcoded "\n", no need to set.
| * Improve fix of bug#49888 on no-pattern flex sortingJoão Távora2021-08-19
| | | | | | | | | | | | | | | | | | This version is functionally equivalent, but doesn't duplicate any code. When nothing "flexy" is happening, it works by simply not doing any metadata adjustments, instead of attempting to synthesize a function to mimic the non-flex case. * lisp/minibuffer.el (completion--flex-adjust-metadata): Simplify.
| * Fix vc-root-diff broken with Git as wellDmitry Gutov2021-08-19
| | | | | | | | | | * lisp/vc/vc.el (vc-root-diff): Fix similar to 35023214031e1 by avoiding the abbreviated directory name in argument (bug#39452).
| * * lisp/progmodes/xref.el (xref--collect-matches): Widen temporarily.Juri Linkov2021-08-18
| |
| * * lisp/mouse.el: More fixes for context-menu.Juri Linkov2021-08-18
| | | | | | | | | | | | (context-menu-map): Remove menu title "Context Menu" (bug#50067). (context-menu-minor): Reverse sub-menus to display exactly in the same order as on the menu bar.
| * Disable auto compositions on the Linux console onlyLars Ingebrigtsen2021-08-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/term/linux.el (terminal-init-linux): Disable auto compositions on "linux" consoles (bug#21363). * src/composite.c (inhibit_auto_composition): New function to implement this. (composition_compute_stop_pos, composition_adjust_point) (Ffind_composition_internal): Use it. (syms_of_composite): Document it. * src/lisp.h: Export tty_type_name. * src/term.c (tty_type_name): Factored out. (Ftty_type): Use it.
| * Add menu bindings to new functions in image-dired.elPeter Münster2021-08-18
| | | | | | | | | | | | | | | | | | | | | | * lisp/image-dired.el (image-dired--with-marked): New macro for cycling over marked thumbnails. (image-dired-tag-thumbnail, image-dired-tag-thumbnail-remove): Can handle now also all marked thumbnails. (image-dired-tag-marked-thumbnails): Remove it, because it's obsoleted by `image-dired-tag-thumbnail' now. (image-dired-delete-marked): Use new macro `image-dired--with-marked', and add command to menu (bug#50000).
| * Fix ediff3 layouts with window-combination-resize non-nil (Bug#49277)pillule2021-08-18
| | | | | | | | | | | | | | * lisp/vc/ediff-wind.el (ediff-setup-windows-plain-compare) (ediff-setup-windows-multiframe-compare): Fix three windows layouts produced by ediff3 when 'window-combination-resize' was customized to t and 'even-window-sizes' to nil.
| * Fix behavior when switch-to-prev-buffer-skip is a function (Bug#49275)pillule2021-08-18
| | | | | | | | | | | | * lisp/window.el (switch-to-prev-buffer) (switch-to-next-buffer): More correctly handle cases where 'switch-to-prev-buffer-skip' is a function.
| * * Fix `native-compile-target-directory' effectiveness for async compilation.Andrea Corallo2021-08-17
| | | | | | | | | | * lisp/emacs-lisp/comp.el (comp-run-async-workers): Forward to async workers `native-compile-target-directory'.
| * * lisp/mouse.el (context-menu-filter-function): Fix type.Glenn Morris2021-08-17
| |
| * ; Fix a comment in a recent commit.Eli Zaretskii2021-08-17
| | | | | | | | | | * lisp/help-mode.el (help-mode-syntax-table): Fix punctuation in a comment.
| * Improve `forward-sexp' in *Help* buffersMichalis V2021-08-17
| | | | | | | | | | | | | | * lisp/help-mode.el (help-mode-syntax-table): New variable (bug#39134). (help-make-xrefs): Use it to make picking out symbols in curved quotes work reliably. (help-xref-on-pp): Ditto.
| * Bind <up> and <down> in icomplete-vertical-modeJoão Távora2021-08-17
| | | | | | | | | | | | | | Suggested by Ergus <spacibba@aol.com> * lisp/icomplete.el (icomplete-vertical-mode-minibuffer-map): Bind <up> and <down>
| * Jump to first,last completion with M-<, M-> in icomplete-vertical-modeJoão Távora2021-08-17
| | | | | | | | | | | | | | | | | | | | | | | | Fixes: bug#49005 Co-authored-by: Simon Lang <simon.lang@outlook.com> * lisp/icomplete.el (icomplete-backward-completions): Return non-nil iff something was stepped. Ajust docstring. (icomplete-forward-completions): Adjust docstring. (icomplete-vertical-goto-first, icomplete-vertical-goto-last): New commands. (icomplete-vertical-mode-minibuffer-map): Bind new commands to M-< and M->.
| * Merge branch 'feature/context-menu'Juri Linkov2021-08-17
| |\
| | * Use map-keymap in context-menu-global, context-menu-local, context-menu-minorJuri Linkov2021-08-15
| | |
| | * Improve handling of context menus for global, local, minor-mode menusJuri Linkov2021-08-03
| | | | | | | | | | | | | | | * lisp/mouse.el (context-menu-global, context-menu-local, context-menu-minor): Better handling of possibly nested menu maps.
| | * * lisp/help-mode.el (help-mode-context-menu): New function.Juri Linkov2021-08-01
| | | | | | | | | | | | (help-mode): Use it.
| | * Improve :type of defcustom 'context-menu-functions' and add documentation.Juri Linkov2021-07-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/emacs/frames.texi (Menu Mouse Clicks): Describe context-menu-mode and context-menu-functions instead of suggesting global-set-key. (Menu Bars): Mention context-menu-mode and context-menu-functions. * etc/NEWS: Add context-menu-mode and context-menu-functions. * lisp/mouse.el (context-menu-functions): Use :type with repeat/function-item. (context-menu-minor, context-menu-undo, context-menu-region) (context-menu-ffap): Improve docstrings displayed for function-item in defcustom of context-menu-functions.
| | * Add new context-menu options for menus "File At Point" and "Version Control".Juri Linkov2021-07-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/mouse.el (context-menu-functions): Add more options. (context-menu-global, context-menu-local): Fix separators. (context-menu-minor): Rewrite to support list of submenus. (context-menu-vc, context-menu-ffap): New functions. (context-menu-undo, context-menu-region): Fix separators. * lisp/dired.el (dired-context-menu): * lisp/info.el (Info-context-menu): * lisp/net/goto-addr.el (goto-address-context-menu): * lisp/net/eww.el (eww-context-menu): * lisp/progmodes/prog-mode.el (prog-context-menu): Fix separators.
| | * Improve docstring of context-menu-functions and add eww-context-menuJuri Linkov2021-07-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/mouse.el (context-menu-functions): Explain function args in docstring. * lisp/net/eww.el (eww-context-menu): New function. (eww-mode): Add it to context-menu-functions. * lisp/info.el (Info-context-menu): Move history items higher. * lisp/progmodes/prog-mode.el (prog-context-menu): Add menu items in the middle of the menu after the region menu items.
| | * Change the order of context-menu-functions and add more context menus.Juri Linkov2021-07-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/mouse.el (context-menu-functions): Update default list. (context-menu-overriding-function): Remove variable. (context-menu-map): Reverse the order. (context-menu-global, context-menu-local, context-menu-minor): New functions. (context-menu-undo, context-menu-region): Add separators. Use define-key-after instead of bindings--define-key. (context-menu-entry): New variable. (context-menu-mode): Use it. * lisp/dired.el (dired-context-menu): New function. (dired-mode): Add it to context-menu-functions. * lisp/info.el (Info-context-menu): Reorder. * lisp/net/goto-addr.el (goto-address-at-mouse): Rename from goto-address-at-click. (goto-address-context-menu): Use goto-address-at-mouse. * lisp/progmodes/prog-mode.el (prog-context-menu): New function. (prog-mode): Add it to context-menu-functions.
| | * Add new mode context-menu-mode and use it in info.el and goto-addr.elJuri Linkov2021-07-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/mouse.el (context-menu-functions): New defcustom. (context-menu-overriding-function): New function. (context-menu-filter-function): New defcustom. (context-menu-map): New function. (context-menu-undo, context-menu-region): New menu functions. (context-menu-mode): New mode. * lisp/info.el (Info-context-menu): New function. (Info-mode): Add Info-context-menu to context-menu-functions. * lisp/net/goto-addr.el (goto-address-context-menu): New function. (goto-address-at-click): New command. (goto-address-mode): Add goto-address-context-menu to context-menu-functions.
| * | ruby-mode imenu: Support methods with modifiersDmitry Gutov2021-08-17
| | | | | | | | | | | | | | | | | | * lisp/progmodes/ruby-mode.el (ruby-imenu-create-index-in-block): Support methods with modifiers (visibility or otherwise) (bug#50079).
| * | vc-git-region-history: Fix to call 'diff' more correctlyDmitry Gutov2021-08-17
| | | | | | | | | | | | | | | * lisp/vc/vc-git.el (vc-git-region-history): Fix to pass a list to the backend 'diff' command (bug#39452).
| * | Make icomplete-vertical-mode take immediate effect (bug#49075)João Távora2021-08-16
| | | | | | | | | | | | | | | | | | | | | | | | * etc/NEWS: Mention change. * lisp/icomplete.el (icomplete-vertical-mode): (fido-vertical-mode): Tweak docstring. Turn on icomplete-mode. and fido-mdoe
| * | Merge from origin/emacs-27Glenn Morris2021-08-16
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 9664ee182c (origin/emacs-27) C++ Mode: Don't confuse the pointer oper... b3aec9ee48 CC Mode: Fix unstable fontification of doc strings. # Conflicts: # lisp/progmodes/cc-fonts.el
| | * | C++ Mode: Don't confuse the pointer operator -> with the type indicating ->Alan Mackenzie2021-08-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes bug #47468. * lisp/progmodes/cc-engine.el (c-looking-at-inexpr-block): While searching backwards for "->" which is a type indicating operator, disallow also commas.
| | * | CC Mode: Fix unstable fontification of doc strings.Alan Mackenzie2021-08-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also optimize a loop over several line doc-comments. * lisp/progmodes/cc-fonts.el (c-font-lock-doc-comments): New variable comment-mid, used as the starting point for applying c-doc-face-name in a line comments. In block comments, apply this face not from `comment-beg' but from `region-beg', no earlier than the start of the fontification region.
| * | | Fix cursor movement on the Linux console with certain charactersLars Ingebrigtsen2021-08-16
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/term/linux.el (terminal-init-linux): Switch off auto-compositions, because they confuse cursor movement on the Linux console (bug#21363).
| * | | Minor clarification for define-minor-mode :variableLars Ingebrigtsen2021-08-16
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/easy-mmode.el (define-minor-mode): * doc/lispref/modes.texi (Defining Minor Modes): Clarify what the setter function should do (bug#14875).
| * | | Remove prettification for \par in tex-modeClément Pit-Claudel2021-08-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/textmodes/tex-mode.el (tex--prettify-symbols-alist): Remove prettified version of `\par'. Many fonts don't display anything for the character it was mapped to (#x2029 PARAGRAPH SEPARATOR), so enabling prettification makes every `\par' disappear (bug#50073).
| * | | Add new functions to replace strings/regexp in a regionLars Ingebrigtsen2021-08-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/searching.texi (Search and Replace): Document them. * lisp/subr.el (replace-string-in-region) (replace-regexp-in-region): New functions. * lisp/emacs-lisp/shortdoc.el (regexp, buffer): Mention them.
| * | | Don't remove `fontified' in nxml--buffer-substring-filterLars Ingebrigtsen2021-08-16
| | | | | | | | | | | | | | | | | | | | * lisp/nxml/nxml-mode.el (nxml--buffer-substring-filter): Removing `fontified' is probably unnecessary (bug#50061).