From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.uzoreto.com!2.eu.feeder.erje.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed9.news.xs4all.nl!nzpost2.xs4all.net!news.kpn.nl!not-for-mail Subject: Re: Gtk / GtkAda question (TextBuffer insertion) To: briot.emmanuel@gmail.com Newsgroups: comp.lang.ada References: <5e91c774$0$18417$e4fe514c@news.kpn.nl> <3cdad56d-1d41-4103-ac3c-aad2da3f40c2@googlegroups.com> From: ldries46 Message-ID: <0cdbb4b0-9390-b908-2ea4-948095da9c25@planet.nl> Date: Tue, 14 Apr 2020 08:57:30 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <3cdad56d-1d41-4103-ac3c-aad2da3f40c2@googlegroups.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: nl NNTP-Posting-Host: 81410663.news.kpn.nl X-Trace: G=MOtWiZ8n,C=U2FsdGVkX1/ub+UEoIA1BEMXObRecXxvHpMIoArmqME/AcAl5n3Qid0tGhl6FjXDAHCpsVNgJ7EEm/fmbfwF3oFQ4CossQsJ1yB/eUepbXw= X-Complaints-To: abuse@kpn.nl Xref: reader01.eternal-september.org comp.lang.ada:58353 Date: 2020-04-14T08:57:30+02:00 List-Id: Op 14-4-2020 om 8:37 schreef briot.emmanuel@gmail.com: >> I can coming along that point Safe the Iter there or do an Add_mark My >> problem is how do I put the cursor afterwards back to that position just >> to insert the lines lateron > If I remember right, you would set a Gtk_Text_Mark at the position of the cursor, then do the inserts. The mark will remain at the same position automatically. So you can now set the cursor back to where the mark is, and delete the mark > > Emmanuel That seems logical, but I was searching for the routine the sets the cursor at the mark. But at the moment I have rwritten the program, also for other reasons, to avoid the problem