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: Mon, 6 Mar 2023 23:51:40 +0100 Message-ID: References: <83edqen95b.fsf@gnu.org> <838rgmn6y4.fsf@gnu.org> <83bklikogf.fsf@gnu.org> <834jr9lv4b.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000016befe05f6432458" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32646"; 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 Mon Mar 06 23:52:32 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 1pZJh2-0008NA-F5 for ged-emacs-devel@m.gmane-mx.org; Mon, 06 Mar 2023 23:52:32 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pZJgU-0001Ro-Sj; Mon, 06 Mar 2023 17:51:58 -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 1pZJgS-0001Re-QK for emacs-devel@gnu.org; Mon, 06 Mar 2023 17:51:56 -0500 Original-Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pZJgR-0006ve-Af; Mon, 06 Mar 2023 17:51:56 -0500 Original-Received: by mail-wm1-x32d.google.com with SMTP id j3so6719932wms.2; Mon, 06 Mar 2023 14:51:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678143112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=6xCLyoeypIDZ1xjwLmmzbDcPJLqHk59JJ9vzpP1QZrQ=; b=NTn65aqQIvXT8Nqi/m0dZL8MyeguPwOhjrrTr3xhjpmd9qMXeyrZ7Eyxmr33BvH5Hm /pxuQQ4qiRIVOfYktypfe6pAcwd6Mjao8SU+8U/fl6+GFdDztETrouBrFDb4EXL2+Gci qZt6ksWBfntFmwqOWKUiBXZMcxbTIlNLTwenitY5AnFLZJXV7K6ppmrn2KFhorhlne3N JxqUzvzAClFzMiYOX6p2Z/aVXHpGYXIfly2XF+zcW0MXeKvponLR8AV8wdeidbfmzhAf Dtwzr/29iXReH+lhNYAIqypkJV+pZnOihS0kzzxnhhM4iykbTEMM/+96zjnMP/toSBKP 25Zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678143112; 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=6xCLyoeypIDZ1xjwLmmzbDcPJLqHk59JJ9vzpP1QZrQ=; b=x1Xl3FQXkw2ZuUZiI8c83F3SmkpjWaQrW2PXnSjl2ncxKJ8gACNhgpmdqT9AKWhh3E 6BrHHOCDhVn7e6+ssSyFctMLZIN5Ng33+CHBz1qTli+nmzbAC3zlVLapDzfrcugvOl+y 7hib2j7x2S4k8fXDJop1brPUTWSJp3Pmx0NoWR/u9hCarEGglwra4WEiCsiY1ThDiz9z 2TANr2bpMaOpGL99j1Y30Ehl/Fznru3xprTXZfXiBaboqdjKcWFFpH+joL9JSR0fdGmf u36tiUEw7xtzJpc5JIeQI0vlREz299cX/M+R13dBjXfk2TtR84sBAIxgjvnvbAoH03Zo Aluw== X-Gm-Message-State: AO0yUKW7u997YSN1FNPPea6f1cevS3TWtf+FW0gU/KiXTP8aguZsvFsG tl/53ZG9gBJe3chD6XyzxtCqsRnHugIMXR9lQNBSpMXY6rE= X-Google-Smtp-Source: AK7set+bNtKHGadCPSfUYHgtcBoS9cwlgi47R9SVZsPGbb98yZ0JllsJoPKG/HSL12ZQq5FvFLcfX1XnioermjOR3FQ= X-Received: by 2002:a05:600c:331a:b0:3df:97c0:1b5 with SMTP id q26-20020a05600c331a00b003df97c001b5mr2850063wmp.5.1678143112264; Mon, 06 Mar 2023 14:51:52 -0800 (PST) In-Reply-To: <834jr9lv4b.fsf@gnu.org> Received-SPF: pass client-ip=2a00:1450:4864:20::32d; envelope-from=dalanicolai@gmail.com; helo=mail-wm1-x32d.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:304068 Archived-At: --00000000000016befe05f6432458 Content-Type: text/plain; charset="UTF-8" Somehow, annoyingly, I missed this last message earlier. But I'd still prefer to thank you for your instructive answers. Indeed, I have read about the evaporate property before, but I have not used it before, so that I forgot about it. I'm more or less sure that it will stick this time... On Sat, 25 Feb 2023 at 14:42, Eli Zaretskii wrote: > > From: dalanicolai > > Date: Sat, 25 Feb 2023 14:17:24 +0100 > > Cc: emacs-devel@gnu.org > > > > This is great! Indeed, it works perfectly now. > > I think using the margins is just much more elegant. > > > > Although, I might have read about this behavior somewhere, > > obviously, it was not clear to me that `erase-buffer` does not > > remove the overlays. Maybe a warning/reminder about this could > > be added in the 'erase-buffer' docstring? What do you think? > > I would be happy to create a patch for that (if desired). > > This is not related to erasing a buffer, it is related to deleting > text "covered" by the overlay. What happens in that case depends on > the 'evaporate' property of the overlay, which is already described in > the ELisp manual, see the node "Overlay Properties" there. > --00000000000016befe05f6432458 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Somehow, annoyingly, I missed this last message earli= er.
But I'd still prefer to thank you for your instructive an= swers.

Indeed, I have read about the evaporate pro= perty before,
but I have not used it before, so that I forgot abo= ut it.
I'm more or less sure that it will stick this time...<= br>

On Sat, 25 Feb 2023 at 14:42, Eli Zaretskii <eliz@gnu.org> wrote:
> From: dalanicolai <dalanicolai@gmail.com>
> Date: Sat, 25 Feb 2023 14:17:24 +0100
> Cc: emacs-dev= el@gnu.org
>
> This is great! Indeed, it works perfectly now.
> I think using the margins is just much more elegant.
>
> Although, I might have read about this behavior somewhere,
> obviously, it was not clear to me that `erase-buffer` does not
> remove the overlays. Maybe a warning/reminder about this could
>=C2=A0 be added in the 'erase-buffer' docstring? What do you th= ink?
> I would be happy to create a patch for that (if desired).

This is not related to erasing a buffer, it is related to deleting
text "covered" by the overlay.=C2=A0 What happens in that case de= pends on
the 'evaporate' property of the overlay, which is already described= in
the ELisp manual, see the node "Overlay Properties" there.
--00000000000016befe05f6432458--