[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: FIX: byte-code: Wrong type argument: number-or-marker-p, (+ -21)
From: |
Kim F. Storm |
Subject: |
Re: FIX: byte-code: Wrong type argument: number-or-marker-p, (+ -21) |
Date: |
20 Nov 2003 00:46:25 +0100 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
Jan Nieuwenhuizen <address@hidden> writes:
> address@hidden (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 <address@hidden> http://www.cua.dk
- byte-code: Wrong type argument: number-or-marker-p, (+ -21), Jan Nieuwenhuizen, 2003/11/12
- Re: byte-code: Wrong type argument: number-or-marker-p, (+ -21), Jan D., 2003/11/14
- FIX: byte-code: Wrong type argument: number-or-marker-p, (+ -21), Jan Nieuwenhuizen, 2003/11/17
- Re: FIX: byte-code: Wrong type argument: number-or-marker-p, (+ -21), Kim F. Storm, 2003/11/17
- Re: FIX: byte-code: Wrong type argument: number-or-marker-p, (+ -21), Jan Nieuwenhuizen, 2003/11/17
- Re: FIX: byte-code: Wrong type argument: number-or-marker-p, (+ -21), Jan Nieuwenhuizen, 2003/11/19
- Re: FIX: byte-code: Wrong type argument: number-or-marker-p, (+ -21), Kim F. Storm, 2003/11/19
- Re: FIX: byte-code: Wrong type argument: number-or-marker-p, (+ -21), Jan Nieuwenhuizen, 2003/11/19
- Re: FIX: byte-code: Wrong type argument: number-or-marker-p, (+ -21),
Kim F. Storm <=
- Re: FIX#3: byte-code: Wrong type argument: number-or-marker-p, (+ -21), Jan Nieuwenhuizen, 2003/11/20
- Re: FIX#3: byte-code: Wrong type argument: number-or-marker-p, (+ -21), Jan D., 2003/11/23