From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Making scroll-other-window work with pdf-view/doc-view Date: Wed, 26 Aug 2015 14:52:29 +0200 Message-ID: <876142mctu.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1440593585 21423 80.91.229.3 (26 Aug 2015 12:53:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 26 Aug 2015 12:53:05 +0000 (UTC) To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 26 14:52:56 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZUaCC-00045x-CF for geh-help-gnu-emacs@m.gmane.org; Wed, 26 Aug 2015 14:52:52 +0200 Original-Received: from localhost ([::1]:38127 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUaC6-0005jQ-99 for geh-help-gnu-emacs@m.gmane.org; Wed, 26 Aug 2015 08:52:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54852) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUaBu-0005iv-VU for help-gnu-emacs@gnu.org; Wed, 26 Aug 2015 08:52:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZUaBr-0002RH-Pv for help-gnu-emacs@gnu.org; Wed, 26 Aug 2015 08:52:34 -0400 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]:35033) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUaBr-0002Qq-KD for help-gnu-emacs@gnu.org; Wed, 26 Aug 2015 08:52:31 -0400 Original-Received: from thinkpad-t440p (dhcp220.uni-koblenz.de [141.26.71.220]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by deliver.uni-koblenz.de (Postfix) with ESMTPSA id 4384A1A8373 for ; Wed, 26 Aug 2015 14:52:30 +0200 (CEST) Mail-Followup-To: help-gnu-emacs User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 141.26.64.15 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:106852 Archived-At: Hi all, is there a way to make `scroll-other-window' work in such a way which would consider what scrolling means in the other window buffer's mode? Concretely, I'm writing a latex document and have the compiled PDF in another buffer shown in the other window. When I press M- or M- to scroll the other window, it scrolls the image of the current page up or down and then jumps back. What I like it to do was to scroll and then jump to the next/previous page, e.g., scroll-other-window should actually call `pdf-view-scroll-up-or-next-page' and `pdf-view-scroll-down-or-previous-page'. I've tried remapping `scroll-up', `scroll-up-command', `image-scroll-up', and `image-scroll-down' in `pdf-view-mode-map' but that didn't do the trick. The same problem applies also to `doc-view-mode' where other window scrolling "fails" in the same way. Any idea how to get that right? Bye, Tassilo