From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: Comment on Emacs Lisp Introduction Date: Sat, 31 Jul 2010 13:06:11 -0700 Message-ID: <4AD6C2463006477AA90EBB9AA413A0F5@us.oracle.com> References: <877hkc2i7f.fsf@lola.goethe.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1280606806 16993 80.91.229.12 (31 Jul 2010 20:06:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 31 Jul 2010 20:06:46 +0000 (UTC) Cc: emacs-devel@gnu.org To: "'Fren Zeee'" , "'David Kastrup'" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 31 22:06:42 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OfIKN-0000sW-Tk for ged-emacs-devel@m.gmane.org; Sat, 31 Jul 2010 22:06:40 +0200 Original-Received: from localhost ([127.0.0.1]:45267 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OfIKN-0008Qp-Bj for ged-emacs-devel@m.gmane.org; Sat, 31 Jul 2010 16:06:39 -0400 Original-Received: from [140.186.70.92] (port=33470 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OfIKE-0008PA-Bo for emacs-devel@gnu.org; Sat, 31 Jul 2010 16:06:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OfIKD-0001V1-8B for emacs-devel@gnu.org; Sat, 31 Jul 2010 16:06:30 -0400 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]:32451) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OfIKD-0001Uo-0g; Sat, 31 Jul 2010 16:06:29 -0400 Original-Received: from rcsinet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id o6VK6P70019506 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 31 Jul 2010 20:06:27 GMT Original-Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153]) by rcsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o6VGdKfc032270; Sat, 31 Jul 2010 20:06:25 GMT Original-Received: from abhmt020.oracle.com by acsmt355.oracle.com with ESMTP id 473470761280606773; Sat, 31 Jul 2010 13:06:13 -0700 Original-Received: from dradamslap1 (/10.159.223.23) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sat, 31 Jul 2010 13:06:13 -0700 X-Mailer: Microsoft Office Outlook 11 Thread-Index: Acsw53uil6NijEMURFCNljKyczKoTQAA9XUg In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5931 X-Source-IP: acsmt353.oracle.com [141.146.40.153] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090209.4C548241.0212:SCFMA4539814,ss=1,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:128070 Archived-At: > >> What is your problem? > > > > David, My problem is that I want to see the function > > definition of next-line. > > ie lisp code without having to search, find which file has it and then > open it. On some platforms, I dont have the source and its an > unnecessary interruption in the work to go and make the detour to > search for it. As you saw, `symbol-function' gives you the current definition of a function. However, in your example use of it you can see that it is not very useful if the definition is byte-compiled. If you do not have access to the source code, and if the current definition does not come from the source code but from byte-compiled code, then what do you expect to see? If you do have access to the source code and if the function is defined in Lisp, then `symbol-function' will show you that Lisp code (assuming you have evaluated the source code).