Bug 646632
Summary: | Generating previews for equations fails | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | James <james> | ||||
Component: | emacs-auctex | Assignee: | Jonathan Underwood <jonathan.underwood> | ||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | low | ||||||
Version: | 13 | CC: | ed, hendrikr, jonathan.underwood, sato_ichi | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | emacs-auctex-11.86-6.fc15 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2011-03-17 18:51:52 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
James
2010-10-25 19:22:43 UTC
I had the same problem in Fedora 13 and 14. There is a patch for this bug in the cvs version of auctex 11.86: http://cvs.savannah.gnu.org/viewvc/auctex/preview/preview.el?root=auctex&r1=1.284&r2=1.285&view=patch I applied that patch to /usr/share/emacs/site-lisp/auctex/preview.el, from the emacs-auctex-el package, then recompiled that elisp file into a .elc file, and it worked. Previews now work in Emacs with auctex. When applying the patch, there was a message that 1 of the 6 patch hunks failed. Namely, the fifth hunk: --------------------------------------------------------- @@ -3512,7 +3519,7 @@ (defconst preview-version (eval-when-compile (let ((name "$Name: $") - (rev "$Revision: 1.284 $")) + (rev "$Revision: 1.285 $")) (or (when (string-match "\\`[$]Name: *release_\\([^ ]+\\) *[$]\\'" name) (setq name (match-string 1 name)) (while (string-match "_" name) --------------------------------------------------------- It looks like the '(let ((name "$Name: $")' line didn't quite match what was in the old preview.el, so I just manually changed the revision number from 1.284 to 1.285 in preview.el before recompiling it. In the patch it should read: --------------------------------------------------------- @@ -3512,7 +3519,7 @@ (defconst preview-version (eval-when-compile (let ((name "$Name: release_11_86 $") - (rev "$Revision: 1.284 $")) + (rev "$Revision: 1.285 $")) (or (when (string-match "\\`[$]Name: *release_\\([^ ]+\\) *[$]\\'" name) (setq name (match-string 1 name)) (while (string-match "_" name) --------------------------------------------------------- Created attachment 479813 [details]
Fix bug in Auctex previews not working in Emacs in Fedora 13/14
Modified patch for /usr/share/emacs/site-lisp/auctex/preview.el from the emacs-auctex-el package.
Save as preview-el.patch then run:
patch /usr/share/emacs/site-lisp/auctex/preview.el preview-el.patch
Then open /usr/share/emacs/site-lisp/auctex/preview.el in Emacs, select the Emacs-Lisp menu and select the "Byte-compile this File".
This bug is also present in current Fedora 15 alpha. The patch from comment 2 fixes this. emacs-auctex-11.86-6.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/emacs-auctex-11.86-6.fc15 emacs-auctex-11.86-6.fc14 has been submitted as an update for Fedora 14. https://admin.fedoraproject.org/updates/emacs-auctex-11.86-6.fc14 emacs-auctex-11.86-6.fc13 has been submitted as an update for Fedora 13. https://admin.fedoraproject.org/updates/emacs-auctex-11.86-6.fc13 emacs-auctex-11.86-6.fc13 has been pushed to the Fedora 13 stable repository. If problems still persist, please make note of it in this bug report. emacs-auctex-11.86-6.fc14 has been pushed to the Fedora 14 stable repository. If problems still persist, please make note of it in this bug report. emacs-auctex-11.86-6.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report. Sato Ichi - many thanks for the patch. |