[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: blink-matching-paren breaks closing parenthesis binding
From: |
Chet Ramey |
Subject: |
Re: blink-matching-paren breaks closing parenthesis binding |
Date: |
Tue, 12 Nov 2019 15:59:46 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.9.1 |
On 11/11/19 7:17 PM, Nikolaos Kakouros wrote:
> In my .bashrc, I have:
>
>
> ```
> bind -x '")": bash_function'
> bind 'set blink-matching-paren'
> ```
>
> If I type `)` in bash, nothing happens. Blinking works. If I reverse the
> order of the commands, then blinking stops working and the binding works.
>
> I think I understand the reason behind this; `blink-matching-paren` uses `)`
> to run the blinking function, sth like a hidden default binding.
Yes, setting blink-matching-paren adds several key bindings to the
appropriate keymaps, and unsetting it removes them. That function is
not available by name and is not available for users to bind separately.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/