On Thu, Mar 31, 2011 at 03:16:23AM +0800, zwz wrote:
> I found the tip of saving the last save-path, and I modified it a little
> so as to rename the file-name according to what is selected in the
> buffer.
> Here is the problematic code
> #+BEGIN_SRC js
> <snip>
> #+END_SRC
> Some problem happens as
>
> C-x C-s, and C-g immediately; and then C-x C-s again, the saving
> directory changes.
>
Can you explain more about this problem?
> And another problem is with download_finished_hook.
> After add_hook("download_finished_hook", org_download),
> I found that the function org_download is called 7 times after C-x C-s
> some buffer.
>
This one is hard to explain. download_finished_hook is called by
onDownloadStateChange in our implementation of
Ci.nsIDownloadProgressListener when the download state is
Ci.nsIDownloadManager.DOWNLOAD_FINISHED. That should only happen once per
download. Is it possible that you added multiple copies of your
org_download to the hook as anonymous functions?
--
John Foerch
_______________________________________________
Conkeror mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/conkeror