From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tak Kunihiro Newsgroups: gmane.emacs.devel Subject: Re: Continuous image scrolling Date: Thu, 05 Apr 2018 12:54:31 +0900 Message-ID: <86in961f60.fsf@misasa.okayama-u.ac.jp> 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> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1522900368 27410 195.159.176.226 (5 Apr 2018 03:52:48 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 5 Apr 2018 03:52:48 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (windows-nt) Cc: Tak Kunihiro , emacs-devel@gnu.org To: =?utf-8?Q?Cl=C3=A9ment?= Pit-Claudel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 05 05:52:42 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 1f3vx3-00071n-4U for ged-emacs-devel@m.gmane.org; Thu, 05 Apr 2018 05:52:41 +0200 Original-Received: from localhost ([::1]:54113 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f3vz8-0005na-HI for ged-emacs-devel@m.gmane.org; Wed, 04 Apr 2018 23:54:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56285) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f3vyz-0005n1-UQ for emacs-devel@gnu.org; Wed, 04 Apr 2018 23:54:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f3vyv-0004o0-3E for emacs-devel@gnu.org; Wed, 04 Apr 2018 23:54:41 -0400 Original-Received: from mail-pl0-x22b.google.com ([2607:f8b0:400e:c01::22b]:36459) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f3vyu-0004ni-Sf for emacs-devel@gnu.org; Wed, 04 Apr 2018 23:54:37 -0400 Original-Received: by mail-pl0-x22b.google.com with SMTP id 91-v6so17341925pld.3 for ; Wed, 04 Apr 2018 20:54:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=Qdti7YvO9kCoJZfiXsjGfZpqnQY0LThVjZ0FDtFzBcA=; b=bJcN3SAIQFWHzN3V8x/ysONBOXsqkNpzARmhv9ttR4569ZdgF9x8ugj6YM8kErV4BW 4T7rwmrTJ8cU0U6UxlD7oF/D4GoCRdsDxo44Bt+K9g13sV0B8Ew2UaZxkxDXuhcYVSre K4rKbHPpuVjknfSRQx/k+9Nb/+OdHMEWK1OR+9AEeBmvNfhGyyhVo67GjRd2p7OEUsvI s9DQxw9f7Qp77Uv1m7shdevV3lb4d33NIeGkl4w4qTYtWfuEflC640VTerMF7/ZPFYwz r170ZP0Cx27yZDrtgmFBWpwblHirLLyqwrPJpEolO6LVH60h+dSKx5pWA/me7lXI/qZC FlKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=Qdti7YvO9kCoJZfiXsjGfZpqnQY0LThVjZ0FDtFzBcA=; b=b0x/zxrk5imRdVvd3U5wO3r4SV+AoGUZhQrdoYiW8f4pRoQBi+Rn7w+xk5r9ar3ZtF 7+9JDgpAkPoi8rffi6ubNeLTQFb4jOPy9YlWB/Zp0mrfyLRz3VUxG9GHK/xECczcP+Sq fPlFssu9csSo9gP34RqT6vtiv0oXqCB7KEp/T0aiLSYmYBzfLfqhcD4XgtxcaVXnDAwB BxlzhQx6BPXIV8PDyVqo6+fU0QLm3LEazPDup9UMQsvgH81aHlmPXVwgA6fUCjM47+s4 h8mgOxelIXY4YPN+eFwdOgE77dv5k0IEt9HSWW6pF/1eKVLBgZQsRvXMtAjLpHPiE/xO Z/eQ== X-Gm-Message-State: AElRT7G+MHZRkvYMvSrHdn4a/tUYkw9ZEYtuYzz7xTH2YRf6fXQ9VHru WxG6yZ7drNyv/1CjdPyc2wRZNQ== X-Google-Smtp-Source: AIpwx48D8/tVwQzvmUOddN3sAVcE5Tw/JEoRXyeODaG7OPVw/Rydd9LMiyWkW1WDd/6UYSnseT8RTA== X-Received: by 10.98.155.137 with SMTP id e9mr15964661pfk.109.1522900475643; Wed, 04 Apr 2018 20:54:35 -0700 (PDT) Original-Received: from thinkless2017 (vesta.misasa.okayama-u.ac.jp. [150.46.48.154]) by smtp.gmail.com with ESMTPSA id r11sm14791119pfg.0.2018.04.04.20.54.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Apr 2018 20:54:34 -0700 (PDT) X-Google-Original-From: Tak Kunihiro In-Reply-To: <3a35fecf-f7ab-40ce-e0de-c586c7103f82@gmail.com> (=?utf-8?Q?=22Cl=C3=A9ment?= Pit-Claudel"'s message of "Wed, 4 Apr 2018 22:45:56 -0400") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c01::22b 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:224349 Archived-At: >> 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).