summaryrefslogtreecommitdiff
path: root/lisp/bindings.el
Commit message (Collapse)AuthorAgeFilesLines
* Prefer HTTPS to FTP and HTTP in documentationPaul Eggert2017-09-131-1/+1
| | | | | | | | | | | | | Most of this change is to boilerplate commentary such as license URLs. This change was prompted by ftp://ftp.gnu.org's going-away party, planned for November. Change these FTP URLs to https://ftp.gnu.org instead. Make similar changes for URLs to other organizations moving away from FTP. Also, change HTTP to HTTPS for URLs to gnu.org and fsf.org when this works, as this will further help defend against man-in-the-middle attacks (for this part I omitted the MS-DOS and MS-Windows sources and the test tarballs to keep the workload down). HTTPS is not fully working to lists.gnu.org so I left those URLs alone for now.
* ; Fix docstringLele Gaifax2017-06-131-1/+1
| | | | | | | * lisp/bindings.el (mode-line-percent-position): End docstring first sentence with a period (Bug#27339). Copyright-paperwork-exempt: yes
* Fix the mouse help/key map on the "%p" part of the mode line.Alan Mackenzie2017-05-301-3/+4
| | | | | | | * lisp/bindings.el (mode-line-percent-position): give it a `risky-local-variable' property. (mode-line-position): correct the quoting on the mode-line-percent-position part of the variable, allowing the properties to be properly recognized.
* ; Spelling fixPaul Eggert2017-05-211-1/+1
|
* Enhance mode-line percentage offset facility, with "%o" and "%q"Alan Mackenzie2017-05-211-7/+25
| | | | | | | | | | | | | | | | | | "%o" will display the percentage "travel" of the window through the buffer. "%q" will display a combination of the percentage offsets of the top and bottom of the window. The new user option mode-line-percent-position will facilitate selecting a setting for this part of the mode line. * lisp/bindings.el (mode-line-percent-position): New customizable user option. (mode-line-position): Use mode-line-percent-position in place of "%p", etc. * src/xdisp.c (decode_mode_spec): Add handlers for "%o" and "%q". * doc/lispref/modes.texi (Mode Line Variables): Document mode-line-percent-position. (%-Constructs): Document %o and %q. * etc/NEWS: Add an entry for these new facilities.
* Implement 1-based column numbering in mode linePerry E. Metzger2017-05-101-11/+36
| | | | | | | | | | | | | | | | | | | | | * src/xdisp.c (decode_mode_spec): Implement the %C construct. * lisp/bindings.el (column-number-indicator-zero-based): New defcustom. (mode-line-position): Use %C when column-number-indicator-zero-based is nil. * src/xdisp.c (syms_of_xdisp) <frame-title-format>: * src/buffer.c (syms_of_buffer) <mode-line-format>: * doc/lispref/modes.texi (%-Constructs): * doc/lispref/frames.texi (Frame Titles): Document the %C construct. * doc/emacs/display.texi (Optional Mode Line): Document 'column-number-indicator-zero-based'. * etc/NEWS: Mention 'column-number-indicator-zero-based' and the %C construct.
* Merge from origin/emacs-25Paul Eggert2017-01-011-1/+1
|\ | | | | | | | | 2e2a806 Fix copyright years by hand 5badc81 Update copyright year to 2017
| * Update copyright year to 2017Paul Eggert2016-12-311-1/+1
| | | | | | | | Run admin/update-copyright.
* | Add `size-indication-mode' to the menu on `mouse-1' "Top"Lars Ingebrigtsen2016-05-011-0/+4
| | | | | | | | | | * lisp/bindings.el (mode-line-column-line-number-mode-map): Add `size-indication-mode' to the menu (bug#5727).
* | Merge from origin/emacs-25John Wiegley2016-01-111-1/+1
|\| | | | | | | | | | | ef33bc7 Spelling and grammar fixes 9c3dbab Fix copyright years by hand 0e96320 Update copyright year to 2016
| * Update copyright year to 2016Paul Eggert2016-01-011-1/+1
| | | | | | | | Run admin/update-copyright.
* | * lisp/progmodes/which-func.el: Improve disabling the modeStefan Monnier2015-11-301-4/+2
|/ | | | | | | | | | Use lexical-binding. (which-func-modes, which-func-non-auto-modes, which-func-maxout) (which-func, which-func-format): Remove redundant :group arg. (which-func-try-to-enable): New function. (which-func-ff-hook, which-function-mode): Use it. (mode-line-misc-info): Add ourselves here instead of in bindings.el. * lisp/bindings.el (mode-line-misc-info): Remove which-func-mode entry.
* Backslash cleanup in Elisp source filesPaul Eggert2015-09-171-2/+2
| | | | | | | | | | | This patch should not change behavior. It typically omits backslashes where they are redundant (e.g., in the string literal "^\$"). In a few places, insert backslashes where they make regular expressions clearer: e.g., replace "^\*" (equivalent to "^*") with "^\\*", which has the same effect as a regular expression. Also, use ‘\ %’ instead of ‘\%’ when avoiding confusion with SCCS IDs, and similarly use ‘\ $’ instead of ‘\$’ when avoiding confusion with RCS IDs, as that makes it clearer that the backslash is intended.
* * lisp/bindings.el (debug-ignored-errors): Add mark-inactive.Juri Linkov2015-06-121-1/+1
| | | | | * lisp/simple.el (kill-region): Replace 'error' with 'user-error'. (Bug#20785)
* Fix the desired binding for comment-linePaul Eggert2015-02-221-1/+1
| | | | | * bindings.el (ctl-x-map): Use [?\C-\;] to get the desired binding. Fixes: bug#19826
* * bindings.el (ctl-x-map): There is no 'C-;'.Paul Eggert2015-02-211-1/+1
| | | | | | For now, make do with 'M-;'; this allows 'make bootstrap' to work. Perhaps some other binding should be chosen. Fixes: bug#19826
* bindings.el (ctl-x-map): Fix `comment-line' binding.Artur Malabarba2015-02-211-1/+1
|
* newcomment.el (comment-line): New command on C-x C-;.Artur Malabarba2015-02-081-0/+1
|
* Update copyright year to 2015Paul Eggert2015-01-011-1/+1
| | | | Run admin/update-copyright.
* Use <up> and <down> keys to move point in the multi-line minibuffer.Juri Linkov2014-11-181-2/+2
| | | | | | | | | | | * lisp/bindings.el (minibuffer-local-map): Rebind [down] from next-history-element to next-line-or-history-element, and [up] from previous-history-element to previous-line-or-history-element. * lisp/simple.el (next-line-or-history-element) (previous-line-or-history-element): New commands. http://lists.gnu.org/archive/html/emacs-devel/2014-11/msg00822.html
* * lisp/bindings.el (search-map): Move `eww-search-words' to `M-s M-w'.Lars Magne Ingebrigtsen2014-11-171-1/+1
|
* Fix error preloading bindings.el.Eli Zaretskii2014-11-141-9/+9
| | | | | lisp/bindings.el (search-map): Fix last change: don't use 'kbd' in bindings.el, since it is not yet loaded when bindings.el is preloaded.
* Bind `M-s M-s' globally to `eww-search-words'Kenjiro NAKAYAMA2014-11-141-0/+1
| | | | | | | | | | Fixes: debbugs:16258 * etc/NEWS: Mention the new `M-s M-s' keystroke. * lisp/bindings.el (search-map): Bind M-s M-s to `eww-search-words'. * net/eww.el (eww-search-words): New command.
* Small fixes re toggle-read-only, mainly docGlenn Morris2014-07-211-1/+1
| | | | | | | | | | | | | | | | * progmodes/hideif.el (hide-ifdef-mode-submap): Also substitute read-only-mode. * bindings.el (mode-line-toggle-read-only): * bs.el (bs-toggle-readonly): * buff-menu.el (Buffer-menu-toggle-read-only): * dired.el (dired-toggle-read-only): * files.el (view-read-only, find-file-read-only) (find-file-read-only-other-window) (find-file-read-only-other-frame): * progmodes/hideif.el (hide-ifdef-toggle-outside-read-only): Doc fixes re toggle-read-only. * view.el: Comment updates.
* Fix bug #17986 with infloop in redisplay when default-directory is nil.Eli Zaretskii2014-07-131-5/+7
| | | | | | | | | src/xdisp.c (decode_mode_spec): Call file-remote-p on the current buffer's default-directory only if it is a string. lisp/bindings.el (mode-line-remote): If default-directory is not a string, don't call file-remote-p on it; instead state in the help-echo that it is nil.
* * lisp/bindings.el: Put `ascii-character' property on keypad keys mapped to ↵Juri Linkov2014-06-141-4/+8
| | | | | | characters. Fixes: debbugs:17759
* * lisp/electric.el (electric-newline-and-maybe-indent): New command.Stefan Monnier2014-03-201-1/+0
| | | | | | | | | Bind it globally to C-j. (electric-indent-mode): Don't mess with the global map any more. Don't drop the post-self-insert-hook is some buffer is still using it. * lisp/bindings.el (global-map): Remove C-j binding. Fixes: debbugs:16770
* * binding.el: Add comment describing why C-d binds to `delete-char'.Michal Nazarewicz2014-03-031-0/+5
| | | | | | * lisp/simple.el (delete-forward-char): Mark as interactive-only. * src/cmds.c (delete-char): Update docstring pointing out that the function ignores `delete-active-region' and `overwrite-mode'.
* Replace "Maintainer: FSF" with the emacs-devel mailing addressGlenn Morris2014-02-091-1/+1
|
* Update copyright year to 2014 by running admin/update-copyright.Paul Eggert2014-01-011-1/+1
|
* * bindings.el (visual-order-cursor-movement): Fix version.Leo Liu2013-12-131-1/+1
| | | | | | | * indent.el (indent-region): Disable progress reporter in minibuffer. Fixes: debbugs:16108
* * lisp/simple.el <Keypad support>: Remove key bindings duplicated with ↵Juri Linkov2013-12-131-1/+1
| | | | | | bindings.el. Fixes: debbugs:14397
* * lisp/bindings.el: Map kp keys to non-kp keys systematicallyJuri Linkov2013-12-111-35/+29
| | | | | | with basic modifiers control, meta and shift. Fixes: debbugs:14397
* * lisp/bindings.el (ctl-x-map): Bind C-x SPC to rectangle-mark-mode.Stefan Monnier2013-11-111-0/+1
| | | | | | * src/keyboard.c (command_loop_1): Use region-extract-function. * src/insdel.c (Qregion_extract_function): Not static any more (can we stop pretending that these vars can benefit from being marked static?).
* * lisp/bindings.el (ctl-x-r-map): Bind ?f to frameset-to-register.Juanma Barranquero2013-08-081-1/+1
| | | | | | | | | | | * lisp/register.el: Add support for framesets. (frameset-frame-id, frameset-frame-with-id) (frameset-p, frameset-restore, frameset-save): Declare. (register-alist): Document framesets. (frameset-session-filter-alist): Declare. (frameset-to-register): New function. (jump-to-register): Implement jumping to framesets. Doc fix. (describe-register-1): Describe framesets.
* Don't call sit-for in right-char and left-char for visual cursor motion.Eli Zaretskii2013-06-301-4/+2
| | | | | | | | | | | src/xdisp.c (Fmove_point_visually): Invalidate the cursor position when moving point by using the current glyph matrix. This avoids the need to force redisplay when this function is called in a loop. lisp/bindings.el (right-char, left-char): Don't call sit-for, this is no longer needed. Use arithmetic comparison only for numerical arguments.
* Minor fix in right-char and left-char, per Stefan's comments.Eli Zaretskii2013-06-291-6/+2
|
* Implement visual-order cursor motion.Eli Zaretskii2013-06-291-12/+46
| | | | | | | | | | | | | | | src/xdisp.c (Fmove_point_visually): New function. lisp/bindings.el (visual-order-cursor-movement): New defcustom. (right-char, left-char): Provide visual-order cursor motion by calling move-point-visually. Update the doc strings. doc/emacs/basic.texi (Moving Point): Document visual-order-cursor-movement and its effect on right-char and left-char. doc/lispref/display.texi (Bidirectional Display): Document move-point-visually. etc/NEWS: Document the new feature.
* Search and highlight symbol at point.Juri Linkov2013-06-031-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/emacs/display.texi (Highlight Interactively): Add global keybindings with the key prefix `M-s h'. Document old command `highlight-phrase'. Document new command `highlight-symbol-at-point'. * lisp/bindings.el (search-map): Bind `highlight-symbol-at-point' to `M-s h .'. * lisp/hi-lock.el (highlight-symbol-at-point): New alias for the new command `hi-lock-face-symbol-at-point'. (hi-lock-face-symbol-at-point): New command. (hi-lock-map): Bind `highlight-symbol-at-point' to `C-x w .'. (hi-lock-menu): Add `highlight-symbol-at-point'. (hi-lock-mode): Doc fix. * lisp/isearch.el (isearch-forward-symbol-at-point): New command. (search-map): Bind `isearch-forward-symbol-at-point' to `M-s .'. (isearch-highlight-regexp): Add a regexp which matches words/symbols for word/symbol mode. * lisp/subr.el (find-tag-default-bounds): New function with the body mostly moved from `find-tag-default'. (find-tag-default): Move most code to `find-tag-default-bounds', call it and apply `buffer-substring-no-properties' afterwards. Fixes: debbugs:14427
* Add an additional key ? for describe-prefix-bindingsLeo Liu2013-04-181-1/+1
|
* Update copyright notices for 2013.Paul Eggert2013-01-011-2/+2
|
* * lisp/bindings.el (mode-line-toggle-read-only, mode-line-toggle-modified)Stefan Monnier2012-10-091-26/+12
| | | | | | | | (mode-line-widen, mode-line-input-method-map) (mode-line-coding-system-map, mode-line-remote) (mode-line-unbury-buffer, mode-line-bury-buffer) (mode-line-next-buffer, mode-line-previous-buffer): Replace save-selected-window+select-window => with-selected-window.
* * lisp/bindings.el (goto-map): Bind M-g TAB to move-to-column.Chong Yidong2012-09-301-0/+1
|
* Convert toggle-read-only calls to read-only-mode.Chong Yidong2012-09-231-1/+1
| | | | | | | | * bindings.el (mode-line-toggle-read-only): * bs.el (bs-toggle-readonly): * buff-menu.el (Buffer-menu-toggle-read-only): * dired.el (dired-toggle-read-only): * ibuffer.el (ibuffer-do-toggle-read-only): Use read-only-mode.
* Replace version 24.2 with 24.3 where appropriate (hopefully)Glenn Morris2012-08-151-1/+1
|
* * lisp/ibuffer.el (ibuffer-do-toggle-read-only):Stefan Monnier2012-08-121-2/+1
| | | | | | | * lisp/dired.el (dired-toggle-read-only): * lisp/buff-menu.el (Buffer-menu-toggle-read-only): * lisp/bindings.el (mode-line-toggle-read-only): * lisp/bs.el (bs-toggle-readonly): Call toggle-read-only interactively.
* Bind M-= back to count-words-region, and let it accept a prefix arg.Chong Yidong2012-08-111-1/+1
| | | | | | | | * lisp/bindings.el: Bind M-= back to count-words-region. * lisp/simple.el (count-words-region): Accept a prefix arg for acting on the entire buffer. (count-words--buffer-message): New helper function.
* * lisp/bindings.el: Bind M-= to count-words.Chong Yidong2012-07-181-1/+1
|
* * rect.el (copy-rectangle-as-kill): New command.Reuben Thomas2012-07-141-1/+24
| | | | | | | | | * lisp/rect.el, lisp/register.el: Move bindings to bindings.el. * lisp/bindings.el: Consolidate ctl-x-r-map bindings. Bind copy-rectangle-as-kill to C-x r w. Fixes: debbugs:739
* lisp/bindings.el (top): Use `mapc' instead of `mapcar'.Juanma Barranquero2012-07-131-8/+8
|