From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: dalanicolai Newsgroups: gmane.emacs.devel Subject: Re: Redisplay issues with 'space' display properties on overlays Date: Sat, 16 Apr 2022 20:40:47 +0200 Message-ID: References: <83pmlhynw9.fsf@gnu.org> <83lew4zxny.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000003617c105dcc9de7d" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24998"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Emacs Devel To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Apr 16 20:42:51 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nfnNj-0006OG-46 for ged-emacs-devel@m.gmane-mx.org; Sat, 16 Apr 2022 20:42:51 +0200 Original-Received: from localhost ([::1]:46096 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nfnNh-0000ep-NM for ged-emacs-devel@m.gmane-mx.org; Sat, 16 Apr 2022 14:42:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60464) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nfnLx-0008MX-Ie for emacs-devel@gnu.org; Sat, 16 Apr 2022 14:41:01 -0400 Original-Received: from mail-yw1-x112d.google.com ([2607:f8b0:4864:20::112d]:36526) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nfnLv-0006EO-JF; Sat, 16 Apr 2022 14:41:01 -0400 Original-Received: by mail-yw1-x112d.google.com with SMTP id 00721157ae682-2ebd70a4cf5so109370447b3.3; Sat, 16 Apr 2022 11:40:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=QenCejOEc8/2uTBD4if3EnS2Xq+HeEdZkEwyMI2wyuA=; b=CvqYu8iX3jIM2DSA40tG7X/ZZD8ftG8WhqkJDjXX3HDW8s4WH1vz0J1SlqiYnNRCOd 9yB3HY6D8oOO+Fkl8SuSc6NBxI0db21tgFKmaQSnZulxlA74CVxbjRir27eBQAJzNP+a ADjTbr6m5bveyDMEf5gDTXjKb4qvYtvlFMrWLXdGzP7YChgtFb2h6GpgDvmEji5JbXZX 5R15wqrLQNnL4fw50noVDNZkjQCEFbYAoH9ZdpE1cA3hSopS2blVBS5HsgMLafpNyYVl knG3x2mZ+y2e7nj0zXvLYDNQ6NEtByoJDSjn8keNNzTJgupAZOFFsxcLgEmt3hEypr9M dRXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=QenCejOEc8/2uTBD4if3EnS2Xq+HeEdZkEwyMI2wyuA=; b=dg/HNu7fksby2JcGnIg2U6hMzraFijxRqtO4Y91FgN7vigqZ/q4nXhf3ZR0ytsI/XT ljb/JkNJDbIRhc3Amsk12oFMGB5K48DN2GHWr1HMWM33qr8rDeHTfQUnSvBXpZCjBQz/ 3jybPROWWQCGPRr1hJdVTm8l9reOK2nx3Dr2MUrUTpjPjMgvRhP/kYfAjc3ugmbFo/P0 bF8+FHu+5vSb2ac+Oskf+jocsqGhg/q8KN05B2wQbUzomVZtd8NfCe+PweEctz8oWRx4 oQCUWe8HM/dWiEGE3ckVkTYBOcBd87Oc0sweKNNI03JwO0XzvpSymBDnxtFsl8CHQu/4 pb4A== X-Gm-Message-State: AOAM533XD/9K+tmuqrzRN7qn4Zf+bY9PXmhqfS8okwlxxSR0hMgIQ0iA TdS41ygPnCfIb9a4VLI10n+I+AQ+gmoxS77bH5Njuh6i+Oq23Q== X-Google-Smtp-Source: ABdhPJw3Iyn1ICu05Ss8sqfUeA1IJSWIhglw9MA6KCrJS8nyEWeYh/BvRi8krFFXbNx9uRUK8sWTOWA9bIVtFOo8eT0= X-Received: by 2002:a0d:d44f:0:b0:2f1:63b1:1df2 with SMTP id w76-20020a0dd44f000000b002f163b11df2mr2129189ywd.423.1650134458176; Sat, 16 Apr 2022 11:40:58 -0700 (PDT) In-Reply-To: <83lew4zxny.fsf@gnu.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::112d; envelope-from=dalanicolai@gmail.com; helo=mail-yw1-x112d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:288494 Archived-At: --0000000000003617c105dcc9de7d Content-Type: text/plain; charset="UTF-8" > > 2. I would expect that a specified space (space display property for the > 'gap' > > overlays, i.e. the space between the pages) could be smaller than the > default > > 'line-pixel-height`. However, this does not seem possible by just > setting a > > smaller :height for the space display property, as the overlay will > always have > > a minimum height of the default 'line-pixel-height' Here is again my 'second question'. So after when you do `M-x papyrus-demo` (and scroll using the arrows) the 'gaps', which are the gray 'gaps' between the pages, have the height of the default `pixel-line-height`. Setting `papyrus-gap-height` larger will increase the gap size. However, setting `papyrus-gap-height` smaller will not decrease the gap size because it seems that the `line-pixel-height` is the minimum. I would expect the size could be smaller, so my question is why the minimum size is limited to be `line-pixel-height`... On Sat, 16 Apr 2022 at 20:32, Eli Zaretskii wrote: > > From: dalanicolai > > Date: Sat, 16 Apr 2022 20:17:11 +0200 > > Cc: Emacs Devel > > > > Well, for the second question, just do emacs -q, > > then load papyrus.el and do `M-x papyrus-demo`. > > And then do what? look where? for what issues? > > > For the first question pdf-tools is required to be installed, > > I am not sure how to achieve that from emacs -q > > (well besides building the server manually, after installing > > pdf-tools using `list-packages` I guess). > > I don't understand. It is your code that inserts the overlays which > AFAIU give you the problems, right? So I think it should be possible > to construct a simple test case using some image file instead of what > pdf-tools produce. > > > So maybe you could answer/comment on the second question. > > I don't think I understand the situation well enough to answer, sorry. > --0000000000003617c105dcc9de7d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
2. I wou= ld expect that a specified space (space display property for the 'gap&#= 39;
> overlays, i.e. the space between the pages) could be smaller than the = default
> 'line-pixel-height`. However, this does not seem possible by just = setting a
> smaller :height for the space display property, as the overlay will al= ways have
> a minimum height of the default 'line-pixel-height'

