]> git.eshelyaron.com Git - emacs.git/commitdiff
* progmodes/compile.el (compile-goto-error): Do not push-mark.
authorLeo Liu <sdl.web@gmail.com>
Mon, 16 Dec 2013 08:07:10 +0000 (16:07 +0800)
committerLeo Liu <sdl.web@gmail.com>
Mon, 16 Dec 2013 08:07:10 +0000 (16:07 +0800)
Remove NOMSG arg and all uses changed.

lisp/ChangeLog
lisp/progmodes/compile.el

index f4a42c6f4c096609be3eba32ec6a52d3d73710ce..fd27eaacc2d9eb77a62e3daa3954cc485fcf4ff7 100644 (file)
@@ -1,3 +1,8 @@
+2013-12-16  Leo Liu  <sdl.web@gmail.com>
+
+       * progmodes/compile.el (compile-goto-error): Do not push-mark.
+       Remove NOMSG arg and all uses changed.
+
 2013-12-16  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * emulation/cua-rect.el (cua-rectangle-mark-mode): New minor mode.
index 5689be49f610616f15bb50d4112ce32d192566fe..ce42d5a7837ade75dc36ef65c7876b04befae025 100644 (file)
@@ -1004,7 +1004,7 @@ POS and RES.")
     (let ((win (get-buffer-window buffer 0)))
       (if win (set-window-point win pos)))
     (if compilation-auto-jump-to-first-error
-       (compile-goto-error nil t))))
+       (compile-goto-error))))
 
 ;; This function is the central driver, called when font-locking to gather
 ;; all information needed to later jump to corresponding source code.
@@ -2325,9 +2325,9 @@ Prefix arg N says how many files to move backwards (or forwards, if negative)."
 
 (defalias 'compile-mouse-goto-error 'compile-goto-error)
 
-(defun compile-goto-error (&optional event nomsg)
+(defun compile-goto-error (&optional event)
   "Visit the source for the error message at point.
-Use this command in a compilation log buffer.  Sets the mark at point there."
+Use this command in a compilation log buffer."
   (interactive (list last-input-event))
   (if event (posn-set-point (event-end event)))
   (or (compilation-buffer-p (current-buffer))
@@ -2336,7 +2336,6 @@ Use this command in a compilation log buffer.  Sets the mark at point there."
   (if (get-text-property (point) 'compilation-directory)
       (dired-other-window
        (car (get-text-property (point) 'compilation-directory)))
-    (push-mark nil nomsg)
     (setq compilation-current-error (point))
     (next-error-internal)))