summaryrefslogtreecommitdiff
path: root/lisp/bindings.el
Commit message (Collapse)AuthorAgeFilesLines
* Fix mode line mouse-1 binding when showing only column numbersMiha Rihtaršič2022-07-231-18/+18
| | | | | * lisp/bindings.el (mode-line-position): Fix the mouse-1 binding when showing only column numbers (bug#56694).
* ; * lisp/bindings.el: Remove conflicting commented out bindings.Stefan Kangas2022-07-191-8/+0
|
* Prefer defvar-keymap in bindings.elStefan Kangas2022-07-191-97/+85
| | | | | | | | * lisp/bindings.el (narrow-map, undo-repeat-map) (next-error-repeat-map, goto-map, search-map, ctl-x-r-map) (page-navigation-repeat-map, abbrev-map, ctl-x-x-map): Prefer defvar-keymap. (mode-specific-map): Minor doc fix.
* Re-add comment on autoloading cookies in preloaded filesStefan Kangas2022-07-111-0/+1
| | | | | | | | | | | This comment was removed in 2009, but it is useful to explain why we are keeping these autoload cookies. * lisp/bindings.el: * lisp/font-core.el: * lisp/format.el: * lisp/international/mule-cmds.el: Re-add comment on autoloading. * lisp/font-core.el (font-lock-defaults): Re-add autoload cookie, despite the fact that this file is preloaded.
* Prefer :risky defcustom keywordStefan Kangas2022-07-111-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | * lisp/align.el (align-region-separate, align-rules-list) (align-exclude-rules-list, align-vhdl-rules-list): * lisp/bindings.el (mode-line-percent-position): * lisp/filesets.el (filesets-menu-cache-file, filesets-commands) (filesets-external-viewers, filesets-ingroup-patterns) (filesets-data): * lisp/hi-lock.el (hi-lock-file-patterns-policy): * lisp/mail/mailalias.el (mail-complete-alist) (mail-directory-process, mail-directory-stream) (mail-directory-parser): * lisp/mail/rmail.el (rmail-confirm-expunge): * lisp/mail/sendmail.el (mail-signature): * lisp/mail/supercite.el (sc-cite-frame-alist) (sc-uncite-frame-alist, sc-recite-frame-alist) (sc-default-cite-frame, sc-default-uncite-frame) (sc-default-recite-frame, sc-attrib-selection-list) (sc-rewrite-header-list): * lisp/progmodes/make-mode.el (makefile-special-targets-list): * lisp/so-long.el (so-long-action-alist): * lisp/textmodes/sgml-mode.el (sgml-tag-alist): Prefer defcustom :risky keyword argument to directly setting the 'risky-local-variable' symbol property.
* Quote some literal keys to get help-key-binding faceStefan Kangas2022-07-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/align.el (align): * lisp/bindings.el (undo-repeat-map): * lisp/calc/calc-embed.el (calc-do-embedded): * lisp/calc/calc-prog.el (calc-user-define-invocation): * lisp/calc/calc-yank.el (calc--edit-mode): * lisp/comint.el (comint-history-isearch) * lisp/dired.el (dired-mode): * lisp/emulation/viper.el (viper-mode): * lisp/erc/erc-button.el (erc-button-face): * lisp/erc/erc-track.el (erc-track-enable-keybindings): * lisp/gnus/gnus-art.el (gnus-article-button-face): * lisp/gnus/gnus-eform.el (gnus-edit-form): * lisp/gnus/gnus-sum.el (gnus-summary-stop-at-end-of-message) (gnus-summary-goto-unread): * lisp/icomplete.el (icomplete-show-matches-on-no-input): * lisp/image-mode.el (image-scroll-up): * lisp/international/iso-transl.el (iso-transl-set-language): * lisp/isearch.el (isearch-forward-regexp): * lisp/misc.el (butterfly): * lisp/outline.el (outline-minor-mode-cycle-filter) (outline-minor-mode-cycle): * lisp/progmodes/grep.el (rgrep): * lisp/progmodes/gud.el (gud-gdb-repeat-map, gud-sdb-repeat-map) (gud-dbx-repeat-map, gud-xdb-repeat-map, gud-perldb-repeat-map) (gud-pdb-repeat-map, gud-guiler-repeat-map, gud-jdb-repeat-map): * lisp/progmodes/idlw-shell.el (idlwave-shell-graphics-window-size) (idlwave-shell-mode): * lisp/progmodes/idlwave.el (idlwave-shell-debug-modifiers) (idlwave-list-shell-load-path-shadows): * lisp/progmodes/python.el (python-shell-get-process-or-error): * lisp/repeat.el (repeat-check-key): * lisp/replace.el (query-replace, query-replace-regexp) (read-regexp): * lisp/simple.el (read-extended-command-predicate): * lisp/tab-bar.el (tab-bar-switch-repeat-map) (tab-bar-move-repeat-map): * lisp/term.el (ansi-term): * lisp/textmodes/reftex-index.el (reftex-index-phrases-set-macro-key): * lisp/vc/emerge.el (emerge-scroll-left, emerge-scroll-right): * lisp/windmove.el: * lisp/winner.el (winner-mode): Quote literal keys to get 'help-key-binding' face. * lisp/comint.el (comint-insert-previous-argument): Use regular quotes.
* Allow appending to the kill ring with mouse selectionsLars Ingebrigtsen2022-06-201-1/+9
| | | | | | | | | * lisp/bindings.el (ignore-preserving-kill-region): New function. (global-map): Use it. * lisp/mouse.el (mouse-set-region, mouse-drag-region) (mouse-drag-track): Allow appending to kill ring with mouse selections (bug#32747).
* Improve cycle-spacing and bind it to M-SPC by defaultTassilo Horn2022-05-161-1/+1
| | | | | | | | | | | | | | | | | | | * lisp/bindings.el (esc-map): Bind M-SPC to cycle-spacing instead of just-one-space. * lisp/simple.el (delete-space--internal): New function. (delete-horizontal-space): Use it. (delete-all-space): New command. (just-one-space): Implement on its own instead of calling cycle-spacing with a special flag. (cycle-spacing--context): Make it a plist instead of a list. Adapt docstring accordingly. (cycle-spacing-actions): New user option. (cycle-spacing): Rewrite so that it performs the actions in cycle-spacing-actions instead of the hard-coded ones. * doc/emacs/killing.texi (characters): Mention and add a variable index entry for cycle-spacing-actions. * etc/NEWS: Document that M-SPC is now cycle-spacing instead of just-one-space.
* Bind 'imenu' to 'M-g i' globallySean Whitton2022-04-211-0/+1
| | | | | | | | | | | Another candidate was 'M-s i'. Discussion on emacs-devel has led me to conclude that most people will find 'M-g i' more intuitive and thus easier to memorize. * lisp/bindings.el (goto-map): Bind 'imenu' to 'M-g i' globally. * etc/NEWS: Document the change. * doc/emacs/programs.texi (Imenu): * lisp/progmodes/cperl-mode.el: Replace 'M-x imenu' with 'M-g i'.
* Reinstate `C-M-<delete>'Lars Ingebrigtsen2022-03-231-4/+2
| | | | | | | * lisp/bindings.el (global-map): Reinstate `C-M-<delete>' and `C-M-<backspace>' (bug#29430). These used to kill X, but that hasn't been the case in any common GNU/Linux distributions for decades.
* Fix the Scroll key binding on WindowsLars Ingebrigtsen2022-02-071-1/+3
| | | | | | | | * lisp/bindings.el (global-map): Fix the binding on Windows (bug#38007). * lisp/scroll-lock.el (scroll-lock-mode): The event is `scroll' on Windows, not `Scroll_Lock'.
* Add new function mode-line-window-selected-pLars Ingebrigtsen2022-02-051-0/+12
| | | | | | * doc/lispref/modes.texi (Mode Line Basics): Mention it (bug#53629). * lisp/bindings.el (mode-line-window-selected-p): New function from martin rudalics <rudalics@gmx.at>.
* Merge from origin/emacs-28Eli Zaretskii2022-01-011-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 836be7a112 ; * etc/refcards/ru-refcard.tex: Update Copyright year. 86cbc6ee4a * lisp/net/tramp-sh.el: Adapt copyright year ebe8772f65 ; Minor fixes related to copyright years 23c1ee6989 ; * test/manual/etags/ETAGS.good_N: Adjust to copyright ye... 8d3fc7ec89 * src/xfaces.c (face_for_font): Make 'hash' be uintptr_t. 19dcb237b5 ; Add 2022 to copyright years. # Conflicts: # etc/NEWS # etc/refcards/ru-refcard.tex # lib/cdefs.h # lisp/erc/erc-dcc.el # lisp/erc/erc-imenu.el # lisp/erc/erc-replace.el # lisp/image-dired.el # lisp/progmodes/xref.el # m4/alloca.m4 # m4/byteswap.m4 # m4/errno_h.m4 # m4/getopt.m4 # m4/gnulib-common.m4 # m4/inttypes.m4 # m4/stddef_h.m4 # m4/stdint.m4 # m4/sys_socket_h.m4
| * ; Add 2022 to copyright years.Eli Zaretskii2022-01-011-1/+1
| |
* | Remove the `mode-line-percent-position' min width hackLars Ingebrigtsen2021-12-211-1/+1
| | | | | | | | | | | | | | * lisp/bindings.el (mode-line-position): Remove hack to get min-width to work on the `mode-line-percent-position' bit. * src/xdisp.c (display_string): Respect min-width in the non-Lisp string case (bug#52332).
* | Revert "Avoid small parasitic button on mode line"Eli Zaretskii2021-12-061-1/+1
| | | | | | | | | | | | | | This reverts commit c9e901f4a612646be4ce06e1619897edfb073bf0. Turns out without that "ghost" button min-width doesn't work on the mode line at all...
* | Fix mode-line display on TTY framesEli Zaretskii2021-12-061-1/+1
| | | | | | | | | | | | | | * lisp/bindings.el (mode-line-frame-control): Remove the leading '-' before '%F' on TTY frames. It has no real purpose, and looks ugly nowadays, since it's preceded by a blank, due to the new min-width feature.
* | Avoid small parasitic button on mode lineEli Zaretskii2021-12-061-1/+1
| | | | | | | | | | | | * lisp/bindings.el (mode-line-position): Remove stray space character, which caused a "ghost" button on the mode line. (Bug#52332)
* | Add `touch-end' event typePo Lu2021-12-021-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * etc/NEWS: * doc/lispref/commands.texi (Misc Events): Document new `touch-end' event type. * lisp/bindings.el: Ignore touch-end events by default. * src/keyboard.c (make_lispy_event): Add support for TOUCH_END_EVENT events. (syms_of_keyboard): New symbol `touch-end'. * src/termhooks.h (enum event_kind): New member `TOUCH_END_EVENT'. * src/xterm.c (handle_one_xevent): Send touch-end events when appropriate.
* | Add temporary mode-line-position changeLars Ingebrigtsen2021-11-251-1/+1
| | | | | | | | | | | | * lisp/bindings.el (mode-line-position): Add interim solution to make `min-width' work here; this should be fixed for real in the display_line machinery somewhere.
* | Make min-width of the U:-- widerLars Ingebrigtsen2021-11-241-1/+1
| | | | | | | | | | | | * lisp/bindings.el (standard-mode-line-format): Make the modified bits larger since there's often a big difference between - and % characters.
* | Use a proportional font for the mode lineLars Ingebrigtsen2021-11-241-4/+14
|/ | | | | | | * lisp/bindings.el (mode-line-position): Add min-width specs. (standard-mode-line-format): Ditto. * lisp/faces.el (mode-line): Inherit from `variable-pitch'.
* Prefer "graphical displays" to "X terminals" in documentationStefan Kangas2021-10-151-1/+1
| | | | | | | | | | * doc/lispref/objects.texi (Ctl-Char Syntax): Fix incorrect remark; some text terminals can generate ASCII control characters. (Other Char Bits): * lisp/bindings.el: * lisp/gnus/gnus-undo.el (gnus-undo-mode-map): Say "graphical display" and "GUI display" instead of "X terminal"; the latter term is archaic. (Bug#51217)
* Improve tooltip of mode-line-position againStefan Kangas2021-10-141-1/+1
| | | | | | * lisp/bindings.el (mode-line-position): Improve tooltip again. This change was discussed in https://lists.gnu.org/r/emacs-devel/2021-10/msg00952.html
* * lisp/bindings.el (mode-line-position): Improve tooltip.Stefan Kangas2021-10-091-1/+1
|
* Fix a recent change of 'undo-redo' bindingEli Zaretskii2021-09-301-1/+1
| | | | | * lisp/bindings.el (global-map): Fix the binding of 'undo-redo'. (Bug#50911)
* Fix bootstrap after recent undo-redo changedickmao2021-09-301-1/+1
| | | | | * lisp/bindings.el (global-map): Don't use `kbd' here -- it breaks bootstrap (bug#50911).
* Add bindings for 'undo-redo'Dmitry Gutov2021-09-291-0/+3
| | | | | | | | * etc/NEWS: Describe the change. * lisp/bindings.el (global-map): Add bindings for 'undo-redo'. * lisp/simple.el (undo-no-redo): Turn into a user option.
* ; More minor stylistic fixes found by checkdocStefan Kangas2021-09-221-3/+3
|
* Revert previous mode-line-modes change to unbreak bootstrapStefan Kangas2021-09-191-2/+1
| | | | | * lisp/bindings.el (mode-line-modes): Revert previous change to unbreak bootstrap.
* Use command substitution for exit-recursive-editStefan Kangas2021-09-181-1/+3
| | | | | | * lisp/bindings.el (mode-line-modes): * lisp/emacs-lisp/checkdoc.el (checkdoc-recursive-edit): Use command substitution for 'exit-recursive-edit'.
* ; Minor stylistic fixes found by checkdocStefan Kangas2021-09-161-6/+6
|
* * lisp/bindings.el (page-navigation-repeat-map): Fix bootstrap.Glenn Morris2021-08-201-2/+2
|
* Mark page navigation commands as repeatableDavide Masserut2021-08-201-0/+11
| | | | | | | | | | | | * doc/emacs/basic.texi (Repeating): Document page navigation repeatability. * lisp/bindings.el (page-navigation-repeat-map): Add new map (bug#50137). * lisp/bindings.el (forward-page): (backward-page): Mark as repeatable. Copyright-paperwork-exempt: yes
* Add a new command `revert-buffer-quick'Lars Ingebrigtsen2021-08-101-1/+1
| | | | | | | | | * doc/emacs/files.texi (Reverting): Document it. * lisp/bindings.el (ctl-x-x-map): Bind `C-x x g' to `revert-buffer-quick' instead. * lisp/files.el (revert-buffer-quick-short-answers): New user option. (revert-buffer-quick): New command (bug#49869).
* Improve mode-line-position-column-format doc stringLars Ingebrigtsen2021-07-281-4/+7
| | | | | | | * lisp/bindings.el (mode-line-position-column-format): Improve doc string. (mode-line-position-line-format): Point to `mode-line-position-column-line-format'.
* 'global-mode-string' elements should have a space at the endLars Ingebrigtsen2021-07-231-1/+1
| | | | | | | | | * lisp/time.el (display-time-string-forms): * lisp/battery.el (battery-mode-line-format): Add a space to the end (bug#30056). * lisp/bindings.el (mode-line-misc-info): Remove space from end. This will make the default format have one space before the line-of-dashes (instead of two) on terminals.
* Fix the name of the sorted minor mode map after previous changeLars Ingebrigtsen2021-06-251-1/+1
| | | | | * lisp/bindings.el (mode-line-major-mode-keymap): Change the name of the minor mode menu items.
* * lisp/bindings.el (bindings--sort-menu-keymap): Add "menu" in its nameStefan Monnier2021-06-241-11/+7
| | | | (bindings--menu-item-string): Use `pcase`.
* Sort the items in 'mode-line-mode-menu' before displaying the menuJim Porter2021-06-241-4/+39
| | | | | | | * lisp/bindings.el (bindings--menu-item-string, bindings--sort-keymap): New functions. (mode-line-major-mode-keymap, mode-line-minor-mode-keymap): Sort 'mode-line-mode-menu'.
* Revert "Sort the items in 'mode-line-mode-menu' before displaying the menu"Lars Ingebrigtsen2021-06-231-32/+4
| | | | | | This reverts commit d4d6d8f335165e2bda8942b4acd45e5bab613b70. This approach doesn't work on certain types of keymaps, so it should be implemented in a different way.
* Sort the items in 'mode-line-mode-menu' before displaying the menuJim Porter2021-06-231-4/+32
| | | | | | | * lisp/bindings.el (bindings--menu-item-string, bindings--sort-keymap): New functions. (mode-line-major-mode-keymap, mode-line-minor-mode-keymap): Sort 'mode-line-mode-menu'.
* Further fixes for bound-and-true-p doc stringLars Ingebrigtsen2021-06-211-2/+2
| | | | * lisp/bindings.el (bound-and-true-p): Improve doc string.
* Improve bound-and-true-p doc stringLars Ingebrigtsen2021-06-191-1/+3
| | | | * lisp/bindings.el (bound-and-true-p): Improve doc string (bug#49116).
* Assume something more recent than X11R6Stefan Kangas2021-03-201-1/+1
| | | | | | | | * lisp/bindings.el: * lisp/menu-bar.el: * lisp/printing.el: * lisp/thumbs.el (thumbs-conversion-program): Assume we have something more recent than X11R6.
* Unbind `M-o' and add new `C-x x f' bindingLars Ingebrigtsen2021-03-181-0/+1
| | | | | | | | | | | * doc/lispref/modes.texi (Other Font Lock Variables): `font-lock-fontify-block' is no longer bound. * lisp/bindings.el (ctl-x-x-map): Bind `font-lock-update'. * lisp/font-lock.el (font-lock-update): New command written by Gregory Heytings <gregory@heytings.org>. * lisp/loadup.el: Remove transitional experimental code.
* New transient mode 'repeat-mode' to allow shorter key sequences (bug#46515)Juri Linkov2021-02-171-0/+17
| | | | | | | | | | | | | | | | | | | | | | | * doc/emacs/basic.texi (Repeating): Document repeat-mode. * lisp/repeat.el (repeat-exit-key): New defcustom. (repeat-mode): New global minor mode. (repeat-post-hook): New function. * lisp/bindings.el (undo-repeat-map): New variable. (undo): Put 'repeat-map' property with 'undo-repeat-map'. (next-error-repeat-map): New variable. (next-error, previous-error): Put 'repeat-map' property with 'next-error-repeat-map'. * lisp/window.el (other-window-repeat-map): New variable. (other-window): Put 'repeat-map' property with 'other-window-repeat-map'. (resize-window-repeat-map): New variable. (enlarge-window, enlarge-window-horizontally) (shrink-window-horizontally, shrink-window): Put 'repeat-map' property with 'resize-window-repeat-map'.
* Bind clone-buffer to C-x x nSean Whitton2021-02-081-0/+1
| | | | | * lisp/bindings.el (ctl-x-x-map): Bind clone-buffer. * etc/NEWS: Document the change (bug#46369).
* Add more commands to the new `C-x x' keymapLars Ingebrigtsen2021-02-071-0/+4
| | | | | | | | | | * doc/emacs/killing.texi (Accumulating Text): * doc/emacs/display.texi (Line Truncation): * doc/emacs/buffers.texi (Misc Buffer): Document it. * lisp/bindings.el (ctl-x-x-map): Add new bindings for rename-buffer, rename-uniquely, insert-buffer and toggle-truncate-lines.
* Move 'revert-buffer' global binding to 'C-x g g'Sean Whitton2021-02-071-1/+6
| | | | | | | * lisp/bindings.el: Define ctl-x-g-map and bind 'revert-buffer' to 'C-x x g' globally. * doc/emacs/files.texi: Replace 'C-x g' with 'C-x x g'. * etc/NEWS: Document the change (bug#46300).