From unknown Sun Jun 22 11:33:26 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#73951 <73951@debbugs.gnu.org> To: bug#73951 <73951@debbugs.gnu.org> Subject: Status: 29.4; 'what-cursor-position' reports SPC instead of TAB in term-mode Reply-To: bug#73951 <73951@debbugs.gnu.org> Date: Sun, 22 Jun 2025 18:33:26 +0000 retitle 73951 29.4; 'what-cursor-position' reports SPC instead of TAB in te= rm-mode reassign 73951 emacs submitter 73951 toomas@rosin.ee severity 73951 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 22 12:42:46 2024 Received: (at submit) by debbugs.gnu.org; 22 Oct 2024 16:42:46 +0000 Received: from localhost ([127.0.0.1]:57027 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t3Hy1-0003xC-Ey for submit@debbugs.gnu.org; Tue, 22 Oct 2024 12:42:46 -0400 Received: from lists.gnu.org ([209.51.188.17]:54240) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t3Hxy-0003ww-9I for submit@debbugs.gnu.org; Tue, 22 Oct 2024 12:42:43 -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 1t3HxN-00084D-OX for bug-gnu-emacs@gnu.org; Tue, 22 Oct 2024 12:42:07 -0400 Received: from 92-115-235-80.sta.estpak.ee ([80.235.115.92] helo=rosin.ee) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t3HxH-0005LC-4v for bug-gnu-emacs@gnu.org; Tue, 22 Oct 2024 12:42:03 -0400 Received: by rosin.ee (Postfix, from userid 1000) id CD81677D1C; Tue, 22 Oct 2024 19:35:42 +0300 (EEST) From: toomas@rosin.ee To: bug-gnu-emacs@gnu.org Subject: 29.4; 'what-cursor-position' reports SPC instead of TAB in term-mode Date: Tue, 22 Oct 2024 19:35:42 +0300 Message-ID: <87cyjsf63l.fsf@toomas.mail-host-address-is-not-set> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: none client-ip=80.235.115.92; envelope-from=toomas@toomas.mail-host-address-is-not-set; helo=rosin.ee X-Spam_score_int: 7 X-Spam_score: 0.7 X-Spam_bar: / X-Spam_report: (0.7 / 5.0 requ) BAYES_00=-1.9, FORGED_SPF_HELO=1, HEADER_FROM_DIFFERENT_DOMAINS=0.169, KHOP_HELO_FCRDNS=0.399, NO_DNS_FOR_FROM=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, RDNS_DYNAMIC=0.982, SPF_HELO_PASS=-0.001, SPF_NONE=0.001, TVD_RCVD_IP=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.7 (-) 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.7 (--) How to reproduce on my system: Start: emacs -Q Type: M-x term RET On Emacs prompt "Run program: /bin/bash", type: RET The *terminal* buffer appears. On Bash prompt, type: echo 'a TAB b' RET Bash prints: "a b" (a TAB b), and displays new prompt. Type: (The cursor is now on the tab character between a and b.) Type: C-x = I expect Emacs to report "Char: TAB" (etc.), but instead it responds with "Char: SPC" (etc.) This can be really confusing when a command containing tab characters behaves unexpectedly and I want to check if I typed it right. In GNU Emacs 29.4 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.41) of 2024-09-28 built on localhost Windowing system distributor 'The X.Org Foundation', version 11.0.12101013 System Description: Gentoo Linux Configured using: 'configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --datarootdir=/usr/share --disable-silent-rules --docdir=/usr/share/doc/emacs-29.4 --htmldir=/usr/share/doc/emacs-29.4/html --libdir=/usr/lib64 --program-suffix=-emacs-29 --includedir=/usr/include/emacs-29 --infodir=/usr/share/info/emacs-29 --localstatedir=/var --enable-locallisppath=/etc/emacs:/usr/share/emacs/site-lisp --without-compress-install --without-hesiod --without-pop --with-file-notification=inotify --with-pdumper --disable-acl --without-dbus --with-modules --without-gameuser --with-libgmp --without-gpm --without-native-compilation --with-json --without-kerberos --without-kerberos5 --without-lcms2 --with-xml2 --without-mailutils --without-selinux --without-sqlite3 --with-gnutls --without-libsystemd --with-threads --without-tree-sitter --without-wide-int --with-sound=no --with-zlib --with-x --without-pgtk --without-ns --without-gconf --without-gsettings --with-toolkit-scroll-bars --with-xpm --with-xft --without-cairo --without-harfbuzz --without-libotf --without-m17n-flt --with-x-toolkit=gtk3 --without-xwidgets --without-gif --with-jpeg --with-png --without-rsvg --without-tiff --with-webp --without-imagemagick --with-dumping=pdumper 'CFLAGS=-march=native -O2 -pipe -frecord-gcc-switches -g -fno-fast-math -ffp-contract=off' CPPFLAGS= 'LDFLAGS=-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--defsym=__gentoo_check_ldflags__=0'' Configured features: FREETYPE GLIB GMP GNUTLS JPEG JSON LIBXML2 MODULES NOTIFY INOTIFY PDUMPER PNG SECCOMP THREADS TOOLKIT_SCROLL_BARS WEBP X11 XDBE XFT XIM XINPUT2 XPM GTK3 ZLIB Important settings: value of $LANG: C.UTF8 locale-coding-system: utf-8-unix Major mode: Shell-script Minor modes in effect: pyvenv-mode: t windmove-mode: t display-time-mode: t shell-dirtrack-mode: t desktop-save-mode: t auto-insert-mode: t override-global-mode: t tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t window-divider-mode: t column-number-mode: t line-number-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: /home/toomas/Asjad/melogurmaania/init hides /home/toomas/Asjad/emacs/init /usr/share/emacs/site-lisp/bind-key/bind-key hides /usr/share/emacs/site-lisp/use-package/bind-key /usr/share/emacs/site-lisp/transient/transient hides /usr/share/emacs/29.4/lisp/transient /usr/share/emacs/site-lisp/use-package/use-package-core hides /usr/share/emacs/29.4/lisp/use-package/use-package-core /usr/share/emacs/site-lisp/use-package/use-package-bind-key hides /usr/share/emacs/29.4/lisp/use-package/use-package-bind-key /usr/share/emacs/site-lisp/use-package/use-package-delight hides /usr/share/emacs/29.4/lisp/use-package/use-package-delight /usr/share/emacs/site-lisp/use-package/use-package hides /usr/share/emacs/29.4/lisp/use-package/use-package /usr/share/emacs/site-lisp/use-package/use-package-lint hides /usr/share/emacs/29.4/lisp/use-package/use-package-lint /usr/share/emacs/site-lisp/bind-key/bind-key hides /usr/share/emacs/29.4/lisp/use-package/bind-key /usr/share/emacs/site-lisp/use-package/use-package-ensure hides /usr/share/emacs/29.4/lisp/use-package/use-package-ensure /usr/share/emacs/site-lisp/use-package/use-package-ensure-system-package hides /usr/share/emacs/29.4/lisp/use-package/use-package-ensure-system-package /usr/share/emacs/site-lisp/use-package/use-package-jump hides /usr/share/emacs/29.4/lisp/use-package/use-package-jump /usr/share/emacs/site-lisp/use-package/use-package-diminish hides /usr/share/emacs/29.4/lisp/use-package/use-package-diminish /usr/share/emacs/site-lisp/org-mode/org-colview hides /usr/share/emacs/29.4/lisp/org/org-colview /usr/share/emacs/site-lisp/org-mode/ob-octave hides /usr/share/emacs/29.4/lisp/org/ob-octave /usr/share/emacs/site-lisp/org-mode/ob-python hides /usr/share/emacs/29.4/lisp/org/ob-python /usr/share/emacs/site-lisp/org-mode/org-loaddefs hides /usr/share/emacs/29.4/lisp/org/org-loaddefs /usr/share/emacs/site-lisp/org-mode/ob-emacs-lisp hides /usr/share/emacs/29.4/lisp/org/ob-emacs-lisp /usr/share/emacs/site-lisp/org-mode/org-duration hides /usr/share/emacs/29.4/lisp/org/org-duration /usr/share/emacs/site-lisp/org-mode/org-element hides /usr/share/emacs/29.4/lisp/org/org-element /usr/share/emacs/site-lisp/org-mode/ob-maxima hides /usr/share/emacs/29.4/lisp/org/ob-maxima /usr/share/emacs/site-lisp/org-mode/ob-org hides /usr/share/emacs/29.4/lisp/org/ob-org /usr/share/emacs/site-lisp/org-mode/ol-w3m hides /usr/share/emacs/29.4/lisp/org/ol-w3m /usr/share/emacs/site-lisp/org-mode/org-macro hides /usr/share/emacs/29.4/lisp/org/org-macro /usr/share/emacs/site-lisp/org-mode/org-crypt hides /usr/share/emacs/29.4/lisp/org/org-crypt /usr/share/emacs/site-lisp/org-mode/ob-processing hides /usr/share/emacs/29.4/lisp/org/ob-processing /usr/share/emacs/site-lisp/org-mode/ol-rmail hides /usr/share/emacs/29.4/lisp/org/ol-rmail /usr/share/emacs/site-lisp/org-mode/org-feed hides /usr/share/emacs/29.4/lisp/org/org-feed /usr/share/emacs/site-lisp/org-mode/org-timer hides /usr/share/emacs/29.4/lisp/org/org-timer /usr/share/emacs/site-lisp/org-mode/ob-matlab hides /usr/share/emacs/29.4/lisp/org/ob-matlab /usr/share/emacs/site-lisp/org-mode/org-num hides /usr/share/emacs/29.4/lisp/org/org-num /usr/share/emacs/site-lisp/org-mode/org-lint hides /usr/share/emacs/29.4/lisp/org/org-lint /usr/share/emacs/site-lisp/org-mode/ob-screen hides /usr/share/emacs/29.4/lisp/org/ob-screen /usr/share/emacs/site-lisp/org-mode/ox-texinfo hides /usr/share/emacs/29.4/lisp/org/ox-texinfo /usr/share/emacs/site-lisp/org-mode/org-habit hides /usr/share/emacs/29.4/lisp/org/org-habit /usr/share/emacs/site-lisp/org-mode/org-list hides /usr/share/emacs/29.4/lisp/org/org-list /usr/share/emacs/site-lisp/org-mode/ol-gnus hides /usr/share/emacs/29.4/lisp/org/ol-gnus /usr/share/emacs/site-lisp/org-mode/org-fold-core hides /usr/share/emacs/29.4/lisp/org/org-fold-core /usr/share/emacs/site-lisp/org-mode/ob-sass hides /usr/share/emacs/29.4/lisp/org/ob-sass /usr/share/emacs/site-lisp/org-mode/ob-clojure hides /usr/share/emacs/29.4/lisp/org/ob-clojure /usr/share/emacs/site-lisp/org-mode/ob-tangle hides /usr/share/emacs/29.4/lisp/org/ob-tangle /usr/share/emacs/site-lisp/org-mode/ox-icalendar hides /usr/share/emacs/29.4/lisp/org/ox-icalendar /usr/share/emacs/site-lisp/org-mode/ob-latex hides /usr/share/emacs/29.4/lisp/org/ob-latex /usr/share/emacs/site-lisp/org-mode/ob-sql hides /usr/share/emacs/29.4/lisp/org/ob-sql /usr/share/emacs/site-lisp/org-mode/ob-julia hides /usr/share/emacs/29.4/lisp/org/ob-julia /usr/share/emacs/site-lisp/org-mode/org-fold hides /usr/share/emacs/29.4/lisp/org/org-fold /usr/share/emacs/site-lisp/org-mode/org-macs hides /usr/share/emacs/29.4/lisp/org/org-macs /usr/share/emacs/site-lisp/org-mode/ol-man hides /usr/share/emacs/29.4/lisp/org/ol-man /usr/share/emacs/site-lisp/org-mode/ob-plantuml hides /usr/share/emacs/29.4/lisp/org/ob-plantuml /usr/share/emacs/site-lisp/org-mode/ob-calc hides /usr/share/emacs/29.4/lisp/org/ob-calc /usr/share/emacs/site-lisp/org-mode/ol hides /usr/share/emacs/29.4/lisp/org/ol /usr/share/emacs/site-lisp/org-mode/ob-groovy hides /usr/share/emacs/29.4/lisp/org/ob-groovy /usr/share/emacs/site-lisp/org-mode/org hides /usr/share/emacs/29.4/lisp/org/org /usr/share/emacs/site-lisp/org-mode/ol-info hides /usr/share/emacs/29.4/lisp/org/ol-info /usr/share/emacs/site-lisp/org-mode/ob-shell hides /usr/share/emacs/29.4/lisp/org/ob-shell /usr/share/emacs/site-lisp/org-mode/ox-odt hides /usr/share/emacs/29.4/lisp/org/ox-odt /usr/share/emacs/site-lisp/org-mode/ob-ditaa hides /usr/share/emacs/29.4/lisp/org/ob-ditaa /usr/share/emacs/site-lisp/org-mode/ob-js hides /usr/share/emacs/29.4/lisp/org/ob-js /usr/share/emacs/site-lisp/org-mode/ob-eshell hides /usr/share/emacs/29.4/lisp/org/ob-eshell /usr/share/emacs/site-lisp/org-mode/ox-man hides /usr/share/emacs/29.4/lisp/org/ox-man /usr/share/emacs/site-lisp/org-mode/ol-eww hides /usr/share/emacs/29.4/lisp/org/ol-eww /usr/share/emacs/site-lisp/org-mode/ox-ascii hides /usr/share/emacs/29.4/lisp/org/ox-ascii /usr/share/emacs/site-lisp/org-mode/oc-csl hides /usr/share/emacs/29.4/lisp/org/oc-csl /usr/share/emacs/site-lisp/org-mode/ob-comint hides /usr/share/emacs/29.4/lisp/org/ob-comint /usr/share/emacs/site-lisp/org-mode/org-persist hides /usr/share/emacs/29.4/lisp/org/org-persist /usr/share/emacs/site-lisp/org-mode/org-faces hides /usr/share/emacs/29.4/lisp/org/org-faces /usr/share/emacs/site-lisp/org-mode/ox-org hides /usr/share/emacs/29.4/lisp/org/ox-org /usr/share/emacs/site-lisp/org-mode/ob-sqlite hides /usr/share/emacs/29.4/lisp/org/ob-sqlite /usr/share/emacs/site-lisp/org-mode/org-capture hides /usr/share/emacs/29.4/lisp/org/org-capture /usr/share/emacs/site-lisp/org-mode/org-mobile hides /usr/share/emacs/29.4/lisp/org/org-mobile /usr/share/emacs/site-lisp/org-mode/ob-forth hides /usr/share/emacs/29.4/lisp/org/ob-forth /usr/share/emacs/site-lisp/org-mode/org-plot hides /usr/share/emacs/29.4/lisp/org/org-plot /usr/share/emacs/site-lisp/org-mode/ob-lilypond hides /usr/share/emacs/29.4/lisp/org/ob-lilypond /usr/share/emacs/site-lisp/org-mode/org-ctags hides /usr/share/emacs/29.4/lisp/org/org-ctags /usr/share/emacs/site-lisp/org-mode/ol-mhe hides /usr/share/emacs/29.4/lisp/org/ol-mhe /usr/share/emacs/site-lisp/org-mode/ol-eshell hides /usr/share/emacs/29.4/lisp/org/ol-eshell /usr/share/emacs/site-lisp/org-mode/ob-scheme hides /usr/share/emacs/29.4/lisp/org/ob-scheme /usr/share/emacs/site-lisp/org-mode/ob-ocaml hides /usr/share/emacs/29.4/lisp/org/ob-ocaml /usr/share/emacs/site-lisp/org-mode/ob-lua hides /usr/share/emacs/29.4/lisp/org/ob-lua /usr/share/emacs/site-lisp/org-mode/org-attach hides /usr/share/emacs/29.4/lisp/org/org-attach /usr/share/emacs/site-lisp/org-mode/org-footnote hides /usr/share/emacs/29.4/lisp/org/org-footnote /usr/share/emacs/site-lisp/org-mode/ob-fortran hides /usr/share/emacs/29.4/lisp/org/ob-fortran /usr/share/emacs/site-lisp/org-mode/ob-perl hides /usr/share/emacs/29.4/lisp/org/ob-perl /usr/share/emacs/site-lisp/org-mode/ob-awk hides /usr/share/emacs/29.4/lisp/org/ob-awk /usr/share/emacs/site-lisp/org-mode/oc-natbib hides /usr/share/emacs/29.4/lisp/org/oc-natbib /usr/share/emacs/site-lisp/org-mode/ob-exp hides /usr/share/emacs/29.4/lisp/org/ob-exp /usr/share/emacs/site-lisp/org-mode/ob-dot hides /usr/share/emacs/29.4/lisp/org/ob-dot /usr/share/emacs/site-lisp/org-mode/ob-eval hides /usr/share/emacs/29.4/lisp/org/ob-eval /usr/share/emacs/site-lisp/org-mode/ob-haskell hides /usr/share/emacs/29.4/lisp/org/ob-haskell /usr/share/emacs/site-lisp/org-mode/ob-gnuplot hides /usr/share/emacs/29.4/lisp/org/ob-gnuplot /usr/share/emacs/site-lisp/org-mode/ox-publish hides /usr/share/emacs/29.4/lisp/org/ox-publish /usr/share/emacs/site-lisp/org-mode/org-indent hides /usr/share/emacs/29.4/lisp/org/org-indent /usr/share/emacs/site-lisp/org-mode/org-refile hides /usr/share/emacs/29.4/lisp/org/org-refile /usr/share/emacs/site-lisp/org-mode/ox-html hides /usr/share/emacs/29.4/lisp/org/ox-html /usr/share/emacs/site-lisp/org-mode/ob-ruby hides /usr/share/emacs/29.4/lisp/org/ob-ruby /usr/share/emacs/site-lisp/org-mode/ob-makefile hides /usr/share/emacs/29.4/lisp/org/ob-makefile /usr/share/emacs/site-lisp/org-mode/ob-css hides /usr/share/emacs/29.4/lisp/org/ob-css /usr/share/emacs/site-lisp/org-mode/org-keys hides /usr/share/emacs/29.4/lisp/org/org-keys /usr/share/emacs/site-lisp/org-mode/ob-lob hides /usr/share/emacs/29.4/lisp/org/ob-lob /usr/share/emacs/site-lisp/org-mode/org-entities hides /usr/share/emacs/29.4/lisp/org/org-entities /usr/share/emacs/site-lisp/org-mode/org-agenda hides /usr/share/emacs/29.4/lisp/org/org-agenda /usr/share/emacs/site-lisp/org-mode/org-table hides /usr/share/emacs/29.4/lisp/org/org-table /usr/share/emacs/site-lisp/org-mode/org-tempo hides /usr/share/emacs/29.4/lisp/org/org-tempo /usr/share/emacs/site-lisp/org-mode/ob-C hides /usr/share/emacs/29.4/lisp/org/ob-C /usr/share/emacs/site-lisp/org-mode/ox-beamer hides /usr/share/emacs/29.4/lisp/org/ox-beamer /usr/share/emacs/site-lisp/org-mode/org-datetree hides /usr/share/emacs/29.4/lisp/org/org-datetree /usr/share/emacs/site-lisp/org-mode/ob-core hides /usr/share/emacs/29.4/lisp/org/ob-core /usr/share/emacs/site-lisp/org-mode/org-src hides /usr/share/emacs/29.4/lisp/org/org-src /usr/share/emacs/site-lisp/org-mode/ob-R hides /usr/share/emacs/29.4/lisp/org/ob-R /usr/share/emacs/site-lisp/org-mode/org-id hides /usr/share/emacs/29.4/lisp/org/org-id /usr/share/emacs/site-lisp/org-mode/org-protocol hides /usr/share/emacs/29.4/lisp/org/org-protocol /usr/share/emacs/site-lisp/org-mode/ol-bbdb hides /usr/share/emacs/29.4/lisp/org/ol-bbdb /usr/share/emacs/site-lisp/org-mode/org-clock hides /usr/share/emacs/29.4/lisp/org/org-clock /usr/share/emacs/site-lisp/org-mode/org-goto hides /usr/share/emacs/29.4/lisp/org/org-goto /usr/share/emacs/site-lisp/org-mode/oc-basic hides /usr/share/emacs/29.4/lisp/org/oc-basic /usr/share/emacs/site-lisp/org-mode/ol-doi hides /usr/share/emacs/29.4/lisp/org/ol-doi /usr/share/emacs/site-lisp/org-mode/ol-bibtex hides /usr/share/emacs/29.4/lisp/org/ol-bibtex /usr/share/emacs/site-lisp/org-mode/ox-latex hides /usr/share/emacs/29.4/lisp/org/ox-latex /usr/share/emacs/site-lisp/org-mode/ob-lisp hides /usr/share/emacs/29.4/lisp/org/ob-lisp /usr/share/emacs/site-lisp/org-mode/org-cycle hides /usr/share/emacs/29.4/lisp/org/org-cycle /usr/share/emacs/site-lisp/org-mode/ox-md hides /usr/share/emacs/29.4/lisp/org/ox-md /usr/share/emacs/site-lisp/org-mode/ob-table hides /usr/share/emacs/29.4/lisp/org/ob-table /usr/share/emacs/site-lisp/org-mode/oc-biblatex hides /usr/share/emacs/29.4/lisp/org/oc-biblatex /usr/share/emacs/site-lisp/org-mode/ob-sed hides /usr/share/emacs/29.4/lisp/org/ob-sed /usr/share/emacs/site-lisp/org-mode/ob-java hides /usr/share/emacs/29.4/lisp/org/ob-java /usr/share/emacs/site-lisp/org-mode/ox hides /usr/share/emacs/29.4/lisp/org/ox /usr/share/emacs/site-lisp/org-mode/org-inlinetask hides /usr/share/emacs/29.4/lisp/org/org-inlinetask /usr/share/emacs/site-lisp/org-mode/oc-bibtex hides /usr/share/emacs/29.4/lisp/org/oc-bibtex /usr/share/emacs/site-lisp/org-mode/org-version hides /usr/share/emacs/29.4/lisp/org/org-version /usr/share/emacs/site-lisp/org-mode/org-pcomplete hides /usr/share/emacs/29.4/lisp/org/org-pcomplete /usr/share/emacs/site-lisp/org-mode/oc hides /usr/share/emacs/29.4/lisp/org/oc /usr/share/emacs/site-lisp/org-mode/ob hides /usr/share/emacs/29.4/lisp/org/ob /usr/share/emacs/site-lisp/org-mode/org-mouse hides /usr/share/emacs/29.4/lisp/org/org-mouse /usr/share/emacs/site-lisp/org-mode/ol-docview hides /usr/share/emacs/29.4/lisp/org/ol-docview /usr/share/emacs/site-lisp/org-mode/org-attach-git hides /usr/share/emacs/29.4/lisp/org/org-attach-git /usr/share/emacs/site-lisp/org-mode/org-archive hides /usr/share/emacs/29.4/lisp/org/org-archive /usr/share/emacs/site-lisp/org-mode/ox-koma-letter hides /usr/share/emacs/29.4/lisp/org/ox-koma-letter /usr/share/emacs/site-lisp/org-mode/ol-irc hides /usr/share/emacs/29.4/lisp/org/ol-irc /usr/share/emacs/site-lisp/org-mode/org-compat hides /usr/share/emacs/29.4/lisp/org/org-compat /usr/share/emacs/site-lisp/org-mode/ob-ref hides /usr/share/emacs/29.4/lisp/org/ob-ref Features: (shadow sort mail-extr emacsbug message yank-media rfc822 mml mml-sec epa derived epg rfc6068 epg-config mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums two-column cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine repeat wdired novice rect tabify cl-print misearch multi-isearch mule-util conf-mode dired-aux sql view autorevert vc-git vc-dispatcher company-oddmuse company-keywords company-etags company-gtags company-dabbrev-code company-dabbrev company-files company-clang company-template company-cmake company-bbdb yasnippet highlight-indentation flymake-proc flymake company-capf company mh-e mh-buffers mh-loaddefs ox-pandoc warnings ht ox-org ox-odt rng-loc rng-uri rng-parse rng-match rng-dt rng-util rng-pttrn nxml-parse nxml-ns nxml-enc xmltok nxml-util ox-latex ox-icalendar ox-html table ox-ascii ox-publish ox org-attach ledger-mode ledger-check ledger-texi ledger-test ledger-sort ledger-report ledger-reconcile ledger-occur ledger-fonts ledger-fontify ledger-state ledger-complete ledger-schedule ledger-init ledger-xact ledger-post ledger-exec ledger-navigate ledger-context ledger-commodities ledger-regex helpful cc-langs cc-vars cc-defs imenu trace info-look f help-fns radix-tree elisp-refs dash elpy advice elpy-rpc pyvenv eshell esh-cmd esh-ext esh-opt esh-proc esh-io esh-arg esh-module esh-groups esh-util elpy-shell elpy-profile elpy-django s elpy-refactor diff-mode ido hideshow files-x etags fileloop xref cus-edit cus-load windmove time term disp-table shell ehelp t-mouse python project compat compat-30 pcase grep compile org-tempo org-agenda org-element org-persist org-id org-element-ast inline avl-tree generator org-refile org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-pcomplete pcomplete org-list org-footnote org-faces org-entities noutline outline icons ob-emacs-lisp org-table ol org-loaddefs cal-menu calendar cal-loaddefs tempo org-src sh-script rx smie treesit executable org-keys oc ob-comint comint ansi-osc ansi-color ring ob-core org-cycle org-fold org-fold-core org-compat ob-eval org-version org-macs format-spec edmacro kmacro eww xdg url-queue thingatpt shr pixel-fill kinsoku url-file svg xml dom browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie generate-lisp-file url-domsuf url-util url-parse auth-source eieio eieio-core password-cache json map byte-opt url-vars mailcap puny mm-url gnus nnheader gnus-util time-date subr-x mail-utils range wid-edit mm-util mail-prsvr mule-cmds quail info face-remap generic edebug debug backtrace find-func doc-view filenotify jka-compr image-mode exif dired dired-loaddefs desktop frameset dabbrev bookmark text-property-search pp autoinsert cl-macs gv cl-extra help-mode cl-seq use-package use-package-ensure use-package-delight use-package-diminish diminish use-package-bind-key bind-key easy-mmode use-package-core cl-loaddefs cl-lib bytecomp byte-compile site-gentoo 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 inotify dynamic-setting font-render-setting move-toolbar gtk x-toolkit xinput2 x multi-tty make-network-process emacs) Memory information: ((conses 16 790036 74199) (symbols 48 47659 0) (strings 32 150178 6217) (string-bytes 1 4797419) (vectors 16 82113) (vector-slots 8 1601611 135056) (floats 8 335 1128) (intervals 56 71042 956) (buffers 976 133)) From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 22 13:41:38 2024 Received: (at 73951) by debbugs.gnu.org; 22 Oct 2024 17:41:38 +0000 Received: from localhost ([127.0.0.1]:57139 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t3It0-0006hx-6O for submit@debbugs.gnu.org; Tue, 22 Oct 2024 13:41:38 -0400 Received: from eggs.gnu.org ([209.51.188.92]:37006) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t3Isx-0006hf-7B for 73951@debbugs.gnu.org; Tue, 22 Oct 2024 13:41:37 -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 1t3IsO-0004lk-Dz; Tue, 22 Oct 2024 13:41:00 -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=MJv5Iyp6oJNqyMTc2Tzsqwt2tMLr7vi4vbmUlWPvA9A=; b=Nzzd+dCYLUOk SIooLq1U3LnGV9jee8nCTFtw0U+io2jn1V9ovniR6hug++o1Poi4xXq5ZG7PbQuOWbfrheXX+Dkj0 IONxdnSEYYVwI+xHC2JsCHep5z/RztvaJhC9KdVpsjOov8qLHPVsTzr1xYi2GPpHO6M1GCHdrIVW8 zoXlqBexwLlp6KQ4O4qn4vZh7x6JEaVp+c8zyKDQdPpkyHuhSRWTQYwU8EzO6FJbm+Czk7p3U9oXz BN3NFvWlRHLvqSr41PabiqhXew2Nr9eVlba1iJWKRUhCDOeni30E7inGEGBsnjYOCxibzljgYT+U1 JLhT9ll3jasuksSxLcWYbQ==; Date: Tue, 22 Oct 2024 20:40:57 +0300 Message-Id: <868qugf32u.fsf@gnu.org> From: Eli Zaretskii To: toomas@rosin.ee In-Reply-To: <87cyjsf63l.fsf@toomas.mail-host-address-is-not-set> Subject: Re: bug#73951: 29.4; 'what-cursor-position' reports SPC instead of TAB in term-mode References: <87cyjsf63l.fsf@toomas.mail-host-address-is-not-set> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 73951 Cc: 73951@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: toomas@rosin.ee > Date: Tue, 22 Oct 2024 19:35:42 +0300 > > > How to reproduce on my system: > > Start: emacs -Q > Type: M-x term RET > On Emacs prompt "Run program: /bin/bash", type: RET > The *terminal* buffer appears. > On Bash prompt, type: echo 'a TAB b' RET > Bash prints: "a b" (a TAB b), and displays new prompt. I cannot reproduce this because when I press TAB, I get a bell, i.e. TAB is not printed. Which is consistent with what TAB produces outside Emacs, when I type it at Bash prompt: Bash attempts to perform completion on what I typed. So I guess your recipe is missing something, or maybe your Bash init file customizes Bash in some way. If someone can reproduce this, please tell if I'm missing something here. From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 23 10:00:44 2024 Received: (at 73951) by debbugs.gnu.org; 23 Oct 2024 14:00:44 +0000 Received: from localhost ([127.0.0.1]:60305 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t3bul-0005pm-Ut for submit@debbugs.gnu.org; Wed, 23 Oct 2024 10:00:44 -0400 Received: from 92-115-235-80.sta.estpak.ee ([80.235.115.92]:44286 helo=rosin.ee) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t3bui-0005ms-1c for 73951@debbugs.gnu.org; Wed, 23 Oct 2024 10:00:41 -0400 Received: from rosin.ee (localhost [127.0.0.1]) by rosin.ee (Postfix) with ESMTP id 1B8776C8DD; Wed, 23 Oct 2024 17:00:08 +0300 (EEST) From: Toomas Rosin To: Eli Zaretskii Subject: Re: bug#73951: 29.4; 'what-cursor-position' reports SPC instead of TAB in term-mode In-reply-to: <868qugf32u.fsf@gnu.org> References: <87cyjsf63l.fsf@toomas.mail-host-address-is-not-set> <868qugf32u.fsf@gnu.org> Comments: In-reply-to Eli Zaretskii message dated "Tue, 22 Oct 2024 20:40:57 +0300." X-Mailer: MH-E 8.6+git; nmh 1.7.1; Emacs 29.4 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1892.1729692007.1@localhost> Date: Wed, 23 Oct 2024 17:00:08 +0300 Message-ID: <1893.1729692008@localhost> X-Spam-Score: 0.4 (/) X-Debbugs-Envelope-To: 73951 Cc: 73951@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: -0.6 (/) Eli Zaretskii wrote: > > Start: emacs -Q > > Type: M-x term RET > > On Emacs prompt "Run program: /bin/bash", type: RET > > The *terminal* buffer appears. > > On Bash prompt, type: echo 'a TAB b' RET Sorry, I forgot C-v: i.e., type: echo 'a C-v TAB b' RET > > Bash prints: "a b" (a TAB b), and displays new prompt. > > I cannot reproduce this because when I press TAB, I get a bell, > i.e. TAB is not printed. Which is consistent with what TAB produces > outside Emacs, when I type it at Bash prompt: Bash attempts to perform > completion on what I typed. From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 23 13:47:59 2024 Received: (at 73951) by debbugs.gnu.org; 23 Oct 2024 17:47:59 +0000 Received: from localhost ([127.0.0.1]:60704 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t3fSh-0007ib-6e for submit@debbugs.gnu.org; Wed, 23 Oct 2024 13:47:59 -0400 Received: from eggs.gnu.org ([209.51.188.92]:45674) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t3fSe-0007iL-Ps for 73951@debbugs.gnu.org; Wed, 23 Oct 2024 13:47:57 -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 1t3fS4-0001mU-Gd; Wed, 23 Oct 2024 13:47:20 -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=MaSNsd/EZD3x2A4zu9K7nVzoL2BlnERbIQPkJ9vA5/A=; b=NovU/heDi1nQ ofXBgGdTg5w5tRqnOq3Z5Y4LhxZWE+MwJskpwwVWAYcqH1d0IKfGeLmYclcTGmC2yTChFRhmeAQ0K 3eyUtxp/FneuYZrd7l93zpxJM7x6GhGXzUKWKdacuCkMDvemJL82mDPerb00C2RTrv1F7SDy2UzMx +ek5BcsZX3l854mKsgkVt2YpWgdAm7tE1NhwYSoDdvejw/+zedEpWDpBIkfHXIDySoMoVj6hAR8La I8ufRi/wwS/qUOtEfE8psv++E69ejTmKA/nUPs7CS7QdtzhRHvGIUqQvXe+XwMFJvldIfeddnPXry ICx2OhKYG+qKFfGCOqVY6w==; Date: Wed, 23 Oct 2024 20:47:17 +0300 Message-Id: <86cyjqemoq.fsf@gnu.org> From: Eli Zaretskii To: Toomas Rosin In-Reply-To: <1893.1729692008@localhost> (message from Toomas Rosin on Wed, 23 Oct 2024 17:00:08 +0300) Subject: Re: bug#73951: 29.4; 'what-cursor-position' reports SPC instead of TAB in term-mode References: <87cyjsf63l.fsf@toomas.mail-host-address-is-not-set> <868qugf32u.fsf@gnu.org> <1893.1729692008@localhost> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 73951 Cc: 73951@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: Toomas Rosin > cc: 73951@debbugs.gnu.org > Comments: In-reply-to Eli Zaretskii > message dated "Tue, 22 Oct 2024 20:40:57 +0300." > Date: Wed, 23 Oct 2024 17:00:08 +0300 > > Eli Zaretskii wrote: > > > > Start: emacs -Q > > > Type: M-x term RET > > > On Emacs prompt "Run program: /bin/bash", type: RET > > > The *terminal* buffer appears. > > > On Bash prompt, type: echo 'a TAB b' RET > > Sorry, I forgot C-v: i.e., type: echo 'a C-v TAB b' RET OK, so why is it a problem that Emacs uses SPC character to emulate a TAB? From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 03 10:50:43 2024 Received: (at 73951) by debbugs.gnu.org; 3 Nov 2024 15:50:43 +0000 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 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 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) From: Toomas Rosin To: Eli Zaretskii Subject: Re: bug#73951: 29.4; 'what-cursor-position' reports SPC instead of TAB in term-mode In-reply-to: <86cyjqemoq.fsf@gnu.org> References: <87cyjsf63l.fsf@toomas.mail-host-address-is-not-set> <868qugf32u.fsf@gnu.org> <1893.1729692008@localhost> <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 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sun, 03 Nov 2024 17:50:37 +0200 Message-ID: <14255.1730649037@localhost> X-Spam-Score: 0.4 (/) X-Debbugs-Envelope-To: 73951 Cc: 73951@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: -0.6 (/) 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. From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 03 11:39:25 2024 Received: (at 73951) by debbugs.gnu.org; 3 Nov 2024 16:39:25 +0000 Received: from localhost ([127.0.0.1]:33367 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t7ddN-00056I-3Z for submit@debbugs.gnu.org; Sun, 03 Nov 2024 11:39:25 -0500 Received: from eggs.gnu.org ([209.51.188.92]:45688) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t7ddK-000566-Sb for 73951@debbugs.gnu.org; Sun, 03 Nov 2024 11:39:23 -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 1t7ddE-0003Cq-Np; Sun, 03 Nov 2024 11:39:16 -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=W9xHDtbljIQv+uXQmSkw7flxR/yBVa9P116LL5PDvHY=; b=TDKgytQfWZjYTlJdr1j9 yDVIYJbPIO/zfmE6wCfvBKcxE1YmfKcOmZASetUyqmqkNhdd8R/+OPbciMZJRQRUJNxR3dnCKqej9 KMOyUZUTWZCIHcoKqpWYQPm+2EUe+gaXbBba8gbYyHXTrpFc7e9m4sf6/79JA9GFYiJP0QIdDa7NE RWbZyf6vBVrf2LmEQFo6Jtz8lE+qgbBAhLGdTTf9C+YD6nROtPZDJow6TmTBHdV1S/s7c+NncQ8d+ gT1zm2YtcH9KF6OEZILVqhY22j2unYuEZxoFOTHcxv5JaZHqZnUDJjlIOM0MJ/oFDM3Z1aGawCwLH jJ9ex6B5mjiL0w==; Date: Sun, 03 Nov 2024 18:39:13 +0200 Message-Id: <86h68ow9u6.fsf@gnu.org> From: Eli Zaretskii To: Toomas Rosin In-Reply-To: <14255.1730649037@localhost> (message from Toomas Rosin on Sun, 03 Nov 2024 17:50:37 +0200) Subject: Re: bug#73951: 29.4; 'what-cursor-position' reports SPC instead of TAB in term-mode References: <87cyjsf63l.fsf@toomas.mail-host-address-is-not-set> <868qugf32u.fsf@gnu.org> <1893.1729692008@localhost> <86cyjqemoq.fsf@gnu.org> <14255.1730649037@localhost> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 73951 Cc: 73951@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: Toomas Rosin > cc: 73951@debbugs.gnu.org > Comments: In-reply-to Eli Zaretskii > message dated "Wed, 23 Oct 2024 20:47:17 +0300." > Date: Sun, 03 Nov 2024 17:50:37 +0200 > > 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 definition in a shell script (where "" denotes the tab character): > > tawk () { awk -F '' -v OFS='' "$@"; } # run awk on tab delimited files > > When I yanked this definition from the script to the "*terminal*" buffer and tried to use it, I happened to get unexpected results (which, as it turned 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 definition, 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' — and indeed, it told me that there were spaces there instead of tabs! So I was confirmed in my barking up the wrong tree. Did you try setting indent-tabs-mode to a non-nil value? From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 04 14:37:31 2024 Received: (at 73951) by debbugs.gnu.org; 4 Nov 2024 19:37:31 +0000 Received: from localhost ([127.0.0.1]:41874 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t82tH-0006i6-8I for submit@debbugs.gnu.org; Mon, 04 Nov 2024 14:37:31 -0500 Received: from 92-115-235-80.sta.estpak.ee ([80.235.115.92]:49262 helo=rosin.ee) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t82tE-0006i0-P0 for 73951@debbugs.gnu.org; Mon, 04 Nov 2024 14:37:29 -0500 Received: from rosin.ee (localhost [127.0.0.1]) by rosin.ee (Postfix) with ESMTP id 59DCA789A8; Mon, 04 Nov 2024 21:37:26 +0200 (EET) From: Toomas Rosin To: Eli Zaretskii Subject: Re: bug#73951: 29.4; 'what-cursor-position' reports SPC instead of TAB in term-mode In-reply-to: <86h68ow9u6.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> Comments: In-reply-to Eli Zaretskii message dated "Sun, 03 Nov 2024 18:39:13 +0200." X-Mailer: MH-E 8.6+git; nmh 1.7.1; Emacs 29.4 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3172.1730749043.1@localhost> Content-Transfer-Encoding: quoted-printable Date: Mon, 04 Nov 2024 21:37:26 +0200 Message-ID: <3174.1730749046@localhost> X-Spam-Score: 0.4 (/) X-Debbugs-Envelope-To: 73951 Cc: 73951@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: -0.6 (/) 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-mo= de' to `t' *before* pasting the function definition, and then run "type ta= wk" in terminal buffer and move point in line mode onto the tab character,= `C-x =3D' says correctly that point is on TAB. I had `indent-tabs-mode' set to `nil' globally in my init.el; now I see th= at it is a good idea to leave `indent-tabs-mode' to `t' in terminal mode. I have no more questions. Thank you. T. From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 04 14:52:52 2024 Received: (at 73951-done) by debbugs.gnu.org; 4 Nov 2024 19:52:52 +0000 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 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 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==; Date: Mon, 04 Nov 2024 21:52:36 +0200 Message-Id: <86r07qu67v.fsf@gnu.org> From: Eli Zaretskii To: Toomas Rosin In-Reply-To: <3174.1730749046@localhost> (message from Toomas Rosin on Mon, 04 Nov 2024 21:37:26 +0200) Subject: Re: bug#73951: 29.4; 'what-cursor-position' reports SPC instead of TAB in term-mode 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> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 73951-done Cc: 73951-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: 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. From unknown Sun Jun 22 11:33:26 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 03 Dec 2024 12: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