jed-users mailing list

[2024 Date Index] [2024 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: [jed-users] No tabs in python mode


>In jed0.99.20-134, USE_TABS was made into a buffer-local variable.
>New buffers will get created with the value of USE_TABS_DEFAULT.  So
>to disable tabs everywhere, put
>
>   USE_TABS_DEFAULT = 0;
>
>in your jedrc file.  To disable tabs for python_mode, use:
>
>   define python_mode_hook ()
>   {
>      USE_TABS = 0;
>   }
>
>Hopefully this resolves the issue.

No it doesn't work. But as I wrote, I already found a solution, that works for
me:

public define python_mode_hook ()
{
    set_blocal_var(0, "py_use_tab");
}

When a buffer is opened in python mode it tries to guess whether tabs or
spaces should be used and writes the result in py_use_tab. Using the code above
overwrites this guess.

Thanks, Berni

PS: If anyone still cares, I'm using Debian stable, my jed versions is

$> jed --version
jed version: pre0.99.20-178/Unix
 Compiled with GNU C 12.2
S-Lang version: 2.3.3

jed compile-time options:
 +LINE_ATTRIBUTES +BUFFER_LOCAL_VARS +SAVE_NARROW +TTY_MENUS
 +EMACS_LOCKING +MULTICLICK +SUBPROCESSES +DFA_SYNTAX +ABBREVS
 +COLOR_COLUMNS +LINE_MARKS +GPM_MOUSE +IMPORT

Using JED_ROOT=/usr/share/jed

--
Bernhard Seckinger <bernhard.seckinger@xxxxxxxxxx>
_______________________________________________
For list information, visit <http://jedsoft.org/jed/mailinglists.html>.


[2024 date index] [2024 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]