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#62709: 29.0.60; quail-minibuffer-message prevents set-mark-command from activating region in minibuffer Date: Fri, 07 Apr 2023 17:57:02 +0300 Message-ID: <83h6troi4h.fsf@gnu.org> References: <87pm8gezcw.fsf@gmail.com> <83y1n4nduu.fsf@gnu.org> <87lej3gbb5.fsf@gmail.com> <87h6trg3ji.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9910"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 62709@debbugs.gnu.org To: Visuwesh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 07 16:58:23 2023 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 1pknXj-0002PT-Jp for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 07 Apr 2023 16:58:23 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pknXP-000685-Cr; Fri, 07 Apr 2023 10:58:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pknXO-00067w-CU for bug-gnu-emacs@gnu.org; Fri, 07 Apr 2023 10:58:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pknXO-0005R2-3f for bug-gnu-emacs@gnu.org; Fri, 07 Apr 2023 10:58:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pknXN-0007Ta-MA for bug-gnu-emacs@gnu.org; Fri, 07 Apr 2023 10:58:01 -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, 07 Apr 2023 14:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62709 X-GNU-PR-Package: emacs Original-Received: via spool by 62709-submit@debbugs.gnu.org id=B62709.168087943028670 (code B ref 62709); Fri, 07 Apr 2023 14:58:01 +0000 Original-Received: (at 62709) by debbugs.gnu.org; 7 Apr 2023 14:57:10 +0000 Original-Received: from localhost ([127.0.0.1]:57025 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pknWU-0007SJ-Ps for submit@debbugs.gnu.org; Fri, 07 Apr 2023 10:57:10 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:49466) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pknWS-0007RN-QE for 62709@debbugs.gnu.org; Fri, 07 Apr 2023 10:57:05 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pknWN-00056j-Iu; Fri, 07 Apr 2023 10:56:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=sdOgXsUUiWpukWqNHXWMwZsoh2XPgBzl7FZo4GR1Rm0=; b=XAbRKbwtQiA+R8t8eQ5C GFhQBowR0TvmbE35mD4we4YtmNKezKXfr0cIJ634imDcg3kio6IkBban1erWozj9dEVgHF+W9TjqD VejGepdlvfpBtGu7Q+rH3tbujRP87vC+8Vof2BTKF2Fg1dFsAjkJw9VYMR1s+6ZvlyrrS4RXtKlQJ SRtmRG9ElV40vi8NXCrkDKLPHN6+oKzauOwnMOhkMzUYkqe3Dkxguaon9dtmfzndRXJr69Qtict1e IxVO7Mj/hZtTBiTO0N7WLMraMu5HDvb3GDrqnRmfMzvR12Cnx4g517zKI0O/pzNCh3EAOO3MLoknE XwPAaBCO1xk5FA==; Original-Received: from [87.69.77.57] (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 1pknVt-0006Lh-Co; Fri, 07 Apr 2023 10:56:46 -0400 In-Reply-To: <87h6trg3ji.fsf@gmail.com> (message from Visuwesh on Fri, 07 Apr 2023 20:09:13 +0530) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:259427 Archived-At: > From: Visuwesh > Cc: 62709@debbugs.gnu.org > Date: Fri, 07 Apr 2023 20:09:13 +0530 > > [வெள்ளி ஏப்ரல் 07, 2023] Visuwesh wrote: > > >> I'd prefer to solve the problem that prevents the region from becoming > >> active, without changing how Quail shows its messages. Can you try > >> finding such a solution, > > > > One solution would be to use an overlay to show the guidance string, > > like what `minibuffer-depth-mode' does. > > I came close to solving the issue with an overlay but I hit a roadblock > with the cursor property. Thanks, but I think this is an unnecessary complication. Does the patch below fix the problems you saw, without introducing any regressions? diff --git a/lisp/international/quail.el b/lisp/international/quail.el index 2ffe339..317ea84 100644 --- a/lisp/international/quail.el +++ b/lisp/international/quail.el @@ -1995,7 +1995,8 @@ quail-require-guidance-buf (defun quail-minibuffer-message (string) (message nil) (let ((point-max (point-max)) - (inhibit-quit t)) + (inhibit-quit t) + (deactivate-mark nil)) (save-excursion (goto-char point-max) (insert string))