By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
439,944 Members | 1,819 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 439,944 IT Pros & Developers. It's quick & easy.

python mode indentation problem

P: n/a
does anyone know why the Python mode in emacs uses spaces for first
level indentation but one tab for second level?

i'm using emacs 21.3.50.1.
Xah
xa*@xahlee.org
http://xahlee.org/PageTwo_dir/more.html

Jul 18 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
Xah Lee, Sábado 15 Janeiro 2005 13:24, wrote:
does anyone know why the Python mode in emacs uses spaces for first
level indentation but one tab for second level?

i'm using emacs 21.3.50.1.
Xah
xa*@xahlee.org
http://xahlee.org/PageTwo_dir/more.html


It doesn't. It uses spaces for everything, unless told otherwise.

--
Godoy. <go***@ieee.org>

Jul 18 '05 #2

P: n/a
Xah Lee wrote:
does anyone know why the Python mode in emacs uses spaces for first
level indentation but one tab for second level?

i'm using emacs 21.3.50.1.


You probably have tab-width set to 8 spaces, but indentation in python
set to 4 spaces.

-- MJF
Jul 18 '05 #3

P: n/a
© ok, here's the ordeal.
©
© for i in range(5):
© print i
© for i in range(2):
© print i, 'tt'
© for i in [3]:
© print i
© for i in [32]:
© print i
©
© # 1 level, 4 space
© # 2 level, 1 tab
© # 3 level, 1 tab, 4 spaces
© # 4 level, 2 tabs.
©
© who the fuck coded the python mode in emacs? fuckhead please peruse:
© http://xahlee.org/UnixResource_dir/w...e_license.html
©
© PS Thanks for the tip on (setq-default indent-tabs-mode nil).
©
© Xah
© xa*@xahlee.org
© http://xahlee.org/PageTwo_dir/more.html

Jul 18 '05 #4

P: n/a
Xah Lee wrote:

[...]
©
© who the fuck coded the python mode in emacs? fuckhead please peruse:
© http://xahlee.org/UnixResource_dir/w...e_license.html
©

Pure egotism. Not to mention bad language.

regards
Steve
--
Steve Holden http://www.holdenweb.com/
Python Web Programming http://pydish.holdenweb.com/
Holden Web LLC +1 703 861 4237 +1 800 494 3119
Jul 18 '05 #5

P: n/a
[Xah Lee]
....
© who the fuck coded the python mode in emacs?
The major contributors are listed at the top of python-mode.el.
fuckhead please peruse:
© http://xahlee.org/UnixResource_dir/w...e_license.html


OK, I read it, but have no idea what point you're trying to make here.
If, for example, you want to re-release it under a license saying you
take financial responsibility for any behavior a user dislikes, be my
guest.
Jul 18 '05 #6

P: n/a
Xah Lee wrote:
© ok, here's the ordeal.
©
© for i in range(5):
© print i
© for i in range(2):
© print i, 'tt'
© for i in [3]:
© print i
© for i in [32]:
© print i
©
© # 1 level, 4 space
© # 2 level, 1 tab
© # 3 level, 1 tab, 4 spaces
© # 4 level, 2 tabs.
©
© who the fuck coded the python mode in emacs? fuckhead please peruse:
© http://xahlee.org/UnixResource_dir/w...e_license.html


I hope you never need a favor or interview for a job with someone who
reads news groups. You're committing eSuicide by posting insulting rants
such as this. All you accomplish is to isolate yourself.

Try to be friendly. Ideas are only half the battle... presentation is
the other half. You have some good and valid ideas, but your
presentation is offensive and condescending. Your ideas are like golden
coins wrapped in horse shit. Personally, I've had enough of your horse
shit... perhaps I speak for others as well.
Jul 18 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.