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

Alexander Berntsen alexander at plaimi.net
Thu Jun 30 21:57:43 CEST 2016


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

On 30/06/16 16:36, Dmitry Alexandrov wrote:
> Do you have ‘<backspace>’ that is bound somewhere else than ‘DEL’? 
> (See ‘<f1> k <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.
> 
> Is there is any reason why you believe that this should work?  I
> did not suggest you to do anything like this.
I confused what kbd "DEL" did with what the DEL key does. Using kbd
"DEL" achieves the same as kbd "<backspace", as far as I can tell.

>> '/ab^J' will bring up search, and add 'ab' followed by literally 
>> the characters '^' and 'J'.
> 
> No, it’s followed by literally the character ‘^J’ (this is one 
> character — ‘linefeed’ aka ‘\n’ is C notation).
Sorry, I meant visually. It is indeed literally the character '^J'.


In the end though, your suggestion unfortunately doesn't solve anything.
- -- 
Alexander
alexander at plaimi.net
https://secure.plaimi.net/~alexander
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCgAGBQJXdXm2AAoJENQqWdRUGk8BNxgQAPGGWFtBWYfW3ectg39XBwJ6
vU/95KQ5SPIvDQvVdMq64d4j/K4jV/I/d4nRl5gt4V4ZuxF5gOfZIC5bNkTVqJAU
cLI9V0VKUAZogfIPoUVEk/t4XPypFoyS8Yy/FyKCAv3dqL+qqgnJx/VNBaArjGqg
TDsVuddpj/pSkDHunIfjzd+Bc8EtjCu8vFmOLBHti7utO/5/jtLz+UQdLDA13N+M
WUmwjVOvyeNJzVQYn9G68MFeRW/4vkdUaZoAKcMeuW2WE90RYJ5BFvOQrHafEGNt
7z9fOrv8rRr19ddxOrPxOoh+qSD4z3rbEov3ZPMovLKAJ5wNF3ARMCWgnY7QKh51
quSy88FafLxUDcXVgCIReS8t53cLtKXmNo3yBF1mvwX8Oo3l6/x37RZD7gncdI22
uisB8MrKjBW+0nPs0wbMuKKrlqnMyrUASpSNCItzuM3cM4zvJfsgpwztCs26IRVo
34M3NGSN2ZCTgySyJQ7gOpZBq4owcV09KN7Sv77J1T8fwcWBc0Rnmbf1dVK+gidP
UQpHx8+5MM8dJrd2xRO/xyvwjdDKAlFTg/88LWgFPZQfCr5xxgPpOPBKc/QMOA1g
t2sKDPT8F9q2S6dozYcuxaxMoFqbnts47SJQVVjemPaGpfRhPoOREWHTXX87q9lv
wuVHbrqzN7l4lPPCeLsf
=hC6x
-----END PGP SIGNATURE-----



More information about the implementations-list mailing list