GNU bug report logs - #59448
29.0.50; URIs in Dictionary are not properly handled

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: Gabriel <gabriel376@HIDDEN>; dated Mon, 21 Nov 2022 14:53:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 21 Nov 2022 14:52:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Nov 21 09:52:56 2022
Received: from localhost ([127.0.0.1]:46019 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ox8AJ-000561-Te
	for submit <at> debbugs.gnu.org; Mon, 21 Nov 2022 09:52:56 -0500
Received: from lists.gnu.org ([209.51.188.17]:45546)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gabriel376@HIDDEN>) id 1ox8AI-00055u-Fv
 for submit <at> debbugs.gnu.org; Mon, 21 Nov 2022 09:52:54 -0500
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 <gabriel376@HIDDEN>)
 id 1ox8AI-0006cM-8w
 for bug-gnu-emacs@HIDDEN; Mon, 21 Nov 2022 09:52:54 -0500
Received: from mail-dm6nam10olkn2022.outbound.protection.outlook.com
 ([40.92.41.22] helo=NAM10-DM6-obe.outbound.protection.outlook.com)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <gabriel376@HIDDEN>)
 id 1ox8AG-00080N-14
 for bug-gnu-emacs@HIDDEN; Mon, 21 Nov 2022 09:52:53 -0500
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
 b=Zk4MZ8lfxiQUpBd5JQvP19PXnhA77ZvnzsbG6iL7o+4N8BvgjJBrCPusHvtwUwU7fhBLXi2Av/iJT5LqgLrFI+p7LYzIEXAP4BtcW4zPRjUYfoLLm0549KmX/jNaRHv2gFgTJUYujMKdVAro+J6mQi+Slh52svqS1Ps6kafu4FQkts5r8W0ZYveczpoqGkyXbqysMXPorjd1ZYGHlCWyvD61UG2738vCnv7SDU+6/XyGuZc2gXYo5d617OOZU8EUZEhSy0M0qPqbA08NlRsSb+XHHmAb69i5565Ax1KKEoIBNUV2AFA6OUCoiugQiV/NW3q4OC1vUcp/4DYcgqsy1A==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; 
 s=arcselector9901;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;
 bh=5MR8AkyEY1y4xCr2YZXO0g9ppmaQTy6sicKPikoYz4g=;
 b=Znw+hR2f536soOGt3JjMYj77BtNpSz5VdzjX83l69G1J4q6YHnvNLJME69+s7ia3e7Pu0cx+K7Pen0JT4KvXd9E9KUwBQL8lccMjA8USagbVKiTjldNjhSEyF43DDmxshPPBwNuwYJKaHYIsnbOumEnoRPI73NSkbSNT3nEOle5ap8i6B64617NVhpkLkvAoJ4p5mUXqaHgQ/JPVyFpekScixZT8gCEJwcDpBKc1Apw7UT7cd2r97BNpQC7O479Qpx86aZoLRKEs5fPhAuvGBdwzOMSR3zPoiczljJIVxY0YnDOM/qjVyyfPDTLrahxicStEd/27rTDe1+Y6KYD/xA==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none;
 dkim=none; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com;
 s=selector1;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=5MR8AkyEY1y4xCr2YZXO0g9ppmaQTy6sicKPikoYz4g=;
 b=N/SoDUb7HGEDjah9l7QQbViBEfWNPBY6XkjRbdOBkikh0f4OmiiwM6uJcU38mIiMuGtV7rZ8PMYUucrj3kpgVnyOjQOOw0aJpew4sDZ+GhmEyEycbx4UPfsWViJs0TjzJ/NwvT3U+/Zk6d1fgGVO4LuA3Pf1CCNmS2u4wNBodhQV/hpfX/CMNenRvCLONx1kHYEoEuT/aQZw0G270PFd7IJkgdg75jTAqXk+9vcPx01Ot0F7tMBGTFCs0LQCKxbUEUIQYTLaeXHZwZluvJ3IcW8Ep1EEPp0XXD+Dc2A6F6uhgnY+f72eeTS9vHEESp0FaNJ9lqzhWmdbJZNi2e0WRQ==
Received: from SJ0PR06MB8609.namprd06.prod.outlook.com (2603:10b6:a03:40c::11)
 by MWHPR06MB2925.namprd06.prod.outlook.com (2603:10b6:300:11b::13)
 with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5834.9; Mon, 21 Nov
 2022 14:52:48 +0000
Received: from SJ0PR06MB8609.namprd06.prod.outlook.com
 ([fe80::33ae:d3a7:24ae:5c6f]) by SJ0PR06MB8609.namprd06.prod.outlook.com
 ([fe80::33ae:d3a7:24ae:5c6f%4]) with mapi id 15.20.5857.017; Mon, 21 Nov 2022
 14:52:48 +0000
From: Gabriel <gabriel376@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 29.0.50; URIs in Dictionary are not properly handled
Date: Mon, 21 Nov 2022 11:52:42 -0300
Message-ID: <SJ0PR06MB860970E179F60D9E3FB536278B0A9@HIDDEN>
Content-Type: text/plain
X-TMN: [3LXBlsXVrALzdqWEngLw0P4/QC1Im7qoJRenUpEGP8x7cNyN8fuWeFZaZ3IS1ttM]
X-ClientProxiedBy: CP0PR80CA0023.lamprd80.prod.outlook.com
 (2603:10d6:103:14::35) To SJ0PR06MB8609.namprd06.prod.outlook.com
 (2603:10b6:a03:40c::11)
