From unknown Mon Jun 23 11:26:02 2025 X-Loop: help-debbugs@gnu.org Subject: bug#29627: 25.3; x-show-tip does not display text when x-gtk-use-tooltips is nil and left/right-margin-width is set Resent-From: Terje Larsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 09 Dec 2017 17:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 29627 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 29627@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.151284043220214 (code B ref -1); Sat, 09 Dec 2017 17:28:02 +0000 Received: (at submit) by debbugs.gnu.org; 9 Dec 2017 17:27:12 +0000 Received: from localhost ([127.0.0.1]:54056 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eNiu7-0005Fx-Sp for submit@debbugs.gnu.org; Sat, 09 Dec 2017 12:27:12 -0500 Received: from eggs.gnu.org ([208.118.235.92]:49838) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eNfaY-0000Fq-OC for submit@debbugs.gnu.org; Sat, 09 Dec 2017 08:54:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eNfaS-0007Y7-3Y for submit@debbugs.gnu.org; Sat, 09 Dec 2017 08:54:41 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:49923) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eNfaS-0007Y3-09 for submit@debbugs.gnu.org; Sat, 09 Dec 2017 08:54:40 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40803) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eNfaQ-0003Ey-Br for bug-gnu-emacs@gnu.org; Sat, 09 Dec 2017 08:54:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eNfaO-0007XJ-QU for bug-gnu-emacs@gnu.org; Sat, 09 Dec 2017 08:54:38 -0500 Received: from mail-ot0-x233.google.com ([2607:f8b0:4003:c0f::233]:33787) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eNfaO-0007X1-JQ for bug-gnu-emacs@gnu.org; Sat, 09 Dec 2017 08:54:36 -0500 Received: by mail-ot0-x233.google.com with SMTP id h9so11362155oti.0 for ; Sat, 09 Dec 2017 05:54:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=4/KuJqpQZBaDkhJCD8tdRGbswNFSNq20sxay0aib7P4=; b=vWvhYF1iw6ky8MJkCHpLWKbgLo08ntzGgsbcpkxcUPQShjTkzv3QJLlWN30fZ5ItdQ qVOVs8ODAXNq/WP4hQdF0EWHiaCJiKWJ19PGNUBWrIYfTkIVgilRxDuEthNZYlyxOAuR ybibhvT+b6TqcaKofDlOPYGg2/rHfyw+ZkQxViAl8mEB6cihHT0IYPH5TadRZyRjmngi dG/ycGKAdTvAY6S8AaH7cNajn1gYCHtu0l8VEtPSkZ85FYvUg2H1TR9KGUBdEH/+qSXI B6O1USo0IPK+J5Ze75rGS8zVl5fytPMPdua9bhrBwygpUahLkZ3xotKuNaQw06pH2YQk dv+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=4/KuJqpQZBaDkhJCD8tdRGbswNFSNq20sxay0aib7P4=; b=DZxvXe1ED0prhf/1lCpljWBM7TPT3Pl3u79Yw/ARuJ0dZJ/j5uHkmuHw91BRaf2MsJ roCzVsfOdlHrqnDPYYwnkTafW0D1DQgWgH62/QdKEpvX3HG3w4fpEfjpRZYcZu8jty+u 0cGVjXQMm7Kjw38C0rUCRbJ6O9Cv9Rc46TMWn96wtS2IfNZ0s5LMziYcAexJHzRZdz6B 61Pr1Ge9/PJszVQxjKlbQwojl3TYICWuk5qES3ZswGw7+ZkIBf1PG85ZmLXNKc/ja7N0 hBRxklZgdkRBfnz3pHKUHnLhKdcyHlR2wcnCprVZbqVMJygcIlRzzlOxSATFfcFzp5gu B7+A== X-Gm-Message-State: AJaThX5W3jK6iDwHuDTFcla3v/ie4TQySo86Jbknkdonu1FQp+FEpx7E 9osLdpQ2FGVVdIUsmrI5hWGEWl1hHnvH831DfCNAKg== X-Google-Smtp-Source: AGs4zMYYH2Sj0wZvh6dLt0+/9K5fFVekIEprrJy9v/TjARdNuA/CuCgGuyfP10YXZchMDbZ2h47y95PFapiUP2aTSRs= X-Received: by 10.157.41.236 with SMTP id g41mr31756107otd.42.1512827675376; Sat, 09 Dec 2017 05:54:35 -0800 (PST) MIME-Version: 1.0 From: Terje Larsen Date: Sat, 09 Dec 2017 13:54:24 +0000 Message-ID: Content-Type: multipart/alternative; boundary="001a11414d283282af055fe8a4cf" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Mailman-Approved-At: Sat, 09 Dec 2017 12:27:10 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --001a11414d283282af055fe8a4cf Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable When you have enabled `left-margin-width' and `right-margin-width' as well as disabled the `x-gtk-use-system-tooltips', the text will be invisible when running `x-show-tip'. The tip will be show, but not visible. Steps to reproduce with emacs -Q (setq-default left-margin-width 1 right-margin-width 1) (setq x-gtk-use-system-tooltips nil) (x-show-tip "Can you see me now?") In GNU Emacs 25.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.22.19) of 2017-09-16 built on juergen Windowing system distributor 'The X.Org Foundation', version 11.0.11905000 Configured using: 'configure --prefix=3D/usr --sysconfdir=3D/etc --libexecdir=3D/usr/lib --localstatedir=3D/var --with-x-toolkit=3Dgtk3 --with-xft --with-modules 'CFLAGS=3D-march=3Dx86-64 -mtune=3Dgeneric -O2 -pipe -fstack-protector-str= ong -fno-plt' CPPFLAGS=3D-D_FORTIFY_SOURCE=3D2 LDFLAGS=3D-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 MODULES Important settings: value of $LC_ALL: en_US.UTF-8 value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=3Dibus locale-coding-system: utf-8-unix Major mode: Fundamental Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: t Recent messages: =E2=80=98use-package=E2=80=99 is already installed For information about GNU Emacs and the GNU system, type C-h C-a. Making completion list... funcall-interactively: End of buffer [6 times] Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug sendmail cus-edit cus-start cus-load wid-edit mm-archive message idna dired format-spec rfc822 mml mml-sec mailabbrev gmm-utils mailheader mm-decode mm-bodies mm-encode mail-utils network-stream nsm starttls url-http tls gnutls mail-parse rfc2231 rfc2047 rfc2045 ietf-drums url-gw url-cache url-auth url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs gnus-util time-date mm-util help-fns mail-prsvr password-cache url-vars epg finder-inf info package epg-config seq byte-opt gv bytecomp byte-compile cl-extra help-mode easymenu cconv cl-loaddefs pcase cl-lib mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 207883 48038) (symbols 48 28074 0) (miscs 40 801 226) (strings 32 51742 37972) (string-bytes 1 1373182) (vectors 16 27579) (vector-slots 8 1318855 206622) (floats 8 250 210) (intervals 56 267 0) (buffers 976 60)) --001a11414d283282af055fe8a4cf Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
When you have enabled `left-margin-width' and `ri= ght-margin-width'
as well as disabled the `x-gtk-use-system-t= ooltips', the text will
be invisible when running `x-show-tip= '. The tip will be show, but
not visible.

