From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: Need Help on Whitespace-mode in Emacs 24.1.1 Date: Sun, 26 Aug 2012 10:17:49 +0200 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1345969080 29651 80.91.229.3 (26 Aug 2012 08:18:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 26 Aug 2012 08:18:00 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Fan Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Aug 26 10:18:00 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1T5Y2i-0002MT-5O for geh-help-gnu-emacs@m.gmane.org; Sun, 26 Aug 2012 10:18:00 +0200 Original-Received: from localhost ([::1]:33937 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T5Y2g-0004fO-5g for geh-help-gnu-emacs@m.gmane.org; Sun, 26 Aug 2012 04:17:58 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:60119) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T5Y2b-0004fH-Ee for help-gnu-emacs@gnu.org; Sun, 26 Aug 2012 04:17:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T5Y2Z-0007ZL-J8 for help-gnu-emacs@gnu.org; Sun, 26 Aug 2012 04:17:53 -0400 Original-Received: from mout.web.de ([212.227.15.3]:65226) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T5Y2Z-0007ZF-9b for help-gnu-emacs@gnu.org; Sun, 26 Aug 2012 04:17:51 -0400 Original-Received: from [192.168.178.8] ([95.222.201.211]) by smtp.web.de (mrweb001) with ESMTPA (Nemesis) id 0Mbhiv-1TNuGm23DZ-00IwyF; Sun, 26 Aug 2012 10:17:49 +0200 In-Reply-To: X-Mailer: Apple Mail (2.1084) X-Provags-ID: V02:K0:6AuFHtty+bIWNg7nJPt+QFvVf/ZMoMqqXhJ6EwILpD+ MK1zhdBkzRoK++ftnbcuQ3UcguEHV8O51JLbeeILYvrAFVELLB Q2hr7WPDXgkkyn0ohoOJ9XQzBxyjzURIHbnA3OiMqJDjXhs/c7 jLsiG1/uPY1MFI18NhJ0levCOiIzUiuupO1NQe7c+ZQSsHt4el YkaeEB6fZ2oZbioDMIbQw== X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 212.227.15.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:86515 Archived-At: Am 26.08.2012 um 05:15 schrieb Fan: > In *Warnings* buffer: >=20 > Warning (initialization): An error occurred while loading = `/home/.emacs': >=20 > Symbol's value as variable is void: font-lock-defaults-alist This is the actual error! When I have your seven lines (message "Enabling whitespace mode ...") (require 'whitespace) (set-face-background 'whitespace-tab "lime green") (setq-default whitespace-style '(tabs trailing)) (global-whitespace-mode t) (message "Enabled whitespace mode.") (setq-default whitespace-style '(face tabs trailing)) in my .emacs it launches and works correctly, including only one "WS" in = the mode-line. Obviously later in your init file something tries to = manipulate the variable font-lock-defaults-alist which does not exist in = GNU Emacs 24. First correct this error! -- Greetings Pete (: _ / __ - - _/ \__/_/ - - (=B4`) (=B4`) - - `=B4 `=B4