Bug 684797 - font problem in emacs LaTeX mode - "verbatim" text displays as small black squares
Summary: font problem in emacs LaTeX mode - "verbatim" text displays as small black sq...
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: emacs
Version: 20
Hardware: i686
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Petr Hracek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-14 14:30 UTC by Jos de Kloe
Modified: 2015-02-27 13:47 UTC (History)
14 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-02-27 13:47:20 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
the mentioned little latex file opend with emacs (25.60 KB, image/png)
2011-03-14 14:30 UTC, Jos de Kloe
no flags Details

Description Jos de Kloe 2011-03-14 14:30:14 UTC
Created attachment 484199 [details]
the mentioned little latex file opend with emacs

Description of problem:

a LaTeX file opened in emacs (in LaTeX mode) shows black rectangles in stead of
characters for all text inside the begin/end verbatim tags.

This little latex example triggers the problem:

>cat latex_verbatim_font_problem.tex
\documentclass[10pt]{article}
\begin{verbatim}
dear all,
\end{verbatim}
\end{document}

The problem only occurs if emacs opens in its own window, not if it opens
inside a text terminal.

The effect is clearly visible on the attached window dump.

Version-Release number of selected component (if applicable):

>emacs --version
GNU Emacs 23.2.1

How reproducible:

always

Steps to Reproduce:
1. create the little latex file as included above and name it:
    latex_verbatim_font_problem.tex
    
2. open it with emacs from the commandline like this: 
    emacs latex_verbatim_font_problem.tex
  
Actual results:

black squares appear for all text within the verbatim keywords

Expected results:

the verbatim text should be displayed in some default font, even if the intended font is not present for whatever reason.

Additional info:

Comment 1 Bobby Powers 2011-03-19 19:55:24 UTC
I'm seeing this on rawhide in emacs 23.3.1 as well

Comment 2 Bobby Powers 2011-03-19 20:11:28 UTC
I fixed this by installing emacs-auctex.  Not sure if this should be a dependency somewhere?  I forget where LaTeX mode is installed from, but it seems that latex-mode needs emacs-auctex.

Comment 3 Jonathan Underwood 2011-03-19 21:11:11 UTC
(In reply to comment #2)
> I fixed this by installing emacs-auctex.  Not sure if this should be a
> dependency somewhere?  I forget where LaTeX mode is installed from, but it
> seems that latex-mode needs emacs-auctex.

No - the latex mode that comes with Emacs shouldn't (and doesn't) require AucTeX to work.

Comment 4 Jos de Kloe 2011-04-11 12:43:56 UTC
Hi,

today I moved to Fedora14 and the problem still persists.

Comment 5 Richard W.M. Jones 2011-04-25 14:46:34 UTC
This bug is present in Fedora 15 too.

emacs-23.2-17.fc15.x86_64

Comment 6 Richard W.M. Jones 2011-04-25 15:13:46 UTC
BTW, installing emacs-auctex (plus the single dependency dvipng),
then restarting emacs, did magically fix the problem for me too.
I have no idea why though.

  Installing : dvipng-1.14-1.fc15.x86_64                                    1/2 
  Installing : emacs-auctex-11.86-6.fc15.noarch                             2/2

Comment 7 jdekloe 2011-06-07 19:31:11 UTC
Also for me the bug is still present in Fedora 15,
and a slightly newer emacs version: emacs-23.2-19.fc15.x86_64

