-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
optional renamimg of compilation buffer #3
Conversation
Hi @csantosb , Thanks a lot for your contribution. I tested these changes in my environment and got this error: The following patch in diff --git a/fpga-utils.el b/fpga-utils.el
index 9f57ab3..ae15f0a 100644
--- a/fpga-utils.el
+++ b/fpga-utils.el
@@ -166,7 +166,7 @@ COMP-MODE is the name of the compilation derived mode created by macro
(declare (indent 1) (debug 1))
`(defun ,name (command)
,docstring
- (when (get-buffer ,buf)
+ (when (and ,buf (get-buffer ,buf))
(if (y-or-n-p (format "Buffer %s is in use, kill its process and start new compilation?" ,buf))
(kill-buffer ,buf)
(user-error "Aborted"))) Could you try it in your environment and add it to the PR if it works well? Thanks! |
Could you try it in your environment and add it to the PR if it works well?
I push a variant of yours, where I think I stay closer to the original
code.
I mean: renaming compilation buffers should be optional, but checking if a
previous compilation buffer exists is not.
|
I do not think you can hardcode If you want to use the default compilation buffer names (i.e. However I might be missing something. Let me know if that is the case. |
You're right, your patch applies and fits my needs. To me, this is more than enough. |
Thanks! :) Do you prefer to add the patch to this PR and rebase the changes or should I merge it and fix it in a subsequent commit? |
Do you prefer to add the patch to this PR and rebase the changes or should I merge it and
fix it in a subsequent commit?
Please do
ps. thanks, your repos help a lot !
|
…pile-fn" This reverts commit 7464995.
I'm glad it helps Emacs users :) Thanks a lot for your contribution! |
When using hdlmake and helm-make, for example, compilation buffer name is automatically set. Mandatory renaming breaks this functionality.
With this change, using a nil value as fpga-xilinx-vivado-buf would be enough.