diff --git a/lisp/progmodes/verilog-mode.el b/lisp/progmodes/verilog-mode.el index 9ab129d4474..df3b28615fd 100644 --- a/lisp/progmodes/verilog-mode.el +++ b/lisp/progmodes/verilog-mode.el @@ -5460,7 +5460,9 @@ becomes: (interactive) (let ((buff (if (boundp 'next-error-last-buffer) ;Added to Emacs-22.1 next-error-last-buffer - compilation-last-buffer))) + (verilog--suppressed-warnings + ((obsolete compilation-last-buffer)) + compilation-last-buffer)))) (when (buffer-live-p buff) (save-excursion (switch-to-buffer buff)