+2013-06-04 Leo Liu <sdl.web@gmail.com>
+
+ * progmodes/compile.el (compile-goto-error): Add optional arg NOMSG.
+ (compilation-auto-jump): Suppress the "Mark set" message to give
+ way to exit message.
+
2013-06-03 Tassilo Horn <tsdh@gnu.org>
* eshell/em-term.el (cl-lib): Require `cl-lib'.
(let ((win (get-buffer-window buffer 0)))
(if win (set-window-point win pos)))
(if compilation-auto-jump-to-first-error
- (compile-goto-error))))
+ (compile-goto-error nil t))))
;; This function is the central driver, called when font-locking to gather
;; all information needed to later jump to corresponding source code.
(defalias 'compile-mouse-goto-error 'compile-goto-error)
-(defun compile-goto-error (&optional event)
+(defun compile-goto-error (&optional event nomsg)
"Visit the source for the error message at point.
Use this command in a compilation log buffer. Sets the mark at point there."
(interactive (list last-input-event))
(if (get-text-property (point) 'compilation-directory)
(dired-other-window
(car (get-text-property (point) 'compilation-directory)))
- (push-mark)
+ (push-mark nil nomsg)
(setq compilation-current-error (point))
(next-error-internal)))