From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Harry Putnam Newsgroups: gmane.emacs.help Subject: abbrevs and cursor control Date: Thu, 13 Feb 2003 19:01:20 GMT Organization: Still searching... Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1045163228 14699 80.91.224.249 (13 Feb 2003 19:07:08 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 13 Feb 2003 19:07:08 +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 18jOhK-0003oZ-00 for ; Thu, 13 Feb 2003 20:07:02 +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 18jOgD-0008F2-02 for gnu-help-gnu-emacs@m.gmane.org; Thu, 13 Feb 2003 14:05:53 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed-east.nntpserver.com!nntpserver.com!chi1.webusenet.com!rip!news.webusenet.com!prodigy.com!newsmst01.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr16.news.prodigy.com.POSTED!cbca52ab!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu) Cancel-Lock: sha1:xE8DEvtu4ELNGusSGDrW20GFjuQ= Original-Lines: 30 Original-NNTP-Posting-Host: 63.202.235.21 Original-X-Complaints-To: abuse@prodigy.net Original-X-Trace: newssvr16.news.prodigy.com 1045162880 ST000 63.202.235.21 (Thu, 13 Feb 2003 14:01:20 EST) Original-NNTP-Posting-Date: Thu, 13 Feb 2003 14:01:20 EST X-UserInfo1: SCSYQN_@O@T]B^H]]RKB_UDAZZ\DPCPDLXUNNHLIWIWTEPIB_NVUAH_[BL[\IRKIANGGJBFNJF_DOLSCENSY^U@FRFUEXR@KFXYDBPWBCDQJA@X_DCBHXR[C@\EOKCJLED_SZ@RMWYXYWE_P@\\GOIW^@SYFFSWHFIXMADO@^[ADPRPETLBJ]RDGENSKQQZN Original-Xref: shelby.stanford.edu gnu.emacs.help:110143 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:6646 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:6646 Is there any way to control things like where the cursor lands during and inserted abbrev? Something like can be done with skeletons (define-skeleton hp-mkeywords "Insert nifty keywords string into mail/news messages and closing characters to make it searchable in a blob" nil "Keywords: "_"\n" (format-time-string "X-Key-Date: %b %d %Y %w\n") "X-&&: ") I'd like to do something like that with the symplicity of an abbrev rather than calling command or hitting command keys. I'm thinking of stuff like one might want when writing perl or other scripts. An example might be some standard stuff needed for a perl style getopts section with the cursor located as shown: ## ========== BEGIN Getopts section ========== ## Declare vars inside qw() use vars qw(); use Getopt::Std; my $optstr =""; getopts($optstr); Easy enough if you don't care where the curor goes.. Just wondered if that can be controlled in an abbrev.