* Please post older versions of GNU Emacs manuals on the web
@ 2016-01-02 16:46 Drew Adams
2016-01-02 17:01 ` Eli Zaretskii
` (5 more replies)
0 siblings, 6 replies; 18+ messages in thread
From: Drew Adams @ 2016-01-02 16:46 UTC (permalink / raw)
To: emacs-devel
If you have a version of GNU Emacs older than 24.4 then you are
lucky to still have `defadvice' documented in the Elisp manual.
(This useful doc _never_ should have been removed from the manual.
But that is not the point of this post.)
Suppose you are using Emacs 24.3 (or Emacs 23 or...). You visit
the Elisp manual and you use `i defadvice' to visit the advice doc.
You want to visit the same manual section on line (HTTP). Perhaps
you want to bookmark it for use when you do not have Emacs available.
Or maybe you want to send the URL to someone or post it in online
Emacs help. Or maybe you want to print some of the HTML pages.
Here's the rub. Only the manuals for the latest Emacs release
are available on line. And because Emacs (unwisely) removed the
doc for `defadvice', you are out of luck. There is no online doc
for you.
Can GNU Emacs not provide its users with the doc for more
than one release on line? How hard and how costly is that?
In many cases providing this service is maybe not so important,
because Emacs tends to add more than it subtracts (mostly
monotonic). But in a case such as the wholesale decapitation
of `defadvice' doc you are really out of luck on the web.
Wrt `defadvice', the big concession that was made was to
keep the doc in the Lisp source code, as comments. That's
piss-poor IMHO, but at least it shows some contrition for
the sin of removing useful doc from users.
How about posting multiple versions of the Emacs doc on line?
---
FWIW, I use a simple command, bound to `G' in Info, to
visit the current Info node on the web. Sounds silly, but
I use it several times a day, to provide links in answers
I give to online Emacs questions. (Of course, I also tell
users the preferred method of accessing the doc, `C-h i'.)
(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
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))))
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Please post older versions of GNU Emacs manuals on the web
2016-01-02 16:46 Please post older versions of GNU Emacs manuals on the web Drew Adams
@ 2016-01-02 17:01 ` Eli Zaretskii
2016-01-02 17:11 ` John Wiegley
` (4 subsequent siblings)
5 siblings, 0 replies; 18+ messages in thread
From: Eli Zaretskii @ 2016-01-02 17:01 UTC (permalink / raw)
To: Drew Adams; +Cc: emacs-devel
> Date: Sat, 2 Jan 2016 08:46:17 -0800 (PST)
> From: Drew Adams <drew.adams@oracle.com>
>
> Suppose you are using Emacs 24.3 (or Emacs 23 or...). You visit
> the Elisp manual and you use `i defadvice' to visit the advice doc.
>
> You want to visit the same manual section on line (HTTP). Perhaps
> you want to bookmark it for use when you do not have Emacs available.
> Or maybe you want to send the URL to someone or post it in online
> Emacs help. Or maybe you want to print some of the HTML pages.
>
> Here's the rub. Only the manuals for the latest Emacs release
> are available on line. And because Emacs (unwisely) removed the
> doc for `defadvice', you are out of luck. There is no online doc
> for you.
Nothing can ever be "removed" from the Internet. You can find your
v24.3 version of ELisp manual, and in it the chapter about advising,
here:
https://web.archive.org/web/20121224105042/http://www.gnu.org/software/emacs/manual/html_node/elisp/Advising-Functions.html#Advising-Functions
(Google for "wayback machine" if you want to find old versions of some
URLs, including URLs that no longer exist.)
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Please post older versions of GNU Emacs manuals on the web
2016-01-02 16:46 Please post older versions of GNU Emacs manuals on the web Drew Adams
2016-01-02 17:01 ` Eli Zaretskii
@ 2016-01-02 17:11 ` John Wiegley
2016-01-02 17:19 ` Drew Adams
2016-01-02 23:11 ` Richard Stallman
` (3 subsequent siblings)
5 siblings, 1 reply; 18+ messages in thread
From: John Wiegley @ 2016-01-02 17:11 UTC (permalink / raw)
To: Drew Adams; +Cc: emacs-devel
>>>>> Drew Adams <drew.adams@oracle.com> writes:
> If you have a version of GNU Emacs older than 24.4 then you are lucky to
> still have `defadvice' documented in the Elisp manual.
Maybe we should have a "deprecated features" manual, where text gets moved
after it is removed from the Elisp manual? Even though 25.1 may not use
defadvice, it still allows such code to be written, which means you'll
probably run across such code in the future and would like to read
documentation on how it works.
I can understand taking it out of the manual, but it would be nice to have
another manual for "features you may well run into in the wild, though you
shouldn't write new code this way". I'm not proposing maintaining such a
manual actively, but just copying deprecated sections like the "defadvice"
content directly into it instead of deletion.
--
John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F
http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2
^ permalink raw reply [flat|nested] 18+ messages in thread
* RE: Please post older versions of GNU Emacs manuals on the web
2016-01-02 17:11 ` John Wiegley
@ 2016-01-02 17:19 ` Drew Adams
2016-01-04 3:15 ` Richard Stallman
0 siblings, 1 reply; 18+ messages in thread
From: Drew Adams @ 2016-01-02 17:19 UTC (permalink / raw)
To: John Wiegley; +Cc: emacs-devel
> > If you have a version of GNU Emacs older than 24.4 then you are lucky to
> > still have `defadvice' documented in the Elisp manual.
>
> Maybe we should have a "deprecated features" manual, where text gets moved
> after it is removed from the Elisp manual? Even though 25.1 may not use
> defadvice, it still allows such code to be written, which means you'll
> probably run across such code in the future and would like to read
> documentation on how it works.
>
> I can understand taking it out of the manual, but it would be nice to have
> another manual for "features you may well run into in the wild, though you
> shouldn't write new code this way". I'm not proposing maintaining such a
> manual actively, but just copying deprecated sections like the "defadvice"
> content directly into it instead of deletion.
I'm not against our doing what you suggest (as I say, IMO the `defadvice'
doc should never have been removed from the manual, at least as long as
it is still supported (while deprecated)).
But what I propose is different. And unlike what you suggest it should
require no extra effort, beyond the one-time effort of building the
HTML doc, which should not be a big deal.
My proposal is for GNU Emacs to post the complete Emacs and Elisp
manuals for older versions. We could even add a command similar to
what I posted here, which takes the current release into account
when determining the URL.
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Please post older versions of GNU Emacs manuals on the web
2016-01-02 17:19 ` Drew Adams
@ 2016-01-04 3:15 ` Richard Stallman
0 siblings, 0 replies; 18+ messages in thread
From: Richard Stallman @ 2016-01-04 3:15 UTC (permalink / raw)
To: Drew Adams; +Cc: jwiegley, emacs-devel
[[[ To any NSA and FBI agents reading my email: please consider ]]]
[[[ whether defending the US Constitution against all enemies, ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]
> My proposal is for GNU Emacs to post the complete Emacs and Elisp
> manuals for older versions. We could even add a command similar to
> what I posted here, which takes the current release into account
> when determining the URL.
I see no reason to object to having older manuals in
gnu.org/software/emacs, if someone wants to post them.
--
Dr Richard Stallman
President, Free Software Foundation (gnu.org, fsf.org)
Internet Hall-of-Famer (internethalloffame.org)
Skype: No way! See stallman.org/skype.html.
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Please post older versions of GNU Emacs manuals on the web
2016-01-02 16:46 Please post older versions of GNU Emacs manuals on the web Drew Adams
2016-01-02 17:01 ` Eli Zaretskii
2016-01-02 17:11 ` John Wiegley
@ 2016-01-02 23:11 ` Richard Stallman
2016-01-03 3:57 ` John Wiegley
2016-01-03 2:07 ` Xue Fuqiao
` (2 subsequent siblings)
5 siblings, 1 reply; 18+ messages in thread
From: Richard Stallman @ 2016-01-02 23:11 UTC (permalink / raw)
To: Drew Adams; +Cc: emacs-devel
[[[ To any NSA and FBI agents reading my email: please consider ]]]
[[[ whether defending the US Constitution against all enemies, ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]
> Can GNU Emacs not provide its users with the doc for more
> than one release on line? How hard and how costly is that?
1+.
In addition, I think the text about defadvice was deleted from the
manual too soon. Just because it is no longer the recommended
interface is no reason to remove it from the Lisp manual.
> Nothing can ever be "removed" from the Internet. You can find your
> v24.3 version of ELisp manual, and in it the chapter about advising,
> here:
Yes, one can do that, but `i defadvice' ought to work.
--
Dr Richard Stallman
President, Free Software Foundation (gnu.org, fsf.org)
Internet Hall-of-Famer (internethalloffame.org)
Skype: No way! See stallman.org/skype.html.
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Please post older versions of GNU Emacs manuals on the web
2016-01-02 23:11 ` Richard Stallman
@ 2016-01-03 3:57 ` John Wiegley
2016-01-03 4:09 ` Drew Adams
` (2 more replies)
0 siblings, 3 replies; 18+ messages in thread
From: John Wiegley @ 2016-01-03 3:57 UTC (permalink / raw)
To: Richard Stallman; +Cc: Drew Adams, emacs-devel
>>>>> Richard Stallman <rms@gnu.org> writes:
> In addition, I think the text about defadvice was deleted from the manual
> too soon. Just because it is no longer the recommended interface is no
> reason to remove it from the Lisp manual.
OK, since there seems to be general agreement, how about we pull defadvice
back into the manual for 25.1, with a note that has been deprecated.
--
John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F
http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2
^ permalink raw reply [flat|nested] 18+ messages in thread
* RE: Please post older versions of GNU Emacs manuals on the web
2016-01-03 3:57 ` John Wiegley
@ 2016-01-03 4:09 ` Drew Adams
2016-01-03 4:18 ` raman
2016-01-03 10:55 ` David Kastrup
2 siblings, 0 replies; 18+ messages in thread
From: Drew Adams @ 2016-01-03 4:09 UTC (permalink / raw)
To: John Wiegley, Richard Stallman; +Cc: emacs-devel
> > In addition, I think the text about defadvice was deleted from the manual
> > too soon. Just because it is no longer the recommended interface is no
> > reason to remove it from the Lisp manual.
>
> OK, since there seems to be general agreement, how about we pull defadvice
> back into the manual for 25.1, with a note that has been deprecated.
+1
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Please post older versions of GNU Emacs manuals on the web
2016-01-03 3:57 ` John Wiegley
2016-01-03 4:09 ` Drew Adams
@ 2016-01-03 4:18 ` raman
2016-01-03 10:55 ` David Kastrup
2 siblings, 0 replies; 18+ messages in thread
From: raman @ 2016-01-03 4:18 UTC (permalink / raw)
To: Richard Stallman; +Cc: Drew Adams, emacs-devel
John Wiegley <jwiegley@gmail.com> writes:
1+.>>>>>> Richard Stallman <rms@gnu.org> writes:
>
>> In addition, I think the text about defadvice was deleted from the manual
>> too soon. Just because it is no longer the recommended interface is no
>> reason to remove it from the Lisp manual.
>
> OK, since there seems to be general agreement, how about we pull defadvice
> back into the manual for 25.1, with a note that has been deprecated.
--
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Please post older versions of GNU Emacs manuals on the web
2016-01-03 3:57 ` John Wiegley
2016-01-03 4:09 ` Drew Adams
2016-01-03 4:18 ` raman
@ 2016-01-03 10:55 ` David Kastrup
2016-01-03 16:34 ` Drew Adams
2 siblings, 1 reply; 18+ messages in thread
From: David Kastrup @ 2016-01-03 10:55 UTC (permalink / raw)
To: Richard Stallman; +Cc: Drew Adams, emacs-devel
John Wiegley <jwiegley@gmail.com> writes:
>>>>>> Richard Stallman <rms@gnu.org> writes:
>
>> In addition, I think the text about defadvice was deleted from the
>> manual too soon. Just because it is no longer the recommended
>> interface is no reason to remove it from the Lisp manual.
>
> OK, since there seems to be general agreement, how about we pull
> defadvice back into the manual for 25.1, with a note that has been
> deprecated.
That seems to make sense. However, Raman stated that nadvice does not
work for a number of use cases he currently uses defadvice for. That
hole needs to be filled in some manner eventually, or we will never be
justified in completing deprecation.
--
David Kastrup
^ permalink raw reply [flat|nested] 18+ messages in thread
* RE: Please post older versions of GNU Emacs manuals on the web
2016-01-03 10:55 ` David Kastrup
@ 2016-01-03 16:34 ` Drew Adams
0 siblings, 0 replies; 18+ messages in thread
From: Drew Adams @ 2016-01-03 16:34 UTC (permalink / raw)
To: David Kastrup, Richard Stallman; +Cc: emacs-devel
> >> In addition, I think the text about defadvice was deleted from the
> >> manual too soon. Just because it is no longer the recommended
> >> interface is no reason to remove it from the Lisp manual.
> >
> > OK, since there seems to be general agreement, how about we pull
> > defadvice back into the manual for 25.1, with a note that has been
> > deprecated.
>
> That seems to make sense. However, Raman stated that nadvice does not
> work for a number of use cases he currently uses defadvice for. That
> hole needs to be filled in some manner eventually, or we will never be
> justified in completing deprecation.
+1
There is also the question of using defadvice to modify a
doc string. AFAICT, that is another hole unfilled by nadvice.
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Please post older versions of GNU Emacs manuals on the web
2016-01-02 16:46 Please post older versions of GNU Emacs manuals on the web Drew Adams
` (2 preceding siblings ...)
2016-01-02 23:11 ` Richard Stallman
@ 2016-01-03 2:07 ` Xue Fuqiao
2016-01-03 3:14 ` raman
2016-01-03 7:08 ` Teemu Likonen
5 siblings, 0 replies; 18+ messages in thread
From: Xue Fuqiao @ 2016-01-03 2:07 UTC (permalink / raw)
To: Drew Adams; +Cc: Emacs-devel
On Sun, Jan 3, 2016 at 12:46 AM, Drew Adams <drew.adams@oracle.com> wrote:
> How about posting multiple versions of the Emacs doc on line?
+1.
Projects like Python[1] and Atom[2] have multiple versions of online
documentation, and I often refer to docs for older versions of these
projects. For Emacs, I think having multiple versions of online
documentation is more convenient than the alternative methods[3], for
both Emacs users and package developers.
Footnotes:
[1] https://www.python.org/doc/versions/
[2] https://atom.io/docs
[3] Such as skimming/searching the etc/NEWS.x files, using the Wayback
Machine, or install older versions of Emacs and see their info files.
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Please post older versions of GNU Emacs manuals on the web
2016-01-02 16:46 Please post older versions of GNU Emacs manuals on the web Drew Adams
` (3 preceding siblings ...)
2016-01-03 2:07 ` Xue Fuqiao
@ 2016-01-03 3:14 ` raman
2016-01-03 3:32 ` Drew Adams
2016-01-03 7:08 ` Teemu Likonen
5 siblings, 1 reply; 18+ messages in thread
From: raman @ 2016-01-03 3:14 UTC (permalink / raw)
To: Drew Adams; +Cc: emacs-devel
1+. The decapitation of defadvice is indeed unfortunate -- it's
replacement (nadvice) doesn't do everything that the original defadvice
did --- and to my knowledge there were no known breakages with
defadvice. Since that change, the new advice layer -- inconjunction
with the interactive-p change made some things harder, others
impossible -- for details see the comments in the code.
I hadn't realized that the documentation had been pulled -- guess it
makes sense from the overall perspective of what was essentially a move
to deprecate advice.
--
^ permalink raw reply [flat|nested] 18+ messages in thread
* RE: Please post older versions of GNU Emacs manuals on the web
2016-01-03 3:14 ` raman
@ 2016-01-03 3:32 ` Drew Adams
0 siblings, 0 replies; 18+ messages in thread
From: Drew Adams @ 2016-01-03 3:32 UTC (permalink / raw)
To: raman; +Cc: emacs-devel
> 1+. The decapitation of defadvice is indeed unfortunate -- it's
> replacement (nadvice) doesn't do everything that the original defadvice
> did --- and to my knowledge there were no known breakages with
> defadvice. Since that change, the new advice layer -- inconjunction
> with the interactive-p change made some things harder, others
> impossible -- for details see the comments in the code.
>
> I hadn't realized that the documentation had been pulled -- guess it
> makes sense from the overall perspective of what was essentially a move
> to deprecate advice.
IMO it was especially a move to promote the new. Nothing about
deprecation calls for such doc removal.
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Please post older versions of GNU Emacs manuals on the web
2016-01-02 16:46 Please post older versions of GNU Emacs manuals on the web Drew Adams
` (4 preceding siblings ...)
2016-01-03 3:14 ` raman
@ 2016-01-03 7:08 ` Teemu Likonen
5 siblings, 0 replies; 18+ messages in thread
From: Teemu Likonen @ 2016-01-03 7:08 UTC (permalink / raw)
To: emacs-devel
[-- Attachment #1: Type: text/plain, Size: 847 bytes --]
Drew Adams [2016-01-02 08:46:17-08] wrote:
> How about posting multiple versions of the Emacs doc on line?
A great example: PostgreSQL. Its documentation pages have a navigation
line with links that take user to the same (sub)page in different
PostgreSQL versions.
This page in other versions: 9.1 / 9.2 / 9.3 / current (9.4) |
Development versions: devel / 9.5 | Unsupported versions: 8.2 / 8.3
/ 8.4 / 9.0
For example, section "9.9. Date/Time Functions and Operators" for
PostgreSQL 9.4:
http://www.postgresql.org/docs/9.4/static/functions-datetime.html
Click a different version number in the navigation line and you stay in
the same section, just another PostgreSQL version.
--
/// Teemu Likonen - .-.. <https://github.com/tlikonen> //
// PGP: 4E10 55DC 84E9 DFF6 13D7 8557 719D 69D3 2453 9450 ///
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]
^ permalink raw reply [flat|nested] 18+ messages in thread
[parent not found: <<1e249214-6831-4c2b-98a4-d16a6d1d7048@default>]
end of thread, other threads:[~2016-01-04 3:15 UTC | newest]
Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-02 16:46 Please post older versions of GNU Emacs manuals on the web Drew Adams
2016-01-02 17:01 ` Eli Zaretskii
2016-01-02 17:11 ` John Wiegley
2016-01-02 17:19 ` Drew Adams
2016-01-04 3:15 ` Richard Stallman
2016-01-02 23:11 ` Richard Stallman
2016-01-03 3:57 ` John Wiegley
2016-01-03 4:09 ` Drew Adams
2016-01-03 4:18 ` raman
2016-01-03 10:55 ` David Kastrup
2016-01-03 16:34 ` Drew Adams
2016-01-03 2:07 ` Xue Fuqiao
2016-01-03 3:14 ` raman
2016-01-03 3:32 ` Drew Adams
2016-01-03 7:08 ` Teemu Likonen
[not found] <<1e249214-6831-4c2b-98a4-d16a6d1d7048@default>
[not found] ` <<83a8onc3vc.fsf@gnu.org>
2016-01-02 17:19 ` Drew Adams
2016-01-03 6:33 ` Ivan Shmakov
[not found] ` <<E1aFVL3-0000Fj-8h@fencepost.gnu.org>
2016-01-02 23:16 ` Drew Adams
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.