From: Rupert Swarbrick <rswarbrick@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: elisp questions for Advanced Closing brackets function
Date: Wed, 21 May 2008 11:33:01 +0100 [thread overview]
Message-ID: <g10tot$r9p$2@news.albasani.net> (raw)
In-Reply-To: g10tg2$r9p$1@news.albasani.net
Rupert Swarbrick <rswarbrick@gmail.com> 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 <long stuff>
> | 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 <blah blah>
> | (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
next prev parent reply other threads:[~2008-05-21 10:33 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.11944.1211359652.18990.help-gnu-emacs@gnu.org>
2008-05-21 10:28 ` elisp questions for Advanced Closing brackets function Rupert Swarbrick
2008-05-21 10:33 ` Rupert Swarbrick [this message]
2008-05-21 18:30 ` Ralf Angeli
2008-05-21 18:40 ` Rupert Swarbrick
2008-05-21 20:14 ` Ralf Angeli
[not found] <mailman.11908.1211307132.18990.help-gnu-emacs@gnu.org>
2008-05-21 9:09 ` Tim X
2008-05-21 8:47 Lorenzo Isella
-- strict thread matches above, loose matches on Subject: below --
2008-05-20 18:12 TheLonelyStar
2008-05-20 18:24 ` Drew Adams
2008-05-20 20:04 ` TheLonelyStar
2008-05-20 20:19 ` Drew Adams
2008-05-21 6:18 ` Pierre Lorenzon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='g10tot$r9p$2@news.albasani.net' \
--to=rswarbrick@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.