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#48409: Text runs away before user can copy it Date: Fri, 14 May 2021 23:13:50 +0300 Message-ID: <83lf8hxedd.fsf@gnu.org> References: <87cztt4yg9.5.fsf@jidanni.org> <83fsypztd4.fsf@gnu.org> <87cztt9qdj.fsf@mail.linkov.net> <83mtsxxfo8.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16802"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 48409@debbugs.gnu.org, juri@linkov.net To: acm@muc.de Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 14 22:15:11 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 1lheDH-00049E-34 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 14 May 2021 22:15:11 +0200 Original-Received: from localhost ([::1]:35868 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lheDF-0000wa-OA for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 14 May 2021 16:15:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38376) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lheD8-0000wR-MK for bug-gnu-emacs@gnu.org; Fri, 14 May 2021 16:15:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35568) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lheD8-00016o-Dv for bug-gnu-emacs@gnu.org; Fri, 14 May 2021 16:15:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lheD8-0002F5-A9 for bug-gnu-emacs@gnu.org; Fri, 14 May 2021 16:15:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 May 2021 20:15: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.16210232478516 (code B ref 48409); Fri, 14 May 2021 20:15:02 +0000 Original-Received: (at 48409) by debbugs.gnu.org; 14 May 2021 20:14:07 +0000 Original-Received: from localhost ([127.0.0.1]:47110 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lheCF-0002DI-3J for submit@debbugs.gnu.org; Fri, 14 May 2021 16:14:07 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44558) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lheC9-0002Ca-Hc for 48409@debbugs.gnu.org; Fri, 14 May 2021 16:14:05 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:39838) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lheC3-0000F9-EW; Fri, 14 May 2021 16:13:55 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3939 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 1lheC2-00064g-Vf; Fri, 14 May 2021 16:13:55 -0400 In-Reply-To: <83mtsxxfo8.fsf@gnu.org> (message from Eli Zaretskii on Fri, 14 May 2021 22:45:43 +0300) 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:206557 Archived-At: > Date: Fri, 14 May 2021 22:45:43 +0300 > From: Eli Zaretskii > Cc: 48409@debbugs.gnu.org > > > (defvar minibuffer-inactive-mode-map > > (let ((map (make-keymap))) > > ... > > (define-key map [mouse-1] 'view-echo-area-messages) > > > > But now clicking mouse-1 reports an error. > > It reports an error because it doesn't invoke view-echo-area-messages. > > Alan, this minibuffer-inactive-mode-map thing doesn't seem to work > with mouse clocks, please take a look. Alan, is the below the right fix? The problem is that no one is setting up the minibuffer in inactive mode until after the first time the minibuffer is activated. diff --git a/src/minibuf.c b/src/minibuf.c index 428998a..9ec93a0 100644 --- a/src/minibuf.c +++ b/src/minibuf.c @@ -2297,6 +2297,8 @@ init_minibuf_once_for_pdumper (void) minibuf_prompt = Qnil; minibuf_save_list = Qnil; last_minibuf_string = Qnil; + Lisp_Object minibuf = get_minibuffer (0); + set_minibuffer_mode (minibuf, 0); } void