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 20:46:06 +0000 (UTC) Organization: FER Message-ID: References: NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1192398074 31746 80.91.229.12 (14 Oct 2007 21:41:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 14 Oct 2007 21:41:14 +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 23:41:04 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 1IhBCW-00086M-Mx for geh-help-gnu-emacs@m.gmane.org; Sun, 14 Oct 2007 23:40:45 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IhBCP-0003g8-Un for geh-help-gnu-emacs@m.gmane.org; Sun, 14 Oct 2007 17:40:37 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!goblin1!goblin.stu.neva.ru!feeder.news-service.com!newsfeed.freenet.de!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: 50 Original-NNTP-Posting-Host: 89-172-47-132.adsl.net.t-com.hr Original-X-Trace: ss408.t-com.hr 1192394766 29546 89.172.47.132 (14 Oct 2007 20:46:06 GMT) Original-X-Complaints-To: abuse@t-com.hr Original-NNTP-Posting-Date: Sun, 14 Oct 2007 20:46:06 +0000 (UTC) User-Agent: slrn/0.9.8.1pl1 (Debian) Original-Xref: shelby.stanford.edu gnu.emacs.help:152914 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:48418 Archived-At: Dana 14 Oct 2007 19:54:55 GMT, Joost Kremers kaze: > Nikola Skoric wrote: >> 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 :-) > > then there is something not entirely right about your setup. my first guess > would be that you don't have a TeX-master set in your included files. if > you do, AUCTeX will know that the file you're editing is not the master > file, and will do the right thing if you compile your document. (what i > mean is, you can then type C-c C-c in your included file, the one you're > editing, and AUCTeX will know that it should actually compile the master > file; it will also know that even though the master file hasn't changed, it > must still run LaTeX on in, instead of xdvi.) Wow. I constanty forget that both latex and emacs are older than me so every problem I have has already been solved. > the way to do this is to include a block of Local Variables in all of your > latex files, right at the end: > > %%% Local Variables: > %%% mode: latex > %%% TeX-master: "thesis" > %%% End: Hm. Interesting thing happens now. If I now do the C-c C-c latex thing from main file - everything's fine. But, if I do it from included file, I get errors. I then click the yellow triangle error icon and it opens *main_file output* which has no errors in it. When I click that icon it usualy opens *TeX Help* buffer and points to the line with error, but not this time... So I just can't figure out where the error is. >>> 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 > > well, i guess binding a command plus interactive input to a key isn't the > most common thing to do. OK, fair enough :-) -- "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"