From unknown Sun Jun 22 07:53:06 2025 X-Loop: help-debbugs@gnu.org Subject: bug#75855: 31.0.50; Cursor positioning in mini-window and echo-area Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 26 Jan 2025 10:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 75855 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 75855@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.173788635725078 (code B ref -1); Sun, 26 Jan 2025 10:13:02 +0000 Received: (at submit) by debbugs.gnu.org; 26 Jan 2025 10:12:37 +0000 Received: from localhost ([127.0.0.1]:54751 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tbzd6-0006WP-CJ for submit@debbugs.gnu.org; Sun, 26 Jan 2025 05:12:36 -0500 Received: from lists.gnu.org ([2001:470:142::17]:60390) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tbzd4-0006W6-8X for submit@debbugs.gnu.org; Sun, 26 Jan 2025 05:12:34 -0500 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 1tbzcw-0006IT-UI for bug-gnu-emacs@gnu.org; Sun, 26 Jan 2025 05:12:27 -0500 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 1tbzcw-0000fu-MU for bug-gnu-emacs@gnu.org; Sun, 26 Jan 2025 05:12:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Subject:To:From:Date:mime-version:in-reply-to: references; bh=2TavKQycHqkUgRvV+rsFS9SA6psemyElPNhSZU2Ex4Y=; b=fQ1q3HEOgz6Gwr lQ+GRhAzlXObagk37K9Yq3zC2Z6DEAke8Lo8cj+iFM6gMTVrCKjoEv/hFFuJq8DkIJY1VOLcZOCSN 2pqpJlGW4LVo+7qFa2MrQvqP36zniW4GSz5N1a2CpnYQUGG/xbzYXgmdqrCDs+0sM0iiv5KvrTajc VUhk0SnttMSC/6TAMuV2cKmtzlCsB+nc7ZxRpPzvfk/N2v0yxkxa8e8D+Jrq6AnHSz3OOy41128LP 7trxZJ/O8UG8PKWCIXpzqCmogTvqwMZ4/Ll1w9WeCRGVbw0fpw5YIEmrA+3646k9P2vJBbcROTxG2 McASntJ4Z9v3ryrvzrcg==; Date: Sun, 26 Jan 2025 12:12:24 +0200 Message-Id: <86lduxsx2v.fsf@gnu.org> From: Eli Zaretskii X-Spam-Score: -0.0 (/) 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 (-) To reproduce: $ emacs -Q -nw C-x 5 b RET M-: (frame-visible-p (next-frame)) After typing the last line above into the minibuffer, don't press RET. Instead, move the cursor left one character with C-b, so that the cursor is after the penultimate right parenthesis, and type "C-x C-e". This should evaluate the (next-frame) part and show the result in the echo-area. But note that, while showing the result of the evaluation, the cursor is not at the end of the value returned by next-frame, but several places to the right, after some empty space. This doesn't happen in Emacs 30. (Note: the build details below do not mean this problem is specific to the MS-Windows build, I see this on GNU/Linux.) In GNU Emacs 31.0.50 (build 530, i686-pc-mingw32) of 2025-01-26 built on ELIZ-PC Repository revision: 35d39278599caf30eb4bfbd83118ffe15d2bc705 Repository branch: master Windowing system distributor 'Microsoft Corp.', version 10.0.22631 System Description: Microsoft Windows 10 Enterprise (v10.0.2009.22631.4751) Configured using: 'configure -C --prefix=/d/usr --with-wide-int --without-native-compilation --enable-checking=yes,glyphs 'CFLAGS=-O0 -gdwarf-4 -g3'' Configured features: ACL GIF GMP GNUTLS HARFBUZZ JPEG LCMS2 LIBXML2 MODULES NOTIFY W32NOTIFY PDUMPER PNG RSVG SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XPM ZLIB Important settings: value of $LANG: ENU locale-coding-system: cp1252 Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t minibuffer-regexp-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date subr-x mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel touch-screen dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars term/common-win 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 w32notify w32 lcms2 multi-tty move-toolbar make-network-process tty-child-frames emacs) Memory information: ((conses 16 45585 18821) (symbols 48 6532 0) (strings 16 16140 2697) (string-bytes 1 333074) (vectors 16 9411) (vector-slots 8 111027 7616) (floats 8 23 6) (intervals 40 305 110) (buffers 896 10)) From unknown Sun Jun 22 07:53:06 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Eli Zaretskii Subject: bug#75855: closed (Re: bug#75855: 31.0.50; Cursor positioning in mini-window and echo-area) Message-ID: References: <86wmecjyla.fsf@gnu.org> <86lduxsx2v.fsf@gnu.org> X-Gnu-PR-Message: they-closed 75855 X-Gnu-PR-Package: emacs Reply-To: 75855@debbugs.gnu.org Date: Thu, 30 Jan 2025 12:07:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1738238822-19808-1" This is a multi-part message in MIME format... ------------=_1738238822-19808-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #75855: 31.0.50; Cursor positioning in mini-window and echo-area which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 75855@debbugs.gnu.org. --=20 75855: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D75855 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1738238822-19808-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 75855-done) by debbugs.gnu.org; 30 Jan 2025 12:06:20 +0000 Received: from localhost ([127.0.0.1]:44812 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tdTJM-00058H-G4 for submit@debbugs.gnu.org; Thu, 30 Jan 2025 07:06:20 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40026) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tdTJL-000582-6k for 75855-done@debbugs.gnu.org; Thu, 30 Jan 2025 07:06:19 -0500 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 1tdTJD-0007Mo-UE; Thu, 30 Jan 2025 07:06:13 -0500 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=+xTCutmZW0ZlBz3XlSmxT5CeuQRq3n6In2DpO6ZpJTY=; b=hu7DNQcO4inxkckJhw7H nIYpKFZN+ueVFopQCwO3G+Rc2QrEpSo4G80nls//VbY3O3aUdCFgMypMn2zzAzAuZBF8CJk6Y06na qhnfW/stYAC84g3RwKjVECNPvMFvV9y4c0ZRQ8xD+jnBXNUpKDe2+pQIcWbQyjBcgMXdqMXLK+tVO JbRdaktgfMPzxveMYwBWfUiBsOqXSr9J7c2enpDfEzaVj5QueK11U21T2C0in5a1ovFU2OYRSrYxa vuLZ+yb0sJrqnb9n/1AL0+4WS8/+97IdDA0L5o/ruvLjz/pqrWk8Y07EFgE8RFa7L++nqwQKaAfl8 GDtn3cldVV9GTQ==; Date: Thu, 30 Jan 2025 14:05:53 +0200 Message-Id: <86wmecjyla.fsf@gnu.org> From: Eli Zaretskii To: =?iso-8859-1?Q?Gerd_M=F6llmann?= In-Reply-To: <86lduxsx2v.fsf@gnu.org> (message from Eli Zaretskii on Sun, 26 Jan 2025 12:12:24 +0200) Subject: Re: bug#75855: 31.0.50; Cursor positioning in mini-window and echo-area References: <86lduxsx2v.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 75855-done Cc: 75855-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 (---) > Date: Sun, 26 Jan 2025 12:12:24 +0200 > From: Eli Zaretskii > > To reproduce: > > $ emacs -Q -nw > C-x 5 b RET > M-: (frame-visible-p (next-frame)) > > After typing the last line above into the minibuffer, don't press RET. > Instead, move the cursor left one character with C-b, so that the > cursor is after the penultimate right parenthesis, and type "C-x C-e". > This should evaluate the (next-frame) part and show the result in the > echo-area. But note that, while showing the result of the evaluation, > the cursor is not at the end of the value returned by next-frame, but > several places to the right, after some empty space. This doesn't > happen in Emacs 30. This is now fixed on the master branch, probably by one of the recent changes regarding cursor positions on TTY frames. So I'm closing this bug. ------------=_1738238822-19808-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 26 Jan 2025 10:12:37 +0000 Received: from localhost ([127.0.0.1]:54751 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tbzd6-0006WP-CJ for submit@debbugs.gnu.org; Sun, 26 Jan 2025 05:12:36 -0500 Received: from lists.gnu.org ([2001:470:142::17]:60390) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tbzd4-0006W6-8X for submit@debbugs.gnu.org; Sun, 26 Jan 2025 05:12:34 -0500 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 1tbzcw-0006IT-UI for bug-gnu-emacs@gnu.org; Sun, 26 Jan 2025 05:12:27 -0500 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 1tbzcw-0000fu-MU for bug-gnu-emacs@gnu.org; Sun, 26 Jan 2025 05:12:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Subject:To:From:Date:mime-version:in-reply-to: references; bh=2TavKQycHqkUgRvV+rsFS9SA6psemyElPNhSZU2Ex4Y=; b=fQ1q3HEOgz6Gwr lQ+GRhAzlXObagk37K9Yq3zC2Z6DEAke8Lo8cj+iFM6gMTVrCKjoEv/hFFuJq8DkIJY1VOLcZOCSN 2pqpJlGW4LVo+7qFa2MrQvqP36zniW4GSz5N1a2CpnYQUGG/xbzYXgmdqrCDs+0sM0iiv5KvrTajc VUhk0SnttMSC/6TAMuV2cKmtzlCsB+nc7ZxRpPzvfk/N2v0yxkxa8e8D+Jrq6AnHSz3OOy41128LP 7trxZJ/O8UG8PKWCIXpzqCmogTvqwMZ4/Ll1w9WeCRGVbw0fpw5YIEmrA+3646k9P2vJBbcROTxG2 McASntJ4Z9v3ryrvzrcg==; Date: Sun, 26 Jan 2025 12:12:24 +0200 Message-Id: <86lduxsx2v.fsf@gnu.org> From: Eli Zaretskii To: bug-gnu-emacs@gnu.org Subject: 31.0.50; Cursor positioning in mini-window and echo-area X-Debbugs-Cc: X-Spam-Score: -0.0 (/) 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: -1.0 (-) To reproduce: $ emacs -Q -nw C-x 5 b RET M-: (frame-visible-p (next-frame)) After typing the last line above into the minibuffer, don't press RET. Instead, move the cursor left one character with C-b, so that the cursor is after the penultimate right parenthesis, and type "C-x C-e". This should evaluate the (next-frame) part and show the result in the echo-area. But note that, while showing the result of the evaluation, the cursor is not at the end of the value returned by next-frame, but several places to the right, after some empty space. This doesn't happen in Emacs 30. (Note: the build details below do not mean this problem is specific to the MS-Windows build, I see this on GNU/Linux.) In GNU Emacs 31.0.50 (build 530, i686-pc-mingw32) of 2025-01-26 built on ELIZ-PC Repository revision: 35d39278599caf30eb4bfbd83118ffe15d2bc705 Repository branch: master Windowing system distributor 'Microsoft Corp.', version 10.0.22631 System Description: Microsoft Windows 10 Enterprise (v10.0.2009.22631.4751) Configured using: 'configure -C --prefix=/d/usr --with-wide-int --without-native-compilation --enable-checking=yes,glyphs 'CFLAGS=-O0 -gdwarf-4 -g3'' Configured features: ACL GIF GMP GNUTLS HARFBUZZ JPEG LCMS2 LIBXML2 MODULES NOTIFY W32NOTIFY PDUMPER PNG RSVG SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XPM ZLIB Important settings: value of $LANG: ENU locale-coding-system: cp1252 Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t minibuffer-regexp-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date subr-x mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel touch-screen dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars term/common-win 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 w32notify w32 lcms2 multi-tty move-toolbar make-network-process tty-child-frames emacs) Memory information: ((conses 16 45585 18821) (symbols 48 6532 0) (strings 16 16140 2697) (string-bytes 1 333074) (vectors 16 9411) (vector-slots 8 111027 7616) (floats 8 23 6) (intervals 40 305 110) (buffers 896 10)) ------------=_1738238822-19808-1--