]> git.eshelyaron.com Git - emacs.git/commitdiff
(eshell-occur-mode-mouse-goto, eshell-poor-mans-grep): Remove references to
authorJuanma Barranquero <lekktu@gmail.com>
Tue, 24 Sep 2002 15:16:39 +0000 (15:16 +0000)
committerJuanma Barranquero <lekktu@gmail.com>
Tue, 24 Sep 2002 15:16:39 +0000 (15:16 +0000)
`occur-buffer'.

lisp/ChangeLog
lisp/eshell/em-unix.el

index 1d7094c56984557471ea9114e6fc088c9322e130..2a18f67df0890cf1bd43efa1d33505a6db23ffa3 100644 (file)
@@ -7,6 +7,9 @@
        (sh-mark-line): Likewise. Use 'occur-target and 'occur-match
        instead of 'occur and 'occur-point.
 
+       * eshell/em-unix.el (eshell-occur-mode-mouse-goto)
+       (eshell-poor-mans-grep): Remove references to `occur-buffer'.
+
 2002-09-23  Kenichi Handa  <handa@etl.go.jp>
 
        * international/quail.el (quail-completion): Be sure to scroll
index b9fce8a55a704fb22cface93cfc15a45fece76b3..4919e631e1509e78584d577850b0c014172a0c22 100644 (file)
@@ -641,13 +641,12 @@ Concatenate FILE(s), or standard input, to standard output.")
 (defun eshell-occur-mode-mouse-goto (event)
   "In Occur mode, go to the occurrence whose line you click on."
   (interactive "e")
-  (let (buffer pos)
+  (let (pos)
     (save-excursion
       (set-buffer (window-buffer (posn-window (event-end event))))
       (save-excursion
        (goto-char (posn-point (event-end event)))
-       (setq pos (occur-mode-find-occurrence))
-       (setq buffer occur-buffer)))
+       (setq pos (occur-mode-find-occurrence))))
     (pop-to-buffer (marker-buffer pos))
     (goto-char (marker-position pos))))
 
@@ -683,7 +682,6 @@ available..."
                (if string (insert string))
                (setq string nil
                      files (cdr files)))))
-         (setq occur-buffer (current-buffer))
          (local-set-key [mouse-2] 'eshell-occur-mode-mouse-goto)
          (local-set-key [(control ?c) (control ?c)]
                         'eshell-occur-mode-goto-occurrence)