Re: [AUCTeX-devel] (add-hook 'LaTeX-mode-hook 'turn-on-prettify-symbols-mode)
>> "Tassilo" == Tassilo Hornwrites: > Uwe Brauer writes: > Hi Uwe, >> I have the above setting >> (add-hook 'LaTeX-mode-hook 'turn-on-prettify-symbols-mode) >> >> however when I open a LaTeX file the symbols are not prettified I have >> to manually turn off and on the prettify-symbols-mode, can sombody >> verify this? > I just wanted do debug this issue but with the Emacs copy as of right > now (commit 4a703c73305211c780307e3654969ac1a20fb229) I can't reproduce > it anymore. With the above add-hook, symbols are instantly prettified > when opening some tex file. > So it might be some temporary hiccup in emacs. Can you confirm that? Here is the state of art. As I said yesterday with Kubuntu 10.04 I cannot compile any GNU emacs git version mayor than commit 524eeb2e5e158d98ea52fe5ebe4768c4433ba8b2 by Handa-san. This commit changes ftfont.c There is a ongoing discussion how to deal with the situation. I (and any other Ubuntu 10.04 user) have to upgrade libm17n-dev, which is not completely trivial, since other packages should be upgraded as well. Be it as it may I just picked up commit da88ad6cb1e98ef9f28462648ab53d81d22dd189 But replaced ftfont.c by the pre-Handa release. This worked but the hook problem continues. Meanwhile I see that Handa undied some of his changes. I will write him pick up the most recent version and let you know. Uwe ___ auctex-devel mailing list auctex-devel@gnu.org https://lists.gnu.org/mailman/listinfo/auctex-devel
Re: [AUCTeX-devel] (add-hook 'LaTeX-mode-hook 'turn-on-prettify-symbols-mode)
On 09/02/2015 12:52 PM, Tassilo Horn wrote: Tassilo Hornwrites: > I see several ways to fix this: > > 1. Remove `font-latex-setup' from `latex-mode-hook' in >`VirTeX-common-initialization'. I mean, then we know that the user >uses AUCTeX's modes and not the built-in ones. > > 2. Don't add `font-latex-setup' to `latex-mode-hook' when loading >font-latex.el in the first place. > > IMO, fix 2 is better because modifying stuff just by loading a lisp file > is bad practice anyway. However, it will break for users of the Emacs > built-in (la)tex-mode who use font-latex. They'd have to place > `font-latex-setup' in their `latex-mode-hook' on their own then. I've implemented fix 2 now. We'll see if that causes misery but I don't think so. Bye, Tassilo when running git pull I obtain errors of the sort error: refs/tags/release_9_8g does not point to a valid object! error: refs/tags/start does not point to a valid object! Updating 30be9cc..66b97ff so I better to a clean clone from the start Uwe smime.p7s Description: S/MIME Cryptographic Signature ___ auctex-devel mailing list auctex-devel@gnu.org https://lists.gnu.org/mailman/listinfo/auctex-devel
Re: [AUCTeX-devel] (add-hook 'LaTeX-mode-hook 'turn-on-prettify-symbols-mode)
Uwe Brauerwrites: >> I just wanted do debug this issue but with the Emacs copy as of right >> now (commit 4a703c73305211c780307e3654969ac1a20fb229) I can't reproduce >> it anymore. With the above add-hook, symbols are instantly prettified >> when opening some tex file. > >> So it might be some temporary hiccup in emacs. Can you confirm that? > > [snip] > > This worked but the hook problem continues. Indeed, now I can also reproduce it. I think the problem is that font-latex.el adds `font-latex-setup' to `latex-mode-hook' for users of the standard Emacs `latex-mode' that want to use font-latex. The problem is that `latex-mode-hook' is also run when using AUCTeX LaTeX mode, and `font-latex-setup' completely re-initializes font-lock rules and throws prettify-symbol's rule out. I see several ways to fix this: 1. Remove `font-latex-setup' from `latex-mode-hook' in `VirTeX-common-initialization'. I mean, then we know that the user uses AUCTeX's modes and not the built-in ones. 2. Don't add `font-latex-setup' to `latex-mode-hook' when loading font-latex.el in the first place. IMO, fix 2 is better because modifying stuff just by loading a lisp file is bad practice anyway. However, it will break for users of the Emacs built-in (la)tex-mode who use font-latex. They'd have to place `font-latex-setup' in their `latex-mode-hook' on their own then. Bye, Tassilo ___ auctex-devel mailing list auctex-devel@gnu.org https://lists.gnu.org/mailman/listinfo/auctex-devel
Re: [AUCTeX-devel] (add-hook 'LaTeX-mode-hook 'turn-on-prettify-symbols-mode)
Tassilo Hornwrites: > I see several ways to fix this: > > 1. Remove `font-latex-setup' from `latex-mode-hook' in >`VirTeX-common-initialization'. I mean, then we know that the user >uses AUCTeX's modes and not the built-in ones. > > 2. Don't add `font-latex-setup' to `latex-mode-hook' when loading >font-latex.el in the first place. > > IMO, fix 2 is better because modifying stuff just by loading a lisp file > is bad practice anyway. However, it will break for users of the Emacs > built-in (la)tex-mode who use font-latex. They'd have to place > `font-latex-setup' in their `latex-mode-hook' on their own then. I've implemented fix 2 now. We'll see if that causes misery but I don't think so. Bye, Tassilo ___ auctex-devel mailing list auctex-devel@gnu.org https://lists.gnu.org/mailman/listinfo/auctex-devel
Re: [AUCTeX-devel] (add-hook 'LaTeX-mode-hook 'turn-on-prettify-symbols-mode)
Uwe Brauerwrites: Hi Uwe, > I have the above setting > (add-hook 'LaTeX-mode-hook 'turn-on-prettify-symbols-mode) > > however when I open a LaTeX file the symbols are not prettified I have > to manually turn off and on the prettify-symbols-mode, can sombody > verify this? I just wanted do debug this issue but with the Emacs copy as of right now (commit 4a703c73305211c780307e3654969ac1a20fb229) I can't reproduce it anymore. With the above add-hook, symbols are instantly prettified when opening some tex file. So it might be some temporary hiccup in emacs. Can you confirm that? Bye, Tassilo ___ auctex-devel mailing list auctex-devel@gnu.org https://lists.gnu.org/mailman/listinfo/auctex-devel
Re: [AUCTeX-devel] (add-hook 'LaTeX-mode-hook 'turn-on-prettify-symbols-mode)
Hi Uwe, 2015-09-01 15:53 GMT+02:00 Uwe Brauer: > On 09/01/2015 05:57 AM, Tassilo Horn wrote: > > Uwe Brauer writes: > > Hi Uwe, > >> I have the above setting >> (add-hook 'LaTeX-mode-hook 'turn-on-prettify-symbols-mode) >> >> however when I open a LaTeX file the symbols are not prettified I have >> to manually turn off and on the prettify-symbols-mode, can sombody >> verify this? > > I just wanted do debug this issue but with the Emacs copy as of right > now (commit 4a703c73305211c780307e3654969ac1a20fb229) I can't reproduce > it anymore. With the above add-hook, symbols are instantly prettified > when opening some tex file. > > So it might be some temporary hiccup in emacs. Can you confirm that? > > Bye, > Tassilo > > > ok I will try once I have a fast internet connection. BTW how can I update > an existing > git directory? git clone git://git.savannah.gnu.org/emacs.git > just clones and complains that the current directory is non empty. In the directory of your repo (or one of its subdirectories) run git pull Bye, Mosè ___ auctex-devel mailing list auctex-devel@gnu.org https://lists.gnu.org/mailman/listinfo/auctex-devel
Re: [AUCTeX-devel] (add-hook 'LaTeX-mode-hook 'turn-on-prettify-symbols-mode)
On 09/01/2015 05:57 AM, Tassilo Horn wrote: Uwe Brauerwrites: Hi Uwe, > I have the above setting > (add-hook 'LaTeX-mode-hook 'turn-on-prettify-symbols-mode) > > however when I open a LaTeX file the symbols are not prettified I have > to manually turn off and on the prettify-symbols-mode, can sombody > verify this? I just wanted do debug this issue but with the Emacs copy as of right now (commit 4a703c73305211c780307e3654969ac1a20fb229) I can't reproduce it anymore. With the above add-hook, symbols are instantly prettified when opening some tex file. So it might be some temporary hiccup in emacs. Can you confirm that? Bye, Tassilo ok I will try once I have a fast internet connection. BTW how can I update an existing git directory? git clone git://git.savannah.gnu.org/emacs.git just clones and complains that the current directory is non empty. BTW2 I receive a git.savannah.gnu.org[0: 208.118.235.72]: errno=Connection timed out error! smime.p7s Description: S/MIME Cryptographic Signature ___ auctex-devel mailing list auctex-devel@gnu.org https://lists.gnu.org/mailman/listinfo/auctex-devel
Re: [AUCTeX-devel] (add-hook 'LaTeX-mode-hook 'turn-on-prettify-symbols-mode)
Uwe Brauerwrites: > ok I will try once I have a fast internet connection. BTW how can I > update an existing git directory? git pull Bye, Tassilo signature.asc Description: PGP signature ___ auctex-devel mailing list auctex-devel@gnu.org https://lists.gnu.org/mailman/listinfo/auctex-devel
[AUCTeX-devel] (add-hook 'LaTeX-mode-hook 'turn-on-prettify-symbols-mode)
Hi I have the above setting (add-hook 'LaTeX-mode-hook 'turn-on-prettify-symbols-mode) however when I open a LaTeX file the symbols are not prettified I have to manually turn off and on the prettify-symbols-mode, can sombody verify this? (Using GNU emacs 25.0.5 and auctex git) Uwe Brauer ___ auctex-devel mailing list auctex-devel@gnu.org https://lists.gnu.org/mailman/listinfo/auctex-devel
Re: [AUCTeX-devel] (add-hook 'LaTeX-mode-hook 'turn-on-prettify-symbols-mode)
On Mon150831 12:59, Uwe Brauer wrote: I have the above setting (add-hook 'LaTeX-mode-hook 'turn-on-prettify-symbols-mode) however when I open a LaTeX file the symbols are not prettified I have to manually turn off and on the prettify-symbols-mode, can sombody verify this? May I add a comment about this? (add-hook 'LaTeX-mode-hook...) has never worked form me (up to emacs 24.5.1). I don't know if it's a bug. But (add-hook 'TeX-mode-hook...) works fine and achieves all intended purposes. J ___ auctex-devel mailing list auctex-devel@gnu.org https://lists.gnu.org/mailman/listinfo/auctex-devel
Re: [AUCTeX-devel] (add-hook 'LaTeX-mode-hook 'turn-on-prettify-symbols-mode)
Uwe Brauerwrites: > I have the above setting > (add-hook 'LaTeX-mode-hook 'turn-on-prettify-symbols-mode) > > however when I open a LaTeX file the symbols are not prettified I have > to manually turn off and on the prettify-symbols-mode, can sombody > verify this? Indeed, I can verify that. I currently don't see what's the problem, and the above does work, e.g., for `emacs-lisp-mode'. I'll have to investigate... Bye, Tassilo ___ auctex-devel mailing list auctex-devel@gnu.org https://lists.gnu.org/mailman/listinfo/auctex-devel