Article View: gnu.emacs.help
Article #188832Re: common lisp abbrevs
From: kpc
Date: Sat, 15 Jun 1991 08:57
Date: Sat, 15 Jun 1991 08:57
30 lines
1983 bytes
1983 bytes
chari's suggestion about ilisp is very helpful. my query about abbrevs goes slightly further in that it would require a file for emacs' abbrev feature to insert function prototypes into a buffer when you do an expand-abbrev. does ilisp, or any other package, do this? it had seemed to me that since there are fairly standard indentations for many popular languages (elisp, cl, and c, for example), there is no need for each person to create his own abbrev expansions. i thought, we can let the magic of the public domain solve the problem of this duplication of effort. good candidate languages for pd (or gnuware) abbrev files are cl/clos, elisp, zsh, awk, perl, c, and c++. here is an example abbrev using elisp as the target language. the text object "if" would expand to the following in your elisp mode buffer when a key bound to expand-abbrev is pressed. (if %test then-part else-part) the "%" is there to tell a wrapper function to relocate point to its location so that you can delete the argument "test" and insert your own. i can't believe there are no cl hackers out there who have made such a file! -- Tweety is a bird. Socrates is a man. John loves Mary. Mary is tall.
Technical Details
Message-ID:
<KPC.91Jun15015703@kronos-fi.arc.nasa.gov>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!stanford.edu!ptolemy-ri!pluto.arc.nasa.gov!kpcReferences:
<KPC.91Jun11234106@shepard.arc.nasa.gov> <CHARI.91Jun13182334@sonia.ma.utexas.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103b8b,23dc0575beffa176 X-Google-Attributes: gid103b8b,public X-Google-ArrivalTime: 1991-06-15 08:32:46 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!stanford.edu!ptolemy-ri!pluto.arc.nasa.gov!kpc From: kpc@pluto.arc.nasa.gov (kpc) Newsgroups: gnu.emacs.help Subject: Re: common lisp abbrevs Message-ID: <KPC.91Jun15015703@kronos-fi.arc.nasa.gov> Date: 15 Jun 91 08:57:03 GMT References: <KPC.91Jun11234106@shepard.arc.nasa.gov> <CHARI.91Jun13182334@sonia.ma.utexas.edu> Sender: usenet@ptolemy-ri.arc.nasa.gov Organization: Sterling at NASA Ames Research Center Artificial Intelligence applications Lines: 30 In-reply-to: chari@sonia.ma.utexas.edu's message of 14 Jun 91 00:23:34 GMT