-
Notifications
You must be signed in to change notification settings - Fork 12
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
Question about el-patch-feature #40
Comments
The idea of |
Sorry, I probably didn't explain my point clear enough. Currently, (defvar el-patch--features-to-load nil
"A list of (feature . require-args) to require before validating patches.")
(defmacro el-patch-feature (feature &rest args)
`(cl-pushnew (cons ,feature (list ,@args))
el-patch--features-to-load
:test #'equal))
(defun el-patch--load-features ()
(dolist (pair el-patch--features-to-load)
(apply el-patch-require-function
(car pair)
(cdr pair))))
(add-hook 'el-patch-pre-validate-hook 'el-patch--load-features) |
If the |
I'm a bit confused, what do you by the function |
OK, your analysis and solution seem reasonable to me. It makes sense to not put anything on |
This thread is being closed automatically by Tidier because it is labeled with "waiting on response" and has not seen any activity for 90 days. But don't worry—if you have any information that might advance the discussion, leave a comment and I will be happy to reopen the thread :) |
Currently,
el-patch-feature
defines a function to load the feature and add it toel-patch-pre-validate-hook
.Isn't it better to keep track of features to load in a list variable (
el-patch--features-to-require
) and define a single function (el-patch--require-features
) to load all of them? This has the added benefits ofel-patch-require-*
functions not showing up as candidates for elisp function completion.What is your thought on this?
The text was updated successfully, but these errors were encountered: