From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Christophe Jorssen Newsgroups: gmane.emacs.help Subject: Re: A quick build 'function' for auctex Date: 18 May 2008 17:43:22 GMT Organization: Guest of ProXad - France Message-ID: <48306aba$0$22286$426a74cc@news.free.fr> References: <482c6d9f$0$2002$426a74cc@news.free.fr> <8c64dfc3-6170-471c-951e-75c86ce755f8@z72g2000hsb.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1211136086 13358 80.91.229.12 (18 May 2008 18:41:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 18 May 2008 18:41:26 +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 May 18 20:42:04 2008 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 1JxnpW-0004e8-Fg for geh-help-gnu-emacs@m.gmane.org; Sun, 18 May 2008 20:41:58 +0200 Original-Received: from localhost ([127.0.0.1]:34551 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jxnom-0005Ma-Oa for geh-help-gnu-emacs@m.gmane.org; Sun, 18 May 2008 14:41:12 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!syros.belnet.be!news.belnet.be!feeder.news-service.com!newsfeed.freenet.de!news.osn.de!diablo2.news.osn.de!feeder2-2.proxad.net!proxad.net!feeder1-1.proxad.net!cleanfeed1-a.proxad.net!nnrp2-2.free.fr!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Pan/0.132 (Waxed in Black) Original-Lines: 53 Original-NNTP-Posting-Date: 18 May 2008 19:43:22 MEST Original-NNTP-Posting-Host: 82.228.49.39 Original-X-Trace: 1211132602 news-2.free.fr 22286 82.228.49.39:56881 Original-X-Complaints-To: abuse@proxad.net Original-Xref: news.stanford.edu gnu.emacs.help:158750 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:54116 Archived-At: Thanks harven for your reply. Le Thu, 15 May 2008 11:37:01 -0700, harven a écrit/wrote : > On May 15, 7:06 pm, Christophe Jorssen > > > The following should prevent emacs from querying for a save before > compilation: > (setq TeX-save-query nil) ok. So I assume that a C-c C-c runs a test on the value of TeX-save-query? > > I don't know what is evince. Anyway, for modern versions of auctex > (11.85), the viewers used > for preview are contained in the list TeX-output-view-style. Probably > evince is not supported by default, xpdf is the default on my box. Here > is how to add a new entry to the list. Put the following in your > init-file. evince is the default 'universal' viewver in ubuntu. > (add-hook 'TeX-mode-hook (lambda () > (add-to-list 'TeX-output-view-style > '("^.pdf$" "." "put-here-the-viewer-command arg")))) One question: frequently I find lambda() in .emacs customization. What does it mean? > Your viewer command take a few arguments (e.g. the placeholder for the > name of the file). These must > be added using the format specifiers. You may want to try %s or %d for > the value of arg, depending on your viewer. These arg are explained in > the documentation of the TeX-expand-list variable. You can see this doc > by typing while in tex-mode C-h v TeX-expand-list. Thanks for this tip. > Also, the following should prevent emacs from asking for the viewer to > use. > > (add-hook 'TeX-mode-hook (lambda () > (add-to-list 'TeX-command-list > '("View" "%V" TeX-run-discard nil t)))) ok. By the way, is there a pdf version where all the descriptions (given by C-h v) variables defined by auctex are available ? Thanks again -- Christophe