Re: Is it OK to use 'compile' and 'run' for hypertext documents?

From: mitchell <mforal.n....at.gmail.com>
Date: Fri, 7 May 2010 11:33:58 -0700 (PDT)

Jay,

On May 6, 12:26 am, Jay <robert.jay.go....at.gmail.com> wrote:
> One thing I had fixed(?) in my 2.0 version of Textadept, was that the
> compile function doesn't save the buffer before doing its magic (which
> has caused me confusion in the past)
>
> function compile()
>   if not buffer.filename then return end
>   -- FIX --
>   buffer:save()
>   -- END --
>   local action = compile_command[buffer.filename:match('[^.]+$')]
>   if action then execute(type(action) == 'function' and action() or
> action) end
> end
>
> It would be nice if this could get pushed back into the trunk (unless
> there are objections of course!)

Thanks. In hg (r572).

Mitchell

> -Jay
>
> On Apr 11, 1:39 am, mitchell <mforal.n....at.gmail.com> wrote:
>
>
>
> > Hi,
>
> > > While talking about it, would it be possible to read the line-comment
> > > string from the definition in the respective lexer and have this used
> > > for the ctrl-q commenting function? So each language with a line-
> > > comment could be easily commented this way?
>
> > Not all lexers have a comment string. For example forth has lpeg.S('|\
> > \'), Io has lpeg.P('#') + '//', etc. These patterns cannot be easily
> > interpreted.
>
> > Instead I have gone the language-specific module route like with run
> > commands. This is in latest hg (r560). Supplemental comments can be
> > found here:
>
> >http://caladbolg.net/textadeptwiki/index.php?n=Main.CommentSupplemental
>
> > Note the incompatibility with 2.2 beta. Available only from hg. Thanks
> > to Brian Schott for supplying the comment table.
>
> > 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.

-- 
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 Fri 07 May 2010 - 14:33:58 EDT

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 11:42:32 EST