all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Joost Kremers <joostkremers@fastmail.fm>, emacs-devel@gnu.org
Subject: RE: Versions of Emacs Manuals on web
Date: Thu, 21 May 2020 08:20:03 -0700 (PDT)	[thread overview]
Message-ID: <6c3773bb-3ae9-4158-8a07-649e5d1cf302@default> (raw)
In-Reply-To: <87tv09k95p.fsf@fastmail.fm>

> >   > You can evaluate this from within emacs itself for getting
> >   > the right copy for your emacs version:
> >   > (info "(emacs) File Variables")
> >
> > That idea could be better than just a note.
> 
> It will fail miserably, though, if the specified node does not
> exist on the user's machine. I recently went looking for `(info
> "(elisp) Special Read Syntax")` on Emacs 26 and didn't find it,
> because it's new in Emacs 27.

Yes.  And if we're considering doing this for
more than the Emacs, Elisp, and Intro Elisp
manuals, then the given _manual_ might not exist.
___

I, for one, think it would be good if GNU hosted
manuals (Emacs, Elisp, Intro Elisp, at least)
for older Emacs releases, as well as the latest.
And for a pretest (such as Emacs 27).
___

Not too related, but a bit: In Info+ I have `G'
bound to `Info-goto-node-web', which uses
`browse-url' to go to the given node using a
web browser.  With a prefix arg it reverses the
effect of option `browse-url-new-window-flag'.

I use it all the time, to quickly grab the URL
of the web version of some node and post it as
help in forums such as emacs.StackExchange and
Reddit.  (I usually also say how you can get to
the node in Emacs itself.)

(defun Info-goto-node-web (node &optional flip-new-win)
  "Use `browse-url' to go to Info node NODE using a Web browser.
With a prefix arg, reverse the effect of option
`browse-url-new-window-flag'.

NODE is the name of a node in the GNU Emacs or Elisp manual.
Alternatively, NODE can have the form (MANUAL)NODE, where MANUAL is
\"emacs\" or \"elisp\" and NODE is the name of the node in that
manual.  Empty NODE in (MANUAL) defaults to the `Top' node."
  (interactive
    (list (Info-read-node-name "Go to node: " Info-current-node)
          current-prefix-arg))
  (require 'browse-url)
  (unless Info-current-file
    (error "This command must be invoked from Info"))
  (browse-url (Info-url-for-node node)
              (list (if flip-new-win
                        (not browse-url-new-window-flag)
                      browse-url-new-window-flag))))



  reply	other threads:[~2020-05-21 15:20 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-14  6:24 GNU Emacs raison d'etre - 1981-ish version Eduardo Ochs
2020-05-14 16:45 ` Drew Adams
2020-05-14 21:26 ` excalamus--- via Emacs development discussions.
2020-05-15  8:55   ` Robert Pluim
2020-05-15 10:18     ` Eli Zaretskii
2020-05-16  4:19       ` Richard Stallman
2020-05-18 15:27         ` Robert Pluim
2020-05-19  3:54           ` Richard Stallman
2020-05-19  4:39             ` Stefan Kangas
2020-05-19  4:51               ` andres.ramirez
2020-05-21  3:42                 ` Versions of Emacs Manuals on web Richard Stallman
2020-05-21  5:22                   ` andrés ramírez
2020-05-21  8:02                   ` Joost Kremers
2020-05-21 15:20                     ` Drew Adams [this message]
2020-05-21 15:47                       ` Stefan Kangas
2020-05-21 16:13                         ` Drew Adams
2020-05-21  3:42               ` Richard Stallman
2020-05-21 13:19                 ` 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=6c3773bb-3ae9-4158-8a07-649e5d1cf302@default \
    --to=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    --cc=joostkremers@fastmail.fm \
    /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.