Comment 8 Matthew Gillen 2011-09-21 12:34:20 UTC
(In reply to comment #6)
> BTW, installing emacs-auctex (plus the single dependency dvipng),
> then restarting emacs, did magically fix the problem for me too.

Ditto for me.

Comment 9 jdekloe 2012-01-03 19:48:48 UTC
the same problem is still present in Fedora 16, using emacs version:
emacs-23.3-8.fc16.x86_64

If this is no Fedora specific issue, could someone please report this upstream (or if this has been done already include a reference here).

Comment 10 Matt Hirsch 2012-06-14 02:50:11 UTC
the same problem is still present in Fedora 17, using emacs version:
emacs-24.0.95-1.fc17.x86_64

Comment 11 A.J. 2012-07-19 09:58:34 UTC
Hi all.

I found this discussion when I had the same problem with emacs on cygwin. It is actually a false setting for the font face.

I fixed it (for me):

M-x customize-face (enter) tex-verbatim (enter)

Then edit:
Font Family: *
Font Foundry: courier

Save the options.

The package maintainer may add this setting to the official release.

Comment 12 Jos de Kloe 2012-08-06 20:40:20 UTC
The problem still persists in Fedora 17
(emacs version emacs-24.1-3.fc17.x86_64)

Also I can confirm the workaround presented by A.J. does solve the issue.

A manual addition of the following line to the .emacs file would probably do the same:
(custom-set-faces
  '(tex-verbatim ((t (:foundry "courier" :family "*")))))

Both solutions are workarounds, and I agree this should be fixed in the emacs package itself.

Comment 13 Fedora End Of Life 2012-08-07 16:45:29 UTC
This message is a notice that Fedora 15 is now at end of life. Fedora
has stopped maintaining and issuing updates for Fedora 15. It is
Fedora's policy to close all bug reports from releases that are no
longer maintained. At this time, all open bugs with a Fedora 'version'
of '15' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that
we were unable to fix it before Fedora 15 reached end of life. If you
would still like to see this bug fixed and are able to reproduce it
against a later version of Fedora, you are encouraged to click on
"Clone This Bug" (top right of this page) and open it against that
version of Fedora.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

The process we are following is described here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 14 Jos de Kloe 2012-08-07 21:21:15 UTC
as mentioned in comment 12, this issue is not yet fixed in the emacs package for Fedora 17. Please reopen.

Comment 15 Jos de Kloe 2013-05-24 21:15:15 UTC
Just for the record, the problem seems fixed in Fedora 18 now for software version: emacs-24.2-18.fc18.x86_64

Comment 16 Christoph Höger 2014-02-01 10:45:29 UTC
This problem exists in Fedora 20, emacs-24.3-13.fc20.x86_64

The workaround also still works.

Comment 17 Petr Hracek 2014-04-22 07:18:08 UTC
What do you have in .emacs file?
On my F20 I have installed version emacs-24.16
and all work properly.

Text in verbatim section is shown correctly.

My .emacs file is:
(custom-set-variables
 ;; custom-set-variables was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 '(send-mail-function (quote mailclient-send-it)))
(custom-set-faces
 ;; custom-set-faces was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 )

(desktop-save-mode 1)
(put 'upcase-region 'disabled nil)
(autoload 'rpm-spec-mode "rpm-spec-mode.el" "RPM spec mode."t)

(setq auto-mode-alist(append'(("\\.spec" .rpm-spec-mode)) auto-mode-alist))
(setq user-mail-address "phracek")
(server-start)

Comment 18 Jos de Kloe 2014-04-22 07:31:51 UTC
Just tested again with emacs-24.3-11.fc19.x86_64 and still see the problem:

/usr/bin/emacs --no-site-file -q -l dot_emacs latex_verbatim_font_problem.tex

displays correctly with this minimal dot_emacs:

===
(setq auto-mode-alist () )
(custom-set-variables '(inhibit-startup-screen t))
===

However, if I remove the setq auto-mode-alist command the problem is back again, and the verbatim text is displayed with missing font.

Comment 19 Jos de Kloe 2014-04-22 19:05:27 UTC
emacs-24.3-13.fc20.x86_64 also shows the
 same problem.

Comment 20 Jos de Kloe 2015-01-22 16:03:03 UTC
issue seems solved in fedora21 with emacs-24.4-3.fc21.x86_64
I no longer see the font problem with the minimal dot_emacs as mentioned in comment #18.
If no others object I think this one can be closed.

Comment 21 Petr Hracek 2015-01-22 16:10:05 UTC
The bug is assigned to Fedora 20 where is emacs-24.3.

Comment 22 Petr Hracek 2015-02-27 13:47:20 UTC
The issue is fixed in next release.


Note You need to log in before you can comment on or make changes to this bug.