Subject: Re: bug#60190: 29.0.50; Improve `Info-goto-node-web'

From: Eduardo Ochs <[email-masked]>
Date: Mon, 19 Dec 2022 12:05:53 -0300

On Mon, 19 Dec 2022 at 09:31, Eli Zaretskii <[email-masked]> wrote:
>
> > Cc: [email-masked]
> > From: Eduardo Ochs <[email-masked]>
> > Date: Mon, 19 Dec 2022 04:02:47 -0300
> >
> >   (defvar Info-url-base
> >     '(("emacs"  . "http://www.gnu.org/software/emacs/manual/html_node/emacs/")
> >       ("elisp"  . "http://www.gnu.org/software/emacs/manual/html_node/elisp/")
> >       ("eintr"  .
> > "http://www.gnu.org/software/emacs/emacs-lisp-intro/html_node/")
> >       ("efaq"   . "https://www.gnu.org/software/emacs/manual/html_node/efaq/")
> >       ("cl"     . "http://www.gnu.org/software/emacs/manual/html_node/cl/")
> >       ("eshell" . "https://www.gnu.org/software/emacs/manual/html_node/eshell/")
> >       ("org"    . "http://www.gnu.org/software/emacs/manual/html_node/org/")))
>
> Aren't these mappings trivial?  You seem to be prepending the same
> prefix to the exact name of the Info file (sans extension).  Or what
> did I miss?

No, look at the case of the eintr...

And if we use a table for the conversion then users can add new
entries to it easily, including entries that don't follow that
pattern. For example, this one:

  (add-to-alist 'Info-url-base
    '("slime" . "https://slime.common-lisp.dev/doc/html/"))

Cheers,
  Eduardo