From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: Adding a sublist to a list on startup Date: Mon, 13 Dec 2010 13:57:53 -0800 Message-ID: <97015EFD9EC74A7DA045CCE24E99D2BE@us.oracle.com> References: <87zks9o3bw.fsf@guruji.demimonde><08AABBED9C6F4D2A9644BD0B620685CD@us.oracle.com> <87vd2xnyvf.fsf@guruji.demimonde> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1292277535 23105 80.91.229.12 (13 Dec 2010 21:58:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 13 Dec 2010 21:58:55 +0000 (UTC) To: "'Tyler Smith'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 13 22:58:50 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 1PSGPx-0004JA-Li for geh-help-gnu-emacs@m.gmane.org; Mon, 13 Dec 2010 22:58:50 +0100 Original-Received: from localhost ([127.0.0.1]:60299 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PSGPv-000784-QS for geh-help-gnu-emacs@m.gmane.org; Mon, 13 Dec 2010 16:58:47 -0500 Original-Received: from [140.186.70.92] (port=59591 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PSGPP-00077O-FG for help-gnu-emacs@gnu.org; Mon, 13 Dec 2010 16:58:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PSGPN-00011M-8p for help-gnu-emacs@gnu.org; Mon, 13 Dec 2010 16:58:15 -0500 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]:47859) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PSGPN-00010l-3g for help-gnu-emacs@gnu.org; Mon, 13 Dec 2010 16:58:13 -0500 Original-Received: from rcsinet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id oBDLw6Nl003289 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 13 Dec 2010 21:58:08 GMT Original-Received: from acsmt354.oracle.com (acsmt354.oracle.com [141.146.40.154]) by rcsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id oBDLw2cU025481; Mon, 13 Dec 2010 21:58:03 GMT Original-Received: from abhmt018.oracle.com by acsmt355.oracle.com with ESMTP id 870736991292277472; Mon, 13 Dec 2010 13:57:52 -0800 Original-Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 13 Dec 2010 13:57:52 -0800 X-Mailer: Microsoft Office Outlook 11 In-reply-to: <87vd2xnyvf.fsf@guruji.demimonde> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 Thread-Index: AcubDSgc7lyPmReETtKxGrdC9Gau+wAAZHwA 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:77470 Archived-At: > 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. > > I also wonder why you don't just use Customize to customize > > `LaTeX-item-list' (I'm assuming that it is a user option). > > That's what Customize is for: it type-checks changes you make. > > Two reasons. First, these are not customizable variables, so I can't. That would be the first bug/enhancement request I would make, if I were in your place. > Second, even if I could use customize, trying to figure out > how to enter anything more complex than a string, or selecting > a checkbox, is, in my limited experience, harder than just > figuring out the lisp. Sometimes the person who defined the `defcustom' is lazy. ;-) In this case, if `LaTeX-environment-list' is a list of items that are each always a list of a string and a symbol, something like this shouldn't be difficult to deal with in Customize: (defcustom LaTeX-environment-list () "..." :type '(repeat (list string symbol)) :group 'whatever) The only fields to fill in are a string and a symbol name for each item. Plus buttons INS and DEL to add or delete an item.