Re: [Lazarus] Format code on Save

2017-02-23 Thread Graeme Geldenhuys via Lazarus
On 2017-02-23 09:08, Mattias Gaertner via Lazarus wrote: >> Also, what does the AddHandlerOnSaveEditorFile()'s "AtLast" parameter >> mean and do? > > Prepend or append to the list of handlers. Ah, thank. That would come in handy if the IDE Options ever have a GUI to manage such actions. eg:

Re: [Lazarus] Format code on Save

2017-02-23 Thread Mattias Gaertner via Lazarus
On Thu, 23 Feb 2017 00:40:13 + Graeme Geldenhuys via Lazarus wrote: > On 2017-01-27 14:37, Mattias Gaertner via Lazarus wrote: >[...] > > LazarusIDE.AddHandlerOnSaveEditorFile(@YourEvent); > > > A bit late, but thank you for adding that functionality. I've

[Lazarus] Feature Request: IDE user defined recorded macros

2017-02-23 Thread Graeme Geldenhuys via Lazarus
Hi, Are there any plans to add user recorded macros support to Lazarus IDE? Many text editors have this built-in, and allows for a huge amount of “extending the editor’s features” without modify the underlying program's source code. We can simply record a sequence of actions, give it a name,

Re: [Lazarus] Format code on Save

2017-02-23 Thread Mattias Gaertner via Lazarus
On Thu, 23 Feb 2017 08:41:06 + Graeme Geldenhuys via Lazarus wrote: >[...] > > Check parameter SaveStep. > > I tried both sefsBeforeWrite and sefsAfterWrite - it made no difference > to the issue of the method being called twice. > > Also, what does the

Re: [Lazarus] Feature Request: IDE user defined recorded macros

2017-02-23 Thread Graeme Geldenhuys via Lazarus
Scratch that! I should have done better searching before I posted. I apparently asked a similar question back in 2015 and found my answer here... http://wiki.freepascal.org/IDE_Window:_Editor_Macros Sorry for the noise. :-/ Regards, Graeme --