[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-readline] Re: Using SIGINT/rl_free_line_state () in .inputrc?
From: |
Tim Landscheidt |
Subject: |
[Bug-readline] Re: Using SIGINT/rl_free_line_state () in .inputrc? |
Date: |
Sun, 28 Mar 2010 22:01:47 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
Chet Ramey <address@hidden> wrote:
>> (The "\\r\n" tells psql to clear its query buffer.) Unfortu-
>> nately, this doesn't work if readline is in "quote mode",
>> e. g. the preceding line contains an opening "'" or '"'. I
>> noticed though that pressing C-c does what I want: It can-
>> cels all active thingies and gives me a clean prompt.
>> Unfortunately, I can't use "\C-c" to invoke it as the key
>> probably gets passed as SIGINT to readline. Is there another
>> way to "call" rl_free_line_state () from a binding defini-
>> tion?
> Why not bind a key sequence to "abort" and use it in the macro?
a) I tried:
| "\C-xa": abort
| "\e[24~": "\C-xa\fSELECT * FROM DashboardQuery;\n"
and
| "\e[24~": "\C-g\fSELECT * FROM DashboardQuery;\n"
but neither did /anything/. If I prepended the \C-g with
other text, that got inserted, but the processing stopped
at the \C-g.
b) Pressing C-g interactively does not what C-c does for me.
In fact, it merely cancels C-r & Co., but does not delete
the query buffer, cancel "quote mode", etc.
Tim