unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#28724: 25.3; height of echo area when displaying tooltip
@ 2017-10-06 18:03 Alex Branham
  2017-10-07  8:09 ` martin rudalics
  0 siblings, 1 reply; 5+ messages in thread
From: Alex Branham @ 2017-10-06 18:03 UTC (permalink / raw)
  To: 28724

Hello,

If I have disabled tooltip-mode, is there a way to tell Emacs that it should expand the height of the echo area (where tooltips are displayed) if the tooltip is longer than the screen is wide? Currently the words just run off and I can't see them.

Additionally, I believe the info manual and docstring for `x-gtk-use-system-tooltips' may need updating. In section 21.18 Tooltips, it says "If Emacs is built with GTK+ support..." and goes on to state that users can change `x-gtk-use-system-tooltips' to nil. However, I was under the impression that the recommended way to do this was to call (tooltips-mode -1).

Thanks,
Alex


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.11903000
Configured using:
 'configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib
 --localstatedir=/var --with-x-toolkit=gtk3 --with-xft --with-modules
 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong
 -fno-plt' CPPFLAGS=-D_FORTIFY_SOURCE=2
 LDFLAGS=-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 $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix






^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#28724: 25.3; height of echo area when displaying tooltip
  2017-10-06 18:03 bug#28724: 25.3; height of echo area when displaying tooltip Alex Branham
@ 2017-10-07  8:09 ` martin rudalics
  2017-10-07  8:40   ` Eli Zaretskii
  0 siblings, 1 reply; 5+ messages in thread
From: martin rudalics @ 2017-10-07  8:09 UTC (permalink / raw)
  To: Alex Branham, 28724

 > If I have disabled tooltip-mode, is there a way to tell Emacs that it
 > should expand the height of the echo area (where tooltips are
 > displayed) if the tooltip is longer than the screen is wide? Currently
 > the words just run off and I can't see them.

This should have been fixed for Emacs 26.  Please try the release
version.

 > Additionally, I believe the info manual and docstring for
 > `x-gtk-use-system-tooltips' may need updating. In section 21.18
 > Tooltips, it says "If Emacs is built with GTK+ support..." and goes on
 > to state that users can change `x-gtk-use-system-tooltips' to
 > nil.

This means that Emacs will from now on try to display native (non-GTK)
tooltips instead.

 > However, I was under the impression that the recommended way to
 > do this was to call (tooltips-mode -1).

The recommended way to turn off tooltips is

(tooltip-mode -1)

without the "s", indeed.

martin





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#28724: 25.3; height of echo area when displaying tooltip
  2017-10-07  8:09 ` martin rudalics
@ 2017-10-07  8:40   ` Eli Zaretskii
  2017-10-07  9:45     ` martin rudalics
  0 siblings, 1 reply; 5+ messages in thread
From: Eli Zaretskii @ 2017-10-07  8:40 UTC (permalink / raw)
  To: martin rudalics; +Cc: alex.branham, 28724

> Date: Sat, 07 Oct 2017 10:09:02 +0200
> From: martin rudalics <rudalics@gmx.at>
> 
>  > If I have disabled tooltip-mode, is there a way to tell Emacs that it
>  > should expand the height of the echo area (where tooltips are
>  > displayed) if the tooltip is longer than the screen is wide? Currently
>  > the words just run off and I can't see them.
> 
> This should have been fixed for Emacs 26.

It should?  Where was that done, and in response to what bug report or
discussion?

I see this in tooltip-show-help-non-mode:

      (let ((message-truncate-lines t) <<<<<<<<<<<<<<<<<<<
            (message-log-max nil))
        (message "%s" help)))

If I remove that binding, the echo area gets resized as expected to
show the full tooltip.  Should we remove that binding on the emacs-26
branch?





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#28724: 25.3; height of echo area when displaying tooltip
  2017-10-07  8:40   ` Eli Zaretskii
@ 2017-10-07  9:45     ` martin rudalics
  2017-10-07 12:08       ` Eli Zaretskii
  0 siblings, 1 reply; 5+ messages in thread
From: martin rudalics @ 2017-10-07  9:45 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: alex.branham, 28724

 > It should?  Where was that done, and in response to what bug report or
 > discussion?

I confused this one with a similar issue in eldoc which apparently was
fixed for Emacs 26.  I'm used to display eldoc output in tooltips so
when with tooltip-mode off I saw that Emacs 25 and 26 behaved
differently when displaying eldoc information in the echo area, I was
sure that this was due to a tooltips related change.  Sorry.

 > I see this in tooltip-show-help-non-mode:
 >
 >        (let ((message-truncate-lines t) <<<<<<<<<<<<<<<<<<<
 >              (message-log-max nil))
 >          (message "%s" help)))
 >
 > If I remove that binding, the echo area gets resized as expected to
 > show the full tooltip.  Should we remove that binding on the emacs-26
 > branch?

Likely it's there on purpose and somebody will get annoyed if we do
that.  We could make it customizable.

martin





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#28724: 25.3; height of echo area when displaying tooltip
  2017-10-07  9:45     ` martin rudalics
@ 2017-10-07 12:08       ` Eli Zaretskii
  0 siblings, 0 replies; 5+ messages in thread
From: Eli Zaretskii @ 2017-10-07 12:08 UTC (permalink / raw)
  To: martin rudalics; +Cc: alex.branham, 28724-done

> Date: Sat, 07 Oct 2017 11:45:07 +0200
> From: martin rudalics <rudalics@gmx.at>
> CC: alex.branham@gmail.com, 28724@debbugs.gnu.org
> 
>  > I see this in tooltip-show-help-non-mode:
>  >
>  >        (let ((message-truncate-lines t) <<<<<<<<<<<<<<<<<<<
>  >              (message-log-max nil))
>  >          (message "%s" help)))
>  >
>  > If I remove that binding, the echo area gets resized as expected to
>  > show the full tooltip.  Should we remove that binding on the emacs-26
>  > branch?
> 
> Likely it's there on purpose and somebody will get annoyed if we do
> that.  We could make it customizable.

I'm not sure it was on purpose: the log message which introduced the
above says "to closer match the behavior of C code".  But I guess you
are right that someone could become annoyed, so I added a new
defcustom and pushed the change to the master branch.

Note that this option is only effective on GUI frames.

With that, I'm closing the bug report.

Thanks.





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-10-07 12:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-06 18:03 bug#28724: 25.3; height of echo area when displaying tooltip Alex Branham
2017-10-07  8:09 ` martin rudalics
2017-10-07  8:40   ` Eli Zaretskii
2017-10-07  9:45     ` martin rudalics
2017-10-07 12:08       ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).