On Mon, 22 Sep 2014 11:58:56 -0700 (PDT)
bobS <[email protected]> wrote:

>  This last post may be inappropriately placed; please advise, if so,
> and I'll move it. 
>  
> Abbreviations work great, but revealed a larger problem in the test
> domain I'm operating in. I wanted to use the abbreviations to
> populate lists in bash shell scripts as in:
>    for ip in a b c d ; do
>       ...
>    done

I guess I'm not seeing the relationship between abbreviations and
@auto, except that maybe you want your list to appear in more than one
place, and you're thinking that abbreviations *or* @auto with section
references might get you there.

If that's the case, that you want your list to appear in more than one
place, it might be possible to do it with abbreviations alone,
depending on the details, if you can provide more.  I don't use section
references, so you'd need input from someone else if that's the way to
go.

Cheers -Terry

> where "a b c d" is the result of an abbreviation. That works but
> doesn't allow me to reconfigure the list, since the abbreviation
> disappears after its invocation. If I make the list part of a section
> reference and try for ip in << my list >> ; do
>    ...
> done
> then the shell gets confused by the sentinels. 
> When trying an @auto directive, based on the doc which says that
> @auto expands section references on write and outputs no sentinels,
> section << my list >> is reported as an orphan node and the @auto
> file is not written. @auto <path to file>
>     body text including << my list >
>     <section node> << my list >> as child of @auto above.
>  
> Am I missing something from the doc for @auto?
>  
> Regards,
> 
> On Monday, September 22, 2014 10:59:15 AM UTC-5, bobS wrote:
> 
> >  Thanks, again. Multi-line abbreviation scripts, here I come.
> > Bob S.
> >
> > On Friday, September 19, 2014 4:34:39 PM UTC-5, bobS wrote:
> >
> >> My expectation, after reading doc, and settings information in 
> >> leoSettings.leo,etc, is that after making sure that i have 
> >> @settings
> >>    @boot enable-abbreviations = True
> >>    @data abbreviations
> >>           stuff;;=stuffing
> >>
> >> was that typing stuff;; would result in stuffing appearing where
> >> stuff;; had been entered. Since this doesn't happen
> >> in my Leo 4.11a1, please tell me where I'm going wrong.
> >>
> >> Thanks.
> >>
> >
> 

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to