Emacs and changing documentation formats
Emacs and changing documentation formats
Posted Dec 11, 2014 7:31 UTC (Thu) by Karellen (subscriber, #67644)Parent article: Emacs and changing documentation formats
I do find a table of contents with per-chapter links handy on occasion. But they're still not necessary, due to the magic of [ctrl]+f,"chapter title".
(Naturally, this required that your computer-based documentation is available as one large document. If you're creating a zillion tiny documents with links between them, just stop it, please? "Flipping" through documentation is much nicer with page up/page down, or roughly dragging a scrollbar thumb, than it is with endlessly clicking "prev"/"next" links.)
Posted Dec 11, 2014 8:39 UTC (Thu)
by ibukanov (subscriber, #3942)
[Link] (6 responses)
100% spot on. This is the reason that info sucks for me with its viewers showing typically one node without a possibility to quickly search the whole document. I have found that man pages for GNU utils that refer to info pages for full details are more usable then info themselves because I can quickly locate the term using search in the man page.
Posted Dec 11, 2014 9:33 UTC (Thu)
by marcH (subscriber, #57642)
[Link]
The default info viewer searches across multiple info nodes. 100% "off spot"?
And this is not even related to the source format.
Posted Dec 11, 2014 9:43 UTC (Thu)
by drothlis (guest, #89727)
[Link] (1 responses)
Having said that, I really feel for non-Emacs users who try to use the "info" command-line tool. It's just so different to anything else. You already know how to search in man pages because it uses $PAGER, which in turn uses the same keybindings as vi. Info is just alien.
Emacs users don't use the "info" command-line tool either, they use Emacs's built-in info browser which uses keybindings an Emacs user is already familiar with. Sometimes I wonder why distros don't replace "info" with a script that opens up the corresponding documentation in your web browser -- after all you can generate html from texinfo sources.
Posted Dec 11, 2014 17:44 UTC (Thu)
by sjj (guest, #2020)
[Link]
Posted Dec 18, 2014 16:05 UTC (Thu)
by dakas (guest, #88146)
[Link] (2 responses)
Posted Dec 18, 2014 23:38 UTC (Thu)
by flussence (guest, #85566)
[Link]
But I agree with the rest. HTML is a poor output format for technical documentation.
Posted Dec 24, 2014 1:46 UTC (Wed)
by bjartur (guest, #67801)
[Link]
Posted Dec 11, 2014 9:03 UTC (Thu)
by marcH (subscriber, #57642)
[Link] (1 responses)
Yes they are. When using info I use regularly BOTH indices and search because sometimes one hits faster and sometimes it's the other.
> I don't think I've needed to use an index for online documentation in about a decade.
Before mobile phones or tablets existed most people did not think they would ever feel the need for one.
Posted Dec 11, 2014 9:11 UTC (Thu)
by marcH (subscriber, #57642)
[Link]
Posted Dec 11, 2014 9:27 UTC (Thu)
by drothlis (guest, #89727)
[Link] (4 responses)
As an Emacs user, my use case for documentation indexes is this:
* I'm editing a Makefile.
It's so convenient that I try to find or generate info versions of the documentation for any programming language I use frequently. So far I've managed to get bash / coreutils / awk / sed, gnu make, automake / autoconf, perl, and python manuals.
Posted Dec 11, 2014 10:28 UTC (Thu)
by dgm (subscriber, #49227)
[Link] (3 responses)
Posted Dec 11, 2014 11:08 UTC (Thu)
by drothlis (guest, #89727)
[Link] (2 responses)
Posted Dec 11, 2014 11:24 UTC (Thu)
by drothlis (guest, #89727)
[Link]
Furthermore, indexed documentation gives you things that introspection doesn't -- I often find myself looking up the documentation for Python keywords, standard exception hierarchy, etc etc etc. None of which I can get from ipython's contextual help, at least.
Posted Dec 11, 2014 15:11 UTC (Thu)
by nix (subscriber, #2304)
[Link]
Posted Dec 12, 2014 4:00 UTC (Fri)
by sadboy (guest, #94691)
[Link]
Searching is a terribly inefficient method of reading documentation. Imagine searching through a million page document with ten thousand references to 'foo', for that one definition of 'foo'.
Additionally indices have auto-completion which will give you a quick list of potentially relevant terms.
Emacs and changing documentation formats
Emacs and changing documentation formats
Emacs and changing documentation formats
Emacs and changing documentation formats
Emacs and changing documentation formats
This is the reason that info sucks for me with its viewers showing typically one node without a possibility to quickly search the whole document.
Except that s does search the whole document. So does i. And much faster than any HTML search, I might add.
Having one large HTML page for a 700-page manual is a huge pain in the behind. Try to do any sensible scrolling with the scrollbar: pretty much impossible. Try getting back to the previous place when scrollbar or text search led to some uninteresting chapter: pretty much impossible. There is no "Back" button for in-page navigation.
Emacs and changing documentation formats
Emacs and changing documentation formats
Emacs and changing documentation formats
Emacs and changing documentation formats
Emacs and changing documentation formats
* Hmmm what does "$*" mean again?
* Press magic Emacs key incantation ("F1 S")
* Bam the documentation for "$*" appears. Not just the right document, but with the viewpoint centred at the relevant paragraph, which is highlighted.
Emacs and changing documentation formats
Emacs and changing documentation formats
Emacs and changing documentation formats
Emacs and changing documentation formats
Emacs and changing documentation formats