From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stephen J. Turnbull" Newsgroups: gmane.emacs.devel Subject: Emacs C debug help function? Date: Fri, 10 Sep 2010 12:37:14 +0900 Message-ID: <87occ61d79.fsf@uwakimon.sk.tsukuba.ac.jp> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1284091159 4628 80.91.229.12 (10 Sep 2010 03:59:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 10 Sep 2010 03:59:19 +0000 (UTC) Cc: emacs-devel To: Shenli Zhu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 10 05:59:18 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Otulh-0004OS-MO for ged-emacs-devel@m.gmane.org; Fri, 10 Sep 2010 05:59:18 +0200 Original-Received: from localhost ([127.0.0.1]:48531 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Otulh-0007Kb-91 for ged-emacs-devel@m.gmane.org; Thu, 09 Sep 2010 23:59:17 -0400 Original-Received: from [140.186.70.92] (port=35472 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Otulb-0007KW-1O for emacs-devel@gnu.org; Thu, 09 Sep 2010 23:59:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OtulZ-00046A-UT for emacs-devel@gnu.org; Thu, 09 Sep 2010 23:59:10 -0400 Original-Received: from [130.158.254.171] (port=57789 helo=dmail02.cc.tsukuba.ac.jp) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OtulZ-00045i-K4 for emacs-devel@gnu.org; Thu, 09 Sep 2010 23:59:09 -0400 Original-Received: from imss12.cc.tsukuba.ac.jp (unknown [130.158.254.130]) by dmail02.cc.tsukuba.ac.jp (Postfix) with ESMTP id F0FCEF487F for ; Fri, 10 Sep 2010 12:43:08 +0900 (JST) Original-Received: from imss12.cc.tsukuba.ac.jp (imss12.cc.tsukuba.ac.jp [127.0.0.1]) by postfix.imss70 (Postfix) with ESMTP id F332AF4003; Fri, 10 Sep 2010 12:43:00 +0900 (JST) Original-Received: from mgmt1.sk.tsukuba.ac.jp (unknown [130.158.97.223]) by imss12.cc.tsukuba.ac.jp (Postfix) with ESMTP id E4A9CF4002; Fri, 10 Sep 2010 12:43:00 +0900 (JST) Original-Received: from uwakimon.sk.tsukuba.ac.jp (uwakimon.sk.tsukuba.ac.jp [130.158.99.156]) by mgmt1.sk.tsukuba.ac.jp (Postfix) with ESMTP id E2A093FA0464; Fri, 10 Sep 2010 12:43:00 +0900 (JST) Original-Received: by uwakimon.sk.tsukuba.ac.jp (Postfix, from userid 1000) id 022F91A2CD7; Fri, 10 Sep 2010 12:37:14 +0900 (JST) In-Reply-To: X-Mailer: VM undefined under 21.5 (beta29) "garbanzo" ed3b274cc037 XEmacs Lucid (x86_64-unknown-linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:129854 Archived-At: Shenli Zhu writes: > Is there any help function to display form, etc? Yes. Type "help user" to gdb for an annotated list. If you don't understand how to use them from that list, or need help interpreting results, please ask specifically. > And is there any instruction files on hacking C files? For advice on writing code, as far as I know there is a little bit in the Emacs Lisp Reference, and for the general structure of C support for Lisp, online there's http://www.xemacs.org/Documentation/21.5/html/internals.html Warning: Emacs and XEmacs redisplays are completely different, as are text properties and extents. The Lisp language implementation is pretty similar, as are the buffer and string structures. (You need to be a little careful with text as XEmacs still uses Mule code internally, but it has the same formal properties, eg, finding character boundaries in O(1), etc, and many of the same higher-level APIs for actually handling encoding as used in Emacs.) For the style you should use in writing code, there is the GNU coding standard, which I believe is distributed somewhere with Emacs. If not, you can install XEmacs and throw away everything except the "standards.info" file. :-) (Sorry, we don't provide an online version. Probably somewhere on the GNU site?)