Allow zap-to-char to use a history

* doc/emacs/killing.texi (Other Kill Commands): Document it.

* lisp/simple.el (read-char-with-history): New function (bug#10477).
(zap-to-char): Use it to have a history.
1 job for master in 14 minutes and 39 seconds (queued for 2 seconds)
Status Job ID Name Coverage
failed #3791


Name Stage Failure
test-all Test
Makefile:319: recipe for target 'compile-main' failed
make[2]: *** [compile-main] Error 2
make[2]: Leaving directory '/builds/emacs/emacs/lisp'
make[1]: *** [lisp] Error 2
Makefile:411: recipe for target 'lisp' failed
make[1]: Leaving directory '/builds/emacs/emacs'
make: *** [bootstrap] Error 2
Makefile:1117: recipe for target 'bootstrap' failed
ERROR: Job failed: exit code 1