Making ^J and ^H work in / (search)

Alexander Berntsen alexander at plaimi.net
Thu Jun 30 14:33:14 CEST 2016


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On 28/06/16 16:01, Dmitry Alexandrov wrote:
> I guess, you actually want to make ‘C-h’ equal to ‘DEL’
I don't want DEL, I want backspace. So I changed it to (global-set-key
(kbd "C-h") (kbd "<backspace>")) instead of delete-backwards-char. But
it still doesn't work when searching.

'/ab^J' will bring up search, and add 'ab' followed by literally the
characters '^' and 'J'. '/ab^H' will bring up search, add 'ab' to the
query, and then close it.

The problem in helm is different. If I bring up helm using helm-M-x,
using ^J or ^H will not work for different reasons. ^J because it is
bound to something else, and ^H because it's not bound to anything
(i.e. ^H^H will print "C-h C-h is undefined").

- -- 
Alexander
alexander at plaimi.net
https://secure.plaimi.net/~alexander
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCgAGBQJXdRGKAAoJENQqWdRUGk8B2iQQAPLlrJ2qr0yGXcCFhwfQgjD5
mkj9Pp0sf4k6Apf5hHdZsTvVI2Dkk7kEHjPUfR8rRK4THpFIxf0hd6MQyyZhfVj4
LAeHRwwdRims8jBS/54JAJHG3ANnfcfH4V7qy8zNYTIDz3/cNXZYI0Y8xG2gjkX+
scqSkNFhsU5Vxjmh26t0HwuynTu+P4uQ83EOLgAEiQxtFz3vQ5nwLF+uZMDw0WLv
KFsSpGV5u1GZaRR4egKiXRZjR7ABpO3XCMbfnuJdWFYzo95h2ic1jUukdID8poGw
WEakM0N8GKUpERcnSkY+xsXQ7y/kgGETK7ufpXd35KUwQWpd5UoyffdtfHxjGh3I
S5FmYoi2amaWGWj1quvDEubyAl+Mkafdo6pM2Os6B0A7cz4N0u+0qEO2ANislLJK
paBnyS9ExbOMUxR3VcyHcz0pOimi5bDBN2WAQ904yGc0p+BODd4iOzFc4+RVy9Qq
Ra8GIboZ8pBNIhPu94MoZfLjuu5G4Qky72CjBjI0z2yyFBspGOiAS2MdYPqFpka9
AtCyixFlx84SZTe4c0MEfNU0qNuU8nWtZO/hJqxyGYxcz67u2PbwTFQvJctf8qqI
zF8Oy79PxWRAJwO/jkeXNLeWHLMZPJFtc5W192xRpP978I9HXGW4HWdEnhxslDi/
skS3IR6o8YpS0DTkfMmT
=NLbj
-----END PGP SIGNATURE-----



More information about the implementations-list mailing list