From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Teemu Likonen Newsgroups: gmane.emacs.help Subject: Re: Emacs C source code Date: Tue, 31 Jul 2012 19:27:54 +0300 Message-ID: <87k3xjrj3p.fsf@mithlond.arda> References: <34234906.post@talk.nabble.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1343752104 30446 80.91.229.3 (31 Jul 2012 16:28:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 31 Jul 2012 16:28:24 +0000 (UTC) Cc: Help-gnu-emacs@gnu.org To: drain Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 31 18:28:24 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SwFJ2-0007G0-CV for geh-help-gnu-emacs@m.gmane.org; Tue, 31 Jul 2012 18:28:24 +0200 Original-Received: from localhost ([::1]:45024 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwFJ1-0008EY-N3 for geh-help-gnu-emacs@m.gmane.org; Tue, 31 Jul 2012 12:28:23 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41313) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwFIq-0008Bc-5k for Help-gnu-emacs@gnu.org; Tue, 31 Jul 2012 12:28:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SwFIh-0003xB-Qu for Help-gnu-emacs@gnu.org; Tue, 31 Jul 2012 12:28:12 -0400 Original-Received: from mta-out.inet.fi ([195.156.147.13]:46729 helo=jenni2.inet.fi) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwFIh-0003mI-H9 for Help-gnu-emacs@gnu.org; Tue, 31 Jul 2012 12:28:03 -0400 Original-Received: from mithlond.arda (84.251.134.110) by jenni2.inet.fi (8.5.140.03) id 4FD0823502B2D3B6; Tue, 31 Jul 2012 19:27:54 +0300 Original-Received: from dtw by mithlond.arda with local (Exim 4.72) (envelope-from ) id 1SwFIY-0000zL-94; Tue, 31 Jul 2012 19:27:54 +0300 In-Reply-To: <34234906.post@talk.nabble.com> (drain's message of "Tue, 31 Jul 2012 03:12:07 -0700 (PDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 195.156.147.13 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:86136 Archived-At: 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; }