# HG changeset patch # User Stefan Monnier # Date 1081963849 0 # Node ID a50d004dc0720f12c73e2f7254db93f0c8993764 # Parent c59162a8d0f8d2b5ff0b144d920c464776164a29 (compile-goto-error): Use it. diff -r c59162a8d0f8 -r a50d004dc072 lisp/progmodes/compile.el --- a/lisp/progmodes/compile.el Wed Apr 14 17:30:17 2004 +0000 +++ b/lisp/progmodes/compile.el Wed Apr 14 17:30:49 2004 +0000 @@ -1364,7 +1364,7 @@ "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)) - (mouse-set-point event) + (if event (posn-set-point (event-end event))) (or (compilation-buffer-p (current-buffer)) (error "Not in a compilation buffer")) (if (get-text-property (point) 'directory)