From unknown Wed Aug 20 00:02:56 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#62709 <62709@debbugs.gnu.org> To: bug#62709 <62709@debbugs.gnu.org> Subject: Status: 29.0.60; quail-minibuffer-message prevents set-mark-command from activating region in minibuffer Reply-To: bug#62709 <62709@debbugs.gnu.org> Date: Wed, 20 Aug 2025 07:02:56 +0000 retitle 62709 29.0.60; quail-minibuffer-message prevents set-mark-command f= rom activating region in minibuffer reassign 62709 emacs submitter 62709 Visuwesh severity 62709 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 07 06:55:07 2023 Received: (at submit) by debbugs.gnu.org; 7 Apr 2023 10:55:07 +0000 Received: from localhost ([127.0.0.1]:55780 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pkjkI-0000RG-Oi for submit@debbugs.gnu.org; Fri, 07 Apr 2023 06:55:07 -0400 Received: from lists.gnu.org ([209.51.188.17]:40068) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pkjkG-0000Qu-FO for submit@debbugs.gnu.org; Fri, 07 Apr 2023 06:55:05 -0400 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 1pkjkF-0001wT-Qs for bug-gnu-emacs@gnu.org; Fri, 07 Apr 2023 06:55:03 -0400 Received: from mail-pj1-x1043.google.com ([2607:f8b0:4864:20::1043]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pkjkD-0000Gg-3t for bug-gnu-emacs@gnu.org; Fri, 07 Apr 2023 06:55:03 -0400 Received: by mail-pj1-x1043.google.com with SMTP id 60-20020a17090a09c200b0023fcc8ce113so1013002pjo.4 for ; Fri, 07 Apr 2023 03:55:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680864899; x=1683456899; h=mime-version:message-id:date:user-agent:subject:to:from:from:to:cc :subject:date:message-id:reply-to; bh=2EzDWuB56zyQrPQmqxJzJYsQmMCYSgpUvwFh0JmPduE=; b=CNTCyU+ZOPkPmbtRB0KHds8ZzdWvkm+bq31zoECPWPg4KcrwHjZ/Es2mCFWv/owfZF Xs240N1ii4AD6LFVXm1EBnU3jA9kgKktR16cIm0SLCql++dXi1KVLEzK5AcnIZPM1cN7 mrLd4P6cL/RuqXWzqBq6i0QQdLwZ2Nzm4Lv2InxILi1WyRTAPcvEB2kDoWabK6nzxyC3 GTzGlYxtNs7xcq7L+UVD74+UAlbii35a/1oMyc50ON1PWKPTPjqSacTzGgMktVRwKMRs 50tJUa+uyseAwLZhlGjceZStsH7jp/6/kF2v/vT0q74fx61RV7hhwKy8Gfl3v/fXqP7S MaAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680864899; x=1683456899; h=mime-version:message-id:date:user-agent:subject:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=2EzDWuB56zyQrPQmqxJzJYsQmMCYSgpUvwFh0JmPduE=; b=a+UWjJP+5sB0qZWZDcWH58qB2s1RBAFcIrsTdFXiRwZyDhwx8A/QfUyfB5L1NRMNPg BYtVV22ykGHUwX5ReY/loEenea/3b0FPwyVhnYHuvmEnEpBOXbhmgRoKViGa2vUt/h23 Y2CMOO0JrlQ0ICgV0Ax4mOgf6OdQf2liyAkB7m1xrL7s4Ak5qcnvYJ75uiDZLrnoBl7B h+pOYJ8yrrYjIot9iwVoLSSAab4uzaKHVX8LmHjCedpXxTWRN/EJYNQFX2sVad0QF0eu P3xz7J9Bd0pvEYBKxmw4oRzpDOBZj1vPThvHlIgPTEnvRSRNT3p9Q7NUl94jRt2hzDah uqtQ== X-Gm-Message-State: AAQBX9dMVH8D1rXngXREPAIQDsi1dT0+2nbr0OblvFeEBOVflQLGyQ9B iEXR52kCiupIutuEaNKGJPj+kK2n2XRFlw== X-Google-Smtp-Source: AKy350aa33ojtJaL8b3pEhlFc/h7YhpcnuEHVIDYSWolHFLcr2Zje91ENZAAnrpM3vCOrQd91H3t5g== X-Received: by 2002:a17:902:cf46:b0:1a1:b506:6fe with SMTP id e6-20020a170902cf4600b001a1b50606femr2041839plg.29.1680864898610; Fri, 07 Apr 2023 03:54:58 -0700 (PDT) Received: from localhost ([118.185.152.162]) by smtp.gmail.com with ESMTPSA id s11-20020a170902988b00b001991f3d85acsm2672926plp.299.2023.04.07.03.54.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Apr 2023 03:54:58 -0700 (PDT) From: Visuwesh To: bug-gnu-emacs@gnu.org Subject: 29.0.60; quail-minibuffer-message prevents set-mark-command from activating region in minibuffer User-Agent: Gnus/5.13 (Gnus v5.13) Date: Fri, 07 Apr 2023 16:24:55 +0530 Message-ID: <87pm8gezcw.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::1043; envelope-from=visuweshm@gmail.com; helo=mail-pj1-x1043.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) To reproduce the issue, one must activate an input method that eventually calls `quail-minibuffer-message' to insert the guidance string and the "title" of the input method at the end of the minibuffer. - 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). AFAICT, the guidance string contains text properties but the title of the input method doesn't. In GNU Emacs 29.0.60 (build 2, x86_64-pc-linux-gnu, X toolkit, Xaw scroll bars) of 2023-03-23 built on astatine Repository revision: be8147c53f9dd2d896c27d5b32bf4f38b0af9b3f Repository branch: emacs-29 Windowing system distributor 'The X.Org Foundation', version 11.0.12101004 System Description: Debian GNU/Linux bookworm/sid Configured using: 'configure --with-sound=alsa --with-x-toolkit=lucid --with-json --without-xaw3d --without-gconf --without-libsystemd --without-cairo' Configured features: ACL DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LIBOTF LIBSELINUX LIBXML2 MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS WEBP X11 XDBE XFT XIM XINPUT2 XPM LUCID ZLIB Important settings: value of $LC_MONETARY: ta_IN.UTF-8 value of $LC_NUMERIC: ta_IN.UTF-8 value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix Major mode: ELisp/l Minor modes in effect: csv-field-index-mode: t bug-reference-prog-mode: t recentf-mode: t shell-dirtrack-mode: t server-mode: t paredit-mode: t eros-mode: t flymake-mode: t pdf-occur-global-minor-mode: t minibuffer-depth-indicate-mode: t repeat-mode: t display-time-mode: t display-battery-mode: t delete-selection-mode: t xterm-mouse-mode: t straight-use-package-mode: t straight-package-neutering-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t use-hard-newlines: t tab-bar-history-mode: t tab-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t undelete-frame-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t abbrev-mode: t Load-path shadows: None found. Features: (shadow emacsbug edebug shr-color ind-util csv-mode csv-mode-autoloads ement-taxy svg-lib pcmpl-gnu url-http url-gw org-pdftools org-noter org-num oc-basic org-element org-persist avl-tree calcalg2 calc-poly calc-units calc-prog calc-trail calc-undo calc-arith calc-misc calc-vec calc-yank calccomp calc-bin calc-alg calc-menu calc-aent calc-ext calc calc-loaddefs calc-macs conf-mode icomplete ffap net-utils view autorevert image-crop rfc2104 debug backtrace etags fileloop generator imenu-xref tabify man skeleton pdf-sync pdf-annot facemenu pdf-outline pdf-links ob-gnuplot ob-fortran ob-python python compat ob-julia ob-C cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs ob-shell ob-racket async ob-async cdlatex texmathp org-attach org-id org-refile ol-eww ol-rmail ol-mhe ol-irc ol-info ol-gnus nnselect ol-docview doc-view ol-bibtex bibtex ol-bbdb ol-w3m ol-doi org-link-doi org-tempo tempo ol-man org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-src ob-comint org-pcomplete org-list org-footnote org-faces org-entities ob-emacs-lisp ob-core ob-eval org-cycle org-table ol org-fold org-fold-core org-keys oc org-loaddefs org-version org-compat org-macs pdf-history bug-reference misc wdired dabbrev url-cache url-auth eww xdg url-queue mm-url reveal noutline outline vc-annotate vc-filewise gnuplot-context gnuplot info-look pulse xref mule-util typo msb rect ediff ediff-merg ediff-mult ediff-wind ediff-diff ediff-help ediff-init ediff-util shortdoc log-edit add-log vc-dir f90 cus-start avy tramp-cmds cl-print help-fns radix-tree image-file image-converter pcmpl-unix display-line-numbers ement-room-list ement ement-notify notifications ement-room ement-lib ement-api ement-structs plz color ement-macros taxy-magit-section magit-section taxy ewoc dns misearch multi-isearch dired-aux gnus-dired tramp-cache time-stamp tramp-sh tramp tramp-loaddefs trampver tramp-integration tramp-compat ls-lisp recentf tree-widget flyspell ispell ecomplete smerge-mode flow-fill mm-archive sort gnus-cite mail-extr textsec uni-scripts idna-mapping ucs-normalize uni-confusable textsec-check qp gnus-async gnus-bcklg gnus-ml network-stream nsm nndraft nnmh nnmaildir nnagent nnml vc-backup log-view pcvs-util vc diff vc-git diff-mode vc-dispatcher nnnil gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015 mm-view mml-smime smime gnutls dig nntp gnus-cache gnus-sum shr pixel-fill kinsoku url-file svg gnus-group gnus-undo gnus-start gnus-dbus gnus-cloud nnimap nnmail mail-source utf7 nnoo parse-time iso8601 gnus-spec gnus-int gnus-range message sendmail yank-media puny rfc822 mml mml-sec epa epg rfc6068 epg-config mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev gmm-utils mailheader gnus-win gnus nnheader gnus-util mail-utils range mm-util mail-prsvr sh-script smie treesit executable files-x shell-command+ cursor-sensor shell pcomplete face-remap server paredit edmacro kmacro eros time-date checkdoc lisp-mnt flymake-proc flymake project thingatpt wordel-autoloads sokoban-autoloads ement-autoloads svg-lib-autoloads taxy-magit-section-autoloads magit-section-autoloads dash-autoloads taxy-autoloads plz-autoloads nov-autoloads esxml-autoloads kv-autoloads transmission-autoloads lua-mode-autoloads nix-mode-autoloads gnuplot-autoloads devdocs-autoloads julia-mode-autoloads racket-mode-autoloads eros-autoloads writegood-mode-autoloads siege-mode-autoloads paredit-autoloads puni-autoloads expand-region-autoloads filladapt-autoloads compose scroll-other-window org-pdftools-autoloads org-noter-autoloads change-env-autoloads math-delimiters-autoloads doct-autoloads ob-async-autoloads async-autoloads emacs-ob-racket-autoloads valign-autoloads cdlatex-autoloads auctex-autoloads tex-site pdf-occur ibuf-ext ibuffer ibuffer-loaddefs tablist advice tablist-filter semantic/wisent/comp semantic/wisent semantic/wisent/wisent semantic/util-modes semantic/util semantic semantic/tag semantic/lex semantic/fw mode-local find-func cedet pdf-isearch let-alist pdf-misc imenu pdf-tools package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie generate-lisp-file url-domsuf url-util mailcap url-handlers url-parse auth-source eieio eieio-core json map byte-opt url-vars compile comint ansi-osc ansi-color ring cus-edit wid-edit pdf-view password-cache jka-compr pdf-cache pdf-info tq pdf-util pdf-macs image-mode dired-x dired dired-loaddefs exif pdf-tools-autoloads tablist-autoloads typo-autoloads mb-depth repeat visual-fill-autoloads olivetti-autoloads time format-spec battery dbus filenotify xml dom tamil99 quail disp-table lacarte-autoloads shell-command-plus-autoloads delsel easy-mmode xt-mouse cus-load avy-autoloads finder-inf icalendar diary-lib diary-loaddefs cal-menu calendar cal-loaddefs warnings icons filecache imenu-xref-autoloads derived chemtable-autoloads molar-mass-autoloads vc-backup-autoloads compat-autoloads saveplace-pdf-view saveplace bookmark text-property-search pp saveplace-pdf-view-autoloads rx pcase inspector-autoloads xr-autoloads straight-autoloads cl-seq info cl-extra help-mode straight subr-x cl-macs gv cl-loaddefs cl-lib bytecomp byte-compile vz-nh-theme vz-options-theme rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting x-toolkit xinput2 x multi-tty make-network-process emacs) Memory information: ((conses 16 3239675 543854) (symbols 48 53579 557) (strings 32 367026 33804) (string-bytes 1 38672819) (vectors 16 177851) (vector-slots 8 3247188 386527) (floats 8 10625 2907) (intervals 56 280522 15666) (buffers 976 266)) From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 07 07:14:07 2023 Received: (at 62709) by debbugs.gnu.org; 7 Apr 2023 11:14:08 +0000 Received: from localhost ([127.0.0.1]:55818 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pkk2h-0000yc-Ju for submit@debbugs.gnu.org; Fri, 07 Apr 2023 07:14:07 -0400 Received: from eggs.gnu.org ([209.51.188.92]:46936) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pkk2g-0000y1-A5 for 62709@debbugs.gnu.org; Fri, 07 Apr 2023 07:14:06 -0400 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 1pkk2b-0007QP-1T; Fri, 07 Apr 2023 07:14:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=M6NYEBbZo8KxOAuEoVUR1Q32qO45yiGzysDqf47MvPw=; b=C2FeNyI1S/JU pHY8Zim1puj+QiM5qOeOvyzWlnhYbYAae0X3Q6XZ+z2wc7CEnD/2S4s2K+TJV0YvpXdsHsr4GU5jW +9AVG/laVcWBCw5nUOsjI1enSj4dLVgmi+CuzokeUvLFRKwT0yy7notrVnnx5Y8WCdWKog1HA2K8W gWDaYcvCwvuU2n4h1io7kcxjCf9yhlfmsp9YnDgT9z78zUGMA06uuMWe909radZ/E7NDn4/ibkUaP o8e6wyGGiJ4Gzlj+alJWKswZ96RwBk63Rgem8La5vqYTaoIssXnmyJ5SwHKsTSpkehaf4GYoTOpXL rreArgONd9u7cz1FeACbiw==; 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 1pkk2a-0003LW-6X; Fri, 07 Apr 2023 07:14:00 -0400 Date: Fri, 07 Apr 2023 14:14:33 +0300 Message-Id: <83y1n4nduu.fsf@gnu.org> From: Eli Zaretskii To: Visuwesh In-Reply-To: <87pm8gezcw.fsf@gmail.com> (message from Visuwesh on Fri, 07 Apr 2023 16:24:55 +0530) Subject: Re: bug#62709: 29.0.60; quail-minibuffer-message prevents set-mark-command from activating region in minibuffer References: <87pm8gezcw.fsf@gmail.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 62709 Cc: 62709@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Visuwesh > Date: Fri, 07 Apr 2023 16:24:55 +0530 > > - 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, or at least explaining why quail-minibuffer-message prevents the region from becoming active in this case? Thanks. From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 07 07:51:37 2023 Received: (at 62709) by debbugs.gnu.org; 7 Apr 2023 11:51:38 +0000 Received: from localhost ([127.0.0.1]:55866 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pkkcz-0004YJ-HZ for submit@debbugs.gnu.org; Fri, 07 Apr 2023 07:51:37 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:39783) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pkkcx-0004Y5-R6 for 62709@debbugs.gnu.org; Fri, 07 Apr 2023 07:51:36 -0400 Received: by mail-pl1-f195.google.com with SMTP id iw3so39808972plb.6 for <62709@debbugs.gnu.org>; Fri, 07 Apr 2023 04:51:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680868290; x=1683460290; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=coLWQI1dz1XsHLtukRvro8+Wm3iUTxWaKh+mTEBTghQ=; b=FTRprDuPPXGR66regu9AXA/spfQZZm+ErCkB3zWrUO7dA01s9OL/5fLFVAh1jWb61F +sRVQzm3gcBuE/EujejAA3tRst/cwZg7f/JyCv3q6tpRfgqG83f+Ke7YD1sVGoH3Aqsg 4DYIJ5cry0tleyD4mm8yvu4IiUA//Fe8jOKNnbz4CCutysZku9wNVEqIodzU5mgwCxSX dUJzgaxr+1NTSd6/LPbWkMA2RDeXKVX5FUOQLf8GEs8ZdAyJwC507s+Fj0ls+2Ejmi0d 5fZJ6UU0gPUG49TyNWYZvq6++lbKFATS8ddGoTUV3nHUKDEYZfrtISITJNgJhJHNMoia AP6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680868290; x=1683460290; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=coLWQI1dz1XsHLtukRvro8+Wm3iUTxWaKh+mTEBTghQ=; b=irZeKlsGvMiHQcCe5kCTKH5xWHBRm3+3nZrC9DCv/oLMXA/F1vhr4sEk+mCYWfuWvh Y7LYywuOc7rNiJ0c6bOOn8ALaK4apR9nDunL3KBOKDfLG3PdXmFPJBg0fZOBf8vu74Ea OA7xoboXduAF/kfpV/Dz1Fld3iBCjXgQSxqbAvTMCih2XQeNL81QKo0SpnPu8vHkP96E CobCIM3430elug3/RUe/UoRl9N+hV8NSSDPteLMSbiClT94oGmTWsYPVccwF+qWW4Vd2 0J3MfEGgoEdzVYPYTmibrmIai5S0wnYHtRoHGTXmLIVlU9G4Y4EP6Nq9vtoaM9tNPm8q jpXQ== X-Gm-Message-State: AAQBX9eHOOuaPUZJlfjavVGPGz6ikPcyidMK/pX2PSDAzw2qNQ2xVwMb VEvhU0OtfHxiUwglK6wtfFY= X-Google-Smtp-Source: AKy350Y/t9UBRN1u2J/1h7rFUuIaP1qIbDcrxj9qGVbEB/AD3fXgXZy6bOkiqOdQ6vFvjC9JeJ+HNA== X-Received: by 2002:a17:902:db12:b0:1a2:afdd:8476 with SMTP id m18-20020a170902db1200b001a2afdd8476mr2790319plx.2.1680868289816; Fri, 07 Apr 2023 04:51:29 -0700 (PDT) Received: from localhost ([115.240.90.130]) by smtp.gmail.com with ESMTPSA id c16-20020a170902b69000b001a0742b0806sm2801691pls.108.2023.04.07.04.51.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Apr 2023 04:51:29 -0700 (PDT) From: Visuwesh To: Eli Zaretskii Subject: Re: bug#62709: 29.0.60; quail-minibuffer-message prevents set-mark-command from activating region in minibuffer In-Reply-To: <83y1n4nduu.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 07 Apr 2023 14:14:33 +0300") References: <87pm8gezcw.fsf@gmail.com> <83y1n4nduu.fsf@gnu.org> Date: Fri, 07 Apr 2023 17:21:26 +0530 Message-ID: <87lej3gbb5.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 62709 Cc: 62709@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) [=E0=AE=B5=E0=AF=86=E0=AE=B3=E0=AF=8D=E0=AE=B3=E0=AE=BF =E0=AE=8F=E0=AE=AA= =E0=AF=8D=E0=AE=B0=E0=AE=B2=E0=AF=8D 07, 2023] Eli Zaretskii wrote: >> - To observe the problem, first define a dummy Quail input method >>=20 >> (quail-define-package "none" "asdf" "none") >>=20 >> - Then activate recursive minibuffers >>=20 >> M-: (setq enable-recursive-minibuffers t) RET >>=20 >> - Now open a minibuffer (C-x C-f is a good one) then activate the "none" >> input method. >>=20 >> - Now type M-x set-mark-command RET and note how the region is not >> active. >>=20 >> This problem goes away if you redefine `quail-minibuffer-message' to >> simply echo the string by saying >>=20 >> (defalias 'quail-minibuffer-message #'message) >>=20 >> Furthermore, the comment above `quail-minibuffer-message' says >>=20 >> ;; Quail specific version of minibuffer-message. It displays STRING >> ;; with timeout 1000000 seconds instead of two seconds. >>=20 >> 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,=20 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. From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 07 10:39:39 2023 Received: (at 62709) by debbugs.gnu.org; 7 Apr 2023 14:39:39 +0000 Received: from localhost ([127.0.0.1]:56994 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pknFb-0006mi-DG for submit@debbugs.gnu.org; Fri, 07 Apr 2023 10:39:39 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:47085) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pknFZ-0006mV-47 for 62709@debbugs.gnu.org; Fri, 07 Apr 2023 10:39:37 -0400 Received: by mail-pl1-f196.google.com with SMTP id kq3so40114204plb.13 for <62709@debbugs.gnu.org>; Fri, 07 Apr 2023 07:39:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680878371; x=1683470371; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=fr2SARlIuiGcfe1p2VgNI7Dt/V9A/nNpBjjrBZx3SoA=; b=BtBIyXJQlIMGxQhU3myU7d5RZynoiSysa37m81AoVsNF9h9rVzhxCjy5HZFI6Nccv1 gjI6tC1x4Xzvo8eSwZnismTKn8rXQ3VpEK2uEXWe6JMM8+HOq/1k8YyZqW0+sTSRtP9A UqAokh8loPnOp6/WHPyUkJU+UJqCFwwSOo0Nskp3KY5uaOmLDF0u1fuo/yvdvLE555fV GHOZQwaLsSbMV3/1GxPLbtBrTCwz1evGLoi0RxDAedWXRo/dpSb/biBMv+8088ClN3kX dCBD9SnZzMBoo30MP9yngmbnrSMcrJT6sz2ZkfO61OlBGBVKgLP3IJgvunAwmyXXP4AW ZtQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680878371; x=1683470371; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=fr2SARlIuiGcfe1p2VgNI7Dt/V9A/nNpBjjrBZx3SoA=; b=bAE7l76HyruWkorIFqIbOVZjoQbpYoECRJicxIVZaDCLOg5rZqTz1MBDowKaEP4LVx aoezsLnqfbvJKZGwVRjvrgv0InYRz+2JMgMWAjZxJINEKc7bP9juPjdGRdzNiW0I+wS/ q1APFDJrhP9PqJ7v4kf1pXDW36E1JjX4TDcSa8wAoMHQFOcJes/DYGnfJnd9+iLaBjZq zRSRGw5RQMM9A/VQkkEpp9hQbqBP7fszPTBtghLWjLagAnvvKagPPAnfcYCMvjr4MOqb sEJlEGeuBO2fK3xUgxOCfnLYlK0qdJ3YhSukpUJoScPoYeUVRbiQ0GBvoE+BDTmN/cJt bZdA== X-Gm-Message-State: AAQBX9du7seoUusECENlAg0yk0SONUkIWu1cki5eoW1MOMtFslxqAiam SrUJewIXCX3I0jurd2a04ec= X-Google-Smtp-Source: AKy350agJ+9m2qIzD9VEdnvcTPOPez8pK0GhX70BesLt4KlMpMo4FDKw8uxC9j63D3SKf/9pAR1dwQ== X-Received: by 2002:a05:6a20:c101:b0:dd:44a8:9d2b with SMTP id bh1-20020a056a20c10100b000dd44a89d2bmr2983227pzb.1.1680878371014; Fri, 07 Apr 2023 07:39:31 -0700 (PDT) Received: from localhost ([115.240.90.130]) by smtp.gmail.com with ESMTPSA id d18-20020aa78152000000b005d61829db4fsm3120360pfn.168.2023.04.07.07.39.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Apr 2023 07:39:30 -0700 (PDT) From: Visuwesh To: Eli Zaretskii Subject: Re: bug#62709: 29.0.60; quail-minibuffer-message prevents set-mark-command from activating region in minibuffer In-Reply-To: <87lej3gbb5.fsf@gmail.com> (Visuwesh's message of "Fri, 07 Apr 2023 17:21:26 +0530") References: <87pm8gezcw.fsf@gmail.com> <83y1n4nduu.fsf@gnu.org> <87lej3gbb5.fsf@gmail.com> Date: Fri, 07 Apr 2023 20:09:13 +0530 Message-ID: <87h6trg3ji.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 62709 Cc: 62709@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) [=E0=AE=B5=E0=AF=86=E0=AE=B3=E0=AF=8D=E0=AE=B3=E0=AE=BF =E0=AE=8F=E0=AE=AA= =E0=AF=8D=E0=AE=B0=E0=AE=B2=E0=AF=8D 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,=20 > > 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. I currently create an overlay at minibuffer's point-max but the cursor is shown _after_ the overlay string. I tried to use the cursor text property to move the cursor before the string but it does not do it if the string contains a newline character _anywhere_, which is contradictory to what the manual says One subtlety of this property is that it doesn=E2=80=99t work to put t= his property on a newline character that is part of a display or ^^^^^^^^^^^^^^^^^^^^^^ overlay string. That=E2=80=99s because the newline doesn=E2=80=99t ha= ve a graphic representation on the screen for Emacs to find when it looks for a character on display with that =E2=80=98cursor=E2=80=99 property. but I do _not_ put the property on a newline character, I put it in on a space character. To spell things out, the overlay's after-string is something like " [none] Guidance string here" I put the cursor=3Dt text-property on the first space character, but the cursor is not displayed there. If I remove the newline so the after-string becomes " [none] Guidance string here" then the cursor is just before the space character i.e., | [none]... where | is the cursor. I'm attaching my work so far as a diff diff --git a/lisp/international/quail.el b/lisp/international/quail.el index 2ffe339233..20eba9c1d4 100644 --- a/lisp/international/quail.el +++ b/lisp/international/quail.el @@ -85,6 +85,9 @@ quail-overlay (defvar-local quail-conv-overlay nil "Overlay which covers the text to be converted in Quail mode.") =20 +(defvar-local quail-minibuf-guidance-overlay nil + "Overlay used to display the guidance string when in minibuffer.") + (defvar-local quail-current-key nil "Current key for translation in Quail mode.") =20 @@ -571,18 +574,22 @@ quail-activate (setq deactivate-current-input-method-function #'quail-deactivate) (setq describe-current-input-method-function #'quail-help) (quail-delete-overlays) - (setq quail-guidance-str "") - (quail-show-guidance) ;; If we are in minibuffer, turn off the current input method ;; before exiting. (when (eq (selected-window) (minibuffer-window)) + (quail-minibuf-setup-guidance-overlay) (add-hook 'minibuffer-exit-hook #'quail-exit-from-minibuffer) (add-hook 'post-command-hook #'quail-show-guidance nil t)) + (setq quail-guidance-str "") + (quail-show-guidance) (run-hooks 'quail-activate-hook) (setq-local input-method-function #'quail-input-method))) =20 (defun quail-exit-from-minibuffer () (deactivate-input-method) + (when (and (overlayp quail-minibuf-guidance-overlay) + (overlay-start quail-minibuf-guidance-overlay)) + (delete-overlay quail-minibuf-guidance-overlay)) (if (<=3D (minibuffer-depth) 1) (remove-hook 'minibuffer-exit-hook 'quail-exit-from-minibuffer))) =20 @@ -1993,17 +2000,33 @@ quail-require-guidance-buf ;; with timeout 1000000 seconds instead of two seconds. =20 (defun quail-minibuffer-message (string) - (message nil) - (let ((point-max (point-max)) - (inhibit-quit t)) - (save-excursion - (goto-char point-max) - (insert string)) - (sit-for 1000000) - (delete-region point-max (point-max)) - (when quit-flag - (setq quit-flag nil) - (quail-add-unread-command-events 7 t)))) + (put-text-property 0 1 'cursor t string) + (overlay-put quail-minibuf-guidance-overlay + 'after-string string)) + +;; (defun quail-minibuffer-message (string) +;; (message nil) +;; (let ((point-max (point-max)) +;; (inhibit-quit t)) +;; (save-excursion +;; (goto-char point-max) +;; (insert string)) +;; (sit-for 1000000) +;; (delete-region point-max (point-max)) +;; (when quit-flag +;; (setq quit-flag nil) +;; (quail-add-unread-command-events 7 t)))) + +(defun quail-minibuf-move-guidance-overlay (ov afterp &rest _) + (when afterp + (move-overlay ov (point-max) (point-max)))) + +(defun quail-minibuf-setup-guidance-overlay () + (setq quail-minibuf-guidance-overlay + (make-overlay (point-max) (point-max))) + (overlay-put quail-minibuf-guidance-overlay 'insert-behind-hooks + '(quail-minibuf-move-guidance-overlay))) + =20 (defun quail-show-guidance () "Display a guidance for Quail input method in some window. From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 07 10:57:10 2023 Received: (at 62709) by debbugs.gnu.org; 7 Apr 2023 14:57:10 +0000 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 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 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==; 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 Date: Fri, 07 Apr 2023 17:57:02 +0300 Message-Id: <83h6troi4h.fsf@gnu.org> From: Eli Zaretskii To: Visuwesh In-Reply-To: <87h6trg3ji.fsf@gmail.com> (message from Visuwesh on Fri, 07 Apr 2023 20:09:13 +0530) Subject: Re: bug#62709: 29.0.60; quail-minibuffer-message prevents set-mark-command from activating region in minibuffer 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 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 62709 Cc: 62709@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > 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)) From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 07 11:09:36 2023 Received: (at 62709) by debbugs.gnu.org; 7 Apr 2023 15:09:36 +0000 Received: from localhost ([127.0.0.1]:57041 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pknia-0007n0-EE for submit@debbugs.gnu.org; Fri, 07 Apr 2023 11:09:36 -0400 Received: from mail-pj1-f67.google.com ([209.85.216.67]:37684) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pkniY-0007mo-Ma for 62709@debbugs.gnu.org; Fri, 07 Apr 2023 11:09:35 -0400 Received: by mail-pj1-f67.google.com with SMTP id d22-20020a17090a111600b0023d1b009f52so1594855pja.2 for <62709@debbugs.gnu.org>; Fri, 07 Apr 2023 08:09:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680880169; x=1683472169; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=G0pzD775S6TXG4cpBJpfXsnrrezDJTH9WtGXap4GuRQ=; b=fA2+r0twN6scqlU9B0kOXXWwpjM5KxBhh2JAlpa93d+x0be2vnKxjMD/sY/wodj4sG Z6vUfnOhNO8pBUf0k+7cogLvAiPY+v0XKeU8HaiWbXv30e+FnbK6Xjg7dxT5fgUgqDQu AYxONQ2TYL6eZhoDuRRNo2rm1YKuvoAsGh/UlOYPv1OQuy0tlv1i04YLFouDAFmxlpA6 /07Hw/nP/DjnRylLbZ+bOoOruckWOjSHZ40O7zqe0hdI0/H4na1ulawdIIlD2TA5cVsi d43stcXpFKZE9iBKiSV5uXZGVd6k2lGLiv3vCx7qhOVtX2cQ4MKzKLz6E6VlYnE5buSb Fbbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680880169; x=1683472169; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=G0pzD775S6TXG4cpBJpfXsnrrezDJTH9WtGXap4GuRQ=; b=E/QUiGTW1If9bgNEUTUvGo/Mt4JTtcgBHD5jdorgTKw9Tu3n1v3a4WjrZYFHbqr1mX mjpRpEGTeT+5SZxODfJ7arBTs0AB6SNfocJwDVIz+Ymm0oRByccwWtIH6KRDNTr/kWd2 uftnQQX14FWo8BkGbEw/PXctqPq3XW/TzQr0/ciaXEZMjM//gYJVZtvDTf6BFGFgzwDo FqlVPbPehw6lKYsZOYt2vsDCU77DBuorN4pdR0vMJnTt5ofuQkbdQhtO0Ts91AMBwFSP zYpDxTbO8llNkxPW3tguJydrHOfYwf1GhcGqA3Igji/Zl65FsnNz9PFIHqXBuyLnhs/u TlgQ== X-Gm-Message-State: AAQBX9cdCE3/omeiLLXZReSRupVaW/oqV5U1Ua42RFbSD2z47mNivpFN U03h6KHf54wYfmcCythN9cs= X-Google-Smtp-Source: AKy350YALOiPOYxqr/EC4E9q9rVGTY8Ox0fn8cgPmuCH7UhsiI39tyvjK1Vr3advKQIgNJZS4wpDPA== X-Received: by 2002:a17:903:68d:b0:1a5:f:a7c7 with SMTP id ki13-20020a170903068d00b001a5000fa7c7mr2681264plb.0.1680880168664; Fri, 07 Apr 2023 08:09:28 -0700 (PDT) Received: from localhost ([115.240.90.130]) by smtp.gmail.com with ESMTPSA id jm1-20020a17090304c100b0019a96a6543esm3038994plb.184.2023.04.07.08.09.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Apr 2023 08:09:28 -0700 (PDT) From: Visuwesh To: Eli Zaretskii Subject: Re: bug#62709: 29.0.60; quail-minibuffer-message prevents set-mark-command from activating region in minibuffer In-Reply-To: <83h6troi4h.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 07 Apr 2023 17:57:02 +0300") References: <87pm8gezcw.fsf@gmail.com> <83y1n4nduu.fsf@gnu.org> <87lej3gbb5.fsf@gmail.com> <87h6trg3ji.fsf@gmail.com> <83h6troi4h.fsf@gnu.org> Date: Fri, 07 Apr 2023 20:39:25 +0530 Message-ID: <87cz4fg256.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 62709 Cc: 62709@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) [=E0=AE=B5=E0=AF=86=E0=AE=B3=E0=AF=8D=E0=AE=B3=E0=AE=BF =E0=AE=8F=E0=AE=AA= =E0=AF=8D=E0=AE=B0=E0=AE=B2=E0=AF=8D 07, 2023] Eli Zaretskii wrote: >> From: Visuwesh >> Cc: 62709@debbugs.gnu.org >> Date: Fri, 07 Apr 2023 20:09:13 +0530 >>=20 >> [=E0=AE=B5=E0=AF=86=E0=AE=B3=E0=AF=8D=E0=AE=B3=E0=AE=BF =E0=AE=8F=E0=AE= =AA=E0=AF=8D=E0=AE=B0=E0=AE=B2=E0=AF=8D 07, 2023] Visuwesh wrote: >>=20 >> >> 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,=20 >> > >> > One solution would be to use an overlay to show the guidance string, >> > like what `minibuffer-depth-mode' does. >>=20 >> 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? Yes, it fixes the issue. Thanks for the quick fix! > 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)) From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 07 11:33:05 2023 Received: (at 62709-done) by debbugs.gnu.org; 7 Apr 2023 15:33:05 +0000 Received: from localhost ([127.0.0.1]:57089 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pko5I-0002Nj-OT for submit@debbugs.gnu.org; Fri, 07 Apr 2023 11:33:04 -0400 Received: from eggs.gnu.org ([209.51.188.92]:34102) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pko5G-0002NF-Kw for 62709-done@debbugs.gnu.org; Fri, 07 Apr 2023 11:33:03 -0400 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 1pko5B-00039Q-4g; Fri, 07 Apr 2023 11:32:57 -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=ITpLS805eNiSZwuQd9W7Je8stSkQXuE/yRbj8FAPcas=; b=lO3rfZqtbGjKzCr5SUNV ZHKHW/qcN73gNKQjW/ZVQiEYnyWEvpfldUPB1u18p7qOuFq+o5VQYvPAGuCesxi+aa5XQMGmTsmKs R1HzE1PrKNTNsXlWekUwmeVUuNJorLRG+t/IP0DsxWignwnAgGN/GQHeqmdYnh7yANez5VeJIugXt hSNwK03oHeFFRNZUQd+lOqVcMZ7qvtsQQQz6eMgoTYM8A3mbvlC1WNAI8IcbR7W1NSuDayEjApSrf UxeufItagB7E02UMVWtvinHvarzfFN1xKQakmpS6qXokjdOKgHleU868IJrmQQl8juOWEEtRIlj1b pGYcvbG0mxVCsw==; 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 1pko5A-0003vo-BH; Fri, 07 Apr 2023 11:32:56 -0400 Date: Fri, 07 Apr 2023 18:33:28 +0300 Message-Id: <83cz4fogfr.fsf@gnu.org> From: Eli Zaretskii To: Visuwesh In-Reply-To: <87cz4fg256.fsf@gmail.com> (message from Visuwesh on Fri, 07 Apr 2023 20:39:25 +0530) Subject: Re: bug#62709: 29.0.60; quail-minibuffer-message prevents set-mark-command from activating region in minibuffer References: <87pm8gezcw.fsf@gmail.com> <83y1n4nduu.fsf@gnu.org> <87lej3gbb5.fsf@gmail.com> <87h6trg3ji.fsf@gmail.com> <83h6troi4h.fsf@gnu.org> <87cz4fg256.fsf@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 62709-done Cc: 62709-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Visuwesh > Cc: 62709@debbugs.gnu.org > Date: Fri, 07 Apr 2023 20:39:25 +0530 > > [வெள்ளி ஏப்ரல் 07, 2023] Eli Zaretskii wrote: > > > Does the patch below fix the problems you saw, without introducing any > > regressions? > > Yes, it fixes the issue. Thanks for the quick fix! Thanks, installed on the emacs-29 branch, and closing the bug. From unknown Wed Aug 20 00:02:56 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 06 May 2023 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator