Bug 768776

Summary: whitespace-mode broken in emacs 23.3.1
Product: [Fedora] Fedora Reporter: robho <robert>
Component: emacsAssignee: Karel Klíč <kklic>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: jonathan.underwood, kklic, rvokal, sdeasey
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-01-18 19:47:34 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
whitespace_test.txt which can be used to reproduce problem.
none
Screenshot showing whitespace-mode working in emacs 23.2.1
none
Screenshot showing broken whitespace-mode in emacs 23.3.1 none

Description robho 2011-12-18 19:45:17 UTC
Created attachment 548437 [details]
whitespace_test.txt which can be used to reproduce problem.

Description of problem:
The whitespace-mode in emacs seems broken in emacs 23.3.1. The mode is supposed to highlight trailing whitespace and other whitespace issues, but no highlighting happens in recent emacs releases.


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

How reproducible:
100 %

Steps to Reproduce:
1. Run "emacs -q whitespace_test.txt". whitespace-test.txt is attached to this bug.
2. Evaluate the lisp code in the file (M-x eval-buffer)
3. Whitespace in the file should be highlighted.
  
Actual results:
No whitespace highlighting happens.

Expected results:
Whitespace problems should be highlighted.

Additional info:
Screenshots are attached showing the expected behaviour (using emacs 23.2.1) and the faulty behaviour (emacs 23.3.1).

Comment 1 robho 2011-12-18 19:46:40 UTC
Created attachment 548438 [details]
Screenshot showing whitespace-mode working in emacs 23.2.1

Comment 2 robho 2011-12-18 19:47:36 UTC
Created attachment 548439 [details]
Screenshot showing broken whitespace-mode in emacs 23.3.1

Comment 3 Stephen 2012-01-18 16:42:15 UTC
You now need to include 'face' in whitespace-style:

(setq whitespace-style (quote (face trailing lines space-before-tab empty space-after-tab)))

Comment 4 robho 2012-01-18 19:47:34 UTC
Thanks Stephen, I didn't read the documentation carefully enough after upgrading emacs.