all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: googleartist@yahoo.com (Artist)
Subject: Function Defintion
Date: 28 Feb 2003 11:47:25 -0800	[thread overview]
Message-ID: <de3ad953.0302281147.38ae9ded@posting.google.com> (raw)

Hi, How I can get the function definition via lisp code?
 Lambda expression may be ok.

I know how to see it via find-function and I don't want to use macro.

Something like
(get-definition 'mark-whole-buffer)

should return

(defun mark-whole-buffer ()
  "Put point at beginning and mark at end of buffer.
You probably should not use this function in Lisp programs;
it is usually a mistake for a Lisp function to use any subroutine
that uses or sets the mark."
  (interactive)
  (push-mark (point))
  (push-mark (point-max) nil t)
  (goto-char (point-min)))



Thanks You
[aritst]

             reply	other threads:[~2003-02-28 19:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-28 19:47 Artist [this message]
2003-02-28 20:38 ` Function Defintion Barry Margolin
2003-02-28 20:38 ` Stefan Monnier
2003-03-01  4:15 ` D. Goel

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=de3ad953.0302281147.38ae9ded@posting.google.com \
    --to=googleartist@yahoo.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.