<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Implementing Notepad&#8217;s .LOG Feature with PyPN</title>
	<atom:link href="http://untidy.net/blog/2008/05/28/implementing-notepads-log-feature-with-pypn/feed/" rel="self" type="application/rss+xml" />
	<link>http://untidy.net/blog/2008/05/28/implementing-notepads-log-feature-with-pypn/</link>
	<description>simon steele writes about stuff...</description>
	<lastBuildDate>Sun, 09 Oct 2011 17:28:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Guillermo</title>
		<link>http://untidy.net/blog/2008/05/28/implementing-notepads-log-feature-with-pypn/comment-page-1/#comment-42650</link>
		<dc:creator>Guillermo</dc:creator>
		<pubDate>Wed, 15 Oct 2008 14:34:56 +0000</pubDate>
		<guid isPermaLink="false">http://untidy.net/blog/?p=225#comment-42650</guid>
		<description>Update to Python 2.6: PN gives an error when starting (can&#039;t find python26.dll). I tried the default installation for Python, same. I removed pypn (for 2.6, b853) and reinstalled, same. I reinstalled PN b853, same. 

I reverted to Python 2.5.2. No error. Scripts work. .LOG does not insert date (but moves to the EOF). BUT I REALIZED THAT THERE IS PROBABLY AN ERROR IN THE SCRIPT!! I wish I knew some Python to solve this myself. Look at the following situations, which I found trying to minimalize the behavior:

1. The logfile contains the text .LOG in the first line, plus some lines below (either empty, or with text. In this case, the dotlog script does not work.

2. The logfile contains JUST the text .LOG and nothing else, NOT EVEN A NEWLINE at the end of the first (and only) line. In this case, the dotlog script works as expected, inserting a blank line, the date, another blank line, and moving the cursor to this last!! 

There is surely a trivial bug in the sript...

Guillermo</description>
		<content:encoded><![CDATA[<p>Update to Python 2.6: PN gives an error when starting (can&#8217;t find python26.dll). I tried the default installation for Python, same. I removed pypn (for 2.6, b853) and reinstalled, same. I reinstalled PN b853, same. </p>
<p>I reverted to Python 2.5.2. No error. Scripts work. .LOG does not insert date (but moves to the EOF). BUT I REALIZED THAT THERE IS PROBABLY AN ERROR IN THE SCRIPT!! I wish I knew some Python to solve this myself. Look at the following situations, which I found trying to minimalize the behavior:</p>
<p>1. The logfile contains the text .LOG in the first line, plus some lines below (either empty, or with text. In this case, the dotlog script does not work.</p>
<p>2. The logfile contains JUST the text .LOG and nothing else, NOT EVEN A NEWLINE at the end of the first (and only) line. In this case, the dotlog script works as expected, inserting a blank line, the date, another blank line, and moving the cursor to this last!! </p>
<p>There is surely a trivial bug in the sript&#8230;</p>
<p>Guillermo</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guillermo</title>
		<link>http://untidy.net/blog/2008/05/28/implementing-notepads-log-feature-with-pypn/comment-page-1/#comment-42647</link>
		<dc:creator>Guillermo</dc:creator>
		<pubDate>Tue, 14 Oct 2008 20:26:15 +0000</pubDate>
		<guid isPermaLink="false">http://untidy.net/blog/?p=225#comment-42647</guid>
		<description>Thanks for the new build!

&gt; the dotlog script isn’t meant to show up in that window, 

OK.

&gt; as it’s not something you need to run manually. It just looks at every file you open automatically

Certainly. I understand that.

&gt; If python is showing error messages, 

No messages in the output window (which works, the Hello script writes there).

I installed the new build and there are two changes from my previous report: 1) no more flickering of the screen when loading a file with the .LOG line. 2) the script is doing something, since the cursor is sent to the end of the file (as expected). No date insertion, though. This is strange...

I will update to Python 2.6 and let you know if anything changes. Not today.

Cheers. Thanks again.</description>
		<content:encoded><![CDATA[<p>Thanks for the new build!</p>
<p>&gt; the dotlog script isn’t meant to show up in that window, </p>
<p>OK.</p>
<p>&gt; as it’s not something you need to run manually. It just looks at every file you open automatically</p>
<p>Certainly. I understand that.</p>
<p>&gt; If python is showing error messages, </p>
<p>No messages in the output window (which works, the Hello script writes there).</p>
<p>I installed the new build and there are two changes from my previous report: 1) no more flickering of the screen when loading a file with the .LOG line. 2) the script is doing something, since the cursor is sent to the end of the file (as expected). No date insertion, though. This is strange&#8230;</p>
<p>I will update to Python 2.6 and let you know if anything changes. Not today.</p>
<p>Cheers. Thanks again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon</title>
		<link>http://untidy.net/blog/2008/05/28/implementing-notepads-log-feature-with-pypn/comment-page-1/#comment-42640</link>
		<dc:creator>Simon</dc:creator>
		<pubDate>Tue, 14 Oct 2008 09:15:26 +0000</pubDate>
		<guid isPermaLink="false">http://untidy.net/blog/?p=225#comment-42640</guid>
		<description>Hi, the dotlog script isn&#039;t meant to show up in that window, as it&#039;s not something you need to run manually. It just looks at every file you open automatically and checks if it needs to do its stuff.

If python is showing error messages, they should show up in the output window - I&#039;d be interested to see them.</description>
		<content:encoded><![CDATA[<p>Hi, the dotlog script isn&#8217;t meant to show up in that window, as it&#8217;s not something you need to run manually. It just looks at every file you open automatically and checks if it needs to do its stuff.</p>
<p>If python is showing error messages, they should show up in the output window &#8211; I&#8217;d be interested to see them.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guillermo</title>
		<link>http://untidy.net/blog/2008/05/28/implementing-notepads-log-feature-with-pypn/comment-page-1/#comment-42636</link>
		<dc:creator>Guillermo</dc:creator>
		<pubDate>Wed, 08 Oct 2008 19:12:07 +0000</pubDate>
		<guid isPermaLink="false">http://untidy.net/blog/?p=225#comment-42636</guid>
		<description>Simon, I had forgotten to mention this, and I was reminded by the recent 840-devel build. I wasn&#039;t able to have this work. I have Python 2.52, and PyPN for it(pypn-0.9.839-py25.zip). The scripts windows does ot list the dotlog script. It does list the Hello and Text ones, and they work fine. I don&#039;t speak Python, so I wasn&#039;t able to modify your dotlog.py :-( I have deleted the dotlog.py, since there is a twinkling of the windows when starting PN, which makes me suspect there are some error messages from Python trying to come through... By the way, it&#039;s XP Pro.
Why didn&#039;t you use Perl?;-)
I continue using PN for my fortran, perl, html and general text editing... (not latex, though...)</description>
		<content:encoded><![CDATA[<p>Simon, I had forgotten to mention this, and I was reminded by the recent 840-devel build. I wasn&#8217;t able to have this work. I have Python 2.52, and PyPN for it(pypn-0.9.839-py25.zip). The scripts windows does ot list the dotlog script. It does list the Hello and Text ones, and they work fine. I don&#8217;t speak Python, so I wasn&#8217;t able to modify your dotlog.py <img src='http://untidy.net/blog/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' />  I have deleted the dotlog.py, since there is a twinkling of the windows when starting PN, which makes me suspect there are some error messages from Python trying to come through&#8230; By the way, it&#8217;s XP Pro.<br />
Why didn&#8217;t you use Perl?;-)<br />
I continue using PN for my fortran, perl, html and general text editing&#8230; (not latex, though&#8230;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guillermo Abramson</title>
		<link>http://untidy.net/blog/2008/05/28/implementing-notepads-log-feature-with-pypn/comment-page-1/#comment-42587</link>
		<dc:creator>Guillermo Abramson</dc:creator>
		<pubDate>Fri, 30 May 2008 00:38:41 +0000</pubDate>
		<guid isPermaLink="false">http://untidy.net/blog/?p=225#comment-42587</guid>
		<description>Right. Thanks. Why did I think that it was included by default? I&#039;ll do it tomorrow. It will sure work as you say.
Regards,
Guillermo</description>
		<content:encoded><![CDATA[<p>Right. Thanks. Why did I think that it was included by default? I&#8217;ll do it tomorrow. It will sure work as you say.<br />
Regards,<br />
Guillermo</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon</title>
		<link>http://untidy.net/blog/2008/05/28/implementing-notepads-log-feature-with-pypn/comment-page-1/#comment-42586</link>
		<dc:creator>Simon</dc:creator>
		<pubDate>Thu, 29 May 2008 16:11:56 +0000</pubDate>
		<guid isPermaLink="false">http://untidy.net/blog/?p=225#comment-42586</guid>
		<description>Hi Guillermo, have you installed PyPN? See here:

http://pnotepad.org/docs/howto/install_pypn

Note that when running pn --findexts on Vista you may need to do so from an admin command prompt.</description>
		<content:encoded><![CDATA[<p>Hi Guillermo, have you installed PyPN? See here:</p>
<p><a href="http://pnotepad.org/docs/howto/install_pypn" rel="nofollow nofollow">http://pnotepad.org/docs/howto/install_pypn</a></p>
<p>Note that when running pn &#8211;findexts on Vista you may need to do so from an admin command prompt.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guillermo Abramson</title>
		<link>http://untidy.net/blog/2008/05/28/implementing-notepads-log-feature-with-pypn/comment-page-1/#comment-42585</link>
		<dc:creator>Guillermo Abramson</dc:creator>
		<pubDate>Thu, 29 May 2008 14:29:20 +0000</pubDate>
		<guid isPermaLink="false">http://untidy.net/blog/?p=225#comment-42585</guid>
		<description>Hi, Simon. Thanks again for this. I tried it, but for some reason it does not work. Is it necessary to do something, like enabling scripts or something like that?

I created dotlog.py, put it in [PN dir]\scripts (which I created, it wasn&#039;t there), closed PN, run PN, open a log, and nothing happened.

Cheers,

Guillermo</description>
		<content:encoded><![CDATA[<p>Hi, Simon. Thanks again for this. I tried it, but for some reason it does not work. Is it necessary to do something, like enabling scripts or something like that?</p>
<p>I created dotlog.py, put it in [PN dir]\scripts (which I created, it wasn&#8217;t there), closed PN, run PN, open a log, and nothing happened.</p>
<p>Cheers,</p>
<p>Guillermo</p>
]]></content:encoded>
	</item>
</channel>
</rss>

