all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Teemu Likonen <tlikonen@iki.fi>
To: drain <aeuster@gmail.com>
Cc: Help-gnu-emacs@gnu.org
Subject: Re: Emacs C source code
Date: Tue, 31 Jul 2012 19:27:54 +0300	[thread overview]
Message-ID: <87k3xjrj3p.fsf@mithlond.arda> (raw)
In-Reply-To: <34234906.post@talk.nabble.com> (drain's message of "Tue, 31 Jul 2012 03:12:07 -0700 (PDT)")

drain [2012-07-31 03:12:07 -0700] wrote:

> I click on 'syntax.c' and Emacs tells me: "the C source file syntax.c
> is not available".
>
> Where can I find this file? Where is it most likely to be in GNU /
> Linux? (my distro is Ubuntu 11.10)

If you compile Emacs from its source code and leave the source code
directory intact then the Emacs runtime will find function and variable
definitions from the C source too.

The relevant function looks like this:


DEFUN ("forward-word", Fforward_word, Sforward_word, 0, 1, "^p",
       doc: /* Move point forward ARG words (backward if ARG is negative).
Normally returns t.
If an edge of the buffer or a field boundary is reached, point is left there
and the function returns nil.  Field boundaries are not noticed if
`inhibit-field-text-motion' is non-nil.  */)
  (Lisp_Object arg)
{
  Lisp_Object tmp;
  int orig_val, val;

  if (NILP (arg))
    XSETFASTINT (arg, 1);
  else
    CHECK_NUMBER (arg);

  val = orig_val = scan_words (PT, XINT (arg));
  if (! orig_val)
    val = XINT (arg) > 0 ? ZV : BEGV;

  /* Avoid jumping out of an input field.  */
  tmp = Fconstrain_to_field (make_number (val), make_number (PT),
			     Qt, Qnil, Qnil);
  val = XFASTINT (tmp);

  SET_PT (val);
  return val == orig_val ? Qt : Qnil;
}



  reply	other threads:[~2012-07-31 16:27 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-31 10:12 Emacs C source code drain
2012-07-31 16:27 ` Teemu Likonen [this message]
2012-07-31 16:47   ` Teemu Likonen
2012-08-01  6:56     ` Teemu Likonen
2012-07-31 16:29 ` XeCycle
2012-08-01  3:57   ` Yuri Khan
2012-08-01  4:44     ` XeCycle
2012-07-31 16:37 ` Mark Skilbeck

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=87k3xjrj3p.fsf@mithlond.arda \
    --to=tlikonen@iki.fi \
    --cc=Help-gnu-emacs@gnu.org \
    --cc=aeuster@gmail.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.