all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Loss of auctex functionality
@ 2009-05-14  4:24 Sam Albers
  0 siblings, 0 replies; 10+ messages in thread
From: Sam Albers @ 2009-05-14  4:24 UTC (permalink / raw
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 1102 bytes --]

Hello Emacs List,

Until I messed up my site-lisp directory, I conveniently had a LaTeX drop
down menu within emacs. I didn't really use it that much it did provide me a
list of keystrokes that were useful when working with a latex document. Now
only a TeX drop down menu appears. I used to be able to run C-c C-c and then
type LaTeX to compile my document. Now when I do this I am taken to a
windows that looks exactly like my terminal instead of LaTeXing my document
automatically. Other AucTex commands don't seem to work well either.

C-c C-e should allow me to insert an environment but all it does it end the
environment I am in whereas previously I call insert a new environment of my
choice.

My /usr/share/emacs/22.2/site-lisp directory is empty through a silly move
by yours truly. I am using Ubuntu 9.04.

Thanks!

Sam



-- 
*****************************************************
Sam Albers
Geography Program
University of Northern British Columbia
3333 University Way
Prince George, British Columbia
Canada, V2N 4Z9
phone: 250 960-6777
*****************************************************

[-- Attachment #2: Type: text/html, Size: 1203 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Loss of auctex functionality
       [not found] <mailman.7125.1242275725.31690.help-gnu-emacs@gnu.org>
@ 2009-05-14  5:41 ` Anselm Helbig
  2009-05-14  6:56   ` Sam Albers
       [not found]   ` <mailman.7160.1242312711.31690.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 10+ messages in thread
From: Anselm Helbig @ 2009-05-14  5:41 UTC (permalink / raw
  To: help-gnu-emacs

Hi!

> Until I messed up my site-lisp directory, I
> conveniently had a LaTeX drop down menu within
> emacs. I didn't really use it that much it did
> provide me a list of keystrokes that were useful
> when working with a latex document. Now only a TeX
> drop down menu appears. I used to be able to run
> C-c C-c and then type LaTeX to compile my document.
> Now when I do this I am taken to a windows that
> looks exactly like my terminal instead of LaTeXing
> my document automatically. Other AucTex commands
> don't seem to work well either.
> 
> C-c C-e should allow me to insert an environment
> but all it does it end the environment I am in
> whereas previously I call insert a new environment
> of my choice.
> 
> My /usr/share/emacs/22.2/site-lisp directory is
> empty through a silly move by yours truly. I am
> using Ubuntu 9.04.

Looks like you're not using auctex at all but the built-in
tex-mode. Why don't you just reinstall the auctex-package via the
package manager?

HTH,

Anselm


-- 
Anselm Helbig 
mailto:anselm.helbig+news2009@googlemail.com


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Loss of auctex functionality
  2009-05-14  5:41 ` Anselm Helbig
@ 2009-05-14  6:56   ` Sam Albers
       [not found]   ` <mailman.7160.1242312711.31690.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 10+ messages in thread
From: Sam Albers @ 2009-05-14  6:56 UTC (permalink / raw
  To: anselm.helbig+news2009; +Cc: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 1198 bytes --]

Hi!
>
> > Until I messed up my site-lisp directory, I
> > conveniently had a LaTeX drop down menu within
> > emacs. I didn't really use it that much it did
> > provide me a list of keystrokes that were useful
> > when working with a latex document. Now only a TeX
> > drop down menu appears. I used to be able to run
> > C-c C-c and then type LaTeX to compile my document.
> > Now when I do this I am taken to a windows that
> > looks exactly like my terminal instead of LaTeXing
> > my document automatically. Other AucTex commands
> > don't seem to work well either.
> >
> > C-c C-e should allow me to insert an environment
> > but all it does it end the environment I am in
> > whereas previously I call insert a new environment
> > of my choice.
> >
> > My /usr/share/emacs/22.2/site-lisp directory is
> > empty through a silly move by yours truly. I am
> > using Ubuntu 9.04.
>
> Looks like you're not using auctex at all but the built-in
> tex-mode. Why don't you just reinstall the auctex-package via the
> package manager?
>

Thanks Anselm. I tried this earlier but it did not seem to fix the problem.
Indeed it does seem like emacs is not detecting auctex at all. Not sure how
to proceed.

[-- Attachment #2: Type: text/html, Size: 1577 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Loss of auctex functionality
       [not found]   ` <mailman.7160.1242312711.31690.help-gnu-emacs@gnu.org>
@ 2009-05-14 16:35     ` Mathias Fuh
  2009-05-14 17:14     ` B. T. Raven
  2009-05-14 18:42     ` Anselm Helbig
  2 siblings, 0 replies; 10+ messages in thread
From: Mathias Fuh @ 2009-05-14 16:35 UTC (permalink / raw
  To: help-gnu-emacs

Sam Albers <tonightsthenight@gmail.com> writes:

>
>     Looks like you're not using auctex at all but the built-in
>     tex-mode. Why don't you just reinstall the auctex-package via the
>     package manager?
>
>
> Thanks Anselm. I tried this earlier but it did not seem to fix the
> problem.  Indeed it does seem like emacs is not detecting auctex at
> all. Not sure how to proceed.

If its in the load-path, you could try this:

,----[ .emacs ]
!  (load "auctex.el" nil t t)
`----



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Loss of auctex functionality
       [not found]   ` <mailman.7160.1242312711.31690.help-gnu-emacs@gnu.org>
  2009-05-14 16:35     ` Mathias Fuh
@ 2009-05-14 17:14     ` B. T. Raven
  2009-05-14 18:12       ` Sam Albers
       [not found]       ` <mailman.7167.1242324781.31690.help-gnu-emacs@gnu.org>
  2009-05-14 18:42     ` Anselm Helbig
  2 siblings, 2 replies; 10+ messages in thread
From: B. T. Raven @ 2009-05-14 17:14 UTC (permalink / raw
  To: help-gnu-emacs

Sam Albers wrote:
> Hi!
>>> Until I messed up my site-lisp directory, I
>>> conveniently had a LaTeX drop down menu within
>>> emacs. I didn't really use it that much it did
>>> provide me a list of keystrokes that were useful
>>> when working with a latex document. Now only a TeX
>>> drop down menu appears. I used to be able to run
>>> C-c C-c and then type LaTeX to compile my document.
>>> Now when I do this I am taken to a windows that
>>> looks exactly like my terminal instead of LaTeXing
>>> my document automatically. Other AucTex commands
>>> don't seem to work well either.
>>>
>>> C-c C-e should allow me to insert an environment
>>> but all it does it end the environment I am in
>>> whereas previously I call insert a new environment
>>> of my choice.
>>>
>>> My /usr/share/emacs/22.2/site-lisp directory is
>>> empty through a silly move by yours truly. I am
>>> using Ubuntu 9.04.
>> Looks like you're not using auctex at all but the built-in
>> tex-mode. Why don't you just reinstall the auctex-package via the
>> package manager?
>>
> 
> Thanks Anselm. I tried this earlier but it did not seem to fix the problem.
> Indeed it does seem like emacs is not detecting auctex at all. Not sure how
> to proceed.
> 

But if you did this then your site-lisp subdirectory would no longer be 
empty. You should be able to re-install by downloading tarball or zip here:

http://www.gnu.org/software/auctex/download-for-unix.html

Also it seems that if you still have something like the following in 
your .emacs, then that should produce errors because of missing files:

(load "auctex.el" nil t t)
(load "preview-latex.el" nil t t)

(setq TeX-auto-save t)
(setq TeX-parse-self t)
(setq-default TeX-master nil)
(add-hook 'LaTeX-mode-hook 'turn-on-reftex)
(setq reftex-plug-into-AUCTeX t)

I am on w32 but I think these issues are platform independent.

Ed






^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Loss of auctex functionality
  2009-05-14 17:14     ` B. T. Raven
@ 2009-05-14 18:12       ` Sam Albers
       [not found]       ` <mailman.7167.1242324781.31690.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 10+ messages in thread
From: Sam Albers @ 2009-05-14 18:12 UTC (permalink / raw
  To: B. T. Raven; +Cc: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 2620 bytes --]

On Thu, May 14, 2009 at 10:14 AM, B. T. Raven <nihil@nihilo.net> wrote:

> Sam Albers wrote:
>
>> Hi!
>>
>>> Until I messed up my site-lisp directory, I
>>>> conveniently had a LaTeX drop down menu within
>>>> emacs. I didn't really use it that much it did
>>>> provide me a list of keystrokes that were useful
>>>> when working with a latex document. Now only a TeX
>>>> drop down menu appears. I used to be able to run
>>>> C-c C-c and then type LaTeX to compile my document.
>>>> Now when I do this I am taken to a windows that
>>>> looks exactly like my terminal instead of LaTeXing
>>>> my document automatically. Other AucTex commands
>>>> don't seem to work well either.
>>>>
>>>> C-c C-e should allow me to insert an environment
>>>> but all it does it end the environment I am in
>>>> whereas previously I call insert a new environment
>>>> of my choice.
>>>>
>>>> My /usr/share/emacs/22.2/site-lisp directory is
>>>> empty through a silly move by yours truly. I am
>>>> using Ubuntu 9.04.
>>>>
>>> Looks like you're not using auctex at all but the built-in
>>> tex-mode. Why don't you just reinstall the auctex-package via the
>>> package manager?
>>>
>>>
>> Thanks Anselm. I tried this earlier but it did not seem to fix the
>> problem.
>> Indeed it does seem like emacs is not detecting auctex at all. Not sure
>> how
>> to proceed.
>>
>>
> But if you did this then your site-lisp subdirectory would no longer be
> empty. You should be able to re-install by downloading tarball or zip here:
>
> http://www.gnu.org/software/auctex/download-for-unix.html
>
> Also it seems that if you still have something like the following in your
> .emacs, then that should produce errors because of missing files:
>
> (load "auctex.el" nil t t)
> (load "preview-latex.el" nil t t)
>
> (setq TeX-auto-save t)
> (setq TeX-parse-self t)
> (setq-default TeX-master nil)
> (add-hook 'LaTeX-mode-hook 'turn-on-reftex)
> (setq reftex-plug-into-AUCTeX t)
>
> I am on w32 but I think these issues are platform independent.
>
> Ed
>
> Thank you for your help.

I seem to have a few too many emacs directories:

/usr/share/emacs22/site-lisp
which has ess and auctex files in it

/usr/share/emacs/site-lisp
which also has ess and auctex files in it

/usr/share/emacs/22.2/site-lisp
which is an empty folder.

The weird thing is that ESS is still working fine while auctex seems to not
be.

Lastly, a newbie question. Is the .emacs file just a text file located in
your home directory and does emacs look for it automatically there. That
probably should be a new thread but it is pertinent to my issue.

Thanks alot for your help.

Sam

[-- Attachment #2: Type: text/html, Size: 3611 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Loss of auctex functionality
       [not found]   ` <mailman.7160.1242312711.31690.help-gnu-emacs@gnu.org>
  2009-05-14 16:35     ` Mathias Fuh
  2009-05-14 17:14     ` B. T. Raven
@ 2009-05-14 18:42     ` Anselm Helbig
  2009-05-14 20:14       ` Sam Albers
       [not found]       ` <mailman.7173.1242332103.31690.help-gnu-emacs@gnu.org>
  2 siblings, 2 replies; 10+ messages in thread
From: Anselm Helbig @ 2009-05-14 18:42 UTC (permalink / raw
  To: help-gnu-emacs

Hi!

>     > Until I messed up my site-lisp directory, I
>     > conveniently had a LaTeX drop down menu within
>     > emacs. I didn't really use it that much it did
>     > provide me a list of keystrokes that were useful
>     > when working with a latex document. Now only a TeX
>     > drop down menu appears. I used to be able to run
>     > C-c C-c and then type LaTeX to compile my document.
>     > Now when I do this I am taken to a windows that
>     > looks exactly like my terminal instead of LaTeXing
>     > my document automatically. Other AucTex commands
>     > don't seem to work well either.
>     >
>     > C-c C-e should allow me to insert an environment
>     > but all it does it end the environment I am in
>     > whereas previously I call insert a new environment
>     > of my choice.
>     >
>     > My /usr/share/emacs/22.2/site-lisp directory is
>     > empty through a silly move by yours truly. I am
>     > using Ubuntu 9.04.
>    
>     Looks like you're not using auctex at all but the built-in
>     tex-mode. Why don't you just reinstall the auctex-package via the
>     package manager?
> 
> Thanks Anselm. I tried this earlier but it did not seem to fix the
> problem. Indeed it does seem like emacs is not detecting auctex at
> all. Not sure how to proceed.

Is your site-lisp directory still empty? Did you get any error
messages when you tried to reinstall auctex? What does 

  M-x find-library<RET>auctex<RET> 

do? What's the value of the load-path variable (C-h v load-path<RET>)?

I'm on Ubuntu 9.04 myself, using the emacs-snapshot package. The elisp
files from auctex are installed in 

  /usr/share/emacs/site-lisp/auctex

on my machine, with byte-compiled versions in 

  /usr/share/emacs/23.0.91/site-lisp/auctex

Have you compiled emacs or did you use a Ubuntu package? 

The way it should work is that a debianized Emacs reads all files in
/etc/emacs/site-start.d and /etc/<emacs-flavor>/site-start.d. The
packages drop their initialization code here. I've got 

  /etc/emacs-snapshot/site-start.d/50auctex.el

and you should have 

  /etc/emacs22/site-start.d/50auctex.el

Is this file present? What happens if you load it with M-x load-file?
If you really like to know how packaging emacs extensions works on
Debian you should read this:

  http://www.debian.org/doc/packaging-manuals/debian-emacs-policy

You might be interested in the part where it speaks about the 
/usr/lib/emacsen-common/emacs-package-install script (written in the
perfect emacs rewrite language, btw). 

Kind regards, 

Anselm


-- 
Anselm Helbig 
mailto:anselm.helbig+news2009@googlemail.com


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Loss of auctex functionality
       [not found]       ` <mailman.7167.1242324781.31690.help-gnu-emacs@gnu.org>
@ 2009-05-14 19:52         ` Anselm Helbig
  0 siblings, 0 replies; 10+ messages in thread
From: Anselm Helbig @ 2009-05-14 19:52 UTC (permalink / raw
  To: help-gnu-emacs

Hi!

> I seem to have a few too many emacs directories:
> 
> /usr/share/emacs22/site-lisp
> which has ess and auctex files in it

These should be (mostly) .elc (byte-compiled) files and symlinks to
.el files.

> /usr/share/emacs/site-lisp
> which also has ess and auctex files in it

Here you should find the original .el files. 

> 
> /usr/share/emacs/22.2/site-lisp
> which is an empty folder.

On my system /usr/share/emacs/23.0.91/site-lisp is a symlink to
/usr/share/emacs-snapshot/site-lisp. 

> The weird thing is that ESS is still working fine while auctex seems to not be.
> 
> Lastly, a newbie question. Is the .emacs file just a text file
> located in your home directory and does emacs look for it
> automatically there. That probably should be a new thread but it is
> pertinent to my issue.

Emacs automatically loads your .emacs unless you start it with the -q
or -Q option. And, yes, the .emacs is "just" a text file. 

HTH, 

Anselm


-- 
Anselm Helbig 
mailto:anselm.helbig+news2009@googlemail.com


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Loss of auctex functionality
  2009-05-14 18:42     ` Anselm Helbig
@ 2009-05-14 20:14       ` Sam Albers
       [not found]       ` <mailman.7173.1242332103.31690.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 10+ messages in thread
From: Sam Albers @ 2009-05-14 20:14 UTC (permalink / raw
  To: anselm.helbig+news2009; +Cc: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 3212 bytes --]

Thanks!

>
>
>  Is your site-lisp directory still empty?


    /usr/share/emacs22/site-lisp
    has ess and auctex files in it

    /usr/share/emacs/site-lisp
    has ess and auctex files in it

    /usr/share/emacs/22.2/site-lisp
    is an empty folder.


> Did you get any error
> messages when you tried to reinstall auctex?


 No


What does M-x find-library<RET>auctex<RET> do?


Can't find library


> What's the value of the load-path variable (C-h v load-path<RET>)?


load-path is a variable defined in `C source code'.
Its value is
("/usr/share/emacs22/site-lisp/ess/" "/usr/share/emacs22/site-lisp/ess"
"/usr/share/emacs22/site-lisp/dictionaries-common"
"/usr/share/emacs22/site-lisp/auctex" "/usr/share/emacs/site-lisp/auctex"
"/etc/emacs22" "/etc/emacs" "/usr/local/share/emacs/22.2/site-lisp"
"/usr/local/share/emacs/site-lisp" "/usr/share/emacs/22.2/site-lisp"
"/usr/share/emacs/site-lisp" "/usr/share/emacs/22.2/leim"
"/usr/share/emacs/22.2/lisp" "/usr/share/emacs/22.2/lisp/url"
"/usr/share/emacs/22.2/lisp/textmodes"
"/usr/share/emacs/22.2/lisp/progmodes" "/usr/share/emacs/22.2/lisp/play"
"/usr/share/emacs/22.2/lisp/obsolete" "/usr/share/emacs/22.2/lisp/net"
"/usr/share/emacs/22.2/lisp/mh-e" "/usr/share/emacs/22.2/lisp/mail"
"/usr/share/emacs/22.2/lisp/language"
"/usr/share/emacs/22.2/lisp/international" "/usr/share/emacs/22.2/lisp/gnus"
"/usr/share/emacs/22.2/lisp/eshell" "/usr/share/emacs/22.2/lisp/erc"
"/usr/share/emacs/22.2/lisp/emulation"
"/usr/share/emacs/22.2/lisp/emacs-lisp"
"/usr/share/emacs/22.2/lisp/calendar" "/usr/share/emacs/22.2/lisp/calc"
"/usr/share/emacs/22.2/leim")

>
>
> I'm on Ubuntu 9.04 myself, using the emacs-snapshot package. The elisp
> files from auctex are installed in
>
>  /usr/share/emacs/site-lisp/auctex


Indeed this directory also has the auctex files

>
>
> on my machine, with byte-compiled versions in
>
>  /usr/share/emacs/23.0.91/site-lisp/auctex
>
> Have you compiled emacs or did you use a Ubuntu package?


I used the Ubuntu package

>
>
> The way it should work is that a debianized Emacs reads all files in
> /etc/emacs/site-start.d and /etc/<emacs-flavor>/site-start.d. The
> packages drop their initialization code here. I've got
>
>  /etc/emacs-snapshot/site-start.d/50auctex.el
>
> and you should have
>
>  /etc/emacs22/site-start.d/50auctex.el


This file is present.

I also have the snapshot, an emacs21, and an emacs directory


>
>
> Is this file present? What happens if you load it with M-x load-file?
> If you really like to know how packaging emacs extensions works on
> Debian you should read this:
>
>  http://www.debian.org/doc/packaging-manuals/debian-emacs-policy
>
> You might be interested in the part where it speaks about the
> /usr/lib/emacsen-common/emacs-package-install script (written in the
> perfect emacs rewrite language, btw).
>
> Oh yeah I will definitely give this a read. Thanks.
>
>
>  <anselm.helbig%2Bnews2009@googlemail.com>
>



-- 
*****************************************************
Sam Albers
Geography Program
University of Northern British Columbia
3333 University Way
Prince George, British Columbia
Canada, V2N 4Z9
phone: 250 960-6777
*****************************************************

[-- Attachment #2: Type: text/html, Size: 5318 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Loss of auctex functionality
       [not found]       ` <mailman.7173.1242332103.31690.help-gnu-emacs@gnu.org>
@ 2009-05-14 21:13         ` Anselm Helbig
  0 siblings, 0 replies; 10+ messages in thread
From: Anselm Helbig @ 2009-05-14 21:13 UTC (permalink / raw
  To: help-gnu-emacs

>     The way it should work is that a debianized Emacs reads all files in
>     /etc/emacs/site-start.d and /etc/<emacs-flavor>/site-start.d. The
>     packages drop their initialization code here. I've got
>    
>      /etc/emacs-snapshot/site-start.d/50auctex.el
>    
>     and you should have
>    
>      /etc/emacs22/site-start.d/50auctex.el
> 
> This file is present.
> 
> I also have the snapshot, an emacs21, and an emacs directory
>  
> 
>     Is this file present? What happens if you load it with M-x load-file?

So, what happens if you load it? BTW, what does M-x emacs-version say
to you?

Regards,

Anselm


-- 
Anselm Helbig 
mailto:anselm.helbig+news2009@googlemail.com


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2009-05-14 21:13 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-14  4:24 Loss of auctex functionality Sam Albers
     [not found] <mailman.7125.1242275725.31690.help-gnu-emacs@gnu.org>
2009-05-14  5:41 ` Anselm Helbig
2009-05-14  6:56   ` Sam Albers
     [not found]   ` <mailman.7160.1242312711.31690.help-gnu-emacs@gnu.org>
2009-05-14 16:35     ` Mathias Fuh
2009-05-14 17:14     ` B. T. Raven
2009-05-14 18:12       ` Sam Albers
     [not found]       ` <mailman.7167.1242324781.31690.help-gnu-emacs@gnu.org>
2009-05-14 19:52         ` Anselm Helbig
2009-05-14 18:42     ` Anselm Helbig
2009-05-14 20:14       ` Sam Albers
     [not found]       ` <mailman.7173.1242332103.31690.help-gnu-emacs@gnu.org>
2009-05-14 21:13         ` Anselm Helbig

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.