From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Boris Hollas" Newsgroups: gmane.emacs.help Subject: RefTex: wrong type argument Date: Mon, 10 Apr 2006 09:06:38 +0200 Organization: CNNTP Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1144654827 32675 80.91.229.2 (10 Apr 2006 07:40:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 10 Apr 2006 07:40:27 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Apr 10 09:40:25 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FSr0Z-0000tC-Fp for geh-help-gnu-emacs@m.gmane.org; Mon, 10 Apr 2006 09:40:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FSr0Z-0005EA-0e for geh-help-gnu-emacs@m.gmane.org; Mon, 10 Apr 2006 03:40:23 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.cw.net!cw.net!news-FFM2.ecrc.de!news.germany.com!koehntopp.de!news.albasani.net!news.datemas.de!feed.cnntp.org!news.cnntp.org!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Opera M2/7.54 (FreeBSD, build 955) Original-Lines: 31 Original-NNTP-Posting-Host: 225d6e29.read.cnntp.org Original-X-Trace: DXC=OjWoT\PAgXa?an_]9d^W; o0gMU2X=:[:BHiekf<]NLHTWkMeUSbcSQF0fA0P_0cEjfcg Original-X-Complaints-To: abuse@cnntp.org Original-Xref: shelby.stanford.edu gnu.emacs.help:138655 Original-To: help-gnu-emacs@gnu.org 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:34273 Archived-At: Hi, RefTex keeps annoying me with messages "wrong type argument: number-or-marker-p, nil" each time I want to insert a label. I first thought my reftex-mode-hook was faulty, but even with the hook commented out the message appears. The same is true for C-c = (toc), which doesn't work. I use Emacs 21.3.1 with CUA-mode and the following reftex-mode-hook (currently disabled): ;--- Reftex --- ;(add-hook 'reftex-mode-hook ; (function (lambda () ; (setq reftex-save-parse-info t ; reftex-use-multiple-selection-buffers t) ; (set 'reftex-label-alist '( ; ("aufgabe" ?a "aufg:" "~\\ref{%s}" nil ("Aufgabe")) ; ("beispiel" ?b "bsp:" "~\\ref{%s}" nil ("Beispiel")) ; ("korollar" ?k "kor:" "~\\ref{%s}" nil ("Korollar")) ; ("lemma" ?m "lem:" "~\\ref{%s}" nil ("Lemma")) ; ("satz" ?z "satz:" "~\\ref{%s}" nil ("Satz")) ; (nil ?s nil nil nil ("Kapitel" "Kap." "Abschnitt")) ; (nil ?t nil nil nil ("Tabelle")) ; (nil ?f nil nil nil ("Abbildung" "Abb.")) ; )) ; (set 'reftex-insert-label-flags '("s" "sftabdekmz")) ;))) Sometimes however RefTex does work with the same .emacs and the same tex-file. Maybe it depends on /dev/random. -- Boris