aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
authorStefan Monnier2025-04-30 12:22:25 -0400
committerStefan Monnier2025-04-30 12:22:25 -0400
commit44069711e87c3a56f36a917ee46d673f77e0c733 (patch)
treee9e460189d5141b0f812c3cd634ec0fc8c7133b2 /src/coding.c
parent30b9694f2af20ccb25b4994a71b805f597448630 (diff)
downloademacs-44069711e87c3a56f36a917ee46d673f77e0c733.tar.gz
emacs-44069711e87c3a56f36a917ee46d673f77e0c733.zip
(register-read-with-preview-fancy): Fix handling of control chars
The code assumed that the string returned by `register-preview-function` has the register name as the first char. This was an incompatible change which broke packages that set this var, such as `calculator.el` and others. Remove this assumption by recording the register names in the preview buffer on a new `register--name` text property. While at it, fix a few other problems where control chars were not pretty printed. * lisp/register.el (register-preview-1): Remember the raw register name in the `register--name` text property. (register-preview-forward-line): Use the `register--name` text property. (register--find-preview): New function. (register-read-with-preview-fancy): Use it. If the last command inserted more than one char, only keep the first of the new chars. Make sure control chars are pretty printed in the minibuffer. including minibuffer messages.
Diffstat (limited to 'src/coding.c')
0 files changed, 0 insertions, 0 deletions