help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: abbrevs, skeletons, and comments


From: Johan Bockgård
Subject: Re: abbrevs, skeletons, and comments
Date: Thu, 14 Jun 2007 20:30:56 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.1.50 (gnu/linux)

Stefan Monnier <monnier@iro.umontreal.ca> writes:

> you can define it as
>
>     (define-abbrev sml-mode-abbrev-table ,name ""
>                    (lambda () (unless (nth 8 (syntax-ppss))
>                                 (call-interactively ',fsym)))
>                    nil 'system)
>
> Hmm... ah no, then it just erases the abbrev's name, so you have to
> adjust the function so it re-inserts the text.

    The argument EXPANSION is normally the desired expansion [...]. If
    it is anything but a string or `nil', then the abbreviation
    "expands" solely by running HOOK.

-- 
Johan Bockgård


reply via email to

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