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#59802: 30.0.50; Checkbox button not rendered Date: Sat, 10 Dec 2022 19:04:17 +0200 Message-ID: <83cz8rw5pq.fsf@gnu.org> References: <87v8mshit6.fsf@ledu-giraud.fr> <838rjoendw.fsf@gnu.org> <87r0xgh7c3.fsf@ledu-giraud.fr> <83zgc4crg6.fsf@gnu.org> <87ilisgxbi.fsf@ledu-giraud.fr> <83lenocoge.fsf@gnu.org> <87edtggol3.fsf@ledu-giraud.fr> <83359vd535.fsf@gnu.org> <87cz8s3gq7.fsf@ledu-giraud.fr> <83sfhozreh.fsf@gnu.org> <87ilik8zjs.fsf@gmx.net> <83v8mjweqm.fsf@gnu.org> <87h6y3447l.fsf@gmx.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19881"; mail-complaints-to="usenet@ciao.gmane.io" Cc: manuel@ledu-giraud.fr, 59802@debbugs.gnu.org To: Stephen Berman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 10 18:05:43 2022 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 1p43IF-0004oh-13 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 10 Dec 2022 18:05:43 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p43I3-0007ke-1d; Sat, 10 Dec 2022 12:05:31 -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 1p43Hn-0007jo-Ct for bug-gnu-emacs@gnu.org; Sat, 10 Dec 2022 12:05:16 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p43Ha-0006mV-Ol for bug-gnu-emacs@gnu.org; Sat, 10 Dec 2022 12:05:11 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p43Ha-00011Y-Iq for bug-gnu-emacs@gnu.org; Sat, 10 Dec 2022 12:05: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: Sat, 10 Dec 2022 17:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59802 X-GNU-PR-Package: emacs Original-Received: via spool by 59802-submit@debbugs.gnu.org id=B59802.16706918713920 (code B ref 59802); Sat, 10 Dec 2022 17:05:02 +0000 Original-Received: (at 59802) by debbugs.gnu.org; 10 Dec 2022 17:04:31 +0000 Original-Received: from localhost ([127.0.0.1]:43932 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p43H4-000118-RD for submit@debbugs.gnu.org; Sat, 10 Dec 2022 12:04:31 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:37468) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p43H2-000111-A1 for 59802@debbugs.gnu.org; Sat, 10 Dec 2022 12:04:30 -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 1p43Gw-0005ye-8O; Sat, 10 Dec 2022 12:04:22 -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=YoUY7kH3sHBxrF9C7athEYFwSChb+pe00u25m5VWaYM=; b=ewgu2q07LqP5 lf5DgFymtZpbUlHp0kuFeuB8f0PZg42x1a7Shr18Cgl9iSZcahA/JUVoKcxvl1glbmGjdNW144O/E qcfjWQQCPs41VXECrRC7IY72Pt3sqyhsPJEFcgNfwa5OxyV7k3L47z/JloXfmtDKQCej6MwhrYK52 jA0LVh4hcCTKavF4HqJo1fg2mEBqKE1LY2328F9TUOtBjNQ3t6jU9XG+9NAaUqL/YBz1LUaTtCJq9 QS8Q165eBE+XF2qPo4hOO2XXSq5kYPxbdEiojwEL6JWibcMeqXl3u0/CMtOQjaPgJ9zLjL74NT3Lk eS1fmROPNpCov+7SDMJL9w==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p43Gv-0001ty-0Q; Sat, 10 Dec 2022 12:04:21 -0500 In-Reply-To: <87h6y3447l.fsf@gmx.net> (message from Stephen Berman on Sat, 10 Dec 2022 17:24:14 +0100) 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:250531 Archived-At: > From: Stephen Berman > Cc: manuel@ledu-giraud.fr, 59802@debbugs.gnu.org > Date: Sat, 10 Dec 2022 17:24:14 +0100 > > On Sat, 10 Dec 2022 15:49:21 +0200 Eli Zaretskii wrote: > > >> From: Stephen Berman > >> Cc: Manuel Giraud , 59802@debbugs.gnu.org > >> Date: Fri, 09 Dec 2022 14:41:27 +0100 > >> > >> > What happens if you manually create a buffer with the checkbox and > >> > text following it -- does the problem happen in that case as well? > >> > >> It does for me: the attached image shows four buffers containing the > >> checkbox.svg and checkbox.xpm images from /etc/images. The leftmost > >> buffer shows the default font size, the other buffers show increases of > >> the font size successively by two steps with `C-x C-+'. > >> > >> (The rightmost buffer shows another oddity: the line number is > >> supposedly 47. This number appears when the cursor moves from 'T' to > >> 'e'. This also happens in the other buffers, but only those with > >> increased font size show line number 47; in the leftmost buffer, it > >> shows line number 27.) > > > > I couldn't reproduce any of this. But since you didn't say how you > > created that display, exactly, it's possible that I tried something > > different. > > > > Can you show the Lisp which you used? > > I create buffer "a" by typing this (with emacs -Q): > > C-x b a > M-: (insert-image-file "path/to/emacs/etc/images/checked.svg") > C-f > M-: (insert-image-file "path/to/emacs/etc/images/checked.xpm") > C-f > Test > > To create buffer "+2" I type `C-x h M-w' in buffer "a", and then type > `C-x b +2 C-y'. However, this results in only the image checked.svg > being displayed in "+2", but with point not before but after the image, > so then I insert the image checked.xpm and the string "Test" as above. > Then I typed `C-x C-+' twice. I create buffers "+4" and "+6" likewise > (typing `C-x C-+' four and six times, respectively). > > Concerning the line number display, after inserting checked.svg in > buffer "a" and typing `C-f' the mode line displays "L1". After > inserting checked.xpm as above, the mode line displays "L7", and after > typing `C-f T' it displays "L27" and remains like that while and after > typing "est". After typing `C-y' in buffer "+2" (which displays only > checked.svg), the mode line displays "L27" and stays like that after > inserting checked.xpm and typing `C-f'. But as soon as I type "T" the > mode line displays "L47". (So I was mistaken in saying the line number > display changes by changing the font size.) We are still discussing the problem with misalignment of images, are we? Because most of what you describe is unrelated to that. (If those other aspects bother you or surprise you, we can talk about that as well.) As for the misalignment, I'm guessing that your librsvg is newer than mine, so it supports scaling the SVG images as you scale text. My librsvg doesn't support that, and so the SVG image remains aligned with the XPM one, slightly lower than the baseline of the text (which could probably controlled by the :ascent property of the image, if that is a problem). Manuel, if this is what you see, then try playing with :ascent. E.g., did you try to use ":ascent 'center"?