emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: [unicode-2] whitespace-auto-cleanup always replaces leading spaces w


From: martin rudalics
Subject: Re: [unicode-2] whitespace-auto-cleanup always replaces leading spaces with tabs
Date: Tue, 24 Apr 2007 14:33:50 +0200
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

>>What happens if you set (customize) `whitespace-check-indent-whitespace'
>>_before_ you toggle `whitespace-global-mode'?
>
>
> No difference; sequences of 8 spaces in indentation are still highlighted.

I don't understand.  If my .emacs 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.
 '(whitespace-check-indent-whitespace nil))

and I launch Emacs without arguments, activate `whitespace-global-mode',
and open some file, sequences of eight spaces at bol do not get
highlighted.  Maybe someone else can check this.

>  * whitespace-check-indent-whitespace--when non-nil--doesn't play
>    nicely with indent-tabs-mode; this has been the case for as long as
>    I know.

If my .emacs 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.
 '(indent-tabs-mode nil))

and I launch Emacs without arguments, activate `whitespace-global-mode',
and open some file, sequences of eight spaces at bol do not get
highlighted.  Again I ask others to check this.

>  * Setting whitespace-check-indent-whitespace to nil simply doesn't
>    work. That is, it doesn't turn off checking (and correcting)
>    indentation whitespace.  This is (relatively) new.

I changed `whitespace-indent-regexp' in November 2006 from

(concat "^\\(\t*\\)    " "    ")

to

"^\t*\\(        \\)+"

so maybe that's a reason.





reply via email to

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