all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Robert Thorpe" <rthorpe@realworldtech.com>
Subject: Re: Why I can't use `info' in emacs?
Date: 15 Dec 2006 06:57:13 -0800	[thread overview]
Message-ID: <1166194633.486698.321520@n67g2000cwd.googlegroups.com> (raw)
In-Reply-To: <c43b7hb5ho.fsf@gmail.com>

Hadron Quark wrote:
> "Robert Thorpe" <rthorpe@realworldtech.com> writes:
>
> > It's not documented by Emacs, it's documented in the Info docs that
> > come with GLibc.
>
> I installed the glibc info package on my ubuntu system. restarted
> emacs. Here are some outputs from the info pages for glibc and the man
> pages for printf:
>
> (a) man page using manual-entry(current-word):
>
> ,----
> | PRINTF(3)                                      Linux Programmer's Manual                                     <snip>
> Surely the man pages are superior in this instance for a programmer?

It depends.  The GLibc manual is odd in that it's maintained in both
TexInfo format and Man format.  The TexInfo manual is used to generate
the HTML manual.  Sometimes the Man is better than the info, often it's
the other way around.

In this case Info returns much less documentation.  However, the info
manual is structured a little differently.  Hit "u" from the node where
you are and you'll see all the other stuff in the same section:-

* Formatted Output Basics     Some examples to get you started.
* Output Conversion Syntax    General syntax of conversion
specifications.
* Table of Output Conversions Summary of output conversions and what
they do.
* Integer Conversions         Details about formatting of integers.
* Floating-Point Conversions  Details about formatting of
floating-point numbers.
* Other Output Conversions    Details about formatting of strings,
characters, pointers, and the like.
* Formatted Output Functions  Descriptions of the actual functions.
* Dynamic Output              Functions that allocate memory for the
output.
* Variable Arguments Output   `vprintf' and friends.
* Parsing a Template String   What kinds of args does a given template
call for?
* Example of Parsing          Sample program using
`parse_printf_format'.

Hit 'u' again and you'll get more info on I/O functions.  The Info
manual explains all sorts of things like customizing printf that the
man-page doesn't cover.

The man-page is quite thorough in this case, but it is a little
confusing in one respect, It says "Linux Programmer's Manual".  I
have no idea why it says this, since printf is provided by Glibc.
Perhaps it dates from the time of Linux 2.1 when Linux had a different
C library.  More likely it's been written by someone in the Linux
project for continuity purposes, because people expect it there from
the days when Linux had it's own Libc.  If you are looking at the same
man page as me, then it documents many printf like functions, but not
quite all of them, not parse_printf_format for example.

Often the best manual depends on the function(!) The person who has
written the code tends to document it well in the manual they
themselves use.

  reply	other threads:[~2006-12-15 14:57 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-14 23:59 Why I can't use `info' in emacs? Ronald
2006-12-15  6:50 ` Harald Hanche-Olsen
2006-12-15  7:15   ` Ronald
2006-12-15 12:40     ` Robert Thorpe
2006-12-15 14:18       ` Eli Zaretskii
2006-12-15  8:39 ` Eli Zaretskii
     [not found] ` <mailman.1908.1166172009.2155.help-gnu-emacs@gnu.org>
2006-12-15  9:20   ` Ronald
2006-12-15 11:17     ` Eli Zaretskii
     [not found]     ` <mailman.1911.1166181447.2155.help-gnu-emacs@gnu.org>
2006-12-15 13:49       ` Hadron Quark
2006-12-15 14:02         ` Robert Thorpe
2006-12-15 14:13           ` Hadron Quark
2006-12-15 14:25           ` Hadron Quark
2006-12-15 14:57             ` Robert Thorpe [this message]
2006-12-15 15:49               ` Hadron Quark
2006-12-15 17:41                 ` Robert Thorpe
2006-12-18  0:10               ` Giorgos Keramidas
2006-12-18 11:51                 ` Robert Thorpe
2006-12-20  1:13                   ` Giorgos Keramidas
2006-12-20 16:51                     ` Robert Thorpe
2006-12-15 15:57             ` Eli Zaretskii
     [not found]             ` <mailman.1922.1166198262.2155.help-gnu-emacs@gnu.org>
2006-12-15 16:27               ` Hadron Quark
2006-12-15 18:11                 ` Robert Thorpe
2006-12-16 19:21                   ` Hadron Quark
2006-12-16 21:51                     ` Eli Zaretskii
     [not found]                     ` <mailman.1996.1166305877.2155.help-gnu-emacs@gnu.org>
2006-12-16 22:30                       ` Hadron Quark
2006-12-17  4:12                         ` Eli Zaretskii
     [not found]                         ` <mailman.2006.1166328762.2155.help-gnu-emacs@gnu.org>
2006-12-18 12:54                           ` Hadron Quark
2006-12-18 20:01                             ` Eli Zaretskii
2006-12-18 10:44                     ` Robert Thorpe
2006-12-18 12:56                       ` Hadron Quark
2006-12-18 13:12                         ` Robert Thorpe
2006-12-18 17:11                           ` Hadron Quark
2006-12-18 17:27                             ` Robert Thorpe
2006-12-16 12:04                 ` Eli Zaretskii
2006-12-15  9:20   ` Ronald

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=1166194633.486698.321520@n67g2000cwd.googlegroups.com \
    --to=rthorpe@realworldtech.com \
    /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.