all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Thaddeus L Olczyk <olczyk@interaccess.com>
Subject: Re: Emacs internals + lisp guru question (with an error corrected)
Date: Sun, 29 Sep 2002 08:46:38 GMT	[thread overview]
Message-ID: <77fdpu0o87i2o3o92ocvkc12t8ak04jo9k@4ax.com> (raw)
In-Reply-To: b00bb831.0209282235.5ace31a6@posting.google.com

On 28 Sep 2002 23:35:11 -0700, gnuist006@hotmail.com (gnuist006)
wrote:

>There are some functions that take a string as argument.
>                                     ^^^^^^
>Text can be read from the buffer as a string.
>There are other functions that take a "symbol" as an argument.
>A string can be converted to a symbol.
>However, when symbol is provided to the function by converting a string
> it is not working.
>
>For example:
>
>(describe-function quoted-SYMBOL) works 
>    eg (describe-function 'describe-function)
>(make-symbol "describe-function") works
>
>but
>
>(describe-function (make-symbol "describe-function")) is not working.
>
>Is there a way to fix it?
>
>How can we get the code of describe-function?
>
>What is the meaning of the gibberish from
>(insert (format "%s" (symbol-function 'describe-function) ))
>
>What is out there to learn more about emacs/emacs_lisp and become more
>sophisticated?
>
>Many thanks to the gurus and novices for their very kind contributions.
Executing these three forms should clarify things:

(let ((sym 'describe-function))
  (funcall sym 'describe-function))

(let ((sym2 (make-symbol "describe-function")))
  (funcall sym2 'describe-function))

(let ((sym2 (intern "describe-function")))
  (funcall sym2 'describe-function))

To see the code ( if possible ) for describe-function do:
(describe-function 'describe-function)

Is should say something like:
describe-function is a function in "file"( underscored).

Go to "file" and press return up pops the file at the function
definition.

The one exception: a function which is an emacs primitive
imlemented in C. Then you will have to grep the source for it.

  reply	other threads:[~2002-09-29  8:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-29  6:35 Emacs internals + lisp guru question (with an error corrected) gnuist006
2002-09-29  8:46 ` Thaddeus L Olczyk [this message]
2002-09-29 17:03 ` Andrew Gierth
2002-09-30  2:02   ` gnuist006

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=77fdpu0o87i2o3o92ocvkc12t8ak04jo9k@4ax.com \
    --to=olczyk@interaccess.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.