List Info

Thread: onSave hook




onSave hook
country flaguser name
United States
2008-02-11 02:57:26
Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=4770918

By: frietsch

Hi,

I'd like to run the Python re-indent script on every save.
PyDev Scripting seams
to be a good choice for that. However, I'm not sure about
one thing:

http://fabioz.com/pydev/manual_articles_scripting.html
says "onSave: want to
do something when the PyEdit saves its content? That's your
chance..."

So WHEN is it called exactly? Before the save? When the save
is fired? Or after
the save? I mean, can I trust on the file already been
written completely to
disk once I get the "onSave" event?

Thank you,
Oliver

____________________________________________________________
__________
You are receiving this email because you elected to monitor
this forum.
To stop monitoring this forum, login to SourceForge.net and
visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=
293649

------------------------------------------------------------
-------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Pydev-users mailing list
Pydev-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pydev-users


RE: onSave hook
country flaguser name
United States
2008-02-13 14:46:53
Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=4776486

By: fabioz

It's called after the save.

Cheers,

Fabio

____________________________________________________________
__________
You are receiving this email because you elected to monitor
this forum.
To stop monitoring this forum, login to SourceForge.net and
visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=
293649

------------------------------------------------------------
-------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Pydev-users mailing list
Pydev-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pydev-users


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )