all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Vincent Belaïche'" <vincent.b.1@hotmail.fr>,
	monnier@iro.umontreal.ca,
	"'Jay Belanger'" <jay.p.belanger@gmail.com>
Cc: 'Karl Berry' <karl@freefriends.org>,
	pertusus@free.fr, 'emacs-devel' <emacs-devel@gnu.org>
Subject: RE: 5x5 documentation
Date: Tue, 21 Jun 2011 13:59:26 -0700	[thread overview]
Message-ID: <CE077AD15A174621B6D4D662DB28B93E@us.oracle.com> (raw)
In-Reply-To: <DUB102-w28AF6DAA986F24B876CD8884510@phx.gbl>

> It would be good if a docstring could point at some anchor
> in a manual...
>	 
> It would be better to have some markup to say "hey !  go
> the point that correspond to index entry XXX where you find
> that index in this index info node", and XXX is the
> function/variable/etc... to document and that has some index
> entry.

I provided a patch to do this recently - see thread "adding manual cross-ref
links to *Help*".

However, I cannot give you a URL to that thread, because for some reason it is
not recorded in the archive!  What's up with that?

Anyway, I have since improved the code slightly.  To give it a try, or to
examine the code:
http://www.emacswiki.org/emacs/download/help-fns%2b.el

Just load the file and try `C-h v', `C-h f', etc.
See also user option `help-cross-reference-manuals'. 

(Juri will soon apply the code or otherwise provide similar behavior to Emacs.)

I made `describe-*' commands offer links to the manuals:

* `describe-mode' (each mode doc'd gets a link to manuals)
* `describe-function' and derivatives, e.g. `describe-key'
* `describe-variable'
* `describe-face'
* `describe-package'

I did this for each standard `describe-*' command that I felt could reasonably
link to manuals.  Others could also be done, in some cases linking to specific
manuals - e.g., `describe-character-set', `describe-class' (EIEIO),
`describe-generic' (EIEIO).  Some `describe-*' commands of course produce output
that has nothing that could be linked to a manual - e.g. `describe-bindings'.

Obviously anyone can use the code to add manual links for their own describe
commands.  You just need to add this sexp to the command's code, where THING is
the thing to look up (e.g. function, var, face whatever):

(Info-make-manuals-xref THING)

THING needs to match an index entry exactly (we don't want apropos matching
here).  So if the index entry has extra stuff then that needs to be taken into
account.

For example, package names are indexed with " package" after the name (e.g.
"Semantic package"), so I use this in `describe-package':

(Info-make-manuals-xref
 (concat (symbol-name package) " package"))
	
> That would also allow to make function/variable documentation
> internationalized.




  reply	other threads:[~2011-06-21 20:59 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <80oc1u26ae.fsf@gmail.com>
2011-06-21  3:19 ` 5x5 documentation Stefan Monnier
2011-06-21 20:01   ` Vincent Belaïche
2011-06-21 20:59     ` Drew Adams [this message]
2011-06-21 21:07       ` Drew Adams
2011-06-22  4:32         ` Vincent Belaïche
2011-06-22 13:35           ` Drew Adams
2011-06-22 16:26             ` Vincent Belaïche
2011-06-22 17:55               ` Drew Adams
2011-06-22 20:27                 ` Vincent Belaïche
2011-06-22 21:22                   ` Theme submission: adwaita William Stevenson
2011-06-22 23:09                   ` 5x5 documentation Drew Adams

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=CE077AD15A174621B6D4D662DB28B93E@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    --cc=jay.p.belanger@gmail.com \
    --cc=karl@freefriends.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=pertusus@free.fr \
    --cc=vincent.b.1@hotmail.fr \
    /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.