From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#67533: SVG images confound position pixel measurements Date: Fri, 01 Dec 2023 17:59:36 +0200 Message-ID: <83bkb9ap7b.fsf@gnu.org> References: <9B9C683E-B951-406E-98AA-32F4539B3FF7@gmail.com> <83o7fbb0zf.fsf@gnu.org> <87ttp2ugsk.fsf@ledu-giraud.fr> <83h6l29dl8.fsf@gnu.org> <83fs0m9bp9.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1291"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 67533@debbugs.gnu.org, manuel@ledu-giraud.fr To: JD Smith Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 01 17:01:17 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1r95x7-00009Y-2F for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 01 Dec 2023 17:01:17 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r95ws-0004hB-IL; Fri, 01 Dec 2023 11:01:02 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r95wl-0004fB-5R for bug-gnu-emacs@gnu.org; Fri, 01 Dec 2023 11:00:57 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r95wj-0000oy-Qm for bug-gnu-emacs@gnu.org; Fri, 01 Dec 2023 11:00:53 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r95ws-0007b6-7l for bug-gnu-emacs@gnu.org; Fri, 01 Dec 2023 11:01:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 01 Dec 2023 16:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67533 X-GNU-PR-Package: emacs Original-Received: via spool by 67533-submit@debbugs.gnu.org id=B67533.170144640429055 (code B ref 67533); Fri, 01 Dec 2023 16:01:02 +0000 Original-Received: (at 67533) by debbugs.gnu.org; 1 Dec 2023 16:00:04 +0000 Original-Received: from localhost ([127.0.0.1]:56003 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r95vv-0007YX-Ii for submit@debbugs.gnu.org; Fri, 01 Dec 2023 11:00:03 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36422) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r95vq-0007XS-N6 for 67533@debbugs.gnu.org; Fri, 01 Dec 2023 11:00:01 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r95va-0007EG-Sk; Fri, 01 Dec 2023 10:59:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=N72KIrySoAeEms6gICrWpWTIys9Z6W+aCWKw7MgrSnQ=; b=L3a3hdDOK8JgXUiXHvnE vZEmSdGpSE8QmuCjPzD9qBgJceIi03FrMlzal5gQiooKd0TyIBXSmZhVDp+bZFnY95XCEO4uzT9Ms a//s6zF2e0K6kUp+UKxcJ2kcWmMEpDPHkvKDG+IRodeM6Bemk/dvGl7LnyaM7eSj35KSaxq0XCjmN ivlRLNU21MnJpRNaQIvEe+0iAY1diIYaIE+gyQn2ajnJlYQhbsQJ5ZLhu9rPozjO8PZZUUcZ3vnGM 3dyheyRXWfT/tslTrpaxB5ZugLLPmcFql1bqSU2iujax/emCui7Bpg+NH/2evxzoOrkUaXVxkPwG1 7IE1OmIG5j7ONw==; In-Reply-To: (message from JD Smith on Fri, 1 Dec 2023 10:45:00 -0500) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:275329 Archived-At: > From: JD Smith > Date: Fri, 1 Dec 2023 10:45:00 -0500 > Cc: Manuel Giraud , > 67533@debbugs.gnu.org > > > > > On Dec 1, 2023, at 10:36 AM, Eli Zaretskii wrote: > > > >> From: JD Smith > >> Date: Fri, 1 Dec 2023 10:21:19 -0500 > >> Cc: Manuel Giraud , > >> 67533@debbugs.gnu.org > >> > >> > >>> Btw, I wonder what you and JD expect from the (cons (point) -1) > >>> argument. The doc string says: > >>> > >>> If FROM is a cons, its car specifies a buffer position, and its cdr > >>> specifies the vertical offset in pixels from that position to the > >>> first screen line to be measured. > >>> > >>> What is the meaning of negative offset from the first line of the > >>> buffer? there's no screen line at that offset, so what do you expect > >>> that to do? Or what am I missing? > >> > >> In that case I would expect zero pixel height is returned. > > > > Why zero? Why not consider that undefined behavior? > > Depends on what the natural height on a non-existent line is. Zero makes sense to me. But I suppose returning height=nil or something else to indicate “I gave up” would also be reasonable. A non-existent line can have any height, including an infinite one. Since that line doesn't exist, any assertion about it cannot be disproved.