Steps to reproduce with emacs -Q
(setq-default
= =C2=A0 left-margin-width 1
=C2=A0 right-margin-width 1)

(setq x-gtk-use-system-tooltips nil)

(x-show-tip "Can you see me now?")

In= GNU Emacs 25.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.22.19)
=C2= =A0of 2017-09-16 built on juergen
Windowing system distributor &#= 39;The X.Org Foundation', version 11.0.11905000
Configured us= ing:
=C2=A0'configure --prefix=3D/usr --sysconfdir=3D/etc --l= ibexecdir=3D/usr/lib
=C2=A0--localstatedir=3D/var --with-x-toolki= t=3Dgtk3 --with-xft --with-modules
=C2=A0'CFLAGS=3D-march=3Dx= 86-64 -mtune=3Dgeneric -O2 -pipe -fstack-protector-strong
=C2=A0-= fno-plt' CPPFLAGS=3D-D_FORTIFY_SOURCE=3D2
=C2=A0LDFLAGS=3D-Wl= ,-O1,--sort-common,--as-needed,-z,relro,-z,now'

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOU= ND GPM DBUS GCONF GSETTINGS
NOTIFY ACL GNUTLS LIBXML2 FREETYPE M1= 7N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 MODULES
=

Important settings:
=C2=A0 value of $LC_ALL: = en_US.UTF-8
=C2=A0 value of $LANG: en_US.UTF-8
=C2=A0 v= alue of $XMODIFIERS: @im=3Dibus
=C2=A0 locale-coding-system: utf-= 8-unix

Major mode: Fundamental

Minor modes in effect:
=C2=A0 tooltip-mode: t
=C2= =A0 global-eldoc-mode: t
=C2=A0 electric-indent-mode: t
=C2=A0 mouse-wheel-mode: t
=C2=A0 file-name-shadow-mode: t
=
=C2=A0 global-font-lock-mode: t
=C2=A0 auto-composition-mode= : t
=C2=A0 auto-encryption-mode: t
=C2=A0 auto-compress= ion-mode: t
=C2=A0 buffer-read-only: t
=C2=A0 line-numb= er-mode: t
=C2=A0 transient-mark-mode: t

Recent messages:
=E2=80=98use-package=E2=80=99 is already instal= led
For information about GNU Emacs and the GNU system, type C-h = C-a.
Making completion list...
funcall-interactively: E= nd of buffer [6 times]

Load-path shadows:
None found.

Features:
(shadow sort mai= l-extr emacsbug sendmail cus-edit cus-start cus-load
wid-edit mm-= archive message idna dired format-spec rfc822 mml mml-sec
mailabb= rev gmm-utils mailheader mm-decode mm-bodies mm-encode mail-utils
network-stream nsm starttls url-http tls gnutls mail-parse rfc2231rfc2047 rfc2045 ietf-drums url-gw url-cache url-auth url url-proxy=
url-privacy url-expand url-methods url-history url-cookie url-domsuf
url-util mailcap url-handlers url-parse auth-source cl-seq eieio
eieio-core cl-macs gnus-util time-date mm-util help-fns mail-prsvr=
password-cache url-vars epg finder-inf info package epg-config s= eq
byte-opt gv bytecomp byte-compile cl-extra help-mode easymenu = cconv
cl-loaddefs pcase cl-lib mule-util tooltip eldoc electric u= niquify
ediff-hook vc-hooks lisp-float-type mwheel x-win term/com= mon-win x-dnd
tool-bar dnd fontset image regexp-opt fringe tabula= ted-list newcomment
elisp-mode lisp-mode prog-mode register page = menu-bar rfn-eshadow timer
select scroll-bar mouse jit-lock font-= lock syntax facemenu font-core
frame cl-generic cham georgian utf= -8-lang misc-lang vietnamese tibetan
thai tai-viet lao korean jap= anese eucjp-ms cp51932 hebrew greek romanian
slovak czech europea= n ethiopic indian cyrillic chinese charscript
case-table epa-hook= jka-cmpr-hook help simple abbrev minibuffer
cl-preloaded nadvice= loaddefs button faces cus-face macroexp files
text-properties ov= erlay sha1 md5 base64 format env code-pages mule
custom widget ha= shtable-print-readable backquote dbusbind inotify
dynamic-setting= system-font-setting font-render-setting move-toolbar gtk
x-toolk= it x multi-tty make-network-process emacs)

