]> git.eshelyaron.com Git - emacs.git/commit
Improve cycle-spacing and bind it to M-SPC by default
authorTassilo Horn <tsdh@gnu.org>
Thu, 12 May 2022 21:24:47 +0000 (23:24 +0200)
committerTassilo Horn <tsdh@gnu.org>
Mon, 16 May 2022 06:33:15 +0000 (08:33 +0200)
commit42e4d6b8ce238507193a563730d25e1d96e2ad3d
tree12ad551750e47ce5bf5c19fcbdd94c361f1387b4
parent1fc1d8b88994303ac7c1aac673cb3fead5ff4d9e
Improve cycle-spacing and bind it to M-SPC by default

* 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.
doc/emacs/killing.texi
etc/NEWS
lisp/bindings.el
lisp/simple.el