From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#74820: [PATCH] browse-url-with-browser-kind: Improve browser function selection Date: Tue, 17 Dec 2024 15:49:38 +0200 Message-ID: <86bjxao1vx.fsf@gnu.org> References: <87pllx9lhd.fsf@daniel-mendler.de> <87jzby1rvd.fsf@daniel-mendler.de> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="567"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 74820@debbugs.gnu.org To: Daniel Mendler Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 17 14:50:30 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1tNXy2-000AVx-2u for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 17 Dec 2024 14:50:30 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tNXxf-00038h-BB; Tue, 17 Dec 2024 08:50:07 -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 1tNXxb-00035i-4J for bug-gnu-emacs@gnu.org; Tue, 17 Dec 2024 08:50:04 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tNXxa-0006TU-RP for bug-gnu-emacs@gnu.org; Tue, 17 Dec 2024 08:50:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=Fhos3e2iPouuqKCGAMPUKjuo8WoOHRZwz+dUm96bXNw=; b=pH3bQS+RBz38YRqkOpqiArWGXhMq5lTkv6KxZOfLkfPh9lVbI8pz89B83yftKyoQttKHs3AbgpoquYsDbu+q4KTFtqR/rqYnEKPmXRclR7UET63tRRyv+mxtluj441emkajR2Ir3OkJzLmkuq0tmI0HoLFNkEogyBx1EvHVK3lwviF54d1YBd2K7FaXgQFTFSUWBnSgHU3z7B7S0MF6VJyef5JsBS2KGq/dyYVSs7aqvp78N8wW8b5G0/KuO90euOw44B09JN08D2NYkxa8EGBHPcTMjayllGKhhpN7/j1rU05t5SHLNDGkSJwvjrcLgu5MSn3zU2+rch8sNnHJELQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tNXxa-0000YD-IA for bug-gnu-emacs@gnu.org; Tue, 17 Dec 2024 08:50:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 17 Dec 2024 13:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74820 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 74820-submit@debbugs.gnu.org id=B74820.17344433952088 (code B ref 74820); Tue, 17 Dec 2024 13:50:02 +0000 Original-Received: (at 74820) by debbugs.gnu.org; 17 Dec 2024 13:49:55 +0000 Original-Received: from localhost ([127.0.0.1]:58136 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tNXxT-0000Xc-7d for submit@debbugs.gnu.org; Tue, 17 Dec 2024 08:49:55 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:37832) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tNXxQ-0000XN-S9 for 74820@debbugs.gnu.org; Tue, 17 Dec 2024 08:49:53 -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 1tNXxJ-0006RH-NQ; Tue, 17 Dec 2024 08:49:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=Fhos3e2iPouuqKCGAMPUKjuo8WoOHRZwz+dUm96bXNw=; b=eRzRB0KN0XJ3 XFo8uK7thgBkkkkgwijFQTiiCLYlhyCI8WiWwiOa4h/njlDw7IeES5pMkIBjTNJNthW5mhSl9/nQU VuSc46FPYTDjMOe717KYv8vj15J7HHoNUxOTctikKLi9x4K8cXF/x/PXRrSFwJUq3OHJM5Ao7qzy9 6MiOeWkW/hEPN+sTQRFbTOEY5wfIiFXrqxbUp5CC3L6J8kdkxU2xzLnEJLI+dhYe1XWfjX9cYrCV3 t86MtcDgXAJoWc70MRtbPwfyzI3w/pW4/Vf5riYi2EE2xVDdK56fY0vHmkBTpRjbuvhvAKBo+pxi3 mtlzZOJLxIvRO/3tGAZcQw==; In-Reply-To: <87jzby1rvd.fsf@daniel-mendler.de> (message from Daniel Mendler on Tue, 17 Dec 2024 12:16:54 +0100) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:297295 Archived-At: > From: Daniel Mendler > Cc: Eli Zaretskii > Date: Tue, 17 Dec 2024 12:16:54 +0100 > > Daniel Mendler writes: > > > Tags: patch > > > > In order to find an appropriate browser function for the given > > kind, first the browser handler lists are consulted. If no > > handler is found, the `browse-url-browser-function', > > `browse-url-secondary-browser-function`, > > `browse-url-default-browser' and `eww' are tried in that order > > until a browser function with a matching kind is found. This > > way the user customization of `browse-url-browser-function' and > > `browse-url-secondary-browser-function` is respected by > > `browse-url-with-browser-kind'. > > Eli, do you have comments on this patch? I think it improves the > behavior of `browse-url-with-browser-kind' in relation to our recent > changes to `browse-url-browser-function' and `browse-url-secondary-browser-function', > which users can set to either internal or external browsers. Thanks. I didn't yet have time to review the patch. Too little free time, sorry. Will do soon.