From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Make browser windows pop up when browsing URLs on Wayland Date: Tue, 24 Dec 2024 06:49:36 +0100 Message-ID: <87y105ocjz.fsf@gnu.org> References: <20241223192320.39021-1-dancol@dancol.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36406"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.12.8; emacs 31.0.50 Cc: emacs-devel@gnu.org To: Daniel Colascione Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Dec 24 06:51:06 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 1tPxow-0009KH-0Q for ged-emacs-devel@m.gmane-mx.org; Tue, 24 Dec 2024 06:51:06 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tPxnt-0005ug-F4; Tue, 24 Dec 2024 00:50:02 -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 1tPxnn-0005u6-5y for emacs-devel@gnu.org; Tue, 24 Dec 2024 00:49:56 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tPxnl-0006Wi-8x; Tue, 24 Dec 2024 00:49:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=YimdXsg6xAqW8RekJot0R/L44GeJMdCsY8QMSBdNnpI=; b=hhJ/JT0+O2jdL4DHtrtl nmrvDGAZA6mw68Ik8rMmYcCSquyhI45FEXPNwDoF1Jh83JisiouL4nQYlwiJpferCs3OZlNm6bIai Lko1d4dpqG0gacyqA51m/wY5bv5o/Dvr3SQNBN5sMD3Z5uSJGkWrU21Bbk10Ct5XCHqxOtiH4yY8+ 2OrCofYRK5aPpdRJKkwT+QKf1ENg7IG+OorPA7vOiX3Owq5pNCD9WyiTpy697wx7HNojaEfotq753 cuQa4QPtVnmmg7XDXgrjXZkVNYfYrd8G2mfx7Yt0A1QRQXnwlFvw65PlAX8D74o0kfDZYEUs/yNOH tnKCX4axev4aig==; X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddruddufedgkeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhephffvvefujghffgffkfggtgesthdtredttdertden ucfhrhhomhepvfgrshhsihhlohcujfhorhhnuceothhsughhsehgnhhurdhorhhgqeenuc ggtffrrghtthgvrhhnpeeluddvgeefuddvjeekfeetleegtefgveehhfeuffeuffeghefg ueefgfdvffegtdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehthhhorhhnodhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdekieej feekjeekgedqieefhedvleekqdhtshguhheppehgnhhurdhorhhgsehfrghsthhmrghilh drfhhmpdhnsggprhgtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthho pegvmhgrtghsqdguvghvvghlsehgnhhurdhorhhgpdhrtghpthhtohepuggrnhgtohhlse gurghntgholhdrohhrgh X-ME-Proxy: Feedback-ID: ib2b94485:Fastmail In-Reply-To: <20241223192320.39021-1-dancol@dancol.org> (Daniel Colascione's message of "Mon, 23 Dec 2024 14:23:14 -0500") 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:326964 Archived-At: Daniel Colascione writes: Hi Daniel, > We really should consider simplifying the whole browse-url mechanism > by eliminating browse-url-default-browser and the distinction between > browse-url-handlers and browse-url-default-handlers. Instead, > browse-url-handlers should have a simple list of predicated handlers > just like display-buffer-alist. The reason there's browse-url-default-handlers and browse-url-handlers is that the former is meant for Emacs itself and packages whereas the latter is meant for the user to customize. IIRC, Stefan Monnier suggested that distinction back then when I added the handlers and I still don't see a better way. If there was only the defcustom browse-url-handlers, either packages couldn't sensibly add to it or if they did, users wouldn't be sensibly able to override what packages added. Or if a package added an entry which the user then saved, how would that be removed when the package was removed? That's different with display-buffer-alist which is nil by default and it's not expected that packages add rules to it. In contrast, if I'd write a gemini client for emacs, it's quite obvious that I'd add an entry matching gemini:// urls with my hander to browse-url-default-handlers. Bye, Tassilo