Re: Question about File > Open and the "Untitled" buffer

From: mitchell <mforal.n....at.gmail.com>
Date: Tue, 18 May 2010 11:40:18 -0700 (PDT)

Robert,

On May 18, 4:14 am, Robert <ro....at.web.de> wrote:
> One more untitled buffer. If there is an error when processing a file
> via user_dofile an Untitled buffer gets created, which leads to the
> error message not being "on top". There is a new empty view over the
> restored session files.
> I attached a patch to handle the file_open events if there was an
> error. That way you get the error message on top.
>
> +    if not ret then
> +      textadept.print(errmsg)
> +      -- close initial 'Untitled' buffer
> +      textadept.events.handle('file_opened')
> +    end
>

Okay, thanks.

Mitchell

> Robert
>
> --
> You received this message because you are subscribed to the Google Groups "textadept" group.
> To post to this group, send email to textadept.at.googlegroups.com.
> To unsubscribe from this group, send email to textadept+unsubscribe.at.googlegroups.com.
> For more options, visit this group athttp://groups.google.com/group/textadept?hl=en.
>
>  sessionloaderrmessage.patch
> < 1KViewDownload

-- 
You received this message because you are subscribed to the Google Groups "textadept" group.
To post to this group, send email to textadept.at.googlegroups.com.
To unsubscribe from this group, send email to textadept+unsubscribe.at.googlegroups.com.
For more options, visit this group at http://groups.google.com/group/textadept?hl=en.
Received on Tue 18 May 2010 - 14:40:18 EDT

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 11:43:03 EST