From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Leo Liu Newsgroups: gmane.emacs.bugs Subject: bug#63744: 28.2; fix dired-guess-default Date: Tue, 30 May 2023 02:20:28 +0800 Message-ID: References: <838rdajmkk.fsf@gnu.org> <83jzwthsx5.fsf@gnu.org> <87fs7g53rx.fsf@web.de> <83sfbfgx2v.fsf@gnu.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="545"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (macOS 11.7.6) To: 63744@debbugs.gnu.org Cancel-Lock: sha1:TD4Cfus1+EiV6iQJMaTxX6I9c5s= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 29 20:21:32 2023 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 1q3hUq-000Abf-QA for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 29 May 2023 20:21:32 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q3hUR-0007pW-HF; Mon, 29 May 2023 14:21:07 -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 1q3hUN-0007kQ-8r for bug-gnu-emacs@gnu.org; Mon, 29 May 2023 14:21:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q3hUN-0001Ge-1I for bug-gnu-emacs@gnu.org; Mon, 29 May 2023 14:21:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q3hUM-0003xi-3c for bug-gnu-emacs@gnu.org; Mon, 29 May 2023 14:21:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Leo Liu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 29 May 2023 18:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63744 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.168538445715211 (code B ref -1); Mon, 29 May 2023 18:21:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 May 2023 18:20:57 +0000 Original-Received: from localhost ([127.0.0.1]:59125 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q3hUH-0003xG-FD for submit@debbugs.gnu.org; Mon, 29 May 2023 14:20:57 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:40504) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q3hUG-0003x6-8c for submit@debbugs.gnu.org; Mon, 29 May 2023 14:20:56 -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 1q3hUF-0007gL-KG for bug-gnu-emacs@gnu.org; Mon, 29 May 2023 14:20:55 -0400 Original-Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q3hUC-0001E1-1V for bug-gnu-emacs@gnu.org; Mon, 29 May 2023 14:20:53 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1q3hUA-0009eU-BQ for bug-gnu-emacs@gnu.org; Mon, 29 May 2023 20:20:50 +0200 X-Injected-Via-Gmane: http://gmane.org/ Face: iVBORw0KGgoAAAANSUhEUgAAACgAAAAoAgMAAADxkFD+AAAADFBMVEUvT09qWs3/pQD///+J kUVcAAAAAWJLR0QAiAUdSAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9cBBwMLOd3veKQA AACuSURBVBjTldE9CgIxEAXgB+lEyFUC2wo5ikdZ8DSypxhMY7H9VuIVwlqkGRgnm59VsHGafIQ3 CZlAtmKIRaHETgYa12lqvEsPYKf8wXHsPGfqPaUM0g9aJPKFXkmNQmSDqwzz4Fpgpz+6WAPY2z5o uPJJpu0uypcl4nyCibMLQ8lCiVjayLoQvw5LsVKQuHPRR958HZbOcVsKeepcLxpByjycGvnKmY+c MBvrtyjfe0vmuLvdq/kAAAAASUVORK5CYII= Received-SPF: pass client-ip=116.202.254.214; envelope-from=geb-bug-gnu-emacs@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 5 X-Spam_score: 0.5 X-Spam_bar: / X-Spam_report: (0.5 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action 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:262610 Archived-At: On 2023-05-29 15:07 +0300, Eli Zaretskii wrote: > Does this answer my question above? If so, I don't think I understand > the answer, please elaborate. I asked why not generate the whole > value, including the REGEXP part, dynamically. I thought you would have grasped the problem by now ;) "I asked why not generate the whole value, including the REGEXP part, dynamically." This is a static list. The problem we are trying to solve here is we don't know the list until we know the FILE. Even when given the FILE we may still have imperfect knowledge about which tools can handle it. For example, On my Mac an html file can be handled by 10 apps at the moment including all browsers and Emacs and more. It may change next minute when some apps are installed or uninstalled or file association changed.