|
Post by Stefan on Nov 6, 2023 5:02:56 GMT -5
George,
Running v3.0.23301 but also observed in v3.0.23295.
AUTOCAPS OFF is ineffective if the profile also specifies HILITE AUTO ON.
You cannot enter language keywords in lower case if the related profile specifies HILITE AUTO ON and AUTOCAPS OFF. The HELP documentation states that both settings are required to enable auto-capitalisation, but this isn't so. The HILITE setting overrides the AUTOCAPS setting
I attach file AUTO.AUTO below for experimentation.
Try and enter any of the keywords (e.g. COMMENT1) in lower case, while your AUTO.AUTO Profile specifies AUTOCAPS OFF and HILITE AUTO ON .
|
|
|
Post by George on Nov 7, 2023 9:24:03 GMT -5
Stefan: I think this is confusion about AUTOCAPS itself. It was a bad choice to use AUTOCAPS as both a Profile option, and as a keyword within the AUTO file itself.
AUTOCAPS within the AUTO file indicates whether the colorization logic is to Uppercase the keyword as well as colour it.
AUTOCAPS in the Profile indicates whether the effect of Uppercasing done during Edit is to be saved with the file when written.
i.e. with AUTOCAPS OFF and HILITE AUTO ON
Enter "Comment1" and the AUTOCAPS entry displays it as "COMMENT1"
SAVE the file and the contents will be "Comment1".
The Profile AUTOCAPS should be renamed to AUTOSAVE or CAPSSAVE or .... ?
George
|
|
|
Post by Robert on Nov 7, 2023 11:10:09 GMT -5
George, Profile AUTOCAPS came first, I believe. Generally, we should respect precedence and honor the first use of the name. That means, don't change the Profile.
If the AUTO file is capitalizing a word, how about calling the auto-file AUTOCAPS keyword "WORDCAPS", since that is what it is doing?
R
|
|
|
Post by Stefan on Nov 7, 2023 11:43:34 GMT -5
Sorry George,
My bad. Thank you for the Eureka! moment. The operative word is 'SAVED'.
AUTOCAPS ON/OFF has no "visual" effect on the display, only applies when file is saved.
I did know this (once upon a time), just forgot.
My muddle resulted from wanting to change something in the AUTO.AUTO file itself. Being of filetype .AUTO itself, it was obviously going to be confusing. (And it takes much less than it used to to confuse me these days )
|
|
|
Post by George on Nov 7, 2023 12:41:33 GMT -5
Robert: Sorry, but Profile AUTOCAPS MUST have come after the AUTO command AUTOCAPS. If it came first - who did the Uppercasing?
Besides, changing AUTOCAPS in the AUTO files means revising almost all AUTO files. (Or maintaining it as a 'forever' alias)
Changing Profile AUTOCAPS is a one time thing and can be automated so it is painless for the users.
So, what's the vote on what AUTOCAPS (Profile) should be called?
George
|
|
|
Post by Robert on Nov 7, 2023 13:35:28 GMT -5
Yes George, but revising all AUTO files is easy. Just do an MEDIT on *.AUTO and CHANGE ALL.
Changing all Profiles has to be done one at a time, unless you know something I don't. You say it can be automated, but how? Again, you must know something I don't. What's the means of automation to access and edit all Profiles? This is news to me.
Of course, changing either one creates (yet) another "version barrier" so that once things are changed, you can't use prior versions. On general principles, it is a bad thing to do, no matter which part you alter.
Truly, it would be better if you didn't change anything. Don't create cross-version incompatibilities. I mean, what exactly is being harmed by using AUTOCAPS for two purposes, other than a documentation issue?
Instead, I say:
1. Make the documentation better. Try this first.
2. If not (1), or if (1) isn't enough, then create an alias of AUTOCAPS in the AUTO-file syntax (call it whatever you like - such as WORDCAPS - but make it good), and then retain the AUTO-file AUTOCAPS as a deprecated name. That way, users who are wringing their hands over AUTOCAPS can use the new name ("WORDCAPS" if that's what it becomes) and the rest of us who don't care are not impacted.
R
|
|
|
Post by George on Nov 7, 2023 14:13:23 GMT -5
Robert: Like you I'm inclined to do nothing, this whole thing is a misunderstanding, it's not worth it.
But if we did, your concerns about the "how" are needless.
The profile change is simple. Accessing and altering all profiles is trivial, they're all in the CFG file and a quick loop to copy the AUTOCAPS entry to the new CAPSSAVE (or whatever) entry is trivial. Leaving the old AUTOCAPS entry around to satisfy going back a version and the whole thing is transparent to the user. This is not a profile entry that I imagine a user changing very often.
Doing nothing still wins.
George
|
|
|
Post by Robert on Nov 8, 2023 13:45:57 GMT -5
OK, if it's a misunderstanding, then (1) - upgrade the Help - is called for.
BTW, when you mentioned, "Accessing and altering all profiles is trivial, they're all in the CFG file and a quick loop to copy the AUTOCAPS entry to the new CAPSSAVE (or whatever) entry is trivial", you mean it's trivial for YOU. For the user, not so much.
Also, the idea of avoiding a "version barrier" (where you can't use older versions because of incompatible changes) applies to Beta versions too. If a Beta changes things like the CFG behind the scenes, that creates a version barrier. So, if a user tried out a Beta and didn't properly back up what they need to, they could be "stranded" with the "new" way of doing things, even if they didn't want to.
Here is my "wish list" to you, George:
Suppose you make some change (beta or prod), that would alter the SPFLite environment in some way that was basically irreversible, I *wish* you would cause a popup to appear when you get to the part in your code where the 'migration' to the new way of doing things happens. That popup would say something like,
"Notice: A migration of SPFLite is about to occur which will render your run-time environment incompatible with prior versions. If you have not already done so, perform a backup of the <whatever resource that's going to be revised> before proceeding. [Continue] [Cancel]".
What do you think? Is this reasonable? It is to me. We don't want to turn any installation (beta or prod) into an "entrapment" where careless (or sleepy) users end up getting stuck when they didn't really want that outcome.
R
|
|
|
Post by George on Nov 8, 2023 14:26:16 GMT -5
Robert: I've done many code and settings migrations over the years, some trivial, others significant. I don't recall that we've EVER 'burned our bridges' to a degree that truly impacted our users. I believe our long time users have faith in us to do this kind of migration in a responsible manner, and I don't think we've failed them.
I don't believe we need to add something like you've suggested.
George
|
|
|
Post by Stefan on Nov 9, 2023 4:56:30 GMT -5
For what its worth...
I think you should not change any keywords anywhere.
But enhance the documentation for AUTOCAPS and HILITE commands, and the chapter on Autocolorisation to clearly separate the concepts an emphasise that HITLITE and AUTO colorisation/capitalisation processing ONLY affect the appearance of the data, and AUTOCAPS ON/OFF affects ONLY how the apparent capitalisation is SAVED.
|
|
|
Post by George on Nov 9, 2023 9:51:17 GMT -5
Stefan: Agreed. the Doc will be enhanced somewhat.
George
|
|