all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "Eli Zaretskii" <eliz@gnu.org>
Cc: bug-gnu-emacs@gnu.org
Subject: RE: doc of eval-defun (C-M-x)
Date: Tue, 10 Jul 2007 14:58:21 -0700	[thread overview]
Message-ID: <DNEMKBNJBGPAOPIJOOICMEPADNAA.drew.adams@oracle.com> (raw)
In-Reply-To: <uzm249g3e.fsf@gnu.org>

> > As to explaining why it should be indexed, that explanation is now
> > irrelevant, unfortunately, since RMS has said:
> >
> > > We don't use the index that way.
> >
> > Nevertheless, FWIW, my thinking was that, since `eval-defun' is
> > discussed in that node, and this use of `eval-defun' is as
> > common as the `edebug' use (IMO), it would be good to help
> > readers find the discussion of `eval-defun' in the context of
> > `defvar' and `defcustom' (and `defface' as well). We index
> > the edebug discussion of `eval-defun'; we should also index the
> > use with `C-M-x', which is just as common.
>
> I'm not sure I understand what Richard meant by ``use the index that
> way'', but let me give you my personal perspective, FWIW: we do not
> index each and every instance where a certain symbol is mentioned.

No, of course not. No one has suggested doing that.

> We always index the instance where it is explained in the most
> detailed way, and then additionally index select other places
> (appropriately qualified, as in "foo (and bar)") where it is
> mentioned in the context of some other feature, if those places
> reveal something important that isn't covered in the locus of
> the main documentation.

I more or less agree with that.

> So the question is: what do those two nodes say about `eval-defun'
> that its main documentation in the Emacs user manual does not?

I don't think that is the question. You might say that the question is: what
do those two nodes say about `eval-defun' that node `Instrumenting' of the
Elisp manual, which is indexed, does not? The question of whether to index
occurrences in the Elisp manual is limited to the Elisp manual - unless you
are going to have Elisp manual index entries that send you to the Emacs
manual.

Here is what those two nodes say that node Instrumenting does not:

1. The fact that this applies to more than just function definitions, and it
is used for more than (other than) debugging instrumentation. Instrumenting,
which is the only indexed node, is about instrumenting function definitions
(for debugging), and only "when you invoke [it]... on a function
definition."

2. The fact that it overrides any original definition. In this it is
different from `C-x C-e', for instance, wrt `defvar', `defcustom', and
`defface'.

In general, the context is different, and no mention is made, in node
Instrumenting, of the other use context. The use case that is described in
the other nodes is, IMO, at least as frequent as the debugging use case.

The purpose of node Instrumenting is to explain instrumenting a function
definition for debugging. As its first line says, "In order to use Edebug to
debug Lisp code, you must first 'instrument' the code."  You use
`eval-defun' to do that, but that is not the only, or perhaps even the main
(most common) use of `eval-defun'.

  reply	other threads:[~2007-07-10 21:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-09 22:30 doc of eval-defun (C-M-x) Drew Adams
2007-07-10  5:38 ` Richard Stallman
2007-07-10 15:48 ` Eli Zaretskii
2007-07-10 16:19   ` Drew Adams
2007-07-10 20:08     ` Eli Zaretskii
2007-07-10 21:58       ` Drew Adams [this message]
2007-07-11  3:05       ` Richard Stallman

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=DNEMKBNJBGPAOPIJOOICMEPADNAA.drew.adams@oracle.com \
    --to=drew.adams@oracle.com \
    --cc=bug-gnu-emacs@gnu.org \
    --cc=eliz@gnu.org \
    /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.