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: Sun, 03 Dec 2023 18:33:05 +0200 Message-ID: <83fs0j6ybi.fsf@gnu.org> References: <9B9C683E-B951-406E-98AA-32F4539B3FF7@gmail.com> <83o7fbb0zf.fsf@gnu.org> <6158BB83-3C05-4CEC-BF65-A6C0DEA329CD@gmail.com> <837clybds3.fsf@gnu.org> <83wmtx83io.fsf@gnu.org> <906A480A-85B4-4AB0-B2E3-1533A48C228D@gmail.com> <835y1g8z7v.fsf@gnu.org> <8334wk8kd1.fsf@gnu.org> <8672011B-4C83-4983-9DEA-43ED009042F8@gmail.com> <616C9D31-F265-4735-B73E-C0574D79F7F1@gmail.com> <83r0k3782q.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18277"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 67533@debbugs.gnu.org To: JD Smith Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 03 17:34:27 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 1r9pQI-0004Wb-Bw for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 03 Dec 2023 17:34:26 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r9pPn-0004aX-OZ; Sun, 03 Dec 2023 11:33: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 1r9pPl-0004Zl-Dp for bug-gnu-emacs@gnu.org; Sun, 03 Dec 2023 11:33:53 -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 1r9pPl-0007aN-53 for bug-gnu-emacs@gnu.org; Sun, 03 Dec 2023 11:33:53 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r9pPv-0005iP-4l for bug-gnu-emacs@gnu.org; Sun, 03 Dec 2023 11:34:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 03 Dec 2023 16:34:03 +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.170162120021879 (code B ref 67533); Sun, 03 Dec 2023 16:34:03 +0000 Original-Received: (at 67533) by debbugs.gnu.org; 3 Dec 2023 16:33:20 +0000 Original-Received: from localhost ([127.0.0.1]:60691 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r9pPE-0005gp-5q for submit@debbugs.gnu.org; Sun, 03 Dec 2023 11:33:20 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46944) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r9pPB-0005ga-W1 for 67533@debbugs.gnu.org; Sun, 03 Dec 2023 11:33:18 -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 1r9pOw-0007Tn-Km; Sun, 03 Dec 2023 11:33:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=IsiUFexWOrTrB7H9z2r89O9LXQ2uxtRUPnpwmT7j3+s=; b=i1m6sxi8U7Hu 7H+hK8Y7XTbo0szqzCUny+ZGPU+pRfOWXtAIkFRomJBohPB6DlQfLXsXyk8YMGw9ijrgqSlvKdO1X uI0uF9pOraZDY+yNdrFDsK8kqfzKmOLVOr0XVpFjrAlWbWkNhmiQiIRTYDJ8hl63pjrfrb3IvmUh2 kJcf4kWqfmbsg9BczljShO86Q7HchGkhpWsOLDVN3eTmnrqA3fD1BIhuL9zMcBMzLNJgk43GICD51 K04fc0xjCe9wkeziLe2Hs5iUJXqY6NTGva2MWxOedHv7qzP9B0wEdkJ0m6Qo3hldFIC8NoG3v1z8G VRvaQj8QIRgpfwvL/c5Nsw==; In-Reply-To: (message from JD Smith on Sun, 3 Dec 2023 10:49:37 -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:275429 Archived-At: > From: JD Smith > Date: Sun, 3 Dec 2023 10:49:37 -0500 > > BTW, in case anyone is wondering where window-text-pixel-size with a negative pixel FROM offset is needed, Po Lu's pixel-scroll-precision-up-page is using precisely this approach to measure the content above window-start (so as to smoothly scroll up with high performance): > > (let* ((start (window-start)) > (dims (window-text-pixel-size nil (cons start (- delta)) > start nil nil nil t)) > I know very well why that feature was added. My questions was not about negative offsets in general, but about negative offsets when FROM is in the first line of the buffer, i.e. when there's no text at all above that line.