Bug 184260 - Unable to insert/paste tabs under some conditions
Summary: Unable to insert/paste tabs under some conditions
Status: RESOLVED DUPLICATE of bug 145664
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-13 23:27 UTC by Sasha Unspecified
Modified: 2012-11-03 14:36 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
"katerc" and ".kateconfig" files which reveal the issue (13.60 KB, application/x-gzip)
2009-02-20 11:30 UTC, Sasha Unspecified
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sasha Unspecified 2009-02-13 23:27:37 UTC
Version:           3.2.0 (using 4.2.00 (KDE 4.2.0), Kubuntu packages)
Compiler:          cc
OS:                Linux (i686) release 2.6.27-11-generic

With current options I am not able to insert a tab -- it gets replaced with spaces. Nor in the beginning, nor in the middle of line. Even more: I am not able even to paste come text with tabs! (they get replaced with spaces).

Kate options:
--Insert spaces instead of tabulators: no.
--Adjust indentation of code pasted from clipboard: no.

Some options are overriden with .kateconfig:
kate: space-indent on; indent-width 2;

As you can see, there is not option that forces tabs to be replaced with spaces. (I only set spaces as indenter, but never asked to replace tabs in the middle of line. And of course I didn't asked to modify pasted text.)
Comment 1 Matt Rogers 2009-02-19 21:49:30 UTC
I could not reproduce this unless I explicitly used the command line (hit F7) and typed 'set-replace-tabs on'
Comment 2 Sasha Unspecified 2009-02-20 11:30:21 UTC
Created attachment 31491 [details]
"katerc" and ".kateconfig" files which reveal the issue

Here I attached "katerc" and ".kateconfig" files which cause the described issue for me. (Other kate-like configs included too, although they seem to unrelated to the issue.)

P.S.: It seems like combination of these files gives "set-replace-tabs on", although no one of these files really contains this option.
Comment 3 Kåre Särs 2009-04-02 11:12:05 UTC
In the projects I work on, the indentation rule is to use 4 spaces (some still use tabs). If I set tab and indentation width to 4 characters and set "Insert spaces instead of tabulators", I can't insert tab characters. Make files need the actual tab character to work, so that is a problem.

Bug 188632 is probably a duplicate of this one.

What is the purpose for the "Insert spaces instead of tabulators" in the "General" tab in the settings? At the moment it totally disables the insertion of tab characters if set. Does this not belong to the "Indentation" tab?

In KDE 3.5, there was also a "Use spaces to indent" which enabled to have space indentation but still use tab characters when needed.

(OT: What does "Keep extra spaces" mean? )

Regards,
   Kåre
Comment 4 Christoph Cullmann 2012-11-03 14:36:43 UTC
Yeah, there needs to be a way to insert a tab, even if the tab key indents and we have space indentation only.

*** This bug has been marked as a duplicate of bug 145664 ***