[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: abbrevs and cursor control
From: |
Kai Großjohann |
Subject: |
Re: abbrevs and cursor control |
Date: |
Fri, 14 Feb 2003 13:49:18 +0100 |
User-agent: |
Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.3.50 |
Harry Putnam <hgp@sbcglobal.net> writes:
> After poring over C-h f define-abbrev I got sort of close I guess, but
> this:
>
> (define-abbrev TABLE NAME EXPANSION &optional HOOK COUNT SYSTEM-FLAG)
>
> Though its the kind of thing lisp programmers consider the epitome of
> lucid. Its not very helpfull to laypeople. No indication of where
> parens might go or other really usefull stuff.
>
> I tried this:
>
> (define-abbrev cperl-mode-abbrev-table "hpb" "" hp-pbase 0 )
(define-abbrev cperl-mode-abbrev-table "hpb" "" 'hp-pbase)
Does this work?
> This piece from C-h f:
> If EXPANSION is not a string, the abbrev is a special one,
> which does not expand in the usual way but only runs HOOK.
>
> Kind of sounds like EXPANSION shouldn't be a string at all. Not even
> the empty one "".
Yes, try nil instead of "". You already know more about
define-abbrev than I do :-)
--
A turnip curses Elvis