From: Andrew Gierth <andrew@erlenstar.demon.co.uk>
Cc: gnuist006@hotmail.com (gnuist006)
Subject: Re: Emacs internals + lisp guru question (with an error corrected)
Date: 29 Sep 2002 18:03:30 +0100 [thread overview]
Message-ID: <87bs6gpw2l.fsf@erlenstar.demon.co.uk> (raw)
In-Reply-To: b00bb831.0209282235.5ace31a6@posting.google.com
[followups pruned a bit]
>>>>> "gnuist006" == gnuist006 <gnuist006@hotmail.com> writes:
gnuist006> There are some functions that take a string as argument.
gnuist006> ^^^^^^
gnuist006> Text can be read from the buffer as a string.
gnuist006> There are other functions that take a "symbol" as an argument.
gnuist006> A string can be converted to a symbol.
gnuist006> However, when symbol is provided to the function by
gnuist006> converting a string it is not working.
gnuist006> For example:
gnuist006> (describe-function quoted-SYMBOL) works
gnuist006> eg (describe-function 'describe-function)
gnuist006> (make-symbol "describe-function") works
gnuist006> but
gnuist006> (describe-function (make-symbol "describe-function")) is
gnuist006> not working.
make-symbol creates a new, uninterned symbol that isn't the same as
any existing symbol even if it happens to have the same name. The
values and properties of the new symbol are all undefined.
What you're looking for is 'intern', which returns the symbol with a
specific name from the specified obarray (either the default one or a
specified one).
(describe-function (intern "describe-function"))
gnuist006> How can we get the code of describe-function?
the source is in help.el
gnuist006> What is the meaning of the gibberish from
gnuist006> (insert (format "%s" (symbol-function 'describe-function) ))
it's compiled bytecode.
--
Andrew.
comp.unix.programmer FAQ: see <URL: http://www.erlenstar.demon.co.uk/unix/>
next prev parent reply other threads:[~2002-09-29 17:03 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
2002-09-29 17:03 ` Andrew Gierth [this message]
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=87bs6gpw2l.fsf@erlenstar.demon.co.uk \
--to=andrew@erlenstar.demon.co.uk \
--cc=gnuist006@hotmail.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.