From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nikola Skoric Newsgroups: gmane.emacs.help Subject: Re: binding a command and a parameter Date: Sun, 14 Oct 2007 19:18:45 +0000 (UTC) Organization: FER Message-ID: References: NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1192390851 12428 80.91.229.12 (14 Oct 2007 19:40:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 14 Oct 2007 19:40:51 +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 Oct 14 21:40:41 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 1Ih9KH-0006cr-R3 for geh-help-gnu-emacs@m.gmane.org; Sun, 14 Oct 2007 21:40:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ih9KB-0005ug-3w for geh-help-gnu-emacs@m.gmane.org; Sun, 14 Oct 2007 15:40:31 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!t-online.de!newsfeed.t-com.hr!news3.t-com.hr!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 35 Original-NNTP-Posting-Host: 89-172-47-132.adsl.net.t-com.hr Original-X-Trace: ss408.t-com.hr 1192389525 16210 89.172.47.132 (14 Oct 2007 19:18:45 GMT) Original-X-Complaints-To: abuse@t-com.hr Original-NNTP-Posting-Date: Sun, 14 Oct 2007 19:18:45 +0000 (UTC) User-Agent: slrn/0.9.8.1pl1 (Debian) Original-Xref: shelby.stanford.edu gnu.emacs.help:152910 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:48414 Archived-At: Dana 14 Oct 2007 17:57:08 GMT, Joost Kremers kaze: > Nikola Skoric wrote: >> Dana Sun, 14 Oct 2007 17:26:33 +0000 (UTC), >> Nikola Skoric kaze: >>> Dana Sun, 14 Oct 2007 16:57:02 +0000 (UTC), >>> Maarten Bergvelt kaze: >>>> You should not need to type Latex, just hit return. >>> >>> That works if the last command I used was latex. But, sometimes I also use >>> bibtex... And, I'd really like to bind that whole combination to something. >> >> Hm, no, if I don't hit return, it invokes xdvi. So, I do have to type latex. > > AUCTeX provides a default based on the current state of the document > compilation. the default is latex if the .tex file is newer than the dvi > file (or pdf, if you're using pdflatex), but if the dvi file is up-to-date, > the default is xdvi (or whatever viewer you've defined, or AUCTeX finds > suitable). Of course dvi file is up-to-date since I'm editing .tex file which is then \included to .tex file I'm compiling (main fail doesn't change). So, my default option is always view :-) > however, the prompt sports TAB-completion, so all you really need to type > to get latex is just `l', then hit RETURN. Arrow up works fine to, but I'd really like to learn how to bind this kind of commands. :-D -- "Now the storm has passed over me I'm left to drift on a dead calm sea And watch her forever through the cracks in the beams Nailed across the doorways of the bedrooms of my dreams"