From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Gerd_M=C3=B6llmann?= Newsgroups: gmane.emacs.devel Subject: Re: MPS: scroll-bars Date: Sun, 05 May 2024 10:01:00 +0200 Message-ID: References: <875xvvp3fo.fsf@gmail.com> <87r0eicht1.fsf_-_@gmail.com> <87plu29lcc.fsf@yahoo.com> <87fruyccs8.fsf@gmail.com> <878r0q9dzd.fsf@yahoo.com> <87a5l4r8xu.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1788"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Po Lu , Eli Zaretskii , Emacs Devel To: Helmut Eller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun May 05 10:01:33 2024 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 1s3WoP-0000My-9g for ged-emacs-devel@m.gmane-mx.org; Sun, 05 May 2024 10:01:33 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s3Wo7-0007Ew-NV; Sun, 05 May 2024 04:01:15 -0400 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 1s3Wny-0007Cz-FO for emacs-devel@gnu.org; Sun, 05 May 2024 04:01:06 -0400 Original-Received: from mail-ej1-x62d.google.com ([2a00:1450:4864:20::62d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s3Wnw-0005uU-U2; Sun, 05 May 2024 04:01:06 -0400 Original-Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-a59c0a6415fso76159466b.1; Sun, 05 May 2024 01:01:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714896062; x=1715500862; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=A2HyoOyNqH2CtZ8blySrZ6yAGuCkvPWftEf+293n/+Y=; b=TQK+fcjXjfNjOI7sKWHHzgJJE/pagtWrbUsGgDPIl7+LduNAfTkl1z9kxMyRcMRlxx D5aOLBUJHzkRqe2UbF4FwA1eXkP9K2HoLmVQPXC1bqXb7DVKl3ZTTYWuEN3LLGvvy4uC Hz/WB8nD3dLbYmKaz/sZ1QjDknkysJoIg9SvpShlfRGJlJvlMoavSxc3zgzNZgDUT4Lc u2fMPJICuGXfZVxm7V+lIn8yU7nq+txK+Pm1h9dOFJX8WVqM+GE9w9f8HLPdw+jyZ9sW dKaKGSEBaTrHXct8+b8wLbpLH9+GK8WIPa+/D5nX4QEdzjc80SrTNucRpfAYKRGijFb4 XLBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714896062; x=1715500862; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=A2HyoOyNqH2CtZ8blySrZ6yAGuCkvPWftEf+293n/+Y=; b=szAtl7wCGm5cSafOrT37bWl/Kes7Bhr/YSLnlaqbBdLAcd+37nsVnm8zHqjriab0MZ lebltSMkruZ8AX9ssdfK88YgdN4r0nQXih3/DjB3VSU1lWJE2VTZQUJZrpCK6AXih7BX icaSYhsrN6VRCMgURrBikGvnLpG69jC1gBPn4zMNd//lYltpDYk6XmG+q+HaR7z2k81y 1ypuBAnmMojYgmGCGGS8kO1tsYytCHDkSmfkDg8QT09a2QOtqnR08ljIVPTHvFEu2HFJ 3YdtEeotZ232h8Yb8wJVlb4bcpuIHDDDWDvqMLO58JXvfVfhYqEsFzDDJOey6ifIRcpA joDw== X-Forwarded-Encrypted: i=1; AJvYcCWMCaHISBR2K0aR+xza+bOF0s9kcuJmgmCiP9ITxl1kRVTXND9yTebtPWUmzEcw9yZRj8zy9vPnejSpm7NWa0JO6tS9jMm/m5PNZ6HXrukBnGI= X-Gm-Message-State: AOJu0YzjGw6OeEfcDvQL2FuUWwJxyBz0Qf+dNsZmDcw5Sv1jDcNRzbwa QqDQgpKM0FCNdj69F6LRwHJuy0DKU4xehX4mOQUEecY0k2itsETkOA14Xg== X-Google-Smtp-Source: AGHT+IGW05qcGHXF0iZP3kNeNXO981+xrUZfchvfk49M507VH3EmuAC2kXyuctk/60HxISC4SypfAA== X-Received: by 2002:a50:9317:0:b0:572:2f0d:d165 with SMTP id m23-20020a509317000000b005722f0dd165mr4798385eda.4.1714896061977; Sun, 05 May 2024 01:01:01 -0700 (PDT) Original-Received: from pro2.fritz.box (p4fe3a20a.dip0.t-ipconnect.de. [79.227.162.10]) by smtp.gmail.com with ESMTPSA id l11-20020a056402028b00b00572bba6745esm3716814edv.81.2024.05.05.01.01.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 May 2024 01:01:01 -0700 (PDT) In-Reply-To: <87a5l4r8xu.fsf@gmail.com> (Helmut Eller's message of "Sun, 05 May 2024 09:53:33 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::62d; envelope-from=gerd.moellmann@gmail.com; helo=mail-ej1-x62d.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, 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:318785 Archived-At: Helmut Eller writes: > On Sun, May 05 2024, Gerd M=C3=B6llmann wrote: > >> I believe the frame::condemned_scroll_bars is okay on NS as it is now. >> With all caveats as usual. > > I have a hunch that those would need weak references to work as > intended. But I'm happy to let them leak for now. > > Below is my patch for the scroll-bars. I went for the indirection layer > solution. Though, the mark-and-sweep pool idea might be more broadly > usable; with so many different GUI toolkits it's hard to say. > > I also had a problem with the tool-bar, triggered by this test: > (dotimes (i 40) > (igc--collect) > (message "%S" (make-list i nil)) > (redisplay)) > > The third patch stops allocating glyph matrices as ambiguous roots. > Seems to work for me. Very cool! I don't use tool bars with my init, so I've evaded that one :-). And pushed. (I hope I haven't overlooked other patches you sent, like yesterday?)