From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: FIX: byte-code: Wrong type argument: number-or-marker-p, (+ -21) Date: 20 Nov 2003 00:46:25 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <200311142330.hAENUB5p021655@stubby.bodenonline.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1069282278 16045 80.91.224.253 (19 Nov 2003 22:51:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 19 Nov 2003 22:51:18 +0000 (UTC) Cc: "Jan D." , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed Nov 19 23:51:15 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AMbAJ-0003KV-00 for ; Wed, 19 Nov 2003 23:51:15 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1AMbAJ-0002ed-00 for ; Wed, 19 Nov 2003 23:51:15 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AMc50-0001HY-FI for emacs-devel@quimby.gnus.org; Wed, 19 Nov 2003 18:49:50 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AMc3q-00017h-Js for emacs-devel@gnu.org; Wed, 19 Nov 2003 18:48:38 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AMc3K-0000tA-9P for emacs-devel@gnu.org; Wed, 19 Nov 2003 18:48:37 -0500 Original-Received: from [193.162.153.4] (helo=pfepc.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AMc3J-0000sn-Qt; Wed, 19 Nov 2003 18:48:05 -0500 Original-Received: from kfs-l.imdomain.dk.cua.dk (0x503e2644.bynxx3.adsl-dhcp.tele.dk [80.62.38.68]) by pfepc.post.tele.dk (Postfix) with SMTP id 108A7262A7C; Wed, 19 Nov 2003 23:46:40 +0100 (CET) Original-To: Jan Nieuwenhuizen In-Reply-To: Original-Lines: 35 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:17931 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:17931 Jan Nieuwenhuizen writes: > storm@cua.dk (Kim F. Storm) writes: > > > This is definitely better than before, but you still do not address > > the issue whether the new setting for top should be top/left or > > bottom/right relative, ie. whether the new top value should be (+ INT) > > or (- INT) if the old settings had that format (rather than an > > integer). > > Ah. I assumed this: > > `((top . ,(+ top (* lines char-height)))) > > to be correct, and the value of TOP wrong if not an INT, but you're > suggesting something like: > > `((top . ,((if (consp top) > (cond ((eq '+ (car top)) > (list '+ (+ (cadr top) (* lines char-height)))) > ((eq '- (car top)) > (list '- (- (cadr top) (* lines char-height)))) > (t 0)) > ,(+ top (* lines char-height)))))) Exactly (but the , in the last line isn't needed). > > but I'm not at all sure about the right arithmetic for (+/- INT) ... > Me neither... What do others think about this? -- Kim F. Storm http://www.cua.dk