From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tyler Smith Newsgroups: gmane.emacs.help Subject: Re: Adding a sublist to a list on startup Date: Thu, 16 Dec 2010 21:43:42 -0500 Message-ID: <87bp4l9l0h.fsf@guruji.demimonde> References: <87zks9o3bw.fsf@guruji.demimonde> <08AABBED9C6F4D2A9644BD0B620685CD@us.oracle.com> <87vd2xnyvf.fsf@guruji.demimonde> <97015EFD9EC74A7DA045CCE24E99D2BE@us.oracle.com> <87mxo5akqf.fsf@guruji.demimonde> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1292553861 28012 80.91.229.12 (17 Dec 2010 02:44:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 17 Dec 2010 02:44:21 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 17 03:44:17 2010 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.69) (envelope-from ) id 1PTQIp-0003ae-R3 for geh-help-gnu-emacs@m.gmane.org; Fri, 17 Dec 2010 03:44:15 +0100 Original-Received: from localhost ([127.0.0.1]:60662 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PTQIp-00019W-I2 for geh-help-gnu-emacs@m.gmane.org; Thu, 16 Dec 2010 21:44:15 -0500 Original-Received: from [140.186.70.92] (port=43287 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PTQIV-00019P-LF for help-gnu-emacs@gnu.org; Thu, 16 Dec 2010 21:43:56 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PTQIU-0007H6-Gs for help-gnu-emacs@gnu.org; Thu, 16 Dec 2010 21:43:55 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:41227) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PTQIU-0007Gq-Af for help-gnu-emacs@gnu.org; Thu, 16 Dec 2010 21:43:54 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PTQIT-0003Q7-2x for help-gnu-emacs@gnu.org; Fri, 17 Dec 2010 03:43:53 +0100 Original-Received: from 76.177.51.182 ([76.177.51.182]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 17 Dec 2010 03:43:53 +0100 Original-Received: from tyler.smith by 76.177.51.182 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 17 Dec 2010 03:43:53 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 22 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 76.177.51.182 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:EInGLznIjBtSo0W6+lYTn7KE2eA= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:77613 Archived-At: "Drew Adams" writes: >> > M-x debug-on-entry RET my-LaTeX-hook RET >> > > Turns out debug-on-entry is smarter than I am. I'm going to have to read up on that one. Looks really useful, but I don't understand it at all. In the meantime, I discovered the source of my problems. I hadn't realized how deep the lists were nested in the undocumented variable LaTeX-environment-list. Wrapping my new lists in another pair of parens makes everything work just fine. There is still some mysterious magic going on, but I couldn't actually find the original definition of the variable. I have sent a note to the AucTex people to let them know about the issue. Thanks for your help, Tyler