GNU bug report logs - #23329
11.89; Unloading tex-site doesn't restore original functionality

Previous Next

Package: auctex;

Reported by: Ikumi Keita <ikumi <at> ikumi.que.jp>

Date: Thu, 21 Apr 2016 14:26:02 UTC

Severity: normal

Found in version 11.89

Done: Mosè Giordano <mose <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Ikumi Keita <ikumi <at> ikumi.que.jp>
To: Mosè Giordano <mose <at> gnu.org>
Cc: 23329 <at> debbugs.gnu.org, emacs-devel <at> gnu.org
Subject: bug#23329: 11.89; Unloading tex-site doesn't restore original functionality
Date: Fri, 22 Apr 2016 15:49:57 +0900
[Message part 1 (text/plain, inline)]
Hi all,

> tex-site.el defines `tex-site-unload-hook' which looks into
> `after-load-alist' to remove AUCTeX settings (it looks for
> `TeX-modes-set' function), but in Emacs 24 `after-load-alist' seems to
> have changed and there is no reference to `TeX-modes-set' anymore.  Do
> you have any idea how to unload AUCTeX in Emacs 24?

I think I have figured out why `unload-feature' doesn't work well.  The
story is as follows.

If `advice-add' is available, tex-site.el uses `advice-add' on the
original tex modes and doesn't touch `after-load-alist'.

The advices are added through the defcustom of `TeX-modes' when
tex-site.el is loaded, because it has the line
  :set 'TeX-modes-set
.  Thus `tex-site-unload-hook' should remove these advices when
`advice-add' is available.

I confirmed that the attached crude workaround makes unloading tex-site
to work as expected.

Regards,
Ikumi Keita

[remove-advices (text/x-diff, attachment)]

This bug report was last modified 9 years and 32 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.