From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#59448: 29.0.50; URIs in Dictionary are not properly handled Date: Tue, 22 Nov 2022 09:54:35 +0200 Organization: LINKOV.NET Message-ID: <86y1s3bjn8.fsf@mail.linkov.net> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28968"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: 59448@debbugs.gnu.org To: Gabriel Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 22 08:57:51 2022 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 1oxOAB-0007Oa-Aa for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 22 Nov 2022 08:57:51 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oxO9a-0005Rt-DB; Tue, 22 Nov 2022 02:57:14 -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 1oxO9O-0005PY-Sb for bug-gnu-emacs@gnu.org; Tue, 22 Nov 2022 02:57:03 -0500 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 1oxO9O-0005Bg-K2 for bug-gnu-emacs@gnu.org; Tue, 22 Nov 2022 02:57:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oxO9O-0002FR-Gq for bug-gnu-emacs@gnu.org; Tue, 22 Nov 2022 02:57:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 22 Nov 2022 07:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59448 X-GNU-PR-Package: emacs Original-Received: via spool by 59448-submit@debbugs.gnu.org id=B59448.16691038128618 (code B ref 59448); Tue, 22 Nov 2022 07:57:02 +0000 Original-Received: (at 59448) by debbugs.gnu.org; 22 Nov 2022 07:56:52 +0000 Original-Received: from localhost ([127.0.0.1]:49617 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oxO9E-0002Ev-4p for submit@debbugs.gnu.org; Tue, 22 Nov 2022 02:56:52 -0500 Original-Received: from relay2-d.mail.gandi.net ([217.70.183.194]:64293) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oxO97-0002ER-B4 for 59448@debbugs.gnu.org; Tue, 22 Nov 2022 02:56:47 -0500 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 500CB4000C; Tue, 22 Nov 2022 07:56:37 +0000 (UTC) In-Reply-To: (Gabriel's message of "Mon, 21 Nov 2022 11:52:42 -0300") 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:248613 Archived-At: > URIs (http, mail, news, ftp etc) in Dictionary are not properly handled. > It means that URIs are treated like a regular search phrase, which is > not really useful for `dictionary-search' (since most will not return > any results) and no default mechanism is available to follow such URIs. Thanks for the bug reports (your posts about tab-line will be addressed soon too). > Other alternative is to handle URIs natively in `dictionary-mode'. For > example, some proper URI handling in the action of `dictionary-link' > button or in `dictionary-display-word-definition'. > > Nevertheless, I believe the default behavior of Dictionary could be > improved, i.e., to avoid treating URIs as regular search words that will > provide little to none value to users (since it will mostly fail to find > results) and to provide a better integration with other Emacs features > (e.g.: EWW to browse URLs or Gnus to compose emails). Another alternative would be to fall back to handling URIs only when dictionary-search fails to find a definition. So instead of displaying the message "Word not found" it could try to open the URI that can be found in the provided string.