Closed Bug 441808 Opened 16 years ago Closed 14 years ago

Replace "#expand __Var__" by "@Var@", in </mail/*>

Categories

(Thunderbird :: Build Config, defect)

defect
Not set
trivial

Tracking

(Not tracked)

RESOLVED WONTFIX
Thunderbird 3

People

(Reporter: sgautherie, Assigned: sgautherie)

References

Details

Attachments

(2 files, 1 obsolete file)

While looking at
<http://mxr.mozilla.org/mozilla/search?string=general.useragent.locale&find=/mail/&filter=%5E%5B%5E%5C0%5D*%24&tree=mozilla>

I wondered if
|#expand pref("general.useragent.locale", "__AB_CD__");|
could be replaced by
|pref("general.useragent.locale", "@AB_CD@");|
as it seems to be "everywhere" else.
(In reply to comment #0)
> While looking at
> <http://mxr.mozilla.org/mozilla/search?string=general.useragent.locale&find=/mail/&filter=%5E%5B%5E%5C0%5D*%24&tree=mozilla>
> 
> I wondered if
> |#expand pref("general.useragent.locale", "__AB_CD__");|
> could be replaced by
> |pref("general.useragent.locale", "@AB_CD@");|
> as it seems to be "everywhere" else.

It certainly looks that way. I'd be interested in seeing if there's a define or something in a makefile for __AB_CD__ instead of @AB_CD@, as well as doing the change.
Status: UNCONFIRMED → NEW
Component: Preferences → Build Config
Ever confirmed: true
QA Contact: preferences → build-config
Attached patch (Av1) <all-thunderbird.js> (obsolete) — Splinter Review
(In reply to comment #1)
> I'd be interested in seeing if there's a define or
> something in a makefile for __AB_CD__ instead of @AB_CD@

<http://mxr.mozilla.org/mozilla/search?string=__AB_CD__&case=on&filter=%5E%5B%5E%5C0%5D*%24&tree=mozilla>
There is none.

<http://mxr.mozilla.org/mozilla/source/config/preprocessor.txt#154>
"__ : empty string if they are not defined.
 @  : not defined, the preprocessor will terminate with a fatal error."
Assignee: nobody → sgautherie.bz
Status: NEW → ASSIGNED
Attachment #326724 - Flags: review?(bugzilla)
Blocks: 441853
Comment on attachment 326724 [details] [diff] [review]
(Av1) <all-thunderbird.js>

#expand pref("general.useragent.extra.thunderbird", "Thunderbird/__APP_VERSION__");
 
How about doing this one at the same time? (Note, leave "Thunderbird" as it is please), just the app version.
Av1, with comment 3 suggestion(s).
Attachment #326724 - Attachment is obsolete: true
Attachment #326925 - Flags: review?(bugzilla)
Attachment #326724 - Flags: review?(bugzilla)
Attachment #326724 - Attachment description: (Av1) <all-thunderbird.js.> → (Av1) <all-thunderbird.js>
Summary: In <all-thunderbird.js>, update |general.useragent.locale| "code" ? → Replace "#expand __Var__" by "@Var@", in </mail/*>
Target Milestone: --- → Thunderbird 3
Comment on attachment 326925 [details] [diff] [review]
(Av1a) <all-thunderbird.js>

This doesn't work, I end up with the processed file showing these lines the same as the unprocessed file.
Attachment #326925 - Flags: review?(bugzilla) → review-
Comment on attachment 326927 [details] [diff] [review]
(Bv1) </mail/base/content/*>

I'd like to know what Core thinks about changing these globally. I'm happy with the prefs.js ones because thats what the others do.

Therefore cancelling review for the time being, please re-request once you know what is happening with the dependent bug.
Attachment #326927 - Flags: review?(bugzilla)
Comment on attachment 326927 [details] [diff] [review]
(Bv1) </mail/base/content/*>

Bug 451601 removed the <help.rdf> part :-)
Depends on: 451601
I don't see why why should switch expand/subsitution in all files, is #expand planned to be removed from the preprocessor or is this just doing changes for change's sake?
(In reply to comment #9)

I replied in bug 441853 comment 2.
Won't fix in a similar style to bug 441853
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: