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#47150: 28.0.50; Incorrect major-mode in minibuffer Date: Mon, 15 Mar 2021 07:59:59 +0000 Message-ID: References: <877dm9nsii.fsf@gmail.com> 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="22243"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 47150@debbugs.gnu.org To: styang@fastmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 15 09:08:56 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 1lLiHX-0005fF-NT for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 15 Mar 2021 09:08:55 +0100 Original-Received: from localhost ([::1]:35172 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lLiHW-0004iL-Jf for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 15 Mar 2021 04:08:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44266) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lLi9u-0004T6-Ei for bug-gnu-emacs@gnu.org; Mon, 15 Mar 2021 04:01:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51494) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lLi9t-0006M5-Nj for bug-gnu-emacs@gnu.org; Mon, 15 Mar 2021 04:01:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lLi9t-0004YA-LM for bug-gnu-emacs@gnu.org; Mon, 15 Mar 2021 04:01:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 15 Mar 2021 08:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47150 X-GNU-PR-Package: emacs Original-Received: via spool by 47150-submit@debbugs.gnu.org id=B47150.161579521017419 (code B ref 47150); Mon, 15 Mar 2021 08:01:01 +0000 Original-Received: (at 47150) by debbugs.gnu.org; 15 Mar 2021 08:00:10 +0000 Original-Received: from localhost ([127.0.0.1]:34807 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lLi93-0004Wt-W4 for submit@debbugs.gnu.org; Mon, 15 Mar 2021 04:00:10 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:12401 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1lLi91-0004Uq-HV for 47150@debbugs.gnu.org; Mon, 15 Mar 2021 04:00:08 -0400 Original-Received: (qmail 54367 invoked by uid 3782); 15 Mar 2021 08:00:00 -0000 Original-Received: from acm.muc.de (p4fe15b5d.dip0.t-ipconnect.de [79.225.91.93]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Mon, 15 Mar 2021 09:00:00 +0100 Original-Received: (qmail 5396 invoked by uid 1000); 15 Mar 2021 07:59:59 -0000 Content-Disposition: inline In-Reply-To: <877dm9nsii.fsf@gmail.com> 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:202403 Archived-At: Hello, Sheng. On Sun, Mar 14, 2021 at 19:57:09 -0500, styang@fastmail.com wrote: > The major-mode in the minibuffer is incorrectly set to > fundamental-mode, even when it is the first one. Why is fundamental-mode incorrect for a minibuffer, and what should the major mode be instead? What problems does fundamental-mode give you in a minibuffer? > Reproduce with the following steps: > 1. emacs -q > 2. Eval the following: > (defun report-major-mode () > (message "mini-buffer major-mode is %s" major-mode)) > (add-hook 'minibuffer-setup-hook 'report-major-mode) > 3. Press M-; to call eval-expression, which will report that the major-mode is fundamental-mode > The offending commit is 636ef445af. > In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.26, cairo version 1.17.4) > of 2021-03-12 built on Desktop > Repository revision: 592fabdc7f8d9c52c931843a153fdac67a302c30 > Repository branch: makepkg > Windowing system distributor 'System Description: Arch Linux [ .... ] -- Alan Mackenzie (Nuremberg, Germany).