-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use case-fold-search to simplify logic? #61
Comments
I think if we wanted to use If you want to get rid of the scattered downcases it might be good to move them inside the various helper functions, i.e. move the downcase inside |
I reorganized the logic around a little, and I'm not sure the way it exists makes COMPLETE sense. we're doing some keyword checks in the main buffer and some logic in the cloned buffer. I'm tempted to move all the checking to the clone buffer. I noticed that here: https://github.com/Trevoke/sqlup-mode.el/blob/master/sqlup-mode.el#L152 because I was trying to find a way to make those function calls, in the next function, more homogeneous. Some use |
Ah yeah I see what you mean. I would probably try to use the cloned buffer as little as possible though, because it's likely to be confusing to anyone trying to read/copy/modify the code (since it's sort of like a global variable). |
The thing is, we do three things:
1 depends on users, but 2 and 3 might as well be cloned-buffer-centric, don't you think? |
If we always go to the cloned buffer for logic, then we can make this change without messing with the users' settings.
Any thoughts on this?
The text was updated successfully, but these errors were encountered: