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

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

Re: cperl-mode inserts TAB despite indent-tabs-mode


From: Eric Hanchrow
Subject: Re: cperl-mode inserts TAB despite indent-tabs-mode
Date: Sun, 04 Apr 2004 09:40:57 -0700
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (gnu/linux)

I'm trying to fix this 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?

-- 
But users will not now with glad cries glom on to a language that
gives them no more than what Scheme or Pascal gave them.

        -- Guy Steele, 
http://www.sun.com/research/jtech/pubs/98-oopsla-growing.ps





reply via email to

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