Memory = information:
((conses 16 207883 48038)
=C2=A0(symbols 4= 8 28074 0)
=C2=A0(miscs 40 801 226)
=C2=A0(strings 32 5= 1742 37972)
=C2=A0(string-bytes 1 1373182)
=C2=A0(vecto= rs 16 27579)
=C2=A0(vector-slots 8 1318855 206622)
=C2= =A0(floats 8 250 210)
=C2=A0(intervals 56 267 0)
=C2=A0= (buffers 976 60))

--001a11414d283282af055fe8a4cf-- From unknown Mon Jun 23 11:26:02 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Terje Larsen Subject: bug#29627: closed (Re: bug#29627: 25.3; x-show-tip does not display text when x-gtk-use-tooltips is nil and left/right-margin-width is set) Message-ID: References: <83shcju0kv.fsf@gnu.org> X-Gnu-PR-Message: they-closed 29627 X-Gnu-PR-Package: emacs Reply-To: 29627@debbugs.gnu.org Date: Sat, 09 Dec 2017 20:09:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1512850142-1871-1" This is a multi-part message in MIME format... ------------=_1512850142-1871-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #29627: 25.3; x-show-tip does not display text when x-gtk-use-tooltips is n= il and left/right-margin-width is set which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 29627@debbugs.gnu.org. --=20 29627: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D29627 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1512850142-1871-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 29627-done) by debbugs.gnu.org; 9 Dec 2017 20:08:21 +0000 Received: from localhost ([127.0.0.1]:54115 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eNlQ5-0000TG-9h for submit@debbugs.gnu.org; Sat, 09 Dec 2017 15:08:21 -0500 Received: from eggs.gnu.org ([208.118.235.92]:45063) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eNlQ3-0000T2-0e for 29627-done@debbugs.gnu.org; Sat, 09 Dec 2017 15:08:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eNlPu-0006nN-GD for 29627-done@debbugs.gnu.org; Sat, 09 Dec 2017 15:08:13 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:37150) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eNlPu-0006n6-Ct; Sat, 09 Dec 2017 15:08:10 -0500 Received: from [176.228.60.248] (port=1557 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eNlPs-0000vf-Dc; Sat, 09 Dec 2017 15:08:10 -0500 Date: Sat, 09 Dec 2017 22:07:44 +0200 Message-Id: <83shcju0kv.fsf@gnu.org> From: Eli Zaretskii To: Terje Larsen In-reply-to: (message from Terje Larsen on Sat, 09 Dec 2017 13:54:24 +0000) Subject: Re: bug#29627: 25.3; x-show-tip does not display text when x-gtk-use-tooltips is nil and left/right-margin-width is set References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 29627-done Cc: 29627-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: Terje Larsen > Date: Sat, 09 Dec 2017 13:54:24 +0000 > > When you have enabled `left-margin-width' and `right-margin-width' > as well as disabled the `x-gtk-use-system-tooltips', the text will > be invisible when running `x-show-tip'. The tip will be show, but > not visible. > > Steps to reproduce with emacs -Q > (setq-default > left-margin-width 1 > right-margin-width 1) > > (setq x-gtk-use-system-tooltips nil) > > (x-show-tip "Can you see me now?") Thanks, fixed on the emacs-26 branch. ------------=_1512850142-1871-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 9 Dec 2017 17:27:12 +0000 Received: from localhost ([127.0.0.1]:54056 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eNiu7-0005Fx-Sp for submit@debbugs.gnu.org; Sat, 09 Dec 2017 12:27:12 -0500 Received: from eggs.gnu.org ([208.118.235.92]:49838) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eNfaY-0000Fq-OC for submit@debbugs.gnu.org; Sat, 09 Dec 2017 08:54:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eNfaS-0007Y7-3Y for submit@debbugs.gnu.org; Sat, 09 Dec 2017 08:54:41 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:49923) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eNfaS-0007Y3-09 for submit@debbugs.gnu.org; Sat, 09 Dec 2017 08:54:40 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40803) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eNfaQ-0003Ey-Br for bug-gnu-emacs@gnu.org; Sat, 09 Dec 2017 08:54:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eNfaO-0007XJ-QU for bug-gnu-emacs@gnu.org; Sat, 09 Dec 2017 08:54:38 -0500 Received: from mail-ot0-x233.google.com ([2607:f8b0:4003:c0f::233]:33787) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eNfaO-0007X1-JQ for bug-gnu-emacs@gnu.org; Sat, 09 Dec 2017 08:54:36 -0500 Received: by mail-ot0-x233.google.com with SMTP id h9so11362155oti.0 for ; Sat, 09 Dec 2017 05:54:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=4/KuJqpQZBaDkhJCD8tdRGbswNFSNq20sxay0aib7P4=; b=vWvhYF1iw6ky8MJkCHpLWKbgLo08ntzGgsbcpkxcUPQShjTkzv3QJLlWN30fZ5ItdQ qVOVs8ODAXNq/WP4hQdF0EWHiaCJiKWJ19PGNUBWrIYfTkIVgilRxDuEthNZYlyxOAuR ybibhvT+b6TqcaKofDlOPYGg2/rHfyw+ZkQxViAl8mEB6cihHT0IYPH5TadRZyRjmngi dG/ycGKAdTvAY6S8AaH7cNajn1gYCHtu0l8VEtPSkZ85FYvUg2H1TR9KGUBdEH/+qSXI B6O1USo0IPK+J5Ze75rGS8zVl5fytPMPdua9bhrBwygpUahLkZ3xotKuNaQw06pH2YQk dv+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=4/KuJqpQZBaDkhJCD8tdRGbswNFSNq20sxay0aib7P4=; b=DZxvXe1ED0prhf/1lCpljWBM7TPT3Pl3u79Yw/ARuJ0dZJ/j5uHkmuHw91BRaf2MsJ roCzVsfOdlHrqnDPYYwnkTafW0D1DQgWgH62/QdKEpvX3HG3w4fpEfjpRZYcZu8jty+u 0cGVjXQMm7Kjw38C0rUCRbJ6O9Cv9Rc46TMWn96wtS2IfNZ0s5LMziYcAexJHzRZdz6B 61Pr1Ge9/PJszVQxjKlbQwojl3TYICWuk5qES3ZswGw7+ZkIBf1PG85ZmLXNKc/ja7N0 hBRxklZgdkRBfnz3pHKUHnLhKdcyHlR2wcnCprVZbqVMJygcIlRzzlOxSATFfcFzp5gu B7+A== X-Gm-Message-State: AJaThX5W3jK6iDwHuDTFcla3v/ie4TQySo86Jbknkdonu1FQp+FEpx7E 9osLdpQ2FGVVdIUsmrI5hWGEWl1hHnvH831DfCNAKg== X-Google-Smtp-Source: AGs4zMYYH2Sj0wZvh6dLt0+/9K5fFVekIEprrJy9v/TjARdNuA/CuCgGuyfP10YXZchMDbZ2h47y95PFapiUP2aTSRs= X-Received: by 10.157.41.236 with SMTP id g41mr31756107otd.42.1512827675376; Sat, 09 Dec 2017 05:54:35 -0800 (PST) MIME-Version: 1.0 From: Terje Larsen Date: Sat, 09 Dec 2017 13:54:24 +0000 Message-ID: Subject: 25.3; x-show-tip does not display text when x-gtk-use-tooltips is nil and left/right-margin-width is set To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary="001a11414d283282af055fe8a4cf" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sat, 09 Dec 2017 12:27:10 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --001a11414d283282af055fe8a4cf Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable When you have enabled `left-margin-width' and `right-margin-width' as well as disabled the `x-gtk-use-system-tooltips', the text will be invisible when running `x-show-tip'. The tip will be show, but not visible. Steps to reproduce with emacs -Q (setq-default left-margin-width 1 right-margin-width 1) (setq x-gtk-use-system-tooltips nil) (x-show-tip "Can you see me now?") In GNU Emacs 25.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.22.19) of 2017-09-16 built on juergen Windowing system distributor 'The X.Org Foundation', version 11.0.11905000 Configured using: 'configure --prefix=3D/usr --sysconfdir=3D/etc --libexecdir=3D/usr/lib --localstatedir=3D/var --with-x-toolkit=3Dgtk3 --with-xft --with-modules 'CFLAGS=3D-march=3Dx86-64 -mtune=3Dgeneric -O2 -pipe -fstack-protector-str= ong -fno-plt' CPPFLAGS=3D-D_FORTIFY_SOURCE=3D2 LDFLAGS=3D-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 MODULES Important settings: value of $LC_ALL: en_US.UTF-8 value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=3Dibus locale-coding-system: utf-8-unix Major mode: Fundamental Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: t Recent messages: =E2=80=98use-package=E2=80=99 is already installed For information about GNU Emacs and the GNU system, type C-h C-a. Making completion list... funcall-interactively: End of buffer [6 times] Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug sendmail cus-edit cus-start cus-load wid-edit mm-archive message idna dired format-spec rfc822 mml mml-sec mailabbrev gmm-utils mailheader mm-decode mm-bodies mm-encode mail-utils network-stream nsm starttls url-http tls gnutls mail-parse rfc2231 rfc2047 rfc2045 ietf-drums url-gw url-cache url-auth url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs gnus-util time-date mm-util help-fns mail-prsvr password-cache url-vars epg finder-inf info package epg-config seq byte-opt gv bytecomp byte-compile cl-extra help-mode easymenu cconv cl-loaddefs pcase cl-lib mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 207883 48038) (symbols 48 28074 0) (miscs 40 801 226) (strings 32 51742 37972) (string-bytes 1 1373182) (vectors 16 27579) (vector-slots 8 1318855 206622) (floats 8 250 210) (intervals 56 267 0) (buffers 976 60)) --001a11414d283282af055fe8a4cf Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
When you have enabled `left-margin-width' and `ri= ght-margin-width'
as well as disabled the `x-gtk-use-system-t= ooltips', the text will
be invisible when running `x-show-tip= '. The tip will be show, but
not visible.

