On Thu, 29 Jun 2006, Robert Millan wrote:

; Expand tabs [default: false]
; If disabled, Zile will insert hard tabs (the character \t),
; otherwise it will insert spaces.
(setq expand-tabs false)

do you mean this description of expand-tabs is not accurate?

No, but it is arguably misleading.

Code at least seems to do what the description says:

 if (!lookup_bool_variable("expand-tabs"))
   insert_char_in_insert_mode('\t');
 else
   insert_expanded_tab(insert_char_in_insert_mode);

but I'm obviously missing something, as it doesn't work.

As I explained, TAB is bound to indent-relative, and that doesn't often end up calling that code.

I have discovered that Emacs doesn't have expand-tabs. For that reason, it now seems sensible to me to implement tab-always-indent instead. It has a more sensible behaviour than expand-tabs: setting it to false causes indent-relative to insert a \t. (Actually it's a little more complex than that in Emacs, as there's another level of command indirection, but I don't think I need inflict that on Zile.)

Does this sound like a good solution? As I said before, rebinding TAB will work for you until I implement it.

--
http://rrt.sc3d.org/ | RSA, n.  safety in numbers


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to