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: Displaying scrollable images in a grid-layout Date: Mon, 13 Apr 2015 23:27:52 +0300 Message-ID: <83egnndb93.fsf@gnu.org> References: <87pp785u5a.fsf@hochschule-trier.de> <83r3rocbzr.fsf@gnu.org> <87bnirzur7.fsf@hochschule-trier.de> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1428956911 13938 80.91.229.3 (13 Apr 2015 20:28:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 13 Apr 2015 20:28:31 +0000 (UTC) Cc: emacs-devel@gnu.org To: Andreas Politz Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 13 22:28:22 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 1Yhkxw-00060J-LH for ged-emacs-devel@m.gmane.org; Mon, 13 Apr 2015 22:28:20 +0200 Original-Received: from localhost ([::1]:53320 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yhkxv-0002oS-U7 for ged-emacs-devel@m.gmane.org; Mon, 13 Apr 2015 16:28:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50012) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yhkxj-0002oN-Rn for emacs-devel@gnu.org; Mon, 13 Apr 2015 16:28:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yhkxe-00018u-3t for emacs-devel@gnu.org; Mon, 13 Apr 2015 16:28:07 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:34094) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yhkxd-00018j-Si for emacs-devel@gnu.org; Mon, 13 Apr 2015 16:28:02 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NMR00G00HXO6300@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Mon, 13 Apr 2015 23:27:42 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NMR00FAOI66Z3B0@a-mtaout20.012.net.il>; Mon, 13 Apr 2015 23:27:42 +0300 (IDT) In-reply-to: <87bnirzur7.fsf@hochschule-trier.de> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.166 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:185382 Archived-At: > From: Andreas Politz > Date: Mon, 13 Apr 2015 21:35:40 +0200 > > Eli Zaretskii writes: > > > I cannot try your recipe [...] > > Try this: Thanks, will do later. > > That being said, I think you are missing the PIXELWISE-P argument of > > both window-vscroll and set-window-vscroll. Aren't you? > > No both versions do nothing with above scroll settings for any argument > I've tried (unless the window is smaller than the first displayed > image). > > > If not, please elaborate on what kind of partial scrolling did you > > want to see. > > > > doc-view let's you scroll the page, i.e. the image is only partially > visible. I want the same behaviour for more than one image in the > buffer. Possible display state with 2 images: If each image is taller than the window, a simple down-arrow should do what you want. (Isn't that what you see in doc-view?) If the images are smaller than the window height, why is such scrolling useful? Emacs tries very hard not to show partial characters and images; what you are trying to do works against the very design of redisplay, so it seems. What's the rationale? > (set-window-vscroll nil 10) => Nothing happens. > (set-window-vscroll nil 99) => Nothing happens. > (set-window-vscroll nil 100 t) => Nothing. What is the height of the image? If it's smaller than these offsets, Emacs won't let you do that, because you are trying to move point out of the visible portion of the window. P.S. Please don't remove the list from the addressees, I don't think we should make this a private off-list discussion. Thanks.