From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#47150: [External] : Re: bug#47150: 28.0.50; Incorrect major-mode in minibuffer Date: Mon, 22 Mar 2021 18:38:54 +0000 Message-ID: References: <877dm9nsii.fsf@gmail.com> <40f3c845-ba30-4112-bb3c-9c06c1f106d3@www.fastmail.com> <05c43a83-6e3c-4f10-a36f-0567bcceb3f6@www.fastmail.com> <878s6ft5ze.fsf_-_@miha-pc> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15626"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "47150@debbugs.gnu.org" <47150@debbugs.gnu.org> To: "jakanakaevangeli@chiru.no" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 22 19:40:45 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 1lOPTo-0003wy-Qc for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 22 Mar 2021 19:40:44 +0100 Original-Received: from localhost ([::1]:48440 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lOPTn-0007uv-Py for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 22 Mar 2021 14:40:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35970) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lOPT8-0007uG-L9 for bug-gnu-emacs@gnu.org; Mon, 22 Mar 2021 14:40:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47065) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lOPT8-0004fl-E4 for bug-gnu-emacs@gnu.org; Mon, 22 Mar 2021 14:40:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lOPT8-000430-Be for bug-gnu-emacs@gnu.org; Mon, 22 Mar 2021 14:40:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 22 Mar 2021 18:40:02 +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.161643834815459 (code B ref 47150); Mon, 22 Mar 2021 18:40:02 +0000 Original-Received: (at 47150) by debbugs.gnu.org; 22 Mar 2021 18:39:08 +0000 Original-Received: from localhost ([127.0.0.1]:58608 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lOPSG-00041H-55 for submit@debbugs.gnu.org; Mon, 22 Mar 2021 14:39:08 -0400 Original-Received: from aserp2130.oracle.com ([141.146.126.79]:45598) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lOPSD-00040l-II for 47150@debbugs.gnu.org; Mon, 22 Mar 2021 14:39:06 -0400 Original-Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 12MION1b028077; Mon, 22 Mar 2021 18:38:57 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2020-01-29; bh=Ty+IJoOB05qLftmlZMP9FKIgg1mO8kbIiy739iRys88=; b=vjNpX/PlwXl0CabIAXHE7VbF7k8Pz2gI8A+Pt3brkDiiSe4WmiNNNoVQi5yz7vyek640 oy1cySf/ixT4uPLrMoiayCBB351DqE8UsvRmFxp6/nxVJ3nIMhVnc17UAno0Q/LAYySS TgGsGN7v0JeQzR+NjgCgzjsbSXCBby8deNAcZgM6paJwbfnJ3SgnEl2AHq+rYomv2gER MIgdHCWqlU9huAXVmTE1HqQQRqNWpepmOkZ32CMaqN5d+L7AzRmz8MQrcJtyRaDbAXhp VeyhhR+xyuXoxf91QsHLMb7jfGsf1uCohl9eTnzoMgshrYKxuJjtx61VEyLYCIBsTmbH dg== Original-Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by aserp2130.oracle.com with ESMTP id 37d6jbckq3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 22 Mar 2021 18:38:57 +0000 Original-Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 12MIPLju067285; Mon, 22 Mar 2021 18:38:56 GMT Original-Received: from nam12-bn8-obe.outbound.protection.outlook.com (mail-bn8nam12lp2173.outbound.protection.outlook.com [104.47.55.173]) by aserp3030.oracle.com with ESMTP id 37dtmnj47x-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 22 Mar 2021 18:38:56 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=O1mSp3eBWsCM++sEjrmDyPKKbD6rn/ea0qgCtKSl9i5Q//uXnRIbucBJjtrmab5W+M+IJKwQ95/7etWzrddXZiJtJYA/nrBKqpbmnCdIMkgpmuAoUCKtkelfte3BXgDZEF8tt5/ykR2uDPP+5sZGbSlZGVFbTSTzT+ZJMNx1Pzm0GwJt+ro7Jcigx1mWZQaWuGXmSVDSpGQpT0cCxDeuGFwLL7fc4l+MdIIGlZ9zVhM64mXBPe6O+u4vtYh0ElOj5imgTqQ7lQjWWdU3sFuXyHGG1NxCtbyc/i4O7ayM5J/Y00u06GLHFLPIho0utrKRSV7FV+U/do1xIOfkjpDztA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Ty+IJoOB05qLftmlZMP9FKIgg1mO8kbIiy739iRys88=; b=jlqqMbKVd9J5YFnh192LpAwBRs+PTJaSr54EfhtBSeqVWAxvNtetZz+feVwZn10YwazkQhfKBikK69GtCwIHNwpL4WiU6G4VxuxTpi8hH+mt8H0UVxyIimS3J70yP04Gwqk96FDXlqJF8mjcO3AzWAcgKpweP2pXY3/tp8BKgv1I3nE3BHdyH0ZNzjip4T1y3vo/biyAVzU5utESB1x90sy2tRII5Tuqb18JLVW0Dff0zf2jAuLnul+Z9InZxBngB2dnqtrkVrmZlYGBgkilk9KAOL8wm3gfhKdq7NZCkvQDnGXixCtPE1Hk1f25MbMvo3NH0/YFEJ1U2tAyRpW3qA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Ty+IJoOB05qLftmlZMP9FKIgg1mO8kbIiy739iRys88=; b=aqdLEqMlpbKg5UmBm1URKq0m+90dZSM829XdppTR/Q/3bBf8swExbcoo01M6XZPqRO6Do8Qvo3LT6JI0QvpCYLAIitc20xF74cn56ER/VE7HDxqJ5sdDMuC6AAYPe2IMoes8wC82My2E0iDDezr9wJ00Ajk+EjcgPYjDoXQHhTk= Original-Received: from SA2PR10MB4474.namprd10.prod.outlook.com (2603:10b6:806:11b::15) by SN6PR10MB2479.namprd10.prod.outlook.com (2603:10b6:805:41::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3955.24; Mon, 22 Mar 2021 18:38:54 +0000 Original-Received: from SA2PR10MB4474.namprd10.prod.outlook.com ([fe80::b8d2:db6d:3e4b:d315]) by SA2PR10MB4474.namprd10.prod.outlook.com ([fe80::b8d2:db6d:3e4b:d315%5]) with mapi id 15.20.3955.027; Mon, 22 Mar 2021 18:38:54 +0000 Thread-Topic: [External] : Re: bug#47150: 28.0.50; Incorrect major-mode in minibuffer Thread-Index: AQHXH0aawQknHPNxc0CVnEaK38+EEqqQT7EQ In-Reply-To: <878s6ft5ze.fsf_-_@miha-pc> Accept-Language: en-US Content-Language: en-US authentication-results: chiru.no; dkim=none (message not signed) header.d=none;chiru.no; dmarc=none action=none header.from=oracle.com; x-originating-ip: [73.170.83.28] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 03753ac0-c2f3-4d29-71cd-08d8ed61bf38 x-ms-traffictypediagnostic: SN6PR10MB2479: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: jVvVJT7YQOnARv7gcAKgDCkqYAiO8ThpX8ypooe4VaBB1tccgY1CXnq+fL0bsgpSo4xSxva659RulNtGhDblCnOaT+kpppEDrsA1B/LbaBJbf1eVUUnOpZBnX1PL7TTGOqhVmJAQ2gyYQRr9NMooTlTnVuWZkOn65+2MMpDN+BB3eD+N83Uyqi85VtQrLg1hca0I/za+TQBdoaebNTdN16jgVC8bwrwzKZ7WjSNQbQwcBlrkMeQfRcXA7BlmzCZdTg9GdyguNwxoXdD9GK+hVTqC+CBPWSTV41RBbWYNdA27odslZVtlmM/3ir2x44vxHBSctQdtK+Ay2fCovN/zbm7OtCej6NjLJfq8uwuMAT5u8RpyK8iteaKl+IBrlBf6J4l+C59XR42+jelhvW36GQREGMct5aP48S7FLy3MWbV7FaVFeWCa1FKoT5TpxxZlVnSld6lutZehZYpq2W4cFf9YtOMslceUG0wrfdWzY2f6e1mmPstXfr/dk6mmk4iI8UUYwOqfV5NAwX9oPVvP+we6v5d9j5F39p7E4W25ptFD0/KFxr+ypee0iQ70dZ6JBblRR6WGVjxzSqA5+2KMXG/gPIb5hjkn82Bws8yg7aYJVeG/Ifq5XCBOdtwSc7c+lIOAFRhxrykPTRqNXlxLS4d/NvHCyJ4EiyI/FLHTRxY= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SA2PR10MB4474.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(376002)(39860400002)(396003)(366004)(346002)(136003)(6506007)(186003)(7696005)(66556008)(66446008)(4326008)(76116006)(52536014)(66476007)(64756008)(66946007)(9686003)(55016002)(26005)(5660300002)(2906002)(478600001)(8676002)(44832011)(71200400001)(86362001)(6916009)(316002)(8936002)(38100700001)(33656002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: OmmcyruWp0SQi0pKAaQLPy5QYeUh1awvH6XpqFsG+U0jDvswY8q0D6wmT7SVDiE/1JYz0ZhohyKfkx3nC8UeedgcfHCIJ3Ic+cxxXQMOJbjkA6l5QKPGY5461Xd5QMPBH3sdUsjTLcSOwNtlb03n5Rbh98q6KM6YW5A046Mz15bh+kVBh9D3NxA+8/zzFS3bONUkIlpbpu8PPzCn9IQQqo7h0bSBdrZXsFO5l/eQVCeRDHX4XhNIheTQEWap1HRsEWB/BQBErEW7GPmZiM5U9+ywlA8GzWq5Li5O9qjC262UBC6UzVy3jSPNabTaLS3i08s5Ynu3clk6cwcHrAik6FRcdahQeC5eNF9ixYl4ys3bybW2oFvtvm+sXMBSYrnbiFigh3Bb20SdBGm9mnLmajR1Wv4xt6olfoG0KBT36e8Cc5sspJxZhcTAjsxvv40XScBhBdNdnbQlPEr9krHM6FikrzfSAmvcDP38r0oJRe9+2dFcBYsOghGYC9f0IyvKYqEZ5WrdywwRMaMgElUjS3v+bsTq3gPd72AH3/+v9swsp3CKrU3NAWviAoy9WK8Va5LCMfyTcsBeg3NWpX392KjbPF7oOR+bAwnXYaN43k65cnAgjtD8foyoBa8p0/r835u9gkeCLjB+8XtzHxSn8pWCsEBTTEwrjsTgxlB5Uq1Y5Zb5ct72E3eRzDU1l6yRRjaUum5bOBmLH/BeIyWXccLT/iielFuaxN2HqrTpubvffhMTQkY0A/L3zibx VwIefialkhncyxlwt1hjLbWEarXs25BR3Ja9DMGfXhgNCjswgqWCvuVeZ/wnaqvIByilobbT8snLBZ3q0Jv1uqgYdZlEoDUsdm x-ms-exchange-transport-forked: True X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SA2PR10MB4474.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 03753ac0-c2f3-4d29-71cd-08d8ed61bf38 X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Mar 2021 18:38:54.7428 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: MWQBUPo9YtuH+kXt7yK2Tt+0Srm8G8tTOjajvRLOBRMkY6JJ9nlN3cNxr0Hafa8+7YptkHPZ70H0M3HDaFDIog== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR10MB2479 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9931 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 mlxscore=0 phishscore=0 bulkscore=0 suspectscore=0 malwarescore=0 mlxlogscore=916 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2103220134 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9931 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 phishscore=0 lowpriorityscore=0 suspectscore=0 clxscore=1015 priorityscore=1501 spamscore=0 adultscore=0 impostorscore=0 mlxlogscore=999 mlxscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2103220134 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:202855 Archived-At: > > I see that the doc string for `minibuffer-inactive-mode' > > suggests that it's not used when the minibuffer is active. > > > > And that's effectively the case, though the mode name might > > not reflect it. There's _nothing to that mode_, apart from > > its keymap, and its keymap is not used when the minibuffer > > is active. So the mode is there in name only. > > > > That's why I expect that your change will have no real > > effect. But I'm wary of it - let sleeping dogs lie. And > > if it does, in fact, have no real effect, then why make > > your change? >=20 > There actually is at least one immediate positive effect: > `C-h m' from an active minibuffer used to claim that the current major > mode is inactive-minibuffer-mode and confusingly listed its bindings. Yes, but putting something else there is bound to be just as misleading, or nearly so. If what you describe is a real worry then a more appropriate fix would be: 1. Rename `minibuffer-inactive-mode' (e.g. `minibuffer-mode') 2. Provide a mode description that says clearly: a. Minibuffer-reading functions provide the active keymaps. And list them, so users can follow their linked names to their descriptions. b. Explain that when the minibuffer is inactive the keymap that's active there is the following... IOW, why have two modes? One suffices, I think; it just needs a better name and description. And the description for the _active_ case - the keymaps - is more important - that's what the minibuffer's about. I doubt that anyone ever even uses the inactive keymap (but maybe there's some rare use of it somehow). [Oops, Stefan just posted his use of it. Still - very corner/rare, I think.] The mode description of the active case can/should say that, in general (by default), you can carry out _general editing_ on minibuffer contents. That's not so obvious, IMO. (And Emacs should make it more true, by making `?' and `SPC' self-insert generally.)