help-zile
[Top][All Lists]
Advanced

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

[zile-devel] [ zile-Bugs-1811724 ] zile cannot put tabs in some files


From: SourceForge.net
Subject: [zile-devel] [ zile-Bugs-1811724 ] zile cannot put tabs in some files
Date: Fri, 12 Oct 2007 08:48:57 -0700

Bugs item #1811724, was opened at 2007-10-11 18:34
Message generated for change (Comment added) made by rrt
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=117089&aid=1811724&group_id=17089

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
>Resolution: Invalid
Priority: 5
Private: No
Submitted By: Brad Langhorst (bwlang)
Assigned to: Nobody/Anonymous (nobody)
Summary: zile cannot put tabs in some files

Initial Comment:
If i use a new text file indent-tabs-mode seems to work fine (hex dump shows 
tabs, not spaces)

but when editing the rsnapshot config file (which is very sensitive to tabs vs. 
spaces) I cannot get get zile to insert a tab instead of spaces.

I've tried:
using a .zile file containing

(setq indent-tabs-mode t)

while working with the file
M-x set-variable
Set variable: indent-tabs-mode
Set indent-tabs-mode to value: t

I'm attaching the problem file.





----------------------------------------------------------------------

>Comment By: Reuben Thomas (rrt)
Date: 2007-10-12 16:48

Message:
Logged In: YES 
user_id=50145
Originator: NO

You're getting confused. Mostly, because you are expecting
indent-tabs-mode to do something. As it says in the sample .zile file, it
affects the behavior of the insert-tab command. However, by default, TAB is
bound to indent-for-tab-command. This is the default binding because zile's
only "mode" is Text mode, and in this mode, Emacs has TAB bound to
indent-for-tab-command by default.

I suggest you do what I do, and bind TAB to tab-to-tab-stop.

Thanks for the bug report. I'll put a note in the FAQ about this. You also
made me notice that tab-to-tab-stop's documentation was not available owing
to its name being incorrectly lexically ordered in a source file. Both
these fixes will feed into a shortly-to-be-released version of Zile.

----------------------------------------------------------------------

Comment By: Brad Langhorst (bwlang)
Date: 2007-10-11 18:41

Message:
Logged In: YES 
user_id=185822
Originator: YES

I've just confirmed that if i put a series of -'s between
#exclude        ???
and 
exclude         *~
exclude         *.tmp

like this
#exclude        ???
-------------------------------
exclude *~
exclude *.tmp

zile correctly puts in a tab character, instead of spaces over the ???
above.



----------------------------------------------------------------------

Comment By: Brad Langhorst (bwlang)
Date: 2007-10-11 18:37

Message:
Logged In: YES 
user_id=185822
Originator: YES

it's the exclude*~ and exclude*.tmp
that i can't fix with zile...
I am able to use emacs to get the tabs in there.
 

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=117089&aid=1811724&group_id=17089



reply via email to

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