all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

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.