From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: nobrowser@gmail.com Newsgroups: gmane.emacs.help Subject: Re: abbrevs, skeletons, and comments Date: Sun, 03 Jun 2007 06:31:32 -0700 Organization: http://groups.google.com Message-ID: <1180877492.662318.155910@w5g2000hsg.googlegroups.com> References: <1180794889.290796.147660@m36g2000hse.googlegroups.com> <87odjxvhyn.fsf@lion.rapttech.com.au> <1180845849.865552.185180@h2g2000hsg.googlegroups.com> <87odjxmip7.fsf@lion.rapttech.com.au> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: sea.gmane.org 1180878036 2052 80.91.229.12 (3 Jun 2007 13:40:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 3 Jun 2007 13:40:36 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jun 03 15:40:35 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HuqJu-0006GW-HJ for geh-help-gnu-emacs@m.gmane.org; Sun, 03 Jun 2007 15:40:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HuqJt-0002z3-V7 for geh-help-gnu-emacs@m.gmane.org; Sun, 03 Jun 2007 09:40:33 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!w5g2000hsg.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 11 Original-NNTP-Posting-Host: 74.97.128.161 Original-X-Trace: posting.google.com 1180877492 24267 127.0.0.1 (3 Jun 2007 13:31:32 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sun, 3 Jun 2007 13:31:32 +0000 (UTC) In-Reply-To: <87odjxmip7.fsf@lion.rapttech.com.au> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3) Gecko/20070310 Iceweasel/2.0.0.3 (Debian-2.0.0.3-1),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: w5g2000hsg.googlegroups.com; posting-host=74.97.128.161; posting-account=YFHMlw0AAAAi2Uh6TQSJVnQoj9NpSiGG Original-Xref: shelby.stanford.edu gnu.emacs.help:149050 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:44638 Archived-At: Tim X wrote: > How about changing perspective. Why not make a hook function that looks at the > text that may be expanded/replaced and if it is text that should be expanded, > make the appropriate entry into the abbrev table and if its not already there. > If it is there, but he text sould not be expanded, then remove it. Yes, this would work, though ATM it clashes with my stylized code to establish the bindings. If I find a nice way to refactor that code I'll use this suggestion.