New answers tagged


Here is a function which returns surrounding parenthesis, including the case when the point is directly on the first or last parenthesis (which was important in my case). This works with the language, so ({[]}) all work in C for example. (defun find-surrounding-brackets (pos) "Return a pair of buffer positions for the opening & closing bracket ...

Top 50 recent answers are included