* RefTex: wrong type argument
@ 2006-04-10 7:06 Boris Hollas
2006-05-01 9:21 ` fjcmurphy
0 siblings, 1 reply; 3+ messages in thread
From: Boris Hollas @ 2006-04-10 7:06 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: RefTex: wrong type argument
2006-04-10 7:06 RefTex: wrong type argument Boris Hollas
@ 2006-05-01 9:21 ` fjcmurphy
2006-05-03 4:11 ` Stefan Monnier
0 siblings, 1 reply; 3+ messages in thread
From: fjcmurphy @ 2006-05-01 9:21 UTC (permalink / raw)
Hey Boris,
> RefTex keeps annoying me with messages "wrong type argument:
> number-or-marker-p, nil" each time I want to insert a label. I first
I have a similar problem (maybe it is the same). For me this message
occurs
in the following case:
I have a main latex document, called "main.tex" and a chapter-file
called "chap.tex" which is called from main.tex via e.g. \include or
\input.
In each file I have
%%% Local Variables:
%%% mode: latex
%%% TeX-master: "main.tex"
%%% End:
so Emacs know which is my main file.
Now, I just run latex on each file (as I wish) and it complies
perfectly.
* If I use e.g. C-c = for the TOC when I'm in main.tex it works
perfectly.
* However, when I open chap.tex manually and then use C-c = then Emacs
tells me
"wrong type argument: number-or-marker-p, nil"
The same behavior appears using C-C ) for referencing something.
This works for me:
1. go to main.tex and run C-c = for the TOC
2. rescan the TOC with "r"
3. then go to the subchapter(s) chap.tex via the open TOC (which was
openend
via main.tex)
4. now C-c = and C-c ) works also in the subchapters.
Maybe you have the same problem. This at least works for me.
Cheers,
frank
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: RefTex: wrong type argument
2006-05-01 9:21 ` fjcmurphy
@ 2006-05-03 4:11 ` Stefan Monnier
0 siblings, 0 replies; 3+ messages in thread
From: Stefan Monnier @ 2006-05-03 4:11 UTC (permalink / raw)
>> RefTex keeps annoying me with messages "wrong type argument:
>> number-or-marker-p, nil" each time I want to insert a label. I first
> I have a similar problem (maybe it is the same). For me this message
> occurs in the following case: I have a main latex document, called
> "main.tex" and a chapter-file called "chap.tex" which is called from
> main.tex via e.g. \include or \input.
Could people *report* bugs additionally to trying to get help in working
around them? Especially when using unreleased code.
Thank you,
Stefan
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-05-03 4:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-10 7:06 RefTex: wrong type argument Boris Hollas
2006-05-01 9:21 ` fjcmurphy
2006-05-03 4:11 ` Stefan Monnier
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.