unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Stephen J. Turnbull" <stephen@xemacs.org>
To: Shenli Zhu <zhushenli2@gmail.com>
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Emacs C debug help function?
Date: Fri, 10 Sep 2010 12:37:14 +0900	[thread overview]
Message-ID: <87occ61d79.fsf@uwakimon.sk.tsukuba.ac.jp> (raw)
In-Reply-To: <AANLkTi=yzHP+ryzCSy_OtWDCTgEK9PNhSbKzEQkt-XJE@mail.gmail.com>

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?)



  reply	other threads:[~2010-09-10  3:37 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-10  2:11 Emacs C debug help function? Shenli Zhu
2010-09-10  3:37 ` Stephen J. Turnbull [this message]
2010-09-10  8:43   ` Shenli Zhu
2010-09-10  4:02 ` Glenn Morris
2010-09-10  8:40   ` Shenli Zhu

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87occ61d79.fsf@uwakimon.sk.tsukuba.ac.jp \
    --to=stephen@xemacs.org \
    --cc=emacs-devel@gnu.org \
    --cc=zhushenli2@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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).