unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Mauro Aranda <maurooaranda@gmail.com>
To: Stefan Kangas <stefan@marxist.se>
Cc: 3192@debbugs.gnu.org
Subject: bug#3192: 23.0.92; disabling tooltip-mode inhibits showing Customize error msgs
Date: Sun, 1 Sep 2019 07:43:42 -0300	[thread overview]
Message-ID: <CABczVwcdLKxuoGdKpYmGy6P2+h0DT8Htg1kY28ivoyxpSLimCA@mail.gmail.com> (raw)
In-Reply-To: <CADwFkmkyPjeRZweefuNWwYrmcLND1yf42cLjt0pRFz2C+vkfnA@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 467 bytes --]

Stefan Kangas <stefan@marxist.se> writes:

> Mauro Aranda <maurooaranda@gmail.com> writes:
>
>> I don't know what happens on other systems other than GNU/Linux and
>> Windows, so it would be good to have that information.
>
> I'm not able to reproduce this on current master on macOS.  I see
> these messages echoed in the minibuffer and in the *Messages* buffer:
>

Thank you Stefan.

I propose the attached patch.

>
> Thanks,
> Stefan Kangas

Best regards,
Mauro.

[-- Attachment #1.2: Type: text/html, Size: 717 bytes --]

[-- Attachment #2: 0001-With-tooltip-mode-disabled-don-t-unconditionally-cle.patch --]
[-- Type: text/x-patch, Size: 1132 bytes --]

From 2fcecc4efc443b8d7f58369f6cd64570913b9650 Mon Sep 17 00:00:00 2001
From: Mauro Aranda <maurooaranda@gmail.com>
Date: Fri, 30 Aug 2019 10:11:11 -0300
Subject: [PATCH] With tooltip-mode disabled, don't unconditionally clear the
 echo area

* lisp/tooltip.el (tooltip-show-help-non-mode): Only clear the echo
area when the current message displayed is a tooltip message.  (Bug#3192)
---
 lisp/tooltip.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lisp/tooltip.el b/lisp/tooltip.el
index b1c69ae..407531b 100644
--- a/lisp/tooltip.el
+++ b/lisp/tooltip.el
@@ -365,7 +365,10 @@ tooltip-show-help-non-mode
       (let ((message-log-max nil))
         (message "%s" tooltip-previous-message)
         (setq tooltip-previous-message nil)))
-     (t
+     ;; Only stop displaying the message when the current message is our own.
+     ;; This has the advantage of not clearing the echo area when
+     ;; running after an error message was displayed.  (Bug#3192)
+     ((equal-including-properties tooltip-help-message (current-message))
       (message nil)))))
 
 (defun tooltip-show-help (msg)
-- 
2.7.4


  reply	other threads:[~2019-09-01 10:43 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-02 15:28 bug#3192: 23.0.92; disabling tooltip-mode inhibits showing Customize error msgs Drew Adams
2012-01-29 10:14 ` Chong Yidong
2012-01-29 11:59   ` Juanma Barranquero
2019-08-30 14:44 ` Mauro Aranda
2019-08-31  2:34   ` Stefan Kangas
2019-09-01 10:43     ` Mauro Aranda [this message]
2019-09-01 14:02       ` Eli Zaretskii
2019-09-02 11:16         ` Mauro Aranda
2019-09-07  9:55           ` Eli Zaretskii
2019-09-07 21:14             ` Mauro Aranda
2019-09-14  8:27               ` Eli Zaretskii
2019-09-16 14:43                 ` Mauro Aranda
2019-09-16 20:18                   ` Lars Ingebrigtsen
2019-09-16 22:20                     ` Mauro Aranda

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CABczVwcdLKxuoGdKpYmGy6P2+h0DT8Htg1kY28ivoyxpSLimCA@mail.gmail.com \
    --to=maurooaranda@gmail.com \
    --cc=3192@debbugs.gnu.org \
    --cc=stefan@marxist.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).