Steps to reproduce with emacs -Q
(setq-default
= =C2=A0 left-margin-width 1
=C2=A0 right-margin-width 1)

(setq x-gtk-use-system-tooltips nil)

(x-show-tip "Can you see me now?")

In= GNU Emacs 25.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.22.19)
=C2= =A0of 2017-09-16 built on juergen
Windowing system distributor &#= 39;The X.Org Foundation', version 11.0.11905000
Configured us= ing:
=C2=A0'configure --prefix=3D/usr --sysconfdir=3D/etc --l= ibexecdir=3D/usr/lib
=C2=A0--localstatedir=3D/var --with-x-toolki= t=3Dgtk3 --with-xft --with-modules
=C2=A0'CFLAGS=3D-march=3Dx= 86-64 -mtune=3Dgeneric -O2 -pipe -fstack-protector-strong
=C2=A0-= fno-plt' CPPFLAGS=3D-D_FORTIFY_SOURCE=3D2
=C2=A0LDFLAGS=3D-Wl= ,-O1,--sort-common,--as-needed,-z,relro,-z,now'

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOU= ND GPM DBUS GCONF GSETTINGS
NOTIFY ACL GNUTLS LIBXML2 FREETYPE M1= 7N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 MODULES
=

Important settings:
=C2=A0 value of $LC_ALL: = en_US.UTF-8
=C2=A0 value of $LANG: en_US.UTF-8
=C2=A0 v= alue of $XMODIFIERS: @im=3Dibus
=C2=A0 locale-coding-system: utf-= 8-unix

