|
From: | Harry Putnam |
Subject: | Re: paren-close-dwim: elisp function of a newbie; feedback welcome |
Date: | Thu, 26 Sep 2013 15:54:50 -0400 |
User-agent: | Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.0.92 (gnu/linux) |
Davis Herring <address@hidden> writes: > (defun paren-close-dwim () > "Insert closing parenthesis from syntax table. > Use a normal parenthesis if not inside any." > (interactive "*") > (insert (or (ignore-errors > (save-excursion (backward-up-list) > (cdr (syntax-after (point))))) > ?\)))) I'm a total illiterate in elisp but the narrative so far sounds like a this code might do something really useful. Can someone describe briefly how this would work, maybe with a small example, when repairing my own perl code?
[Prev in Thread] | Current Thread | [Next in Thread] |