From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#48409: Text runs away before user can copy it Date: Tue, 18 May 2021 18:42:16 +0000 Message-ID: References: <87cztt4yg9.5.fsf@jidanni.org> <83fsypztd4.fsf@gnu.org> <87cztt9qdj.fsf@mail.linkov.net> <83mtsxxfo8.fsf@gnu.org> <87h7j12j93.fsf@mail.linkov.net> <83bl98rxqo.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25619"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 48409@debbugs.gnu.org, Juri Linkov To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 18 20:51:52 2021 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 1lj4op-0006Sc-3M for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 18 May 2021 20:51:51 +0200 Original-Received: from localhost ([::1]:44022 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lj4oo-0004XE-02 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 18 May 2021 14:51:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51020) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lj4gI-0001DR-LK for bug-gnu-emacs@gnu.org; Tue, 18 May 2021 14:43:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45755) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lj4gI-0002Pw-Dw for bug-gnu-emacs@gnu.org; Tue, 18 May 2021 14:43:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lj4gI-0001tu-Az for bug-gnu-emacs@gnu.org; Tue, 18 May 2021 14:43:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 18 May 2021 18:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48409 X-GNU-PR-Package: emacs Original-Received: via spool by 48409-submit@debbugs.gnu.org id=B48409.16213633487211 (code B ref 48409); Tue, 18 May 2021 18:43:02 +0000 Original-Received: (at 48409) by debbugs.gnu.org; 18 May 2021 18:42:28 +0000 Original-Received: from localhost ([127.0.0.1]:57301 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lj4fk-0001sF-DP for submit@debbugs.gnu.org; Tue, 18 May 2021 14:42:28 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:51592 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1lj4ff-0001rw-Nh for 48409@debbugs.gnu.org; Tue, 18 May 2021 14:42:27 -0400 Original-Received: (qmail 19981 invoked by uid 3782); 18 May 2021 18:42:17 -0000 Original-Received: from acm.muc.de (p4fe1589d.dip0.t-ipconnect.de [79.225.88.157]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Tue, 18 May 2021 20:42:16 +0200 Original-Received: (qmail 8017 invoked by uid 1000); 18 May 2021 18:42:16 -0000 Content-Disposition: inline In-Reply-To: <83bl98rxqo.fsf@gnu.org> X-Submission-Agent: TMDA/1.3.x (Ph3nix) X-Primary-Address: acm@muc.de 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" Xref: news.gmane.io gmane.emacs.bugs:206829 Archived-At: Hello, Eli and Juri. On Tue, May 18, 2021 at 16:13:19 +0300, Eli Zaretskii wrote: > > From: Juri Linkov > > Cc: Alan Mackenzie , 48409@debbugs.gnu.org > > Date: Mon, 17 May 2021 23:53:12 +0300 > > Something strange is going on here: > > 1. when the shell output displayed in the echo area is only 1 line: > > M-! echo -e "line1" RET > > then clicking on the echo area displays the *Messages* buffer correctly. > > 2. But when the output has more lines: > > M-! echo -e "line1\nline2" RET > > then clicking on the echo area signals an error: > > mouse-minibuffer-check: Minibuffer window is not active > You don't need M-! for this, 'message' is enough: > emacs -Q > (message "line1\nline2") C-x C-e > click mouse-1 in the mini-window Yes. But I think Juri's right about it being the number of lines in the echo area which is the key to the error. > Alan, are you looking into this? I am now, yes. > My guess is that this has something to do with the fact the the > echo-area buffer is displayed in the mini-window, and the > view-echo-area-messages binding is only active in the minibuffer, not > in an echo-area buffer. But that's a guess. The error message "Minibuffer window is not active" comes from the function mouse-minibuffer-check (mouse.el), which has just been called from mouse-set-region, which has somehow been given a drag event as argument. How can a simple stationary click in the echo area become a drag event? I'm guessing there's some subtle bug in some function such as make_lispy_event in keyboard.c. Any mouse experts who have suggestions, please chime in, here! -- Alan Mackenzie (Nuremberg, Germany).