From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.help Subject: Re: jump to place holder and mapping Date: Thu, 31 Mar 2005 10:00:01 -0700 Message-ID: <3b2oktF6fo888U1@individual.net> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1112288710 12562 80.91.229.2 (31 Mar 2005 17:05:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 31 Mar 2005 17:05:10 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 31 19:05:06 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DH34R-0007Yq-Iy for geh-help-gnu-emacs@m.gmane.org; Thu, 31 Mar 2005 19:03:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DH3LA-0006sI-Tj for geh-help-gnu-emacs@m.gmane.org; Thu, 31 Mar 2005 12:20:20 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsmi-us.news.garr.it!newsmi-eu.news.garr.it!NewsITBone-GARR!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 37 Original-X-Trace: individual.net TPNyzM4h8usKzVpNNte5jQUbQ8uc30mCtNeENVBkqPkFtHojY= User-Agent: Mozilla Thunderbird 0.9 (X11/20041105) X-Accept-Language: en-us, en In-Reply-To: Original-Xref: shelby.stanford.edu gnu.emacs.help:129764 Original-To: help-gnu-emacs@gnu.org 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:25319 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:25319 Fabian Braennstroem wrote: > On 2005-03-30, Fabian Braennstroem wrote: >> I am trying 'vim' for a while now and actually like the >> jumping to place holders indicated by '<++>' with 'C-j'. It >> is very usefull, when you have small macro/abbreviations >> including these place holders; e.g. in latex there exist a >> macro: >> >> \frac{<++>}{<++>}<++> >> >> So you are able to complete quickly the fraction. >> >> Furthermore, defining those 'macros' is pretty easy in vim >> with the 'imap' funtion; so writing in insert-mode some >> special shortcut, it expands to the wanted output with those >> place holders. > > I just found 'tempo'. I think that should work for this, but > I can't find anything like placeholders... Isn't that exactly what is meant by the "points of interest"? ;; A template is defined as a list of items to be inserted in the ;; current buffer at point. Some of the items can be simple strings, ;; while other can control formatting or define special points of ;; interest in the inserted text. ;; If a template defines a "point of interest" that point is inserted ;; in a buffer-local list of "points of interest" that the user can ;; jump between with the commands `tempo-backward-mark' and ;; `tempo-forward-mark'. If the template definer provides a prompt for ;; the point, and the variable `tempo-interactive' is non-nil, the ;; user will be prompted for a string to be inserted in the buffer, ;; using the minibuffer. -- Kevin Rodgers