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: displaying margins leads to Emacs hanging Date: Fri, 24 Feb 2023 22:19:10 +0100 Message-ID: References: <83edqen95b.fsf@gnu.org> <838rgmn6y4.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000dc574e05f578ae04" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40865"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Feb 24 22:19:56 2023 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 1pVfTw-000APM-95 for ged-emacs-devel@m.gmane-mx.org; Fri, 24 Feb 2023 22:19:56 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pVfTU-00012E-Oe; Fri, 24 Feb 2023 16:19:28 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pVfTS-000124-Vi for emacs-devel@gnu.org; Fri, 24 Feb 2023 16:19:27 -0500 Original-Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pVfTQ-00007Y-OW; Fri, 24 Feb 2023 16:19:26 -0500 Original-Received: by mail-wr1-x42d.google.com with SMTP id l25so478967wrb.3; Fri, 24 Feb 2023 13:19:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=U5JE8fVeeIUcasDK7hSxJuSc0ix0Qbb2j2Y/0YlPFtU=; b=Aw5RSeWdFYQtBweuxwr+d8QjiL7W1ty9XXHhWz2FGMe36DukFW/XLTQbqx/ap6qTGY 8BNUMbgnsSfeYHH6e28IKeQJbDKA5LGQcV1k1jGBzsJjkmPDe5GUUOQiEjeFKDHnz/Bo HrstWYifWLrevJ5UKgScoKS2VCJ+MJUdJok2zruPiG6Bzep6tih9MzMkv3gTdGl6ozWH NummKVxP1zTq5WXazflUvcgNTb/lkADpKxafb4jsp6h+cdtJt9qM+0VYKrbGWLyXIPAX gyf2s+Bphk693TCGyaqUqRljAkcGKU+OPeqv1lKMsWWPEc8pbXSNnMrQ7Q0YmzcOgIQg 0mGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=U5JE8fVeeIUcasDK7hSxJuSc0ix0Qbb2j2Y/0YlPFtU=; b=NuDflZpN9dQuW2dz93k+owZmxmmj6sq9QbU9mF1yKQgw8bu8Twb/jOrzVyJG+lR49V dWOsJyHIY/DbOnVoNmurHnUCusrvUKDWRCtaKMSHZLY76qcjNSHNEAMVIqSQ7MO5q4Aj Th54KQ3FEj+R6wsJyDa7EGP2S4LEijvqYl7IY4PnKryZeD4vKEVgA4JSVsKI/kAWz3et nIAMuNVsUy3q0HxtINCXmFL/bH0QGE5kJYJZMuD6kqCWqRDMaGYqOondig1xFX3pkx+9 CXcsQUSMCoATaIVKh+K3Tr4+iWmaa88iWpsNeu20s7bFsBnF/6sKooMWb9bZJYSYdekH XtLQ== X-Gm-Message-State: AO0yUKW8pPrVlVDbCCHTbKg2dOG7d+NmChqmtHgNQKeAAxmjW9AW9AZn 08TKiVrfVEjGgLYWLVlKxja/0KFj9Mq63wvOCdFdpX/O6w2skg== X-Google-Smtp-Source: AK7set/f+LBvIeR/+cuK+vHCtL5IkleA5GuVUhaAfdabFm+IeAtQ9I6alE6yad2+e/FCJkHJasI3rQXac0wScO9L+tc= X-Received: by 2002:a5d:664b:0:b0:2c3:be6a:7614 with SMTP id f11-20020a5d664b000000b002c3be6a7614mr1450564wrw.2.1677273562108; Fri, 24 Feb 2023 13:19:22 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::42d; envelope-from=dalanicolai@gmail.com; helo=mail-wr1-x42d.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 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:303773 Archived-At: --000000000000dc574e05f578ae04 Content-Type: text/plain; charset="UTF-8" Okay, in that attachment of my previous mail, I forgot to comment out the `(set-window-margins nil 4)`. So here I another mail (and attachment) with an extremely brief recipe: - load the file in the attachment - do `M-x baleen2` - type 'emacs' followed by RET - do `M-x find-function` `baleen2` and uncomment the line `(set-window-margins nil 4)` in the function - (re)evalute and repeat (do `M-x baleen2`, try typing 'emacs') notice the buffer update speed difference Any idea what might be causing this? Thanks! On Fri, 24 Feb 2023 at 21:53, dalanicolai wrote: > B.t.w if someone want to have a look, I'll attach a smaller file here where > I have just removed about 200 pages of the book text data, so that it is > the file is much smaller, but there is still enough date to clearly show > the > 'undesired' behavior. > > So now, Emacs will not 'hang', but there will still be a clear difference > in time it > takes to update the buffer (between when window margins are displayed, > and when they are not). > > On Fri, 24 Feb 2023 at 21:41, dalanicolai wrote: > >> I hope you might have an idea what causes this behavior. And maybe you >> have a suggestion how to prevent it. Furthermore, I guess the behavior >> might >> be interesting for you to note/observe (but that is just a guess). >> >> On Fri, 24 Feb 2023 at 21:29, Eli Zaretskii wrote: >> >>> > From: dalanicolai >>> > Date: Fri, 24 Feb 2023 21:26:05 +0100 >>> > Cc: emacs-devel@gnu.org >>> > >>> > I have not really looked at it yet, but just as a quick thought: >>> > I am not sure if/why I should debug an infloop, because the >>> functionality >>> > works perfectly fine when not showing the margins (i.e. when just >>> setting >>> > the window margins to nil). So it seems to me its not about an >>> infinite loop. >>> > >>> > I was saying 'more or less' because it does not really hang, it just >>> takes >>> > extremely long to update the buffer text. When waiting long enough, >>> > then it seems to continue. >>> > >>> > Of course, I don't want to waste your time, but I think my instructions >>> > for reproducing the error, are very clear and short this time (i.e. >>> take less >>> > than/about a minute). I think it would be most informative if you >>> reproduce the >>> > error there. >>> >>> What should I do after I reproduce it, though? What are your >>> expectations from me (or whoever else tries your recipe)? >>> >> --000000000000dc574e05f578ae04 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Okay, in that attachment of my previous mail, I forgo= t to comment out the `(set-window-margins nil 4)`.