Here is again my 'second question'. So after = when you do `M-x papyrus-demo`
(and scroll using the arrows) the = 'gaps', which are the gray 'gaps' between the pages,
<= div>have the height of the default `pixel-line-height`. Setting `papyrus-ga= p-height` larger
will increase the gap size. However, setting `pa= pyrus-gap-height` smaller will not
decrease the gap size because = it seems that the `line-pixel-height` is the minimum.
I would exp= ect the size could be smaller, so my question is why the minimum size is
limited to be `line-pixel-height`...

On Sat, 16 Apr 2022 at 20= :32, Eli Zaretskii <eliz@gnu.org>= wrote:
> Fro= m: dalanicolai <dalanicolai@gmail.com>
> Date: Sat, 16 Apr 2022 20:17:11 +0200
> Cc: Emacs Devel <emacs-devel@gnu.org>
>
> Well, for the second question, just do emacs -q,
>=C2=A0 then load papyrus.el and do `M-x papyrus-demo`.

And then do what? look where? for what issues?

> For the first question pdf-tools is required to be installed,
> I am not sure how to achieve that from emacs -q
> (well besides building the server manually, after installing
> pdf-tools using `list-packages` I guess).

I don't understand.=C2=A0 It is your code that inserts the overlays whi= ch
AFAIU give you the problems, right?=C2=A0 So I think it should be possible<= br> to construct a simple test case using some image file instead of what
pdf-tools produce.

> So maybe you could answer/comment on the second question.

I don't think I understand the situation well enough to answer, sorry.<= br>
--0000000000003617c105dcc9de7d--