Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2017-06

Find/Replace inside IFDEF FPC else

5 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Unknown author

When I use the find/replace dialogs, and search for text, it does not search inside the else section of {IFDEF FPC}. I assume this is a feature. However some times I want to replace text inside delphi code that is outside the IFDEF FPC and in the ELSE section?

Is there an option to set this behavior?
Thanks

Reply by email

Mattias Gaertner
to Unknown author
When I use the find/replace dialogs, and search for text, it does not search inside the else section of {IFDEF FPC}. I assume this is a feature. However some times I want to replace text inside delphi code that is outside the IFDEF FPC and in the ELSE section?

Find/Replace works on the text of the active source editor, it does not parse for $IFDEFs.

Maybe you mean "Find Identifier References"?

Mattias

Reply by email

Michael Van Canneyt
to Mattias Gaertner
Mattias Gaertner wrote 10 lines
On Tue, 27 Jun 2017 22:46:55 -0500 Lars via Lazarus wrote: > When I use the find/replace dialogs, and search for text, it does not > search inside the else section of {IFDEF FPC}. I assume this is a > feature. However some times I want to replace text inside delphi code > that is outside the IFDEF FPC and in the ELSE section? Find/Replace works on the text of the active source editor, it does not parse for $IFDEFs.

Glad you mention this, I was almost on the way to the reanimation department of the nearest hospital...

Michael.

Reply by email

Unknown author
to Michael Van Canneyt
Michael Van Canneyt wrote 14 lines
On Wed, 28 Jun 2017, Mattias Gaertner via Lazarus wrote: > On Tue, 27 Jun 2017 22:46:55 -0500 > Lars via Lazarus wrote: > >> When I use the find/replace dialogs, and search for text, it does not >> search inside the else section of {IFDEF FPC}. I assume this is a >> feature. However some times I want to replace text inside delphi code >> that is outside the IFDEF FPC and in the ELSE section? > > Find/Replace works on the text of the active source editor, it does > not > parse for $IFDEFs.

Hrm, the issue does not show up any more today but acted that way the other day. I'll have to figure out when it is being caused... and file a bug report if necessary
I was searching and replacing for "0010" AFAIR, and it found all instances inside the IFDEF fpc but not in the else section. But now that I try it, it works today. Strange.

Show quoted text 5 lines
Glad you mention this, I was almost on the way to the reanimation department of the nearest hospital... Michael.

Please explain what the reanimation department is:
- the ability to revive a dead non animated person
- the department that takes slow moving people and animates them again at a good pace
- reincarnation (possible Dutch/English translation bug: animation = life)
- a reference to something else

Reply by email

Giuliano Colla
to Unknown author

Il 29/06/2017 12:46, Lars via Lazarus ha scritto:

Show quoted text 7 lines
Please explain what the reanimation department is: - the ability to revive a dead non animated person - the department that takes slow moving people and animates them again at a good pace - reincarnation (possible Dutch/English translation bug: animation = life) - a reference to something else

I believe it to be the intensive care department (it's called the same in Italian), but I find your alternative explanations more interesting...

Giuliano

Reply by email