[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: fill-comment-paragraph appears to insert TAB despite indent-tabs-mod
From: |
Stefan Monnier |
Subject: |
Re: fill-comment-paragraph appears to insert TAB despite indent-tabs-mode |
Date: |
04 Apr 2004 16:19:12 -0400 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
> I'm trying to fix the attached bug, and am not getting very far. However,
> I have at least located the code that is inserting a tab:
> fill-comment-paragraph (CVS version 1.170), line 814. That code
> looks suspicious to me:
> (if has-code-and-comment
> (concat (make-string (/ (current-column) tab-width) ?\t)
> (make-string (% (current-column) tab-width) ?\ )
> (buffer-substring (point) comin))
> (buffer-substring (line-beginning-position) comin))
> It seems to be inserting tabs unconditionally, rather than honoring
> `indent-tabs-mode'. Is this correct?
You got it!
And I can happily reject the fault onto someone else ;-) : the bug was
already present in lisp-mode for ages, I just have spread it to many
more modes.
Should be fixed now, thank you.
Stefan
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: fill-comment-paragraph appears to insert TAB despite indent-tabs-mode,
Stefan Monnier <=