From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: bojohan+news@dd.chalmers.se (Johan =?utf-8?Q?Bockg=C3=A5rd?=) Newsgroups: gmane.emacs.devel Subject: Re: goto-line trouble with narrowing Date: Wed, 01 Feb 2006 08:52:47 +0100 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1138781807 17994 80.91.229.2 (1 Feb 2006 08:16:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 1 Feb 2006 08:16:47 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 01 09:16:40 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1F4DAE-0007Z6-En for ged-emacs-devel@m.gmane.org; Wed, 01 Feb 2006 09:16:30 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F4DCt-0006nt-Qj for ged-emacs-devel@m.gmane.org; Wed, 01 Feb 2006 03:19:15 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F4Cqm-0005y0-QW for emacs-devel@gnu.org; Wed, 01 Feb 2006 02:56:24 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F4Cqj-0005x3-8C for emacs-devel@gnu.org; Wed, 01 Feb 2006 02:56:23 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F4Cqh-0005wr-Ms for emacs-devel@gnu.org; Wed, 01 Feb 2006 02:56:19 -0500 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1F4CpJ-0004X2-Vj for emacs-devel@gnu.org; Wed, 01 Feb 2006 02:54:54 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1F4CnS-0001Z2-Uj for emacs-devel@gnu.org; Wed, 01 Feb 2006 08:52:59 +0100 Original-Received: from linus003.dd.chalmers.se ([129.16.117.203]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 01 Feb 2006 08:52:58 +0100 Original-Received: from bojohan+news by linus003.dd.chalmers.se with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 01 Feb 2006 08:52:58 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-To: emacs-devel@gnu.org Original-Lines: 49 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: linus003.dd.chalmers.se Mail-Copies-To: never User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:J8UTTdt9YSe//QxV75EZlFIOEe0= 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:49866 Archived-At: Kevin Rodgers writes: > Johan Bockgård wrote: >> (byte-compile (lambda () (widen))) => #[nil "~\207" [] 1] > > Thanks Johan, but you'll have to fill me in on a few details since I > can't read Emacs Lisp byte code. No? Try disassemble :) There is a special byte op-code for `widen' so the compiled function call doesn't go through the symbol[1]. Compare it with this[2]: (byte-compile (lambda () (foo))) => #[nil "\300 \207" [foo] 1] Note the `foo' here and the fact that `widen' isn't mentioned in the right hand side above. > Nor do I understand why your example is relevant; isn't this what > `flet' sets `widen's symbol binding to: > > (byte-compile (lambda () t)) => #[nil "\300\207" [t] 1] Indeed, but the symbol isn't involved. [1] (disassemble #[nil "~\207" [] 1]) byte code: args: nil 0 widen 1 return [2] (disassemble #[nil "\300 \207" [foo] 1]) byte code: args: nil 0 constant foo 1 call 0 2 return -- People do not write byte-code; that job is left to the byte compiler. But we provide a disassembler to satisfy a cat-like curiosity. The disassembler converts the byte-compiled code into humanly readable form. -- (info "(elisp)Disassembly")