From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: pinkanon pinkanon Newsgroups: gmane.emacs.bugs Subject: bug#43813: [BUG] current-message not working with minibuffer-message Date: Mon, 05 Oct 2020 10:34:49 +0300 Message-ID: <112871601882593@mail.yandex.ru> Mime-Version: 1.0 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1497"; mail-complaints-to="usenet@ciao.gmane.io" To: 43813@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 05 14:31:11 2020 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 1kPPe2-0000Fa-61 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 05 Oct 2020 14:31:10 +0200 Original-Received: from localhost ([::1]:45714 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kPPe1-0007j0-3h for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 05 Oct 2020 08:31:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60964) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kPPa3-0004Mq-LK for bug-gnu-emacs@gnu.org; Mon, 05 Oct 2020 08:27:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36690) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kPPa3-0005TL-AU for bug-gnu-emacs@gnu.org; Mon, 05 Oct 2020 08:27:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kPPa3-0000JG-7f for bug-gnu-emacs@gnu.org; Mon, 05 Oct 2020 08:27:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: pinkanon pinkanon Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 05 Oct 2020 12:27:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 43813 X-GNU-PR-Package: emacs X-Debbugs-Original-To: "bug-gnu-emacs@gnu.org" Original-Received: via spool by submit@debbugs.gnu.org id=B.16019008121116 (code B ref -1); Mon, 05 Oct 2020 12:27:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 5 Oct 2020 12:26:52 +0000 Original-Received: from localhost ([127.0.0.1]:48215 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPPZr-0000Hp-If for submit@debbugs.gnu.org; Mon, 05 Oct 2020 08:26:52 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:38448) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPL1Q-00016b-FR for submit@debbugs.gnu.org; Mon, 05 Oct 2020 03:35:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53776) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kPL1Q-0005x8-8X for bug-gnu-emacs@gnu.org; Mon, 05 Oct 2020 03:35:00 -0400 Original-Received: from forward100j.mail.yandex.net ([5.45.198.240]:52277) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kPL1N-0000yl-3r for bug-gnu-emacs@gnu.org; Mon, 05 Oct 2020 03:34:59 -0400 Original-Received: from mxback30j.mail.yandex.net (mxback30j.mail.yandex.net [IPv6:2a02:6b8:0:1619::230]) by forward100j.mail.yandex.net (Yandex) with ESMTP id 1172D50E13D7 for ; Mon, 5 Oct 2020 10:34:50 +0300 (MSK) Original-Received: from localhost (localhost [::1]) by mxback30j.mail.yandex.net (mxback/Yandex) with ESMTP id cfwO0fe8uG-YnOaMs64; Mon, 05 Oct 2020 10:34:49 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1601883289; bh=TiEySpdKqix+Rh84thgjmB38k7ElGtHogc7/P/curpI=; h=Message-Id:Date:Subject:To:From; b=uBm2hy46H7SSbGSCSq0dwxqpcrbj3/rQ376qlYujF2JQr7I9A5OP9AKlAjW6IUcoq yJcmBJldIkPfDbaG10G05000/JoUEU0qp3i9s6lOXgCJ4yYGKOgeV+9mVa2dWkPb20 Hc3aEgwH5DcuZCwXwzBdD4VjyiQogKk3WtaTLbg0= Authentication-Results: mxback30j.mail.yandex.net; dkim=pass header.i=@yandex.com Original-Received: by sas2-4fe1bb3c0a49.qloud-c.yandex.net with HTTP; Mon, 05 Oct 2020 10:34:49 +0300 Envelope-From: pinkanon-pinkanon@yandex.ru X-Mailer: Yamail [ http://yandex.ru ] 5.0 Received-SPF: pass client-ip=5.45.198.240; envelope-from=pinkanon.pinkanon@yandex.com; helo=forward100j.mail.yandex.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/05 03:34:52 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -22 X-Spam_score: -2.3 X-Spam_bar: -- X-Spam_report: (-2.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, HTML_MIME_NO_HTML_TAG=0.377, MIME_HTML_ONLY=0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 05 Oct 2020 08:26:48 -0400 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:189824 Archived-At:
Eval this:
 
(progn (minibuffer-message "hello world") (print (format "current message: %s" (current-message))))
 
to get "current message: nil" in the *Messages*. If message is used in place of minibuffer message, works as expected.
 
The reason I think current-message should work with minibuffer-message is due to its docstring: "Return the string currently displayed in the echo area, or nil if none."
 
PS Is there some other way to get what's currently displayed in the echo area?
 
emacs 27.1