Major mode: Fundamental

Minor modes in effect:
=C2=A0 tooltip-mode: t
=C2= =A0 global-eldoc-mode: t
=C2=A0 electric-indent-mode: t
=C2=A0 mouse-wheel-mode: t
=C2=A0 file-name-shadow-mode: t
=
=C2=A0 global-font-lock-mode: t
=C2=A0 auto-composition-mode= : t
=C2=A0 auto-encryption-mode: t
=C2=A0 auto-compress= ion-mode: t
=C2=A0 buffer-read-only: t
=C2=A0 line-numb= er-mode: t
=C2=A0 transient-mark-mode: t

Recent messages:
=E2=80=98use-package=E2=80=99 is already instal= led
For information about GNU Emacs and the GNU system, type C-h = C-a.
Making completion list...
funcall-interactively: E= nd of buffer [6 times]

Load-path shadows:
None found.

Features:
(shadow sort mai= l-extr emacsbug sendmail cus-edit cus-start cus-load
wid-edit mm-= archive message idna dired format-spec rfc822 mml mml-sec
mailabb= rev gmm-utils mailheader mm-decode mm-bodies mm-encode mail-utils
network-stream nsm starttls url-http tls gnutls mail-parse rfc2231rfc2047 rfc2045 ietf-drums url-gw url-cache url-auth url url-proxy=
url-privacy url-expand url-methods url-history url-cookie url-domsuf
url-util mailcap url-handlers url-parse auth-source cl-seq eieio
eieio-core cl-macs gnus-util time-date mm-util help-fns mail-prsvr=
password-cache url-vars epg finder-inf info package epg-config s= eq
byte-opt gv bytecomp byte-compile cl-extra help-mode easymenu = cconv
cl-loaddefs pcase cl-lib mule-util tooltip eldoc electric u= niquify
ediff-hook vc-hooks lisp-float-type mwheel x-win term/com= mon-win x-dnd
tool-bar dnd fontset image regexp-opt fringe tabula= ted-list newcomment
elisp-mode lisp-mode prog-mode register page = menu-bar rfn-eshadow timer
select scroll-bar mouse jit-lock font-= lock syntax facemenu font-core
frame cl-generic cham georgian utf= -8-lang misc-lang vietnamese tibetan
thai tai-viet lao korean jap= anese eucjp-ms cp51932 hebrew greek romanian
slovak czech europea= n ethiopic indian cyrillic chinese charscript
case-table epa-hook= jka-cmpr-hook help simple abbrev minibuffer
cl-preloaded nadvice= loaddefs button faces cus-face macroexp files
text-properties ov= erlay sha1 md5 base64 format env code-pages mule
custom widget ha= shtable-print-readable backquote dbusbind inotify
dynamic-setting= system-font-setting font-render-setting move-toolbar gtk
x-toolk= it x multi-tty make-network-process emacs)

Memory = information:
((conses 16 207883 48038)
=C2=A0(symbols 4= 8 28074 0)
=C2=A0(miscs 40 801 226)
=C2=A0(strings 32 5= 1742 37972)
=C2=A0(string-bytes 1 1373182)
=C2=A0(vecto= rs 16 27579)
=C2=A0(vector-slots 8 1318855 206622)
=C2= =A0(floats 8 250 210)
=C2=A0(intervals 56 267 0)
=C2=A0= (buffers 976 60))

