From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings via "Emacs development discussions." Newsgroups: gmane.emacs.devel Subject: Re: Where to show message output while inputting [was: New multi-command facility displays in the wrong echo area] Date: Wed, 14 Oct 2020 21:22:04 +0000 Message-ID: References: <5f7af512-7951-4e10-a8a1-4f5d07ee6cda@default> <95909e9d-07d8-41de-96a5-fe13cbec3131@default> <83y2k8zxb8.fsf@gnu.org> Reply-To: Gregory Heytings Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="-212064758-1677971108-1602710059=:14083" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28176"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Alpine 2.22 (NEB 394 2020-01-19) Cc: acm@muc.de, Eli Zaretskii , emacs-devel@gnu.org, drew.adams@oracle.com, juri@linkov.net To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Oct 14 23:23:06 2020 Return-path: Envelope-to: ged-emacs-devel@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 1kSoEk-0007FJ-I6 for ged-emacs-devel@m.gmane-mx.org; Wed, 14 Oct 2020 23:23:06 +0200 Original-Received: from localhost ([::1]:42714 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kSoEj-0006CA-Kd for ged-emacs-devel@m.gmane-mx.org; Wed, 14 Oct 2020 17:23:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37356) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kSoDz-0005kS-SJ for emacs-devel@gnu.org; Wed, 14 Oct 2020 17:22:19 -0400 Original-Received: from mx.sdf.org ([205.166.94.24]:62519) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kSoDw-0008UB-Sk; Wed, 14 Oct 2020 17:22:19 -0400 Original-Received: from sdf.org (IDENT:ghe@faeroes.freeshell.org [205.166.94.9]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 09ELM6aA024456 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Wed, 14 Oct 2020 21:22:06 GMT Original-Received: (from ghe@localhost) by sdf.org (8.15.2/8.12.8/Submit) id 09ELMTO9021536; Wed, 14 Oct 2020 21:22:29 GMT In-Reply-To: Content-ID: Received-SPF: pass client-ip=205.166.94.24; envelope-from=ghe@sdf.org; helo=mx.sdf.org X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/14 16:17:13 X-ACL-Warn: Detected OS = ??? X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:257685 Archived-At: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---212064758-1677971108-1602710059=:14083 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-ID: Hi Stefan, >>> Eldoc's purpose is different from the purpose of displaying echo-area >>> messages. For example, nothing significantly bad can happen if you >>> miss the Eldoc's hints, but the same is not true for some important >>> echo-area messages. >> >> AFAICS you can't miss them with the proposed solution: they are >> displayed on the left of the mode-line, with a different background and >> foreground. > > In my setup, the minibuffer is in its own frame, with no mode-line in > sight. So indeed I don't get the eldoc hints in `M-:` because they're > placed in a non-displayed mode-line. E.g.: > > % src/emacs -Q --eval '(setq default-frame-alist (quote ((minibuffer . nil))))' > M-: (format > ...wait a little... > > ...and see that the mode-line doesn't display anything about `format` > I tried your recipe with Emacs 25 to 28, and the modeline _does_ display the eldoc info about 'format', so I'm not quite sure what you mean. Your remark did, however, prompt me to look closer at this case, and to improve my "minibuffer-message-in-mode-line" feature a second time. I attach its last version. Could you perhaps have a look at/try this, and give your opinion on it? It's an attempt to give a more robust solution to bug#38457. ---212064758-1677971108-1602710059=:14083 Content-Type: text/plain; charset=US-ASCII; name=minibuffer-message-in-mode-line.el Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: attachment; filename=minibuffer-message-in-mode-line.el KGRlZnZhciBtaW5pYnVmZmVyLW1lc3NhZ2UtbW9kZS1saW5lLXN0cmluZyBu aWwpDQooZGVmdmFyIG1pbmlidWZmZXItbWVzc2FnZS1tb2RlLWxpbmUtYnVm ZmVyIG5pbCkNCihkZWZ1biBjbGVhci1taW5pYnVmZmVyLW1lc3NhZ2UgKCkN CiAgKHdoZW4gKG5vdCBub25pbnRlcmFjdGl2ZSkNCiAgICAod2hlbiAodGlt ZXJwIG1pbmlidWZmZXItbWVzc2FnZS10aW1lcikNCiAgICAgIChjYW5jZWwt dGltZXIgbWluaWJ1ZmZlci1tZXNzYWdlLXRpbWVyKQ0KICAgICAgKHNldHEg bWluaWJ1ZmZlci1tZXNzYWdlLXRpbWVyIG5pbCkpDQogICAgKHNldHEgbWlu aWJ1ZmZlci1tZXNzYWdlLW1vZGUtbGluZS1zdHJpbmcgbmlsKQ0KICAgICh3 aGVuIChidWZmZXJwIG1pbmlidWZmZXItbWVzc2FnZS1tb2RlLWxpbmUtYnVm ZmVyKQ0KICAgICAgKHdpdGgtY3VycmVudC1idWZmZXIgbWluaWJ1ZmZlci1t ZXNzYWdlLW1vZGUtbGluZS1idWZm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cnAgbWluaWJ1ZmZlci1t ZXNzYWdlLWNsZWFyLXRpbWVvdXQpDQogICAgICAgIChzZXRxIG1pbmlidWZm ZXItbWVzc2FnZS10aW1lcg0KICAgICAgICAgICAgICAocnVuLXdpdGgtdGlt ZXIgbWluaWJ1ZmZlci1tZXNzYWdlLWNsZWFyLXRpbWVvdXQgbmlsDQogICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAjJ2NsZWFyLW1pbmlidWZmZXIt bWVzc2FnZSkpKQ0KICAgICAgKHdpdGgtY3VycmVudC1idWZmZXINCiAgICAg ICAgICAod2luZG93LWJ1ZmZlcg0KICAgICAgICAgICAob3IgKHdpbmRvdy1p bi1kaXJlY3Rpb24gJ2Fib3ZlIChtaW5pYnVmZmVyLXdpbmRvdykpDQogICAg ICAgICAgICAgICAobWluaWJ1ZmZlci1zZWxlY3RlZC13aW5kb3cpDQogICAg ICAgICAgICAgICAoZ2V0LWxhcmdlc3Qtd2luZG93KSkpDQogICAgICAgIChj bGVhci1taW5pYnVmZmVyLW1lc3NhZ2UpDQogICAgICAgICh3aGVuIChhbmQg bW9kZS1saW5lLWZvcm1hdA0KICAgICAgICAgICAgICAgICAgIChub3QgKGFu ZCAobGlzdHAgbW9kZS1saW5lLWZvcm1hdCkNCiAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgKGFzc3EgJ21pbmlidWZmZXItbWVzc2FnZS1tb2RlLWxp bmUtc3RyaW5nDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg IG1vZGUtbGluZS1mb3JtYXQpKSkpDQogICAgICAgICAgKHNldHEgbWluaWJ1 ZmZlci1tZXNzYWdlLW1vZGUtbGluZS1idWZmZXIgKGN1cnJlbnQtYnVmZmVy KSkNCiAgICAgICAgICAoc2V0cSBtb2RlLWxpbmUtZm9ybWF0DQogICAgICAg ICAgICAgICAgKGxpc3QgIiIgJyhtaW5pYnVmZmVyLW1lc3NhZ2UtbW9kZS1s aW5lLXN0cmluZw0KICAgICAgICAgICAgICAgICAgICAgICAgICAgKCIgIiAo OnByb3BlcnRpemUgbWluaWJ1ZmZlci1tZXNzYWdlLW1vZGUtbGluZS1zdHJp bmcNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgIGZhY2UgbWluaWJ1ZmZlci1tZXNzYWdlLWZhY2UpICIgIikpDQogICAg ICAgICAgICAgICAgICAgICAgbW9kZS1saW5lLWZvcm1hdCkpKQ0KICAgICAg ICAoc2V0cSBtaW5pYnVmZmVyLW1lc3NhZ2UtbW9kZS1saW5lLXN0cmluZyBt ZXNzYWdlKQ0KICAgICAgICAoZm9yY2UtbW9kZS1saW5lLXVwZGF0ZSkpDQog ICAgICB0KSkpDQo= ---212064758-1677971108-1602710059=:14083--