> Uwe Brauer <o...@mat.ucm.es> writes:
   Tassilo> It does for me, but this variable must be set to t *before* reftex 
is
   Tassilo> loaded.  Does that solve the issue?
   Tassilo> Then it depends on what's before your `custom-set-variables' form in
   Tassilo> your ~/.emacs.  If there's (require 'reftex) or something else which
   Tassilo> causes reftex to be loaded *before*, then the setting *won't* have 
an
   Tassilo> effect.

   > The other way round.  The variable must be set before reftex is loaded
   > because its value is used during load of reftex.  If the variable is t
   > at load-time, then the extra bindings are added to `reftex-mode-map'
   > otherwise that code is skipped.

Hm, so my setting

(require 'reftex)
(add-hook 'LaTeX-mode-hook 'turn-on-reftex)   ; with AUCTeX LaTeX mode
(setq reftex-plug-into-AUCTeX t)
(setq reftex-initialize-temporary-buffers t)
(setq reftex-use-itimer-in-xemacs t)
(setq reftex-extra-bindings t)
is not correct?

It should be

(setq reftex-extra-bindings t)
(require 'reftex)
(add-hook 'LaTeX-mode-hook 'turn-on-reftex)   ; with AUCTeX LaTeX mode
(setq reftex-plug-into-AUCTeX t)
(setq reftex-initialize-temporary-buffers t)
(setq reftex-use-itimer-in-xemacs t)

I say this is contra intuitive. 
https://www.gnu.org/software/emacs/manual/html_node/reftex/Key-Bindings.html
does not say anything about it,

Maybe I should put that into the
reftex-load-hook?

   > It doesn't by itself but it gives developers a way to do something when
   > a variable is set thru customize.  But such features aren't used for
   > `reftex-extra-bindings'.


   > As I've said above, the variable's value is only considered when
   > reftex.el is loaded.  Afterwards it can have any value you like, it
   > won't have any effect.


   > What is resetting?

--8<---------------cut here---------------start------------->8---
reftex-reset-mode is an interactive compiled Lisp function in
‘reftex.el’.

It is bound to <menu-bar> <Ref> <Reset RefTeX Mode>.

(reftex-reset-mode)

Reset RefTeX Mode.
This will re-compile the configuration information and remove all
current scanning information and the parse file to enforce a rescan
on next use.
--8<---------------cut here---------------end--------------->8---

Maybe I misunderstood the phrase re-compiling.

Uwe 



_______________________________________________
bug-auctex mailing list
bug-auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-auctex

Reply via email to