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


Groups > gnu.bash.bug > #15594

blink-matching-paren breaks closing parenthesis binding

From Nikolaos Kakouros <nkak@kth.se>
Newsgroups gnu.bash.bug
Subject blink-matching-paren breaks closing parenthesis binding
Date 2019-11-12 00:17 +0000
Message-ID <mailman.1272.1573519355.13325.bug-bash@gnu.org> (permalink)
References <1573517845300.26243@kth.se>

Show all headers | View raw


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. 

I thought I should mention this as it is not documented anywhere and I don't know if it could be considered a bug or a documentation issue.

Could the matching paren functionality be triggered manually from within the `bash_function` function? That could also be mentioned in the docs.

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


Thread

blink-matching-paren breaks closing parenthesis binding Nikolaos Kakouros <nkak@kth.se> - 2019-11-12 00:17 +0000

csiph-web