unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Function Defintion
@ 2003-02-28 19:47 Artist
  2003-02-28 20:38 ` Barry Margolin
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Artist @ 2003-02-28 19:47 UTC (permalink / 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]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-03-01  4:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-28 19:47 Function Defintion Artist
2003-02-28 20:38 ` Barry Margolin
2003-02-28 20:38 ` Stefan Monnier
2003-03-01  4:15 ` D. Goel

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