[code] Re: Snippets: a way to abort/finalise when in a snippet

From: Pedro Andres Aranda Gutierrez <paaguti.att.gmail.com>
Date: Sun, 30 Apr 2017 08:14:28 +0200

Self-answers
1. RTFM :-)
2.
I've renamed the "self." snippet from '.' to "S_". Another possibility is
to use %1(sys.std)out" in the snippet. That would make me write 'std' if
have 'from sys import stdout" in the python script. Still in the decision
process

On 29 April 2017 at 12:11, Pedro Andres Aranda Gutierrez <paaguti.att.gmail.com>
wrote:

> Hi,
>
> is there any key/way to get out of the snippets._insert() function? Having
> recursive snippets is cool, but I ran into a stupid problem when editing
> python:
>
> I had defined "%1(sys.)stdout" as "sout" and when expanding this snippet,
> I ran into the problem that "." expands as "self." and that if you use the
> tab key there, you end up in a funny loop :-).
>
> So two things:
>
> 1. is there a way to terminate snippet insertion?
> 2. we may need to redefine the snippets for "self." in the Python mode
>
> Best, /PA
>
> --
> Fragen sind nicht da um beantwortet zu werden,
> Fragen sind da um gestellet zu werden
> Georg Kreisler
>

-- 
Fragen sind nicht da um beantwortet zu werden,
Fragen sind da um gestellet zu werden
Georg Kreisler
-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Sun 30 Apr 2017 - 02:14:28 EDT

This archive was generated by hypermail 2.2.0 : Sun 30 Apr 2017 - 06:32:39 EDT