all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Visuwesh <visuweshm@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 62709@debbugs.gnu.org
Subject: bug#62709: 29.0.60; quail-minibuffer-message prevents set-mark-command from activating region in minibuffer
Date: Fri, 07 Apr 2023 17:21:26 +0530	[thread overview]
Message-ID: <87lej3gbb5.fsf@gmail.com> (raw)
In-Reply-To: <83y1n4nduu.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 07 Apr 2023 14:14:33 +0300")

[வெள்ளி ஏப்ரல் 07, 2023] Eli Zaretskii wrote:

>> - To observe the problem, first define a dummy Quail input method
>> 
>>     (quail-define-package "none" "asdf" "none")
>> 
>> - Then activate recursive minibuffers
>> 
>>     M-: (setq enable-recursive-minibuffers t) RET
>> 
>> - Now open a minibuffer (C-x C-f is a good one) then activate the "none"
>>   input method.
>> 
>> - Now type M-x set-mark-command RET and note how the region is not
>>   active.
>> 
>> This problem goes away if you redefine `quail-minibuffer-message' to
>> simply echo the string by saying
>> 
>>     (defalias 'quail-minibuffer-message #'message)
>> 
>> Furthermore, the comment above `quail-minibuffer-message' says
>> 
>>     ;; Quail specific version of minibuffer-message.  It displays STRING
>>     ;; with timeout 1000000 seconds instead of two seconds.
>> 
>> but even with that redefinition, the guidance string is printed just
>> fine (minus the extra square brackets that message adds).
>
> 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.

> or at least explaining why quail-minibuffer-message prevents the
> region from becoming active in this case?

Unfortunately, that is well beyond my abilities.  If I simply comment
out the part where Quail `insert's the guidance string, I see no issue
but if I leave it and check the return value of `use-region-p' and value
of `mark-active' before and after the `insert' call, I see nil before
and after the insert call...

I investigated insert and delete-region because they deactivate an
active region in a "normal buffer" when called.

> Thanks.





  reply	other threads:[~2023-04-07 11:51 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-07 10:54 bug#62709: 29.0.60; quail-minibuffer-message prevents set-mark-command from activating region in minibuffer Visuwesh
2023-04-07 11:14 ` Eli Zaretskii
2023-04-07 11:51   ` Visuwesh [this message]
2023-04-07 14:39     ` Visuwesh
2023-04-07 14:57       ` Eli Zaretskii
2023-04-07 15:09         ` Visuwesh
2023-04-07 15:33           ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87lej3gbb5.fsf@gmail.com \
    --to=visuweshm@gmail.com \
    --cc=62709@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.