From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.help Subject: Re: setnu.el / setnu+.el Date: Fri, 23 Dec 2005 14:48:55 -0700 Message-ID: References: <873bkml4xc.fsf-monnier+gnu.emacs.help@gnu.org> <873bklggma.fsf-monnier+gnu.emacs.help@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1135374582 31244 80.91.229.2 (23 Dec 2005 21:49:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 23 Dec 2005 21:49:42 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 23 22:49:40 2005 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Epun8-0001TV-Vz for geh-help-gnu-emacs@m.gmane.org; Fri, 23 Dec 2005 22:49:35 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EpuoD-0003HX-7c for geh-help-gnu-emacs@m.gmane.org; Fri, 23 Dec 2005 16:50:41 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Epuns-0003HA-90 for help-gnu-emacs@gnu.org; Fri, 23 Dec 2005 16:50:20 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Epunq-0003Gl-Nx for help-gnu-emacs@gnu.org; Fri, 23 Dec 2005 16:50:20 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Epunq-0003Gh-L4 for help-gnu-emacs@gnu.org; Fri, 23 Dec 2005 16:50:18 -0500 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1EpunC-00041D-V4 for help-gnu-emacs@gnu.org; Fri, 23 Dec 2005 16:49:39 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Epume-0001Ia-PI for help-gnu-emacs@gnu.org; Fri, 23 Dec 2005 22:49:04 +0100 Original-Received: from 207.167.42.60 ([207.167.42.60]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 23 Dec 2005 22:49:04 +0100 Original-Received: from ihs_4664 by 207.167.42.60 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 23 Dec 2005 22:49:04 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: help-gnu-emacs@gnu.org Original-Lines: 24 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 207.167.42.60 User-Agent: Mozilla Thunderbird 0.9 (X11/20041105) X-Accept-Language: en-us, en In-Reply-To: <873bklggma.fsf-monnier+gnu.emacs.help@gnu.org> X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:32193 Archived-At: Stefan Monnier wrote: >>>BTW has anyone tried to re-implement setnu using the `margin' >>>rather than after-strings? >> >>Is the Emacs 22 Lisp manual available from cvs.savannah.gnu.org? I >>can't find it... > > Yes, it's part of the Emacs distribution. > BTW, the margin is an Emacs-21 feature. OK, I've had a go at it, but it's not working: Instead of setting the overlay's before-string property to "...", I tried setting its display property to ((margin left-margin) "...") plus the left-margin-width variable to the length of "...". What that does is make every line of the buffer invisible -- including the newline and the "..." text, so the buffer appears to be empty. What am I doing wrong? Thanks, -- Kevin