From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.help Subject: Re: binding a command and a parameter Date: 14 Oct 2007 17:57:08 GMT Message-ID: References: NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1192387319 2788 80.91.229.12 (14 Oct 2007 18:41:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 14 Oct 2007 18:41:59 +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 20:41:49 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 1Ih8Oz-00065i-TK for geh-help-gnu-emacs@m.gmane.org; Sun, 14 Oct 2007 20:41:26 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ih8Ot-0004Fx-Ag for geh-help-gnu-emacs@m.gmane.org; Sun, 14 Oct 2007 14:41:19 -0400 Original-Path: shelby.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 26 Original-X-Trace: individual.net YXlxo+zIFITNKNzxb9UXgQ3fEo3FTjeyDrWOw102JWZ3DkBF26 Cancel-Lock: sha1:Zgel5lGtfqXndDS6t5odymYtI28= Mail-Copies-To: nobody X-Editor: Emacs of course! User-Agent: slrn/0.9.8.1 (Linux) Original-Xref: shelby.stanford.edu gnu.emacs.help:152908 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:48413 Archived-At: 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). however, the prompt sports TAB-completion, so all you really need to type to get latex is just `l', then hit RETURN. -- Joost Kremers joostkremers@yahoo.com Selbst in die Unterwelt dringt durch Spalten Licht EN:SiS(9)