Re: [Bug-AUCTeX] [SOLVED] recursive require
Hi Mosè Am 28.5.2014 schrieb Mosè Giordano: What exactly does C-c C-s in your case? Normally, I can set a section with C-c C-s, now it tries to end an open environment. In the menu bar is there only TeX or also Command? In the former case you're using the TeX mode bundled with Emacs, in the latter case you're using AUCTeX but with plain-tex-mode and that would explain why C-c C-s doesn't work (it's defined only in AUCTeX latex-mode). You can see whether AUCTeX has been enabled in a TeX/LaTeX file if the TeX or LaTeX menu contains references to AUCTeX. There is no Command and no LaTeX menu, and there are no references to AUCTeX in the TeX menu. So AUCTeX is clearly not loaded. Bye,Salome ___ bug-auctex mailing list bug-auctex@gnu.org https://lists.gnu.org/mailman/listinfo/bug-auctex
Re: [Bug-AUCTeX] [SOLVED] recursive require
g...@scheiberspace.ch g...@scheiberspace.ch writes: Hi! Removing the 'turn-on-auctex line doesn't make a difference. Thanks anyway for the hint that the function does not exist (anymore?? I can't remember where I got it from). It has never existed in AUCTeX itself, but of course it might be that you've defined that function yourself in your ~/.emacs. Anyway, I've just tried again with a test user account and no ~/.emacs and ~/.emacs.d/, and Emacs 24.3. 1. Start emacs 2. `M-x list-packages' 3. `i' on auctex 11.87.5 followed by `x' 4. `C-x C-f ~/foo.tex RET' 5. The file is found and the buffer is in AUCTeX TeX-latex-mode, i.e., `C-h v major-mode' says its `latex-mode', and `C-h f latex-mode' says: ,[ C-h f latex-mode ] | latex-mode is an alias for `TeX-latex-mode' in `tex-site.el'. | | (latex-mode) | | Major mode in AUCTeX for editing LaTeX files. | See info under AUCTeX for full documentation. | [...] ` Bye, Tassilo ___ bug-auctex mailing list bug-auctex@gnu.org https://lists.gnu.org/mailman/listinfo/bug-auctex
Re: [Bug-AUCTeX] [SOLVED] recursive require
Tassilo Horn t...@gnu.org writes: g...@scheiberspace.ch g...@scheiberspace.ch writes: Hi! Removing the 'turn-on-auctex line doesn't make a difference. Thanks anyway for the hint that the function does not exist (anymore?? I can't remember where I got it from). It has never existed in AUCTeX itself, but of course it might be that you've defined that function yourself in your ~/.emacs. Anyway, I've just tried again with a test user account and no ~/.emacs and ~/.emacs.d/, and Emacs 24.3. 1. Start emacs 2. `M-x list-packages' 3. `i' on auctex 11.87.5 followed by `x' 4. `C-x C-f ~/foo.tex RET' 5. The file is found and the buffer is in AUCTeX TeX-latex-mode, i.e., `C-h v major-mode' says its `latex-mode', and `C-h f latex-mode' says: ,[ C-h f latex-mode ] | latex-mode is an alias for `TeX-latex-mode' in `tex-site.el'. | | (latex-mode) | | Major mode in AUCTeX for editing LaTeX files. | See info under AUCTeX for full documentation. | [...] ` Might be worth starting emacs with emacs --debug-init I suspect that the startup aborts early. -- David Kastrup ___ bug-auctex mailing list bug-auctex@gnu.org https://lists.gnu.org/mailman/listinfo/bug-auctex
Re: [Bug-AUCTeX] [SOLVED] recursive require
Am Di 27 Mai 2014 08:49:56 CEST schrieb Tassilo Horn: Salome Södergran salome.soederg...@gmx.ch writes: For debugging I have a minimal init-file containing the following lines (setq debug-on-error t) (require 'package) (package-initialize) (add-hook 'LaTeX-mode-hook 'turn-on-auctex) As said by Mosè, you shouldn't need to require anything. When I open a tex-file the major mode is LaTeX but AUCTeX is not loaded. Where's the fault? With the above, you should get an error when opening a tex file because `turn-on-auctex' is no existing function (unless it's defined by yourself). Bye, Tassilo Removing the 'turn-on-auctex line doesn't make a difference. Thanks anyway for the hint that the function does not exist (anymore?? I can't remember where I got it from). bye, salome ___ bug-auctex mailing list bug-auctex@gnu.org https://lists.gnu.org/mailman/listinfo/bug-auctex
Re: [Bug-AUCTeX] [SOLVED] recursive require
Am Mo 26 Mai 2014 23:20:04 CEST schrieb Mosè Giordano: Hi Salome, 2014-05-26 11:30 GMT+02:00 Salome =?iso-8859-1?Q?S=F6dergran salome.soederg...@gmx.ch: With this minimal init-file everything works fine: (setq debug-on-error t) (add-to-list 'load-path ~/.emacs.d/elpa/auctex-11.87.5) (require 'tex-site) (require 'package) (package-initialize) Both the auctex-path and require are needed before the package-functions. What would I have to change to make AUCTeX work without (require 'tex-site)? An empty or non-existing `.emacs' works for me (i.e., AUCTeX is automatically loaded by the package manager), I can't understand why you insist on requiring `tex-site'. Bye, Mosè I do not insist on it, I'd rather not use it if I don't need to. But with an empty '.emacs' or emacs -q, AUCTeX seems not to be loaded here. Or maybe it is but something else is missing? How can I know if AUCTeX is loaded? When I start with an empty '.emacs' and then open a tex-file, I have TeX in the menu bar but not LaTeX (as I used to). Commands as C-c C-s do not what I'd expect them to do. Confused: Salome ___ bug-auctex mailing list bug-auctex@gnu.org https://lists.gnu.org/mailman/listinfo/bug-auctex
Re: [Bug-AUCTeX] [SOLVED] recursive require
Hi Mosè Am 25.5.2014 schrieb Mosè Giordano: Hi Salome, 2014-05-24 16:06 GMT+02:00 Salome =?iso-8859-1?Q?S=F6dergran salome.soederg...@gmx.ch: With lots of try-and-error I managed to solve my problem with: Error: (error Recursive `require' for feature `tex-site') . I think the two decisive things were the following: 1st, adding the auctex-path explicitly to the load path: (add-to-list 'load-path ~/.emacs.d/elpa/auctex-11.87.5) 2nd, putting (require 'tex-site) in the right place, e.g. /before/ (require 'package) (package-initialize) Everything's up and running again :-) Salome if you install a package using the Emacs package manager you don't need to load it using a `require'. Bye, Mosè Thank you for the hint. Without require AUCTeX is not loaded. ___ bug-auctex mailing list bug-auctex@gnu.org https://lists.gnu.org/mailman/listinfo/bug-auctex
Re: [Bug-AUCTeX] [SOLVED] recursive require
Hi Mosè (The other post went off too early, sorry!) Am 25.5.2014 schrieb Mosè Giordano: Hi Salome, 2014-05-24 16:06 GMT+02:00 Salome =?iso-8859-1?Q?S=F6dergran salome.soederg...@gmx.ch: With lots of try-and-error I managed to solve my problem with: Error: (error Recursive `require' for feature `tex-site') . I think the two decisive things were the following: 1st, adding the auctex-path explicitly to the load path: (add-to-list 'load-path ~/.emacs.d/elpa/auctex-11.87.5) 2nd, putting (require 'tex-site) in the right place, e.g. /before/ (require 'package) (package-initialize) Everything's up and running again :-) Salome if you install a package using the Emacs package manager you don't need to load it using a `require'. Bye, Mosè Thank you for the hint. I've tried it a few more times with different settings. For debugging I have a minimal init-file containing the following lines (setq debug-on-error t) (require 'package) (package-initialize) (add-hook 'LaTeX-mode-hook 'turn-on-auctex) When I open a tex-file the major mode is LaTeX but AUCTeX is not loaded. Where's the fault? Thanks for your help! Salome ___ bug-auctex mailing list bug-auctex@gnu.org https://lists.gnu.org/mailman/listinfo/bug-auctex
Re: [Bug-AUCTeX] [SOLVED] recursive require
Am 25.5.2014 schrieb Mosè Giordano: Hi Salome, 2014-05-24 16:06 GMT+02:00 Salome =?iso-8859-1?Q?S=F6dergran salome.soederg...@gmx.ch: With lots of try-and-error I managed to solve my problem with: Error: (error Recursive `require' for feature `tex-site') . I think the two decisive things were the following: 1st, adding the auctex-path explicitly to the load path: (add-to-list 'load-path ~/.emacs.d/elpa/auctex-11.87.5) 2nd, putting (require 'tex-site) in the right place, e.g. /before/ (require 'package) (package-initialize) Everything's up and running again :-) Salome if you install a package using the Emacs package manager you don't need to load it using a `require'. Bye, Mosè With this minimal init-file everything works fine: (setq debug-on-error t) (add-to-list 'load-path ~/.emacs.d/elpa/auctex-11.87.5) (require 'tex-site) (require 'package) (package-initialize) Both the auctex-path and require are needed before the package-functions. What would I have to change to make AUCTeX work without (require 'tex-site)? greets, salome ___ bug-auctex mailing list bug-auctex@gnu.org https://lists.gnu.org/mailman/listinfo/bug-auctex
Re: [Bug-AUCTeX] [SOLVED] recursive require
Hi Salome, 2014-05-24 16:06 GMT+02:00 Salome =?iso-8859-1?Q?S=F6dergran salome.soederg...@gmx.ch: With lots of try-and-error I managed to solve my problem with: Error: (error Recursive `require' for feature `tex-site') . I think the two decisive things were the following: 1st, adding the auctex-path explicitly to the load path: (add-to-list 'load-path ~/.emacs.d/elpa/auctex-11.87.5) 2nd, putting (require 'tex-site) in the right place, e.g. /before/ (require 'package) (package-initialize) Everything's up and running again :-) Salome if you install a package using the Emacs package manager you don't need to load it using a `require'. Bye, Mosè ___ bug-auctex mailing list bug-auctex@gnu.org https://lists.gnu.org/mailman/listinfo/bug-auctex