Patches item #1446700, was opened at 2006-03-10 06:32
Message generated for change (Comment added) made by mhammond
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=551956&aid=1446700&group_id=78018
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: kxroberto (kxroberto)
Assigned to: Nobody/Anonymous (nobody)
Summary: 4 (+1) Patches to speed up edit-help-debug-run-cycle
Initial Comment:
Patches:
4 (+1) Patches to speed up the
edit-help-debug-run-cycle significantly
================================
pywin.framework.interact :
* Ctrl-RETURN in interactive window executes the
command directly in debugger
( very nice to speedup edit-run-cycle 2x; don't know
how to live without;
very helpful also to enter quickly into source code
of imported modules )
pywin.scintilla.view :
* Ctrl-E : "Execute region" : runs code snippet
(auto-unindented), which is marked currently in editor,
in interactive namespace
( very nice to speedup edit-run-cycle 2x; don't know
how to live without; )
( similar to Python mode in XEmacs: "Execute Region" )
( executes currently in __main__.__dict__ ; to be
consistent during debugging
the current interp-namespace should be used; found
no easy link to get this namespace )
* Ctrl-Y : context senitive Python help for smartly
guessed words/funcs around cursor in
"c:/python23/Doc/Python23.chm"
( is hardwired as of now :-( . should take the
CHM-location out of registry )
( should be put to Ctrl-F1 and maybe to a framework
module; Don't know how to bind keys like Ctrl-F1 )
* Ctrl-Q : context senitive PythonWin help for smartly
guessed words/funcs around cursor parallel in
hf= "c:/python23/lib/site-packages/pywin32.chm" and
hf=r"C:\Programme\Microsoft Visual
Studio\MSDN98\98VSa\1033\msdnvs6a.col"
(hard wiring still to be virtualized; )
( win32help.HtmlHelp doesn't raise if file
non-existing, but returns 0; not checked/no error
action as of now )
pywin.mfc.docview , pywin.framework.intpyapp :
* repairs the fatal call from
pywin.mfc.docview.DocTemplate._SetupSharedMenu_ into a
framework module
( that problem crashed py2exe'd apps without
Pythonwin framework, but which use the DocTemplate )
=================
apply:
cd C:/python23/lib/site-packages/pythonwin/pywin
patch -b -p 4 <pywrk.diff
created with:
diff -ur . /iBase/python/pywin-framework-patched-files
>pywrk.diff
----------------------------------------------------------------------
>Comment By: Mark Hammond (mhammond)
Date: 2006-03-22 21:00
Message:
Logged In: YES
user_id=14198
Interesting - this has potential! :)
* I'm not that keen on adopting Ctrl+Enter - that is what I
personally use for 'insert \n into code' - how about
Ctrl+Shift+Enter
* OnKeyCtrlE - print statements should be removed, but a
nice concept!
* hf="c:/python23/Doc/Python23.chm" etc - as you say, "hard
wiring still to be virtualized" - please do! :)
The block:
+ else:
+ hf=r"C:\Programme\Microsoft Visual
Studio\MSDN98\98VSa\1033\msdnvs6a.col"
+ win32help.HtmlHelp(0, hf, win32help.HH_DISPLAY_INDEX, word)
+ hf= "c:/python23/lib/site-packages/pywin32.chm"
+ win32help.HtmlHelp(0, hf, win32help.HH_DISPLAY_INDEX, word)
doesn't look right as it calls HtmlHelp twice. It would be
great to work out how to do that help properly!
* re "repairs the fatal call from
pywin.mfc.docview.DocTemplate._SetupSharedMenu_" - can you
be more specific about the problem you see? I'm not that
happy with that patch - a patch that just changes all
refernces to _SetupSharedMenu, rather than "injecting" it,
would be preferred.
I'm happy to see the interest, and hope you can update your
patch! Just the .diff file is fine (.patch is my
preference, but either is fine :) - no need to .zip, nor to
attach the modified files.
Cheers,
Mark
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=551956&aid=1446700&group_id=78018
|