Re: Problem after upgrading to 13.1.3

2022-07-14 Thread Greg Bognar via General discussion about AUCTeX
Hi Ikumi and Arash,

Thanks for the pointer.  I think I understand what the problem was.

When the issue started, I removed the new AUCTeX installation and re-installed
it through the Emacs package manager to make sure no old version remained.  But
I also had a MELPA package called latex-extra installed, which depends on 
AUCTeX.
I suspect the package manager did not actually delete AUCTeX but kept it around
as a dependency -- and it never warned me about this.

Eventually, I removed both AUCTeX and latex-extra and reinstalled AUCTeX only,
and the problem went away.

I looked at latex-extra and it requires tex-buf.el.  So the problem seems to be
that Emacs loaded a file with the new AUCTeX but then latex-extra could not be
loaded and that lead to the weird behavior.  The issue is already reported:
https://github.com/Malabarba/latex-extra/issues/35

To be honest, I have not even used latex-extra's functionality.  It was just an
old package lying around...

All the best,
Greg

---
On Thu 14 Jul 2022 at 09:23 Ikumi Keita wrote:
> 
> Hi Greg,
> 
> I don't use use-package, so I just state some observations which seem
> relevant.
> 
> > Greg Bognar via General discussion about AUCTeX  writes:
> > When I try to change the mode of the file by M-x LaTeX-mode, I get an error:
> 
> >Cannot open load file: No such file or directory, tex-buf
> 
> That strongly suggests that there remains older version of AUCTeX. In
> recent commit, tex-buf.el was merged into tex.el. I guess that older one
> is conflicting with newer one.
> 
> > M-x describe-mode tells me:
> 
> >Fundamental mode defined in `tex-mode.el':
> 
> That's very strange. tex-mode.el actually has no definition for
> Fundamental mode.
> 
> Perhaps deleting AUCTeX once and installing again might help.
> 
> Regards,
> Ikumi Keita
> #StandWithUkraine #StopWarInUkraine



Re: Problem after upgrading to 13.1.3

2022-07-14 Thread Ikumi Keita
Hi Greg,

I don't use use-package, so I just state some observations which seem
relevant.

> Greg Bognar via General discussion about AUCTeX  writes:
> When I try to change the mode of the file by M-x LaTeX-mode, I get an error:

>Cannot open load file: No such file or directory, tex-buf

That strongly suggests that there remains older version of AUCTeX. In
recent commit, tex-buf.el was merged into tex.el. I guess that older one
is conflicting with newer one.

> M-x describe-mode tells me:

>Fundamental mode defined in `tex-mode.el':

That's very strange. tex-mode.el actually has no definition for
Fundamental mode.

Perhaps deleting AUCTeX once and installing again might help.

Regards,
Ikumi Keita
#StandWithUkraine #StopWarInUkraine



Re: Problem after upgrading to 13.1.3

2022-07-14 Thread Arash Esbati
Greg Bognar via General discussion about AUCTeX  writes:

> I've just upgraded to 13.1.3 from ELPA.  I'm on Emacs 27.1.
>
> When I open a LaTeX file, it opens in something called Fundamental mode.  But 
> I
> do actually get font-locking and the basic AUCTeX menus, but none of my
> customizations seem to have loaded.  C-c C-c asks for the master file, even
> though TeX-master is set in the file-local variables.  M-x describe-mode tells
> me:
>
>Fundamental mode defined in `tex-mode.el':
>This function has :override advice: `TeX-latex-mode'.
>
> I use use-package to load AUCTeX:
>
>(use-package tex
>  :ensure auctex
>  :defer t
>  :mode ("\\.tex\\'" . LaTeX-mode)
>  [...]
>
> When I try to change the mode of the file by M-x LaTeX-mode, I get an error:
>
>Cannot open load file: No such file or directory, tex-buf

tex-buf.el is gone and its content is now in tex.el.  I suspect you have
still some configuration around which looks for tex-buf.el explicitly.
Also looking for load-path shadows with 'M-x list-load-path-shadows RET'
could help.

One other thing is if you're using an Emacs distro like Prelude,
Spacemacs, Doom et al. and they try to load tex-buf.el.  I remember
there were reports in that area.

> My setup has worked without any problems before the upgrade.  It seems
> use-package does not load AUCTeX properly, although this is the way 
> recommended
> in the manual.  I should also say I have a cryptic comment in my init file:
>
>  :ensure auctex ;FIXME: cannot be installed automatically
>
> But I can't remember what problem I was trying to fix.

I don't use use-package so I can't tell.

Best, Arash



Problem after upgrading to 13.1.3

2022-07-13 Thread Greg Bognar via General discussion about AUCTeX
Hi,

I've just upgraded to 13.1.3 from ELPA.  I'm on Emacs 27.1.

When I open a LaTeX file, it opens in something called Fundamental mode.  But I
do actually get font-locking and the basic AUCTeX menus, but none of my
customizations seem to have loaded.  C-c C-c asks for the master file, even
though TeX-master is set in the file-local variables.  M-x describe-mode tells
me:

   Fundamental mode defined in `tex-mode.el':
   This function has :override advice: `TeX-latex-mode'.

I use use-package to load AUCTeX:

   (use-package tex
 :ensure auctex
 :defer t
 :mode ("\\.tex\\'" . LaTeX-mode)
 [...]

When I try to change the mode of the file by M-x LaTeX-mode, I get an error:

   Cannot open load file: No such file or directory, tex-buf

My setup has worked without any problems before the upgrade.  It seems
use-package does not load AUCTeX properly, although this is the way recommended
in the manual.  I should also say I have a cryptic comment in my init file:

 :ensure auctex ;FIXME: cannot be installed automatically

But I can't remember what problem I was trying to fix.

Does anyone who uses use-package have any advice on how to get AUCTeX working
again?

All the best,
Greg