From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: harven Newsgroups: gmane.emacs.help Subject: Re: A quick build 'function' for auctex Date: Sun, 18 May 2008 14:50:03 -0700 (PDT) Organization: http://groups.google.com Message-ID: <23cb02c3-959b-4ef3-ac18-f71852477987@b1g2000hsg.googlegroups.com> References: <482c6d9f$0$2002$426a74cc@news.free.fr> <8c64dfc3-6170-471c-951e-75c86ce755f8@z72g2000hsb.googlegroups.com> <48306aba$0$22286$426a74cc@news.free.fr> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1211150451 26020 80.91.229.12 (18 May 2008 22:40:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 18 May 2008 22: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 Mon May 19 00:41:29 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 1JxrZI-0003Si-9D for geh-help-gnu-emacs@m.gmane.org; Mon, 19 May 2008 00:41:28 +0200 Original-Received: from localhost ([127.0.0.1]:51262 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JxrYY-0006s6-DA for geh-help-gnu-emacs@m.gmane.org; Sun, 18 May 2008 18:40:42 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!b1g2000hsg.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 40 Original-NNTP-Posting-Host: 82.240.200.149 Original-X-Trace: posting.google.com 1211147403 25827 127.0.0.1 (18 May 2008 21:50:03 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sun, 18 May 2008 21:50:03 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: b1g2000hsg.googlegroups.com; posting-host=82.240.200.149; posting-account=hanW0AoAAADuR-PIr5jGeb298Y3jGR7p User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:158755 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:54122 Archived-At: > ok. So I assume that a C-c C-c runs a test on the value of TeX-save-query? yes. > One question: frequently I find lambda() in .emacs customization. What > does it mean? This is the way to define an anonymous function. (lambda () (instruction-1)(instruction-2)...) is just a function with no name which executes instructions when called. The following could have been used instead: (defun my-function () (add-to-list 'TeX-output-view-style '("^.pdf$" "." "put-here-the-viewer-command arg")))) (add-hook 'TeX-mode-hook 'my-function) > > 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 ? The auctex manual can be found at http://www.gnu.org/software/auctex/manual/auctex.index.html