emacs-devel
[Top][All Lists]
Advanced

[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: Jan Nieuwenhuizen
Subject: Re: FIX: byte-code: Wrong type argument: number-or-marker-p, (+ -21)
Date: Wed, 19 Nov 2003 22:07:39 +0100
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux)

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))))))

but I'm not at all sure about the right arithmetic for (+/- INT) ...

Jan.

-- 
Jan Nieuwenhuizen <address@hidden> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien       | http://www.lilypond.org





reply via email to

[Prev in Thread] Current Thread [Next in Thread]