]> git.eshelyaron.com Git - emacs.git/commit
tildify: add `tildify-double-space-undos'
authorMichal Nazarewicz <mina86@mina86.com>
Sat, 22 Nov 2014 22:28:43 +0000 (23:28 +0100)
committerMichal Nazarewicz <mina86@mina86.com>
Tue, 20 Jan 2015 12:55:02 +0000 (13:55 +0100)
commitd9af6e01b87c0f73749936c9db6711d38f1d1274
treec65f1616bc526728c99932bf0500b8f041bb392e
parent571441fc790fadfdc48a6287328828495719e990
tildify: add `tildify-double-space-undos'

* lisp/textmodes/tildify.el (tildify-double-space-undos): A new
variable specifying whether pressing space in `tildify-mode' after
a space has been replaced with hard space undos the substitution.
(tildify-space): Add code branch for handling `tildify-doule-space'.

* tests/automated/tildify-tests.el (tildify-space-undo-test--test):
A new helper function for testing `tildify-double-space-undos'
behaviour in the `tildify-space' function.
(tildify-space-undo-test-html, tildify-space-undo-test-html-nbsp)
(tildify-space-undo-test-xml, tildify-space-undo-test-tex): New
tests for `tildify-doule-space-undos' behaviour.
lisp/ChangeLog
lisp/textmodes/tildify.el
test/ChangeLog
test/automated/tildify-tests.el