From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Peter Lee Newsgroups: gmane.emacs.help Subject: Re: Slickedit features in Emacs? Date: Thu, 22 May 2003 20:04:39 GMT Organization: Prodigy Internet http://www.prodigy.com Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <87e77d96.0305211059.3e15858a@posting.google.com> <87e77d96.0305212307.60c099ef@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 1053633967 3707 80.91.224.249 (22 May 2003 20:06:07 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 22 May 2003 20:06:07 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Thu May 22 22:06:05 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 19IwKD-0000xX-00 for ; Thu, 22 May 2003 22:06:05 +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 19IwJS-0007k9-Q6 for gnu-help-gnu-emacs@m.gmane.org; Thu, 22 May 2003 16:05:18 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!logbridge.uoregon.edu!news.maxwell.syr.edu!c03.atl99!rip!news.webusenet.com!prodigy.com!newsmst01.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr28.news.prodigy.com.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (windows-nt) Cancel-Lock: sha1:TabDNsv6wLGqmo4yu2jFG+atG/Q= Original-Lines: 24 Original-NNTP-Posting-Host: 216.62.199.3 Original-X-Complaints-To: abuse@prodigy.net Original-X-Trace: newssvr28.news.prodigy.com 1053633879 ST000 216.62.199.3 (Thu, 22 May 2003 15:04:39 CDT) Original-NNTP-Posting-Date: Thu, 22 May 2003 15:04:39 CDT X-UserInfo1: Q[R_PJSCO@RYB\\YQCHN_TTDFRYB@GXLN@GZ_GYO^BSZUSAANVUEAE[YETZPIWWI[FCIZA^NBFXZ_D[BFNTCNVPDTNTKHWXKB@X^B_OCJLPZ@ET_O[G\XSG@E\G[ZKVLBL^CJINM@I_KVIOR\T_M_AW_M[_BWU_HFA_]@A_A^SGFAUDE_DFTMQPFWVW[QPJN Original-Xref: shelby.stanford.edu gnu.emacs.help:113565 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:10061 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:10061 >>>>> "Mark" == Mark Mynsted writes: >>>>> "Peter" == Peter Lee writes: Peter> I added the above code and typing ifx in a c++ file didn't Peter> do anything. Abbrev-mode was on... so I'm not sure. Any Peter> ideas ? I've never used skeletons in emacs before. Mark> Two ideas: Mark> 1. The abbrev code was (define-abbrev c-mode-abbrev-table Mark> "ifx" "" 'my-skeleton-c-if) Mark> That abbrev is specific for c-mode. Type M-h v mode-name If Mark> the result is not "C" then I do not think you are in the Mark> correct mode. Thanks for the reply Mark. I changed the define to be: (define-abbrev c++-mode-abbrev-table "ifx" "" 'my-skeleton-c-if) It now works. Do you know of a way to map these to multiple modes? I know there is a c-mode-common-hook that works for both c and c++, I was wondering if there's something similar for c-mode-abbrev-table (something like a c-mode-common-abbrev-table).