From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Cl=c3=a9ment_Pit-Claudel?= Newsgroups: gmane.emacs.devel Subject: Re: Continuous image scrolling Date: Thu, 5 Apr 2018 15:56:51 -0400 Message-ID: <515b071b-3e25-58eb-7236-f663fda9810f@gmail.com> References: <87inaiss6l.fsf@web.de> <6FCF6ACA-4F29-4B6B-BE9D-D7130C6E9495@gnu.org> <87fu5moe4c.fsf@web.de> <877eqyocro.fsf@web.de> <83zi3uz4nb.fsf@gnu.org> <0b1dd3fa-e0b0-ed20-a256-dd92d1c1826f@dancol.org> <8bc3c4c7-dfc7-987a-95e7-bd309e2326c6@cs.ucla.edu> <03118DC0-39DA-4AB5-980E-A33809B9A5EE@raeburn.org> <86578165-1b41-e75c-7180-84d8edefc44b@grinta.net> <87d10i9qbx.fsf@mail.linkov.net> <87tvtucch8.fsf@telefonica.net> <87efjxibor.fsf_-_@mail.linkov.net> <87muyl59tw.fsf@telefonica.net> <87370c83io.fsf@mail.linkov.net> <3d9009a5-865c-98bd-b444-c24275291e65@gmail.com> <86bmeyeefx.fsf@misasa.okayama-u.ac.jp> <3a35fecf-f7ab-40ce-e0de-c586c7103f82@gmail.com> <86in961f60.fsf@misasa.okayama-u.ac.jp> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1522958103 28193 195.159.176.226 (5 Apr 2018 19:55:03 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 5 Apr 2018 19:55:03 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 Cc: emacs-devel@gnu.org To: Tak Kunihiro Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 05 21:54:59 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f4AyI-0007C8-G4 for ged-emacs-devel@m.gmane.org; Thu, 05 Apr 2018 21:54:58 +0200 Original-Received: from localhost ([::1]:50943 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f4B0O-0003Gj-2I for ged-emacs-devel@m.gmane.org; Thu, 05 Apr 2018 15:57:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37477) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f4B0E-0003F6-5W for emacs-devel@gnu.org; Thu, 05 Apr 2018 15:56:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f4B0A-0002fX-Ac for emacs-devel@gnu.org; Thu, 05 Apr 2018 15:56:58 -0400 Original-Received: from mail-qt0-x233.google.com ([2607:f8b0:400d:c0d::233]:32798) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f4B0A-0002fN-47 for emacs-devel@gnu.org; Thu, 05 Apr 2018 15:56:54 -0400 Original-Received: by mail-qt0-x233.google.com with SMTP id d50so20836492qtc.0 for ; Thu, 05 Apr 2018 12:56:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=jeEUE1H6zwwa3v7hSjPkMmRxmNQ7j4SxTQm7BlhEE1o=; b=WElnHnsXuZUY3SJm+QTVjBs9dX6HCdYTALceLku8OKIM3z/DHs6yU2Gqy+XlUV3AZ8 J1d8ivw55tlu9BINwaccBbMH7t3wp/Q//SOrmGP0t0qS1iYf45hy0UbE9buG3Gfb9XdU f0tyO4EWa3SZxuhoQ6UXgs2+P1zwAjpdXoU0AKDmUPPOmKHbzn81mFaLac58Qb3kOO7I 6EeHi94rpXoWmmriNxy/HM/Wz2a0OI/AWDIBcYNb/4n+k2CL1x3A4XaWtwb4Fvebr/nm RfQJjByNtthg1FYEo4MhtXmUGdbou3YEKjs3IdFd4KT1r8QbIxqSpIqDZx9TSgCor/H0 lxHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=jeEUE1H6zwwa3v7hSjPkMmRxmNQ7j4SxTQm7BlhEE1o=; b=ZQ0WmFG+hw2bANWM6Hk3Bct8+rmHjRPG5IF7mXrsbMclRjxlvOvONr8BpDdb/oqjtM 2XeIUWYmLKwxHililY4KZP345ylN51IO8sOHQuBfBMbp/oinF5K/jKPkp4UJK9IFZU/U nnF9cBcvR2Nc5XvHoWgMiq/h1F58V9XMdx7SzP3GzOMfImZYFiAQ/nIZRIj2eDldS/33 dsp9aiwM6RF5Z/d1UEZRBwYjVfqZUnLd0Bshvc9//Da87fhzm57C7Ws7hA+xh/di+Vml XN2mS+yzRCDGBciD0FAlpWifmk5RBG1lWF9GnLLlcidlENknlQHCNiro6rZ4jodUEGwU eAmg== X-Gm-Message-State: ALQs6tCY4wUGwJmmFJd+Jx63i+7zwk3dRxRAFPoSHiy38Codgxmtxe3z YZJO2YURsnRfdM45HP+a1gHSX1iK X-Google-Smtp-Source: AIpwx49utMqGwKHejFn/WyKcgzZFfSjj2d+ialtUZPYV1Uwy4TPsCEUOO2iPfopt7x8Ykd75r7yJYA== X-Received: by 10.200.53.110 with SMTP id z43mr34677127qtb.278.1522958213259; Thu, 05 Apr 2018 12:56:53 -0700 (PDT) Original-Received: from [18.26.2.123] (26-2-123.dynamic.csail.mit.edu. [18.26.2.123]) by smtp.gmail.com with ESMTPSA id r41sm6762990qtc.76.2018.04.05.12.56.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Apr 2018 12:56:52 -0700 (PDT) In-Reply-To: <86in961f60.fsf@misasa.okayama-u.ac.jp> Content-Language: en-GB X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c0d::233 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:224371 Archived-At: On 2018-04-04 23:54, Tak Kunihiro wrote: >>> I think with the following setup, >>> >>> M-x pixel-scroll-mode >>> (setq pixel-resolution-fine-flag t) >>> >>> a buffer with large images, as you shown, can be scrolled by height of typical line. >> >> I think I must be doing something wrong :/ >> >> I used this snippet to insert 10 copies of a large picture in a new buffer: >> >> (dotimes (_ 10) >> (insert (propertize " " 'display '(image :type jpeg :file "some-large-picture.jpg" :scale 1)) "\n")) >> >> and then I turned pixel-scroll-mode on with the setting you mentioned, but Emacs still scrolls by full images. > > Let me assume height of an image is less than height of visible area of > a window. > > M-x pixel-scroll-mode > (setq pixel-resolution-fine-flag t) > M-: (pixel-scroll-up 1) > > The (pixel-scroll-up 1) scrolls a buffer up by (frame-char-height) with > re-displaying each pixel. > > A function that scrolls a buffer up like (pixel-scroll-up 1) but without > re-displaying each pixel, should be written. The function serves as > alternative of (scroll-up). I don't understand. I followed your instructions, but M-: (pixel-scroll-up 1) scrolls up by a full image.