emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Insert character pairs


From: Juri Linkov
Subject: Re: Insert character pairs
Date: Sun, 02 May 2004 19:03:01 +0300
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux)

Stefan Monnier <address@hidden> writes:
> [ Let's make my suggestion more concrete, then. ]
>
>> +(defun insert-parentheses (arg)
>> +(defun insert-double-quotes (arg)
>> +(defun insert-backquotes (arg)
>> +(defun insert-backquote-and-quote (arg)
>> +(defun insert-apostrophes (arg)
>> +(defun insert-square-brackets (arg)
>> +(defun insert-curly-brackets (arg)
>> +(defun insert-angle-brackets (arg)
>
> Using last-command-char or some such would allow you to define just one
> command that does all those things.

This looks like `skeleton-pair-insert-maybe', but perhaps to converge
the functionality of `skeleton-pair-insert-maybe' and `insert-pair'
is not a bad thing.  However, they still have some fundamental
differences like different text units (words vs. expressions)
specified by their arguments.

-- 
Juri Linkov
http://www.jurta.org/emacs/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]