[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gnu-emacs] Re: Dired fontifies ugly with tab-width set to 2

From: Eric Marsden
Subject: [Bug-gnu-emacs] Re: Dired fontifies ugly with tab-width set to 2
Date: 14 Sep 2000 18:10:21 +0200
User-agent: Gnus/5.0806 (Gnus v5.8.6) Emacs/20.6

[cced to bug-gnu-emacs]

>>>>> "rl" == Roland Lampka <roland.lampka@ndsatcom.com> writes:

  [with (setq-default tab-width 2)]

  rl> the output of dired (after CTRL-x d) is fontified in a ugly
  rl> manner: all the file names are in warning-face.

try the following: 

  (defadvice dired-readin (around ecm-dired-indent activate)
    "Prevent indentation in dired from using tabs."
    (let ((indent-tabs-mode nil))

[The problem is caused by the call to `indent-rigidly' in
 `dired-readin', which adds an indentation of 2 at the beginning of
 each line in the output of ls. When you have a tab width of 2, a tab
 character is used to produce that indentation. This tab character is
 incorrectly interpreted by the font lock regexps used by dired.]

Eric Marsden                          <URL:http://www.laas.fr/~emarsden>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]