emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Info-scroll-up/down on mode-line


From: Glenn Morris
Subject: Re: Info-scroll-up/down on mode-line
Date: Mon, 23 Apr 2007 03:01:45 -0400
User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)

Nick Roberts wrote:

> Info-scroll-up/down are bound on the mode-line (over the node name)
> to mouse-1 and mouse-3. However, in a split window configuaration
> with Info at the top and the bottom window selected, clicking there
> scrolls the _bottom_ window, and Emacs gets confused if this is
> already at the top or bottom.

Maybe:

*** info.el     01 Apr 2007 23:11:10 -0700      1.500
--- info.el     23 Apr 2007 00:02:02 -0700      
***************
*** 2602,2607 ****
--- 2602,2608 ----
  in other ways.)"
  
    (interactive)
+   (select-window (posn-window (event-start last-input-event)))
    (if (or (< (window-start) (point-min))
          (> (window-start) (point-max)))
        (set-window-start (selected-window) (point)))
***************
*** 2627,2632 ****
--- 2628,2634 ----
  beginning of a node, that goes to the previous node or back up to the
  parent node."
    (interactive)
+   (select-window (posn-window (event-start last-input-event)))
    (if (or (< (window-start) (point-min))
          (> (window-start) (point-max)))
        (set-window-start (selected-window) (point)))





reply via email to

[Prev in Thread] Current Thread [Next in Thread]