From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: tennis_smith@yahoo.com (Tennis Smith) Newsgroups: gmane.emacs.help Subject: Skeleton & Abbrev Date: 26 Dec 2002 17:31:59 -0800 Organization: http://groups.google.com/ Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <7f477f72.0212261731.364e59fd@posting.google.com> NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1040952990 1200 80.91.224.249 (27 Dec 2002 01:36:30 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 27 Dec 2002 01:36:30 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18RjQK-0000JE-00 for ; Fri, 27 Dec 2002 02:36:29 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18RjPc-0005rL-06 for gnu-help-gnu-emacs@m.gmane.org; Thu, 26 Dec 2002 20:35:44 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 34 Original-NNTP-Posting-Host: 128.107.253.40 Original-X-Trace: posting.google.com 1040952719 11491 127.0.0.1 (27 Dec 2002 01:31:59 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: 27 Dec 2002 01:31:59 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:108500 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:5029 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:5029 Hi, I'm trying to build some skeletons for tcl and auto-expand them with abbrev just like the description here: http://www.emacswiki.org/cgi-bin/wiki.pl?SkeletonMode My definition looks like this: (define-abbrev tcl-mode-abbrev-table "_if" "" 'tcl-if) (define-skeleton tcl-if "A simple tcl if skeleton" nil \n "if { " _ " } {" \n \n "} else {" \n \n "}" ) (setq skeleton-end-hook nil) So, when I type in _if in a tcl buffer, it should auto-expand to a new "if" statement stub. But, it doesn't do anything. I've turned on abbrev mode and skeleton, but it doesn't make any difference. Anyone have any idea why? TIA, -Tennis