Bug 512623
Summary: | Editing .tex files doesn't get LaTeX mode | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Horst H. von Brand <vonbrand> |
Component: | xemacs | Assignee: | Jerry James <loganjerry> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | rawhide | CC: | loganjerry, sjoerd |
Target Milestone: | --- | Keywords: | Reopened |
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | 21.5.29-6.fc11 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2009-11-11 15:00:54 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: |
Works for me: xemacs -vanilla something-or-other.tex gives me an empty buffer in LaTeX mode. The Fedora XEmacs is built without xft support, so I don't see how the last couple of frames in the backtrace you attached could be possible. Indeed, if I evaluate this in *scratch*: (x-font-create-object "*" (default-x-device)) I get this: [:family nil :weight nil :style 0 :size nil :registry nil :encoding nil] Are you certain that you are running the Fedora binary? Did you build an xft-enabled XEmacs binary at some time? xemacs-21.5.29-1.fc12.x86_64 is what I run here. I haven't built any xemacs binaries for a _very_ long time now. "rpm -V xemacs" is clean. /usr/bin/xemacs --> /etc/alternatives/xemacs --> /usr/bin/xemacs-21.5-b29, running the last one by hand directly gives exactly the same result. And I do get the same mess with a (mostly newly installed) machine (F 11 --> rawhide). That account has just the standard ~/.xemacs "xemacs --vanilla" gives a "Error: Can't initialize XIM: Can't get fontset resource for Input Method", and the gnome-terminal shows: Warning: Missing charsets in String to FontSet conversion Warning: Cannot convert string "-*-helvetica-bold-r-*-*-*-120-*-*-*-*-iso10646-1, -*-helvetica-bold-r-*-*-*-120-*-*-*-*-iso8859-*, *" to type FontSet Warning: Missing charsets in String to FontSet conversion Warning: Unable to load any usable fontset Warning: Missing charsets in String to FontSet conversion Warning: Unable to load any usable fontset For the above expression I get just: "Symbol's function definition is void: x-font-create-object" "strings /usr/bin/xemacs-21.5-b29 | grep xft" gives: x-font-size-xft x-find-xft-font-of-size x-find-smaller-font-xft x-make-font-bold-italic-xft xft-fonts x-find-larger-font-xft x-make-font-unitalic-xft x-make-font-unbold-xft x-make-font-italic-xft x-make-font-bold-xft Still here with: xemacs-21.5.29-2.fc12.x86_64 xemacs-common-21.5.29-2.fc12.x86_64 xemacs-info-21.5.29-2.fc12.noarch xemacs-packages-base-20090217-2.fc12.noarch xemacs-packages-extra-20090217-2.fc12.noarch xemacs-packages-extra-info-20090217-2.fc12.noarch I can reproduce this now. I'm looking into it. I believe that I have found and fixed the bug. After the next Rawhide compose, could you try xemacs-21.5.29-3.fc12 and let me know whether it solves the problem for you? Created attachment 358662 [details]
Backtrace buffer in xemacs-21.5.29-3.fc12.x86_64
Connected via ssh + screen (have old xemacs here), ran "xemacs /tmp/xyz.tex" (that file doesn't exist), got the backtrace given. Plain "xemacs" opens OK.
Thanks for trying it. Stephen Turnbull thinks he has a fix for this problem. I'll make a new package shortly with his patch in. Watch for xemacs-21.5.29-4.fc12 after the next compose and let me know if that works. Stephen's patch led to a build failure. I'll post to this bug when we've got something that works. Sorry for the delay. xemacs-21.5.29-4.fc11 has been submitted as an update for Fedora 11. http://admin.fedoraproject.org/updates/xemacs-21.5.29-4.fc11 I believe I have finally isolated the correct fix for both bugs. There is a new build for Rawhide, xemacs-21.5.29-5.fc12, which I believe will work for you. Let me know if you have any more trouble. Just tried it here (also had old xemacs-packages-*, updated those). It works! Thanks! [But now the font looks funny... probably just needs adjusting on my side. But particularly, the italic (slanted?) version (in e.g. LaTeX mode what shows as \emph{some stuff here}) is quite a bit too small. OK, let me correct that: The uppercase letters look OK in size, lowercase letters are smaller than the regular ones. Perhaps the exact set of fonts used isn't ideal?] BTW, starting xemacs still spews: Warning: Missing charsets in String to FontSet conversion Warning: Cannot convert string "-*-helvetica-bold-r-*-*-*-120-*-*-*-*-iso10646-1, -*-helvetica-bold-r-*-*-*-120-*-*-*-*-iso8859-*, *" to type FontSet Warning: Missing charsets in String to FontSet conversion Warning: Unable to load any usable fontset Warning: Missing charsets in String to FontSet conversion Warning: Unable to load any usable fontset Almost forgot: Evaling in *scratch* I now get: (x-font-create-object "*" (default-x-device)) [:family nil :weight nil :style 0 :size nil :registry nil :encoding nil] The funny looking fonts are an unfortunate side effect of using the Lucida bitmap fonts. I don't know how to fix that. :-( As for the spewed warnings, please see comment 17 in bz #478370 for an explanation. Hopefully someday we will get the Xft implementation to a usable state, and then all this legacy font brain damage can just go away. xemacs-21.5.29-4.fc11 has been pushed to the Fedora 11 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update xemacs'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-9964 xemacs-21.5.29-4.fc11 has been pushed to the Fedora 11 stable repository. If problems still persist, please make note of it in this bug report. With xemacs-21.5.29-4.fc11.x86_64 I still get: $ rpm -q xemacs xemacs-21.5.29-4.fc11.x86_64 $ ll /usr/bin/xemacs lrwxrwxrwx 1 root root 24 Oct 4 10:47 /usr/bin/xemacs -> /etc/alternatives/xemacs $ ls -l /etc/alternatives/xemacs lrwxrwxrwx 1 root root 24 Oct 4 10:47 /etc/alternatives/xemacs -> /usr/bin/xemacs-21.5-b29 $ xemacs -vanilla Warning: Missing charsets in String to FontSet conversion Warning: Cannot convert string "-*-helvetica-bold-r-*-*-*-120-*-*-*-*-iso10646-1, -*-helvetica-bold-r-*-*-*-120-*-*-*-*-iso8859-*, *" to type FontSet Warning: Missing charsets in String to FontSet conversion Warning: Unable to load any usable fontset Warning: Missing charsets in String to FontSet conversion Warning: Unable to load any usable fontset Plus I get a message in the *Warnings* buffer saying (1) (xintl/error) Can't initialize XIM: Can't get fontset resource for Input Method when I open a text file. That's a different problem. Please read comment 13. Created attachment 363873 [details] Contents of the *Warnings* buffer for a .tex file Fixed comment #16's warnings by install terminus-fonts, but the fundamental problem is still here. When trying to edit a .tex file in console mode or with xemacs -nw, it falls back to Fundamental mode with the following error in the command area: Warning: Error in File mode specification: Invalid argument: Must be string, ve\ and the error buffer is attached. Using the xemacs purported to fix this problem: xemacs-21.5.29-4.fc11.i586 xemacs-packages-base-20090217-3.fc11.noarch xemacs-common-21.5.29-4.fc11.i586 xemacs-packages-extra-20090217-2.fc11.noarch and moved all my own init files out of the way to ensure a default startup. I can reproduce. That the problem has resurfaced without a new build of xemacs being made points to some kind of font change on Fedora. I'll try to isolate it. Here xemacs-21.5.29-5.fc12.x86_64 works fine (no funky fonts, though). xemacs-21.5.29-5.fc11 has been submitted as an update for Fedora 11. http://admin.fedoraproject.org/updates/xemacs-21.5.29-5.fc11 I think I have a solution to the problem. Those of you still suffering from it, please try out one of the new builds. I have submitted a tag request to get the new build into F-12, and a new build is heading for the F-11 testing repository. As a side effect, we get the nicer courier font back again on X. xemacs-21.5.29-6.fc11 has been pushed to the Fedora 11 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update xemacs'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-11027 xemacs-21.5.29-6.fc11 has been pushed to the Fedora 11 stable repository. If problems still persist, please make note of it in this bug report. |
Created attachment 354292 [details] Contents of the *Warnings* buffer when starting emacs on a (non-existent) LaTeX file Description of problem: Getting a .tex file gives a buffer full of warnings and Fundamental mode. Version-Release number of selected component (if applicable): xemacs-common-21.5.29-1.fc12.x86_64 xemacs-info-21.5.29-1.fc12.noarch xemacs-packages-base-20090217-1.fc11.noarch xemacs-packages-extra-20090217-1.fc11.noarch xemacs-packages-extra-info-20090217-1.fc11.noarch How reproducible: Each time a LaTeX file is loaded Steps to Reproduce: 1. xemacs -vanilla something-or-other.tex 2. 3. Actual results: Fundamental mode, buffer full of warnings (attached) Expected results: LaTeX mode Additional info: