all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Gabriel <gabriel376@hotmail.com>
To: 59448@debbugs.gnu.org
Subject: bug#59448: 29.0.50; URIs in Dictionary are not properly handled
Date: Sun, 27 Nov 2022 05:27:06 -0300	[thread overview]
Message-ID: <SJ0PR06MB8609F1F4B3DEC42F50E143C78B109@SJ0PR06MB8609.namprd06.prod.outlook.com> (raw)
In-Reply-To: <83leo0wp77.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 24 Nov 2022 13:45:48 +0200")

Eli Zaretskii <eliz@gnu.org> writes:

>
> Sorry, I'm not following.  I tried "emacs", "fsf", and "w3c", and I seem to
> get reasonable results.  For example, here's what I see for "w3c":
>
> What exactly is wrong with that?  What am I missing?  And how is handling of
> URIs related to this?
>

The results from dictionary are OK, the issue is how URIs are
interpreted.

For example, "M-x dictionary-search fsf" will bring the correct results
and will transform all "keywords" (e.g.: "GNU", "free software",
"Richard Stallman", "Emacs" etc) into `dictionary-link-button'.  By
pressing RET on these buttons, a `dictionary-new-search' will be
executed, and new correct results will be displayed.  So far so good.

However, URIs (e.g.: "http://cs.pdx.edu/~trent/gnu/",
"http://delorie.com/gnu/" etc) will also be treated as "keywords",
creating `dictionary-link-button'.  By pressing RET on these buttons, a
`dictionary-new-search' will be executed, and no results will be found
(because there are not results for "http://cs.pdx.edu/~trent/gnu/").

If we open the dictionary result page for "fsf" in any browser (e.g.:
Firefox, EWW etc), clicking on "keywords" (e.g.: "GNU", "free software",
"Richard Stallman", "Emacs" etc) will display a new dictionary result
page and clicking on URIs (e.g.: "http://cs.pdx.edu/~trent/gnu/",
"http://delorie.com/gnu/" etc) will open the URI.

The intention of this bug report is to discuss the possibility of
enhancing the default behavior of dictionary to property identify and
handle URIs (i.e., to not treat URIs as ordinary dictionary keywords).
See previous threads for more details.

Let me know if you need additional information.

---
Gabriel





  reply	other threads:[~2022-11-27  8:27 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-21 14:52 bug#59448: 29.0.50; URIs in Dictionary are not properly handled Gabriel
2022-11-22  7:54 ` Juri Linkov
2022-11-22 21:11   ` Gabriel
2022-11-27  7:20     ` Eli Zaretskii
2022-11-24 11:45 ` Eli Zaretskii
2022-11-27  8:27   ` Gabriel [this message]
2022-11-27  9:45     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=SJ0PR06MB8609F1F4B3DEC42F50E143C78B109@SJ0PR06MB8609.namprd06.prod.outlook.com \
    --to=gabriel376@hotmail.com \
    --cc=59448@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.