Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #15596

Re: blink-matching-paren breaks closing parenthesis binding

From Chet Ramey <chet.ramey@case.edu>
Newsgroups gnu.bash.bug
Subject Re: blink-matching-paren breaks closing parenthesis binding
Date 2019-11-12 15:59 -0500
Organization ITS, Case Western Reserve University
Message-ID <mailman.1305.1573592314.13325.bug-bash@gnu.org> (permalink)
References <1573517845300.26243@kth.se> <0e988fea-4a1a-b102-26f9-70bb272f34a2@case.edu>

Show all headers | View raw


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/

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

Re: blink-matching-paren breaks closing parenthesis binding Chet Ramey <chet.ramey@case.edu> - 2019-11-12 15:59 -0500

csiph-web