I have a problem with programs that use libreadline, the thing is I want to bind C-/ to undo, as in XEmacs, so I created the following .inputrc in my home:
# This file controls the behaviour of line input editing for # programs that use the GNU Readline library. Existing # programs include FTP, Bash, and GDB. # # You can re-read the inputrc file with C-x C-r. # Lines beginning with '#' are comments. # # First, include any systemwide bindings and variable # assignments from /etc/inputrc # $include /etc/inputrc # # Set various bindings for emacs mode. set editing-mode emacs $if mode=emacs Control-w: dump-functions Control-/: undo #"\C-/": undo $endif I want to use this binding on pgsql and zsh, well I think zsh doesn't really use libreadline, and with pgsql when I type C-w (see above) I get the following: undo can be found on "\C-o", "\C-x\C-u", "\C-_". ^^^^^^ The C-o binding didn't appear before creating my .inputrc, so it appears to have been introduced by the "Control-/: undo" entry in ~/.inputrc. What is going on here?! Also, in bash the corresponding line is: undo can be found on "\C-x\C-u", "\C-_". so here, the binding is not seen at all. Any help with this puzzling affair will be greatly appreciated. TIA Jorge Santos P.S. /etc/inputrc follows: # /etc/inputrc - global inputrc for libreadline # See readline(3readline) and `info rluserman' for more information. # Be 8 bit clean. set input-meta on set output-meta on # To allow the use of 8bit-characters like the german umlauts, comment out # the line below. However this makes the meta key not work as a meta key, # which is annoying to those which don't need to type in 8-bit characters. # set convert-meta off -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]