From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Is there any particular reason `scroll-other-window' is written in C and not in ELisp? Date: Tue, 29 Dec 2015 18:02:40 +0200 Message-ID: <83oad9dyzj.fsf@gnu.org> References: <87y4cd8usv.fsf@mbork.pl> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1451404926 28534 80.91.229.3 (29 Dec 2015 16:02:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 29 Dec 2015 16:02:06 +0000 (UTC) Cc: Emacs-devel@gnu.org To: Marcin Borkowski Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 29 17:01:56 2015 Return-path: Envelope-to: ged-emacs-devel@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 1aDwig-0005p3-AF for ged-emacs-devel@m.gmane.org; Tue, 29 Dec 2015 17:01:54 +0100 Original-Received: from localhost ([::1]:49054 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aDwif-0000lD-Qp for ged-emacs-devel@m.gmane.org; Tue, 29 Dec 2015 11:01:53 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48861) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aDwic-0000ks-Fc for Emacs-devel@gnu.org; Tue, 29 Dec 2015 11:01:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aDwiZ-0003WD-BZ for Emacs-devel@gnu.org; Tue, 29 Dec 2015 11:01:50 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57709) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aDwiZ-0003W9-8I; Tue, 29 Dec 2015 11:01:47 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4493 helo=HOME-C4E4A596F7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aDwiY-0003f6-6Q; Tue, 29 Dec 2015 11:01:46 -0500 In-reply-to: <87y4cd8usv.fsf@mbork.pl> (message from Marcin Borkowski on Tue, 29 Dec 2015 10:32:00 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:197089 Archived-At: > From: Marcin Borkowski > Date: Tue, 29 Dec 2015 10:32:00 +0100 Because it needs to determine the new window-start which is a window-full above or below the current one, without assuming that all the lines have the same height in pixels. How do you do that in Lisp? (The current implementation simulates display.) > The reason I'm asking is that C-M-v (and C-M-S-v, for that matter) do > the wrong thing if the other window shows a pdf file using pdf-tools. > If those commands were written in Elisp, I could not only advise them > (which I can, and probably will), but also propose a patch or > something. Sounds like a bug that should be reported. Not sure if it's in core Emacs or not, but please do report it with all the necessary details to whatever the guilty parties are. Thanks.