From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: JD Smith Newsgroups: gmane.emacs.bugs Subject: bug#67533: SVG images confound position pixel measurements Date: Fri, 1 Dec 2023 11:17:49 -0500 Message-ID: <12BD906C-11C1-482E-B980-6F831CAD0B4E@gmail.com> 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> <83bkb9ap7b.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.200.91.1.1\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20295"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 67533@debbugs.gnu.org, Manuel Giraud To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 01 17:19:12 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 1r96ER-000500-Mo for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 01 Dec 2023 17:19:11 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r96EB-0001JX-Pg; Fri, 01 Dec 2023 11:18:55 -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 1r96EA-0001In-E5 for bug-gnu-emacs@gnu.org; Fri, 01 Dec 2023 11:18:54 -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 1r96EA-00076L-5P for bug-gnu-emacs@gnu.org; Fri, 01 Dec 2023 11:18:54 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r96EI-00086x-Hu for bug-gnu-emacs@gnu.org; Fri, 01 Dec 2023 11:19:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: JD Smith Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 01 Dec 2023 16:19: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.170144750231133 (code B ref 67533); Fri, 01 Dec 2023 16:19:02 +0000 Original-Received: (at 67533) by debbugs.gnu.org; 1 Dec 2023 16:18:22 +0000 Original-Received: from localhost ([127.0.0.1]:56017 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r96De-000864-3i for submit@debbugs.gnu.org; Fri, 01 Dec 2023 11:18:22 -0500 Original-Received: from mail-io1-xd2c.google.com ([2607:f8b0:4864:20::d2c]:53566) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r96DX-00085l-W9 for 67533@debbugs.gnu.org; Fri, 01 Dec 2023 11:18:20 -0500 Original-Received: by mail-io1-xd2c.google.com with SMTP id ca18e2360f4ac-7b3870ee4easo69813239f.3 for <67533@debbugs.gnu.org>; Fri, 01 Dec 2023 08:18:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701447481; x=1702052281; darn=debbugs.gnu.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=uBFhzBem9NfliAA1luR9/Hl4U+hS4EysmBlIhEB1qKU=; b=IsTcGfnUZlGg6Ln04Sv8hkkt96ZOe3PHHoQdS/JJ8ymrFcQRfU71j116zjMfgbmQgb +IuxcmV+fMLmR44+2qtnRwCybAX0h4vsW6zkYySX/hBQ48rv7X1P3CuOBoAMwQ2xN7j3 F4+8ha/EIQ5RpYqM7RT7Xm4Oz/4n/QbFQUjusBlTL1fLhZtMnP6SYT7QekUN/t4oheRe UIM3K5NB/X17XkUlQulhjrjaEG+jCu885oa2oNOk7yl1ad/z25+brCuIFCtAhKmpWQKl g//JzbbtvyYVd1V+NT/g0cRofhW7nfApSGsZ/inVA7LqiVzsO6ySD/jDWmv4WTzrogyb Aoig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701447481; x=1702052281; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=uBFhzBem9NfliAA1luR9/Hl4U+hS4EysmBlIhEB1qKU=; b=rTbu2MMxTG8RdRYUt2DFGO1cKBxYfFj4Mxhix75joJTATT190q3bg0SZWYRHqqzpEP OjtBARrQDsfyTUHnjm8Dva6xeDAN77g+1WtkxvUMGoeD0pIZ8boP6HezFZ/yuha4AvWr +JLiJy8dttXpAE6AQ7aHYk9fXYHy640B8FSFv7lN81WSISsnWizdyYbr0xz8cg3S2JPX K04jWhbC7hJdCHC0GA9D++u0Kw1IWr1GUTPNA9N8C+yhxUEBkQvCJzuPExnLP0T3H6TH Agbok2VosPUKiJBFEHOifkA1q2KhFhbXTyiJgEYnpMlZf2MFRjSJI+gRGGd2MUbHw9wt UIzQ== X-Gm-Message-State: AOJu0Yxd7wJd1syXSAlt2v2FCYMl8Qv5yBOeQjgDVpLkhl2ZEskdHJLs SCStekx1mfMXHmCS3BURP0s= X-Google-Smtp-Source: AGHT+IEx7kkbbH/fFN8UjPjA2+lajCneKKZysTNhE1eEsPoFb67oEz3fQBja6ikGPcEVKmJp/iCxFA== X-Received: by 2002:a6b:f107:0:b0:7b3:cc20:5746 with SMTP id e7-20020a6bf107000000b007b3cc205746mr12888059iog.19.1701447481349; Fri, 01 Dec 2023 08:18:01 -0800 (PST) Original-Received: from smtpclient.apple (cm-24-53-187-34.buckeyecom.net. [24.53.187.34]) by smtp.gmail.com with ESMTPSA id e12-20020a02a50c000000b004665cf3e94dsm931325jam.2.2023.12.01.08.18.00 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Dec 2023 08:18:00 -0800 (PST) In-Reply-To: <83bkb9ap7b.fsf@gnu.org> X-Mailer: Apple Mail (2.3774.200.91.1.1) 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:275331 Archived-At: > On Dec 1, 2023, at 10:59=E2=80=AFAM, Eli Zaretskii = wrote: >>>>> 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? >>>>=20 >>>> In that case I would expect zero pixel height is returned. >>>=20 >>> Why zero? Why not consider that undefined behavior? >>=20 >> Depends on what the natural height on a non-existent line is. Zero = makes sense to me. But I suppose returning height=3Dnil or something = else to indicate =E2=80=9CI gave up=E2=80=9D would also be reasonable. >=20 > 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. As a general statement, of course. But since the docs say: > The optional argument FROM, if non-nil, specifies the first text > position to consider, and defaults to the minimum accessible position > of the buffer. would it not be reasonable that (FROM . (- too-many-pixels)) would also = =E2=80=9Cdefault to the minimum accessible position=E2=80=9D, should the = offset prove to be too-many-pixels? Then, by symmetry, asking for pixel = measurements beyond the final accessible line should "default to the maximum accessible position of the buffer=E2=80=9D. Basically = clip the request at the window=E2=80=99s boundaries. But in any case, = the answer to this specific question is I believe a side issue for this = bug.