So here I another mail (and attachment) with an extremely brief recipe:

- load the file in the attachment
- do `M-= x baleen2`
- type 'emacs' followed by RET
- do = `M-x find-function` `baleen2` and uncomment the line `(set-window-margins n= il 4)` in the function
- (re)evalute and repeat (do `M-x bale= en2`, try typing 'emacs')

notice the buffe= r update speed difference

Any idea what might = be causing this?

Thanks!

On Fri, 24 Feb 2= 023 at 21:53, dalanicolai <dala= nicolai@gmail.com> wrote:
B.t.w if someone want to have a look= , I'll attach a smaller file here where
I have just removed a= bout 200 pages of the book text data, so that it is
the file is m= uch smaller, but there is still enough date to clearly show the
&= #39;undesired' behavior.

So now, Emacs wil= l not 'hang', but there will still be a clear difference in time it=
takes to update the buffer (between when window margins are disp= layed,
and when they are not).

On Fri, 24 Feb 2023 at 21= :41, dalanicolai <dalanicolai@gmail.com> wrote:
I hope you might have an id= ea what causes this behavior. And maybe you
have a suggestion how= to prevent it. Furthermore, I guess the behavior might
be intere= sting for you to note/observe (but that is just a guess).
On Fri, = 24 Feb 2023 at 21:29, Eli Zaretskii <eliz@gnu.org> wrote:
> From: dalanicolai <dalanicolai@gmail.com>
> Date: Fri, 24 Feb 2023 21:26:05 +0100
> Cc: emacs-dev= el@gnu.org
>
> I have not really looked at it yet, but just as a quick thought:
> I am not sure if/why I should debug an infloop, because the functional= ity
> works perfectly fine when not showing the margins (i.e. when just sett= ing
> the window margins to nil). So it seems to me its not about an infinit= e loop.
>
> I was saying 'more or less' because it does not really hang, i= t just takes
> extremely long to update the buffer text. When waiting long enough, > then it seems to continue.
>
> Of course, I don't want to waste your time, but I think my instruc= tions
> for reproducing the error, are very clear and short this time (i.e. ta= ke less
> than/about a minute). I think it would be most informative if you repr= oduce the
> error there.

What should I do after I reproduce it, though?=C2=A0 What are your
expectations from me (or whoever else tries your recipe)?
--000000000000dc574e05f578ae04--