--001a11414d283282af055fe8a4cf-- ------------=_1512850142-1871-1-- From unknown Mon Jun 23 11:26:02 2025 X-Loop: help-debbugs@gnu.org Subject: bug#29627: 25.3; x-show-tip does not display text when x-gtk-use-tooltips is nil and left/right-margin-width is set Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 10 Dec 2017 09:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29627 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 29627@debbugs.gnu.org, eliz@gnu.org, terlar@gmail.com Received: via spool by 29627-submit@debbugs.gnu.org id=B29627.151289958018267 (code B ref 29627); Sun, 10 Dec 2017 09:53:02 +0000 Received: (at 29627) by debbugs.gnu.org; 10 Dec 2017 09:53:00 +0000 Received: from localhost ([127.0.0.1]:54501 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eNyI8-0004kZ-91 for submit@debbugs.gnu.org; Sun, 10 Dec 2017 04:53:00 -0500 Received: from mout.gmx.net ([212.227.17.20]:50135) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eNyI4-0004kJ-Cf for 29627@debbugs.gnu.org; Sun, 10 Dec 2017 04:52:58 -0500 Received: from [192.168.1.100] ([46.125.249.38]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LsD9n-1f3C2Q0sCl-013u6m; Sun, 10 Dec 2017 10:52:49 +0100 Message-ID: <5A2D03EB.1070007@gmx.at> Date: Sun, 10 Dec 2017 10:52:43 +0100 From: martin rudalics MIME-Version: 1.0 References: <83shcju0kv.fsf@gnu.org> In-Reply-To: <83shcju0kv.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:Gv8OqoHXp1RTjwiLY3YGLVvE+f9n9HeON8CX6SThIoEFdQkInEe 7oGexh5j44j5RQ4+hHy9Bt61uHxgs9+MAy0VUjhRTbL8lZAdfF+jMrkUihmkTEYFTz5hdUk CKhUmRzGO9hFnpwXRpIwjNgx7bWduKvJFHOTwPpt8suZ01+2icsqzEt7jHAvOn2giiSY7Sj NKKGLHz6D/FVZw6JQ3yWg== X-UI-Out-Filterresults: notjunk:1;V01:K0:AZ3rijSVn+I=:ySV6EgIzpCd5p3seaAcagL SFMKUX4wdO3xcyOOGrpdsjeCR3Dm/Twco4B1gc/oLDcmVFKgPj5C9poVn1l2bXsxeN/+3c2wI AL2roRG/eBtzvn3sxqFnL377om7XTRf9XyF8Bu/O563GsstFW6wKSm3xpPEWXhRPxHnwAokJc ciSkJC7VbL0LVgZ322UmW5ozo4pHosdpVACpYlxaOcmHvzZ6iKPpKFznr3mrzW6tJsnyjpVr/ Dj2gkjOlt0MDI85FsxDhFvzxudD9VRzoLvlSZikes8cb7jgtIsxJ9dxbGeCjBEkVLBCo124Pg E8PVF8xw5xxQ+h0NECupRzgiWS70qLgu4t8n5fVrVgvh50oAf2qPr/g2xqCDJUMSdOx9UyDqH unucA+HiNo9+Jwcv4GzKBVWLCod4FWikh2RNUWbqwW1Uw8zPbYWb+UYKxG0bOBGA3p7BbbwRR wHSMX/W8Yv51yF9nzgEH2EYxfJxLYDdLMZTFwURE9kmZM+VTOdwLFOUmr9cKxHEhYfrPbwEp7 L/aBrRaDlsBZcJiSBjogvRmqG0Mf62tvRYM9hnzmn3Y+5hzfcIbtJeCzPPC9dKXjPxQnrtD8R 0RBu5MG4hpllbvWusQiX2f92eSxxbiBBPngnqZnVatHnDA9maqYJdvGP1eHEoALcLttdW3KZt 2Usu3L8M0M5CZX0pTjnnLn2endt3QbDXes2ncK9TtS1h4kaVI/LfUYeSQsRhLZeDZFBY6DFXm USw/pVCVBYJnGKcgzN2I2W912ghSP+W9pmXaM93AthwQEf38HY5LC05Ol5KFMVPoi29051XAO 5NVWv6XzMFmisBWk39R81LJn4SKAGqeVANdRTn2gkUwPdPqPEqCpYmVVMo+HaC9La3vXumL X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) > Thanks, fixed on the emacs-26 branch. Could you please tell why such a harsh treatment was necessary? In particular why (1) showing the margins initially failed and (2) instead of just forcing the window margins have zero width you made the window a pseudo-window. Thanks, martin From unknown Mon Jun 23 11:26:02 2025 X-Loop: help-debbugs@gnu.org Subject: bug#29627: 25.3; x-show-tip does not display text when x-gtk-use-tooltips is nil and left/right-margin-width is set Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 10 Dec 2017 14:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29627 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: martin rudalics Cc: 29627@debbugs.gnu.org, terlar@gmail.com Reply-To: Eli Zaretskii Received: via spool by 29627-submit@debbugs.gnu.org id=B29627.151291493819250 (code B ref 29627); Sun, 10 Dec 2017 14:09:01 +0000 Received: (at 29627) by debbugs.gnu.org; 10 Dec 2017 14:08:58 +0000 Received: from localhost ([127.0.0.1]:54616 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eO2Hq-00050Q-3b for submit@debbugs.gnu.org; Sun, 10 Dec 2017 09:08:58 -0500 Received: from eggs.gnu.org ([208.118.235.92]:54417) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eO2Ho-00050B-NV for 29627@debbugs.gnu.org; Sun, 10 Dec 2017 09:08:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eO2Hi-0007rN-CU for 29627@debbugs.gnu.org; Sun, 10 Dec 2017 09:08:51 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:47055) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eO2He-0007np-6B; Sun, 10 Dec 2017 09:08:46 -0500 Received: from [176.228.60.248] (port=1939 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eO2Hd-000676-IP; Sun, 10 Dec 2017 09:08:45 -0500 Date: Sun, 10 Dec 2017 16:08:30 +0200 Message-Id: <83k1xuu141.fsf@gnu.org> From: Eli Zaretskii In-reply-to: <5A2D03EB.1070007@gmx.at> (message from martin rudalics on Sun, 10 Dec 2017 10:52:43 +0100) References: <83shcju0kv.fsf@gnu.org> <5A2D03EB.1070007@gmx.at> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Date: Sun, 10 Dec 2017 10:52:43 +0100 > From: martin rudalics > > > Thanks, fixed on the emacs-26 branch. > > Could you please tell why such a harsh treatment was necessary? In > particular why (1) showing the margins initially failed and (2) instead > of just forcing the window margins have zero width you made the window a > pseudo-window. First, I didn't make the window a pseudo-window; it was always a pseudo-window. The line w->pseudo_window_p = true; existed in x-show-tip ever since Emacs 21. I didn't feel comfortable with changing that now, certainly not on the release branch. The bug happened because pseudo-windows cannot have display margins, an assumption that is in the display code all over the place. Here's a typical example: static void frame_to_window_pixel_xy (struct window *w, int *x, int *y) { if (w->pseudo_window_p) { /* A pseudo-window is always full-width, and starts at the left edge of the frame, plus a frame border. */ struct frame *f = XFRAME (w->frame); *x -= FRAME_INTERNAL_BORDER_WIDTH (f); *y = FRAME_TO_WINDOW_PIXEL_Y (w, *y); } The actual root cause for this bug was that update_marginal_area, when does this: output_cursor_to (w, vpos, 0, desired_row->y, 0); if (desired_row->used[area]) rif->write_glyphs (w, updated_row, desired_row->glyphs[area], area, desired_row->used[area]); rif->clear_end_of_line (w, updated_row, area, -1); which in case in point avoided calling the write_glyphs method when called for area = RIGHT_MARGIN_AREA (because the 'used' count is of course zero). That left the output cursor at the beginning of the glyph row, and then clear_end_of_line method cleared the text which was already displayed, because of this snippet: from_x = w->output_cursor.x; /* Translate to frame coordinates. */ if (updated_row->full_width_p) { from_x = WINDOW_TO_FRAME_PIXEL_X (w, from_x); to_x = WINDOW_TO_FRAME_PIXEL_X (w, to_x); } else { int area_left = window_box_left (w, updated_area); from_x += area_left; to_x += area_left; } And you will see that window_box_left does this for pseudo-windows: if (w->pseudo_window_p) return FRAME_INTERNAL_BORDER_WIDTH (f); which is just another example of the above-mentioned assumption about pseudo-windows being margin-less. So from_x remained (almost) zero, unlike in normal windows, and the already displayed text was deleted. For some reason that I cannot identify, and don't really care about, the original recipe did work until Emacs 24.3. But it could only work by sheer luck, or maybe something else was preventing the window of the tooltip frame to acquire display margins. I just made this official with my changes, that's all. As for why I forced the tip buffer have zero margins, instead of doing the same with the window in which that buffer is displayed, then: . why does it matter? the buffer is a temporary buffer generated specifically for showing the tip text; . I thought doing that with the window is more complex, what with all the different ways one can affect a window's parameters Having said all that, if you see problem(s) caused by my change, please describe them; I'm not married to the fix I pushed. From unknown Mon Jun 23 11:26:02 2025 X-Loop: help-debbugs@gnu.org Subject: bug#29627: 25.3; x-show-tip does not display text when x-gtk-use-tooltips is nil and left/right-margin-width is set Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 10 Dec 2017 14:30:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29627 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 29627@debbugs.gnu.org, terlar@gmail.com Received: via spool by 29627-submit@debbugs.gnu.org id=B29627.151291615121161 (code B ref 29627); Sun, 10 Dec 2017 14:30:04 +0000 Received: (at 29627) by debbugs.gnu.org; 10 Dec 2017 14:29:11 +0000 Received: from localhost ([127.0.0.1]:54632 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eO2bP-0005VE-AZ for submit@debbugs.gnu.org; Sun, 10 Dec 2017 09:29:11 -0500 Received: from mout.gmx.net ([212.227.17.22]:52391) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eO2bN-0005Um-GM for 29627@debbugs.gnu.org; Sun, 10 Dec 2017 09:29:10 -0500 Received: from [192.168.1.100] ([46.125.250.118]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LgdBZ-1ereJc2rKP-00o29s; Sun, 10 Dec 2017 15:29:01 +0100 Message-ID: <5A2D44A7.4010502@gmx.at> Date: Sun, 10 Dec 2017 15:28:55 +0100 From: martin rudalics MIME-Version: 1.0 References: <83shcju0kv.fsf@gnu.org> <5A2D03EB.1070007@gmx.at> <83k1xuu141.fsf@gnu.org> In-Reply-To: <83k1xuu141.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:P1f9zAiGt+X1sqStQHmx/67GcyYPPAaK5YvW/IPB1aH+pKzbmeJ rfrDCiG77C7+ueaU9Blwz5RjCv655a0BtgakhN/OU0cHSOnODXFaEFwifqdRAzwcyc1xkdy srKfCIM51SQRHQs0ZTg1XZkpmKoRXQf1kQ7LevcT1jYH46/zg7fvki+vafQl4lxnqhbKc10 ZwfFbHfuc63ojG+xBoE9Q== X-UI-Out-Filterresults: notjunk:1;V01:K0:EqQwAqcC31k=:v9r7IrzNR9qaSJwMeVg7iG HSme+oqAWMes0QnMoGKNTqYkmaq411Rtkb0fIJy7BG2NDwA/YfTh49SuExQUW6IQXtSSN0+MP JmAfjgBYFSBXkhr3+ic0IbITzDf09JQhlsd3OQoc9dv0QX3014r8WsQ/BGP+Qau4bw5YrXJN+ yU0ILcCElKoXyZRfXd9irJWtl0MauF83SHD2WLLyP+EqFPS9iJmPbmtoOmscZ9SZM5HnM3LK6 9U7d8INvD5jOTHYXlO3FzY7nl28X+66r3ydJ7ChbQzH7vhMTats1gE1Lj6i1IUJhflNEFb2Ij EJxKLcCvTO79nXMSjn1vhsmJV/dowpPpkMF9kD2rXDGhOer03ZpBqsL9izoeKBqDP7r/weP32 oq8Jq9qwSLxsn9bFCK07+KqyVUF11Tbpba2xicz9sVnYVfk6w/3k8eIrbFTPiUrUOs8F13INB NF2DSJys8zf8dRN2gUJsw8ncR2tNOAzXEIz0l/fQhL4VYBDJd6U9C3aEWCMthYs9GOVLpJjyr V0/WCgwKHW2S7XBhQQljk8y75dELaia5M27AOBq7GHenFjKacqzwkLY/dWHkZjIVxBISEXfy8 YKtVi3DeoDH6hnOlZZebwsDhtQblgDaPqzt8Uk5ltudQiOV9hTZBGaaAHZsjpX/vWnYtOjMbv XEx3DUd435Y8Erw0Ne56cmZk1sWvRM8yGgLdpSVajhg0OuwZfNXBkpGL6EAJDhH8jBYwKFq2+ Pq89FRRhGciEw/ohFSwJeN6sgC0+4VPAvv6uX+j+WsUVJhY/YFgsi8pF1oygMd25a6MEqgwy9 mT6ufXz+EhRfg3SLBb0pX73nqk81dGaivDlEkRDriOZfvchZOk= X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) > First, I didn't make the window a pseudo-window; it was always a > pseudo-window. The line > > w->pseudo_window_p = true; > > existed in x-show-tip ever since Emacs 21. Ah, sorry. I misread both ChangeLog entry and diffs (and was probably mislead by this change - Currently only used for menu bar windows of frames. */ + Currently only used for menu bar windows, for tool bar windows, + and for tooltips. */ ) > I didn't feel comfortable > with changing that now, certainly not on the release branch. Sure so. > And you will see that window_box_left does this for pseudo-windows: > > if (w->pseudo_window_p) > return FRAME_INTERNAL_BORDER_WIDTH (f); > > which is just another example of the above-mentioned assumption about > pseudo-windows being margin-less. Right. > So from_x remained (almost) zero, unlike in normal windows, and the > already displayed text was deleted. > > For some reason that I cannot identify, and don't really care about, > the original recipe did work until Emacs 24.3. But it could only work > by sheer luck, or maybe something else was preventing the window of > the tooltip frame to acquire display margins. I just made this > official with my changes, that's all. > > As for why I forced the tip buffer have zero margins, instead of doing > the same with the window in which that buffer is displayed, then: > > . why does it matter? the buffer is a temporary buffer generated > specifically for showing the tip text; > . I thought doing that with the window is more complex, what with > all the different ways one can affect a window's parameters > > Having said all that, if you see problem(s) caused by my change, > please describe them; I'm not married to the fix I pushed. It's OK. My concern was that turning tooltip windows into pseudo-windows would have meant a quite substantial change for the release branch. Thanks for the explanations, martin From unknown Mon Jun 23 11:26:02 2025 X-Loop: help-debbugs@gnu.org Subject: bug#29627: 25.3; x-show-tip does not display text when x-gtk-use-tooltips is nil and left/right-margin-width is set Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 10 Dec 2017 14:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29627 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: martin rudalics Cc: 29627@debbugs.gnu.org, terlar@gmail.com Reply-To: Eli Zaretskii Received: via spool by 29627-submit@debbugs.gnu.org id=B29627.151291739823168 (code B ref 29627); Sun, 10 Dec 2017 14:50:02 +0000 Received: (at 29627) by debbugs.gnu.org; 10 Dec 2017 14:49:58 +0000 Received: from localhost ([127.0.0.1]:54646 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eO2vV-00061b-Li for submit@debbugs.gnu.org; Sun, 10 Dec 2017 09:49:58 -0500 Received: from eggs.gnu.org ([208.118.235.92]:35029) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eO2vU-00061O-6l for 29627@debbugs.gnu.org; Sun, 10 Dec 2017 09:49:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eO2vO-0004A0-4i for 29627@debbugs.gnu.org; Sun, 10 Dec 2017 09:49:50 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:47910) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eO2vJ-000477-7C; Sun, 10 Dec 2017 09:49:45 -0500 Received: from [176.228.60.248] (port=2207 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eO2vI-0004IF-LO; Sun, 10 Dec 2017 09:49:45 -0500 Date: Sun, 10 Dec 2017 16:49:30 +0200 Message-Id: <83h8sytz7p.fsf@gnu.org> From: Eli Zaretskii In-reply-to: <5A2D44A7.4010502@gmx.at> (message from martin rudalics on Sun, 10 Dec 2017 15:28:55 +0100) References: <83shcju0kv.fsf@gnu.org> <5A2D03EB.1070007@gmx.at> <83k1xuu141.fsf@gnu.org> <5A2D44A7.4010502@gmx.at> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Date: Sun, 10 Dec 2017 15:28:55 +0100 > From: martin rudalics > CC: 29627@debbugs.gnu.org, terlar@gmail.com > > - Currently only used for menu bar windows of frames. */ > + Currently only used for menu bar windows, for tool bar windows, > + and for tooltips. */ This is part of my perennial quest to make the comments match the code... > > Having said all that, if you see problem(s) caused by my change, > > please describe them; I'm not married to the fix I pushed. > > It's OK. Great, thanks. > My concern was that turning tooltip windows into pseudo-windows > would have meant a quite substantial change for the release branch. Indeed. Just like the opposite change bothered me.