Skip to content

Commit

Permalink
Add autoloads and buffer selection fix for compilation functions
Browse files Browse the repository at this point in the history
  • Loading branch information
gmlarumbe committed Aug 29, 2024
1 parent 2cb07a3 commit e74eb56
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions verilog-ext-compile.el
Original file line number Diff line number Diff line change
Expand Up @@ -168,15 +168,17 @@ ARGS is a property list."
(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")))
(compile command)
(,comp-mode))))
(pop-to-buffer (compile command))
(,comp-mode)
(setq-local compile-command command))))

(verilog-ext-compile-define-mode verilog-ext-compile-verilator-mode
:desc "Verilator"
:docstring "Verilator Compilation mode."
:compile-re verilog-ext-compile-verilator-re
:buf-name verilog-ext-compile-verilator-buf)

;;;###autoload (autoload 'verilog-ext-compile-verilator "verilog-ext.el")
(verilog-ext-compile-define-fn verilog-ext-compile-verilator
:docstring "Compile Verilator COMMAND with error regexp highlighting."
:buf verilog-ext-compile-verilator-buf
Expand All @@ -188,6 +190,7 @@ ARGS is a property list."
:compile-re verilog-ext-compile-iverilog-re
:buf-name verilog-ext-compile-iverilog-buf)

;;;###autoload (autoload 'verilog-ext-compile-iverilog "verilog-ext.el")
(verilog-ext-compile-define-fn verilog-ext-compile-iverilog
:docstring "Compile Iverilog COMMAND with error regexp highlighting."
:buf verilog-ext-compile-iverilog-buf
Expand All @@ -199,6 +202,7 @@ ARGS is a property list."
:compile-re verilog-ext-compile-verible-re
:buf-name verilog-ext-compile-verible-buf)

;;;###autoload (autoload 'verilog-ext-compile-verible "verilog-ext.el")
(verilog-ext-compile-define-fn verilog-ext-compile-verible
:docstring "Compile Verible COMMAND with error regexp highlighting."
:buf verilog-ext-compile-verible-buf
Expand All @@ -210,6 +214,7 @@ ARGS is a property list."
:compile-re verilog-ext-compile-slang-re
:buf-name verilog-ext-compile-slang-buf)

;;;###autoload (autoload 'verilog-ext-compile-slang "verilog-ext.el")
(verilog-ext-compile-define-fn verilog-ext-compile-slang
:docstring "Compile Slang COMMAND with error regexp highlighting."
:buf verilog-ext-compile-slang-buf
Expand All @@ -221,6 +226,7 @@ ARGS is a property list."
:compile-re verilog-ext-compile-svlint-re
:buf-name verilog-ext-compile-svlint-buf)

;;;###autoload (autoload 'verilog-ext-compile-svlint "verilog-ext.el")
(verilog-ext-compile-define-fn verilog-ext-compile-svlint
:docstring "Compile Svlint COMMAND with error regexp highlighting."
:buf verilog-ext-compile-svlint-buf
Expand All @@ -232,6 +238,7 @@ ARGS is a property list."
:compile-re verilog-ext-compile-surelog-re
:buf-name verilog-ext-compile-surelog-buf)

;;;###autoload (autoload 'verilog-ext-compile-surelog "verilog-ext.el")
(verilog-ext-compile-define-fn verilog-ext-compile-surelog
:docstring "Compile Surelog COMMAND with error regexp highlighting."
:buf verilog-ext-compile-surelog-buf
Expand All @@ -243,6 +250,7 @@ ARGS is a property list."
:compile-re verilog-ext-compile-all-re
:buf-name verilog-ext-compile-all-buf)

;;;###autoload (autoload 'verilog-ext-compile "verilog-ext.el")
(verilog-ext-compile-define-fn verilog-ext-compile
:docstring "Compile Verilog COMMAND with error regexp highlighting."
:buf verilog-ext-compile-all-buf
Expand Down

0 comments on commit e74eb56

Please sign in to comment.