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#73951: 29.4; 'what-cursor-position' reports SPC instead of TAB in term-mode Date: Mon, 04 Nov 2024 21:52:36 +0200 Message-ID: <86r07qu67v.fsf@gnu.org> References: <87cyjsf63l.fsf@toomas.mail-host-address-is-not-set> <868qugf32u.fsf@gnu.org> <1893.1729692008@localhost> <86cyjqemoq.fsf@gnu.org> <14255.1730649037@localhost> <86h68ow9u6.fsf@gnu.org> <3174.1730749046@localhost> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26533"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 73951-done@debbugs.gnu.org To: Toomas Rosin Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 04 20:53:22 2024 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 1t838b-0006iS-I9 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 04 Nov 2024 20:53:21 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t838L-0000Ut-6u; Mon, 04 Nov 2024 14:53:05 -0500 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 1t838I-0000UT-Ik for bug-gnu-emacs@gnu.org; Mon, 04 Nov 2024 14:53:02 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t838I-0006Pn-AF for bug-gnu-emacs@gnu.org; Mon, 04 Nov 2024 14:53:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=8AcFZaCHdnKHftidtSvyNwg2afPCxZxsmMgc7n/A+tM=; b=GDZo1kVmXM+61SJzoKBAQoubKUSlkg7ZYpM92mJM+PUZR8CmKh7bmBtlkcQMEihm6YFkk+JBIj8gSLF/zuX708zZFtAfWsJbK5C5MffaezpwvVTooPLcXkLMV8MxnnevdrMXnR73Q4wyrLHjFQJ56C53Z9TKJk0P4d2ArxUoOfdRJWgYs0x2oaohNEtIdufoXx2XPfCMd71fTt2gTvt86VSbjmL42StsJtWFPMECjglCeOkRb0/9xodata5Auk27QdvNtaOaRCFRXqKe1kp6hAqevwaHQubYs2tL+iMHOZK3dYkVivryauoBOOoEmAnOQ9JrkelhGKoZvayv9VmGwg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t838I-0007Bm-3t for bug-gnu-emacs@gnu.org; Mon, 04 Nov 2024 14:53:02 -0500 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 Nov 2024 19:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 73951 X-GNU-PR-Package: emacs Mail-Followup-To: 73951@debbugs.gnu.org, eliz@gnu.org, toomas@rosin.ee Original-Received: via spool by 73951-done@debbugs.gnu.org id=D73951.173074997227618 (code D ref 73951); Mon, 04 Nov 2024 19:53:01 +0000 Original-Received: (at 73951-done) by debbugs.gnu.org; 4 Nov 2024 19:52:52 +0000 Original-Received: from localhost ([127.0.0.1]:41957 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t8388-0007BO-8o for submit@debbugs.gnu.org; Mon, 04 Nov 2024 14:52:52 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:44610) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t8386-0007BE-MR for 73951-done@debbugs.gnu.org; Mon, 04 Nov 2024 14:52:51 -0500 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 1t8380-0006PV-8A; Mon, 04 Nov 2024 14:52:44 -0500 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=8AcFZaCHdnKHftidtSvyNwg2afPCxZxsmMgc7n/A+tM=; b=AJ1lopHteWJB SbCEJyGp8OO/TR2PzMX0+ajvwPfJmSpTPXPghuEawQdYyJNcioLZGauNqEJ5QOBcyfpw9V4VWRfZS PSGcE144EkP/Xu6wCYP1odq7+KTdoAiXs4+qy7qy7LrkzDgq2TNYfgOPMb6npqqX26+Y82OHmSP7W TFeQfQA5t80ivTGkOr7f2zug/vFNvILP7PTy2mZ6q63jWm7M4p+LawPwi58fRirnAePqyFaOzW8Gi 5LbIxq2amgsx37sLGpYfR3+pQMS6RtcoV17gESft/iuaNry5IxrVkt0VwdfPqDcEoqtuSFDXW+hmc T568DaFXUzZLTEdjclhQng==; In-Reply-To: <3174.1730749046@localhost> (message from Toomas Rosin on Mon, 04 Nov 2024 21:37:26 +0200) 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:294880 Archived-At: > From: Toomas Rosin > cc: 73951@debbugs.gnu.org > Comments: In-reply-to Eli Zaretskii > message dated "Sun, 03 Nov 2024 18:39:13 +0200." > Date: Mon, 04 Nov 2024 21:37:26 +0200 > > Eli Zaretskii wrote: > > > Did you try setting indent-tabs-mode to a non-nil value? > > How could I not have thought of this! But yes, when I set `indent-tabs-mode' to `t' *before* pasting the function definition, and then run "type tawk" in terminal buffer and move point in line mode onto the tab character, `C-x =' says correctly that point is on TAB. > > I had `indent-tabs-mode' set to `nil' globally in my init.el; now I see that it is a good idea to leave `indent-tabs-mode' to `t' in terminal mode. "M-x term" intentionally resets indent-tabs-mode to nil, with this comment: ;; we do not want indent to sneak in any tabs So if setting indent-tabs-mode non-nil suits you better, try to be on the lookout for whatever problems the above comment might hint at; I don't really understand what it wants to say (but then I don't use "M-x term"). > I have no more questions. Thank you. Thanks, I will therefore close this bug.