Re: A script to replace the importer;; abbreviation

2016-11-22 Thread Edward K. Ream
On Tuesday, November 22, 2016 at 3:05:05 AM UTC-6, Edward K. Ream wrote: > [Recent revs add] @button make-importer to scripts.leo. Lest there be the slightest doubt that patterns are simpler than script substitutions, here is the code that creates the patterns in @button make-importer: pattern

Re: A script to replace the importer;; abbreviation

2016-11-22 Thread Edward K. Ream
On Tuesday, November 22, 2016 at 3:05:05 AM UTC-6, Edward K. Ream wrote: >> it would be simpler and better to have created a script :-) > It was straightforward. Rev 93b9257 adds @button make-importer to scripts.leo. The original script copied the tree using c.k.simulate_command. This flash

Re: A script to replace the importer;; abbreviation

2016-11-22 Thread Edward K. Ream
On Tue, Nov 22, 2016 at 1:46 AM, Edward K. Ream wrote: > Now that the importer;; abbreviation is complete, it occurs to me that it > would be simpler and better to have created a script :-) > ​It was straightforward. Rev 93b9257 adds @button make-importer to scripts.leo. Notice how much simple

A script to replace the importer;; abbreviation

2016-11-21 Thread Edward K. Ream
Now that the importer;; abbreviation is complete, it occurs to me that it would be simpler and better to have created a script :-) Indeed, while debugging the abbreviation I was constantly "filling in the blanks" by typing strings followed by two commas. Wouldn't it be easier just to fill in a