From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Mark Mynsted Newsgroups: gmane.emacs.help Subject: Re: Slickedit features in Emacs? Date: 22 May 2003 14:42:14 -0500 Organization: Uncle John's Band Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <87e77d96.0305211059.3e15858a@posting.google.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1053632836 28703 80.91.224.249 (22 May 2003 19:47:16 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 22 May 2003 19:47:16 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Thu May 22 21:47:14 2003 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 19Iw1S-0007PH-00 for ; Thu, 22 May 2003 21:46:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19Iw0N-0004jc-AN for gnu-help-gnu-emacs@m.gmane.org; Thu, 22 May 2003 15:45:35 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!lnewspeer00.lnd.ops.eu.uu.net!emea.uu.net!news2.euro.net!newsfeed.stueberl.de!fu-berlin.de!uni-berlin.de!204.68.152.1!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 27 Original-NNTP-Posting-Host: 204.68.152.1 Original-X-Trace: fu-berlin.de 1053632536 485010 204.68.152.1 (16 [148877]) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-Xref: shelby.stanford.edu gnu.emacs.help:113564 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:10060 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:10060 >>>>> "Peter" == Peter Lee writes: Peter> I added the above code and typing ifx in a c++ file didn't do Peter> anything. Abbrev-mode was on... so I'm not sure. Any ideas ? I've Peter> never used skeletons in emacs before. Two ideas: 1. The abbrev code was (define-abbrev c-mode-abbrev-table "ifx" "" 'my-skeleton-c-if) That abbrev is specific for c-mode. Type M-h v mode-name If the result is not "C" then I do not think you are in the correct mode. 2. You have to type a non-word character following the abbrev to get the abbrev to expand. (Or use one of the interactive functions.) So ifx then space would expand the abbrev. But just ifx would not... You could see if the skeleton is working by simply typing: M-x my-skeleton-c-if -- -MM I rarely read email from this address /"\ because of spam. \ / ASCII Ribbon Campaign I MAY see it if you put #NOTSPAM# X Against HTML Mail in the subject line. / \