From: Tyler Smith <tyler.smith@eku.edu>
To: help-gnu-emacs@gnu.org
Subject: Re: Adding a sublist to a list on startup
Date: Thu, 16 Dec 2010 08:52:08 -0500 [thread overview]
Message-ID: <87mxo5akqf.fsf@guruji.demimonde> (raw)
In-Reply-To: 97015EFD9EC74A7DA045CCE24E99D2BE@us.oracle.com
"Drew Adams" <drew.adams@oracle.com> writes:
>> No, sorry, there are two different lists getting modified there. The
>> first three pushes add to LaTeX-item-list, which is an alist (thus the
>> dots). This seems to work as expected. The second group of pushes adds
>> to LaTeX-environment-list, which is a list of two-element lists (no
>> dots).
>
> M-x debug-on-entry RET my-LaTeX-hook RET
>
> Then use `d' to step through the function. You can use `e' at any time to
> evaluate something (e.g. `LaTeX-env-item'). That should show you what the
> problem is.
>
Finally got round to trying this. I can use e to evaluate items, but d
gives me an error at the top of the buffer:
Debugger entered--Lisp error: (error "Cannot return from the debugger in
an error")
Which I take to mean there is some error in the hook?
The full hook is pasted below. It looks correct to me, but maybe I've
missed something?
(defun my-LaTeX-hook ()
(TeX-PDF-mode)
(auto-fill-mode)
(face-remap-set-base 'default '(:family "Verdana" :height 140))
(setq TeX-command-default "PdfLatex")
(push '("choices" . LaTeX-insert-choice) LaTeX-item-list)
(push '("parts" . LaTeX-insert-part) LaTeX-item-list)
(push '("questions" . LaTeX-insert-question) LaTeX-item-list)
(push '("choices" LaTeX-env-item) LaTeX-environment-list)
(push '("questions" LaTeX-env-item) LaTeX-environment-list)
(push '("parts" LaTeX-env-item) LaTeX-environment-list))
Thanks,
Tyler
next prev parent reply other threads:[~2010-12-16 13:52 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-13 19:55 Adding a sublist to a list on startup Tyler Smith
2010-12-13 21:17 ` Drew Adams
2010-12-13 21:31 ` Tyler Smith
2010-12-13 21:57 ` Drew Adams
2010-12-16 13:52 ` Tyler Smith [this message]
2010-12-16 14:52 ` Drew Adams
2010-12-17 2:43 ` Tyler Smith
2010-12-16 16:48 ` PJ Weisberg
2010-12-15 4:18 ` Kevin Rodgers
2010-12-15 15:21 ` Tyler Smith
2010-12-16 7:18 ` Kevin Rodgers
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=87mxo5akqf.fsf@guruji.demimonde \
--to=tyler.smith@eku.edu \
--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.