X-Microsoft-Original-Message-ID: <87pmdg8imd.fsf@HIDDEN>
MIME-Version: 1.0
X-MS-Exchange-MessageSentRepresentingType: 1
X-MS-PublicTrafficType: Email
X-MS-TrafficTypeDiagnostic: SJ0PR06MB8609:EE_|MWHPR06MB2925:EE_
X-MS-Office365-Filtering-Correlation-Id: 9f8d46c8-4c92-4231-45e5-08dacbd00de8
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: KGznSiF60dUSQksJXFXwBWSxdMtptpnPSf+yoABbSjSKZbN21BBzk713BwbTfr6OWPhn1w2AwGgAajN4IUcOdnxKOJZt74iytzFs/MqGjMmxmk/Df8DuRW//jpTPaOb1XTRQ7whe/bXMTpDPWpsjGNp7MW0HNF+pB126FRXyzkEZ4lEED2G7ATcxZQ8OVq6mtZ5DDQtee+QLf1z651MIrijIjJl1IpXIQiQQpRkNO8mHXhtaBtcvK38JEsyjFk+YJoRIzJq6q7BgW9d00NYoLvOlm0i11yEjOYVUjjtKAOE2xCSvHArs7nvBFYtKmUVKvKuWmo/LlaFxjNEhlAyRCMCkbOFM61ZIhdLvnMYxdQGlOe1nKuZOm7js5/ek/ci7IeShrSFx9qKtMl+y7Z0HGM+otmndjHUahyzG2Ewoh1D7we/4/jCoaFMCXxPAPYqstL1iwkhKvQeLETITwT7Uk37u3Zq23Y8TbV26hcvt+IoJLEnxMU6MZummShykt6sG9MndfhEiVZ4YYJfRB8VXrOMg0XZ/WpY/NVnqtFKjgt33TIoAOqnssQvLI8tgW37f30Z1p/GXSGRG/HHSTgQp0Q==
X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1
X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?j36+1S+/+Yhu/fDLraZy7obCavUqmxZRpGPSsiTC/S7pq5oKb7cnM6WrGiwZ?=
 =?us-ascii?Q?RvPsupxs+BNiXjjbtsZcsqP7U3VB5Jbwj4fO8x3Xb1s+VDsw+I1ip6EOKROC?=
 =?us-ascii?Q?AX7Y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mzCodXiMqL2RKwHBlC1ho3dd?=
 =?us-ascii?Q?dujNx3o8Sx4Br6IHkTdzODrmnoKwk+ZsG5G7vBW6xNtQnQhd2Zei5dTGvGkL?=
 =?us-ascii?Q?YQR6lGHDQg6yNUC1tm/IawT9G0Z6Yzpg8FF5DZ94rFIJ8LTV0mDGHYvdSU8R?=
 =?us-ascii?Q?FUGfYL3BneP8UwRTpIwQMbp6+hvyXSPEz3/G8rrS0/tsZ5mmbJJXYW6ubVOF?=
 =?us-ascii?Q?bJOW78Draj2L8wh5YeAscNKhhdPg7siltffui/lYuEyxw1udLeHNazGrKova?=
 =?us-ascii?Q?m1OWw4GTfIhpr0d8B3y+Bsm/6auUV5lavob4n2oVa6EA6hEF4QgdIuCJdndX?=
 =?us-ascii?Q?65Y//qSciwDu5StycC8Z7IAzTpfNIkUiq3HxQYxt0J6x0A=3D=3D?=
X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-89723.templateTenant
X-MS-Exchange-CrossTenant-Network-Message-Id: 9f8d46c8-4c92-4231-45e5-08dacbd00de8
X-MS-Exchange-CrossTenant-AuthSource: SJ0PR06MB8609.namprd06.prod.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Nov 2022 14:52:48.2681 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000
X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR06MB2925
Received-SPF: pass client-ip=40.92.41.22; envelope-from=gabriel376@HIDDEN;
 helo=NAM10-DM6-obe.outbound.protection.outlook.com
X-Spam_score_int: -18
X-Spam_score: -1.9
X-Spam_bar: -
X-Spam_report: (-1.9 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.1 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.1 (--)

Severity: wishlist

Description:

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.

Steps:

1) emacs -q (master "6b0179f7908c658342d1e642e5444e3d2e1cd997")

2) Run `dictionary-search' with some search word whose results contains
URIs in dict.org, for example:

  M-x dictionary-search RET emacs  RET
  M-x dictionary-search RET fsf    RET
  M-x dictionary-search RET w3c    RET
  M-x dictionary-search RET python RET
  M-x dictionary-search RET ruby   RET

Actual result: URIs are treated like a regular search phrase, in which
RET will execute `dictionary-new-search' will not find any results.

Compare with EWW behavior:

1) emacs -q (master "6b0179f7908c658342d1e642e5444e3d2e1cd997"

2) M-x eww RET

3) Search for some search word whose results contains URIs, for example:

  emacs
  fsf
  w3c
  python
  ruby

Actual result: despite some <a> tags seems to be broken, it's possible
to follow the links (e.g.: follow "http://python.org/" when searching
for "python").

Alternative:

It seems that `goto-address-mode' can be enabled to help handling URIs
in Dictionary buffers, which will find some URI patterns (using
`goto-address-url-regexp' and `goto-address-mail-regexp'), allowing to
follow URLs and composing emails with C-c RET (`goto-address-at-point').
Perhaps `goto-address-at-point' can be enabled by default in
`dictionary-mode`?

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).

---
Gabriel




Acknowledgement sent to Gabriel <gabriel376@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#59448; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 21 Nov 2022 15:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.