Sunday, November 14, 2004

Python program debugging in Emacs

Today I tried to debug my python programs:
C-c C-c was not working from python-mode to execute the programs.
I found a solution from here:
http://www.techietalk.org/emacs_python-mode_questions_C-c_C-c_and_broken_docstring_fill-6007726-1282-a.html
--------------------------------------------------------------------------------------------------------------------------------------------------
;; TBD: a horrible hack, but why create new Custom variables?
(let ((cmd (concat (if (eq shell (quote cpython))
                                                  "python"
                                                 "jython")
                            (if (string-equal py-which-bufname "JPython")
 " -" ""))))
--------------------------------------------------------------------------------------------------------------------------------------------------

And I put this macro to my .emacs file (for jumping to exceptions),
But to jump to last exception just press C-x b OR C-x 4 b
(fset 'goto-exception
"\C-a\C-s\"\C-@\C-s\"\C-[OD\367\C-x4f\C-a\C-y\C-k\C-m\C-xo\C-sline\C-@\C-s,\C-[OD\367\C-xo\370got\C-il\C-i\C-m\C-y\C-m")
(global-set-key "\C-x\C-g" 'goto-exception)

Friday, November 12, 2004

My favourites

GNU/Linux, GNU Emacs, Python, Debian

Monday, November 8, 2004

A private test message

This is a private test message.
Let me see how it works

My first test from emacs succeded!

The last entry (and ofcourse this too) succeded.
So I will continue my posting from GNU Emacs.

I started using emacs when I started studying Python
before few months (hmm.. it was one year back now).

Now I am doing a project using Python, PyGTK, Zope
PostgreSQL etc.

Test from emacs

test from emacs

... and thine expectation shall not be cut off.

I think writing is most painfull work (mentally),
But I like this, will continue my thoughts here.

Anoter test

This is just another test entry