From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Toomas Rosin Newsgroups: gmane.emacs.bugs Subject: bug#73951: 29.4; 'what-cursor-position' reports SPC instead of TAB in term-mode Date: Sun, 03 Nov 2024 17:50:37 +0200 Message-ID: <14255.1730649037@localhost> References: <87cyjsf63l.fsf@toomas.mail-host-address-is-not-set> <868qugf32u.fsf@gnu.org> <1893.1729692008@localhost> <86cyjqemoq.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30712"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 73951@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 03 16:51:23 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 1t7csq-0007pv-Il for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 03 Nov 2024 16:51:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t7csb-0007EF-Sf; Sun, 03 Nov 2024 10:51: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 1t7csY-0007DN-Sv for bug-gnu-emacs@gnu.org; Sun, 03 Nov 2024 10:51:03 -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 1t7csY-0005P1-EV for bug-gnu-emacs@gnu.org; Sun, 03 Nov 2024 10:51:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:MIME-Version:References:In-reply-to:From:To:Subject; bh=aPqHExDStJe0umd9MCBabKvhpRGS48pwuda6Nf+BjZQ=; b=aE+XcjMLWvaL6ek9ztKEdAYm9CcBahgKJKKAHgPQebUwkqDCYwpfEpQe+ODLYzqIqFjTsMS0A/ImIMpLlQen6g50U2c1bj9NiEnH5inV1NDKa/NpbXlMc2zPKaLv9LPWEWHBfpDu/RRk+b0rt1tKOpvcFSWWIc2UsAoPh8kYRnojQt9n67CceGkYavnxmDYJt3Sw9JwAaWceRn4p1DxIbXvhHEpit2rN19PIW66pcgxY+GlETI1Y7UL/A8G14hNtLKGYSQSBK4+dPSYarfLbZTu3BHwIvS9MUEpeQnoNfIn0c/kubaq7qDQmj/cxBNP3joo5zQtRZUZTR8Fdga9INg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t7csY-0003Pj-8k for bug-gnu-emacs@gnu.org; Sun, 03 Nov 2024 10:51:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Toomas Rosin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 03 Nov 2024 15:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73951 X-GNU-PR-Package: emacs Original-Received: via spool by 73951-submit@debbugs.gnu.org id=B73951.173064904313113 (code B ref 73951); Sun, 03 Nov 2024 15:51:02 +0000 Original-Received: (at 73951) by debbugs.gnu.org; 3 Nov 2024 15:50:43 +0000 Original-Received: from localhost ([127.0.0.1]:32987 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t7csF-0003P1-1l for submit@debbugs.gnu.org; Sun, 03 Nov 2024 10:50:43 -0500 Original-Received: from 92-115-235-80.sta.estpak.ee ([80.235.115.92]:57032 helo=rosin.ee) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t7csC-0003Os-43 for 73951@debbugs.gnu.org; Sun, 03 Nov 2024 10:50:40 -0500 Original-Received: from rosin.ee (localhost [127.0.0.1]) by rosin.ee (Postfix) with ESMTP id CDAD561377; Sun, 03 Nov 2024 17:50:37 +0200 (EET) In-reply-to: <86cyjqemoq.fsf@gnu.org> Comments: In-reply-to Eli Zaretskii message dated "Wed, 23 Oct 2024 20:47:17 +0300." X-Mailer: MH-E 8.6+git; nmh 1.7.1; Emacs 29.4 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:294802 Archived-At: Eli Zaretskii wrote: > OK, so why is it a problem that Emacs uses SPC character to emulate a > TAB? It is confusing when you don't happen to know about it. I did not know about it before writing the OP. I had this function definit= ion in a shell script (where "" denotes the tab character): tawk () { awk -F '' -v OFS=3D'' "$@"; } # run awk on tab del= imited files When I yanked this definition from the script to the "*terminal*" buffer an= d tried to use it, I happened to get unexpected results (which, as it turne= d out later, were in fact not connected to this definition), and the first = thing I suspected was (quite naturally imho) that something was wrong with = the tab characters in the definition of the function. To check the definit= ion, I ran "type tawk" in the *terminal* buffer, switched to line mode (C-c= C-j), moved the cursor to the tab chars, ran `what-cursor-position' =E2=80= =94 and indeed, it told me that there were spaces there instead of tabs! S= o I was confirmed in my barking up the wrong tree.