From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rupert Swarbrick Newsgroups: gmane.emacs.help Subject: Re: elisp questions for Advanced Closing brackets function Date: Wed, 21 May 2008 11:33:01 +0100 Organization: albasani.net Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1211366574 32058 80.91.229.12 (21 May 2008 10:42:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 21 May 2008 10:42:54 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 21 12:43: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 1Jyln6-00030l-NA for geh-help-gnu-emacs@m.gmane.org; Wed, 21 May 2008 12:43:28 +0200 Original-Received: from localhost ([127.0.0.1]:38531 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JylmM-0008RM-HW for geh-help-gnu-emacs@m.gmane.org; Wed, 21 May 2008 06:42:42 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!news.albasani.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 49 Original-X-Trace: news.albasani.net 9m01KlxPnhA4j/Tu6JXl7KGnaZ0cLix4x662yBAt035D/wkbuG9pp1oRX9eqEg8yH1UArwcTdi7djdt4BWd3c2SRq2Q2YYUrd1s9TVRxeOZrLznMs+27156YP8Hy2CAW Original-X-Complaints-To: abuse@albasani.net Original-NNTP-Posting-Date: Wed, 21 May 2008 10:33:01 +0000 (UTC) X-User-ID: L1eJEJwI8kJgWU+E2/AFkQwaLF9Eg+9N4IvAIlcZqUY= Cancel-Lock: sha1:Fk0+BJaa2XaUh15BGLHgtQWPzTw= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) X-NNTP-Posting-Host: notnx2ms5x92EGRWm4u6AD88WCZWl8Z0ZfWCEXA2/is= Original-Xref: news.stanford.edu gnu.emacs.help:158833 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:54200 Archived-At: Rupert Swarbrick writes: > > C-h c C-c C-t C-p gives TeX-PDF-mode. Now, what does that do? Well, > let's look at its docs: C-h f TeX-PDF-mode > > Gives: > > ,---- > | TeX-PDF-mode is an interactive compiled Lisp function in > | It is bound to C-c C-t C-p. > | (TeX-PDF-mode &optional ARG) > | > | Minor mode for using PDFTeX. > | > | If enabled, PDFTeX will be used as an executable by default. > | You can customize an initial value, and you can use the > | function `TeX-global-PDF-mode' for toggling this value. > `---- > > Ahah! So we want to know about TeX-global-PDF-mode! Roight, let's look > at that function, using C-h f TeX-global-PDF-mode. Well that says: > > ,---- > | TeX-global-PDF-mode is an interactive compiled Lisp func > | (TeX-global-PDF-mode &optional ARG) > | > | Toggle default for `TeX-PDF-mode'. > `---- > > (Ye gods, will we ever get there?!) But TeX-PDF-mode is a variable, > which is looking promising. Maybe we can use customise. Finally (!) > call C-h v TeX-PDF-mode and you'll see near the bottom of the help > page a link to customise the variable. Tada! > > I realise this is a roundabout way to get the answer, but maybe this > answer will help you solve the next problem you come across. > I've just read that again, and realised that I didn't notice we've seen TeX-PDF-mode twice! But elisp, like many other lisps, uses two different tables of symbols: one for functions and one for variables. Which is why C-h f TeX-PDF-mode and C-h v TeX-PDF-mode do different things. Random, eh? Anyway, I think I've successfully demonstrated that even if you're a bit dopey, you can still solve this sort of problem (-: Rupert