From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 2FxCKYC1fmEOzQAAgWs5BA (envelope-from ) for ; Sun, 31 Oct 2021 16:25:52 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id IPABJYC1fmFUSAAA1q6Kng (envelope-from ) for ; Sun, 31 Oct 2021 15:25:52 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A4836C925 for ; Sun, 31 Oct 2021 16:25:51 +0100 (CET) Received: from localhost ([::1]:37430 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mhCiU-0006rP-Ib for larch@yhetil.org; Sun, 31 Oct 2021 11:25:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45290) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mhCi4-0006rA-Sn for Emacs-orgmode@gnu.org; Sun, 31 Oct 2021 11:25:24 -0400 Received: from mout01.posteo.de ([185.67.36.65]:36331) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mhCi2-0005Ip-Ag for Emacs-orgmode@gnu.org; Sun, 31 Oct 2021 11:25:24 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 7FB3C240027 for ; Sun, 31 Oct 2021 16:25:17 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.jp; s=2017; t=1635693917; bh=fqZg93TE8E+PJ7Yz2gZt+PQYzZWsCFp6ijD0f1gUOvk=; h=Date:From:To:Subject:From; b=DU1wARqKs53wN/joltua2nAEohME84DI1FMPA/eEpJn9L3fVBxY6XAK6wS/iwh5cF HB6ar0+Nh/zDSsu3KH5hmFSkYM8RKakhtJMmWK/7jrQNfFD3dP1G25butb+LzX0rC6 eUiNgH+wNmharig34LaJuD49sLf3h6n/3EDpSma//fDVEZgTeZT9OwkOMReHu4Mr9F jckQPF2SCsdyzzgCpxuSGI9MscQdFzqEv3ly5NhvMZTKgPcZd0vw1SU882uSGnXJbB 9EfPgz0u8NCenrLd0LqfvswdYRZhKNYBHVm6b2Wd0aLnp51lhxTSWGddrPVEVRSFKz D4SRelhAODKGA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Hj0ND4SLkz9rxG for ; Sun, 31 Oct 2021 16:25:16 +0100 (CET) Date: Sun, 31 Oct 2021 15:25:12 +0000 From: To: Emacs-orgmode@gnu.org Subject: SHIFT-TAB not working in Windows-SSH-shell or Debian-tty (sometimes "M-[ ~ is undefined") MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: <4Hj0ND6KM3z9rxQ@submission02.posteo.de> Received-SPF: pass client-ip=185.67.36.65; envelope-from=c.buhtz@posteo.jp; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1635693952; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=Y30IlrrGzL5LuHwaNATDkQ0CA3DILfV2PMAZR2NNv8U=; b=MnuVBKyxLJFJuB4nZAH1xX74vQgyOWmGAVxf0jzOBdwERUiJaUCxlsrc31V26kBoGVpxsN A5fej0keQsFDcMX1JAvyywZZbMOfD48doKRP/3k9ya6LlClV3ozKuBBY7a2ir/VP0fvoKk 9OuHNySE1q4J6u1FWBZtfjLaSBr8S7RIAfoqUWcYE+uF+w0R0S3aROehUlXgL9pbvwUskf eSNeYeEa36+XEeAjWPUNR+9DNbCbj7oEkWAGXTA/Hnlb5t2AJcLIeVgzfOzqpDo5Hao5zV kv7PV3rt1hi0jW2CY3OqVtDtvD/RtAY2JoTBtwbfi2btWRa9kF9TxJnKWMYDTA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1635693952; a=rsa-sha256; cv=none; b=ZiZI3mPvH0a2l4Ot8D9SdJqXL0dCNjvaVFMH05ttgb744Pq8qC3eQvz74H1i0UXyL76D2Z bmRR+eZxb31psm9ag65jXmT2G1QaKSQ+whUw32iOi+2hpjJ6WEKLg5Vs1lhrFo9lgTvS5V ZyI8iQNUAIBCSu8P3MysS8dESy2MjVkBTNer1g+o3cD4+DKDHIU33bgpifF1RRq/70hzzL kJqEyXoGABzCEtONqtasuG7VInZt5Qblc1ulAVQw4NEasSGd0QmytxcJXpyE629pJyWFMX o8prQ9+CBwafdhh03jeb2aaO3Hrr/Amb3Ew26jDIZHL292yY0387qokhF6MCdA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.jp header.s=2017 header.b=DU1wARqK; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -1.62 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.jp header.s=2017 header.b=DU1wARqK; dmarc=pass (policy=none) header.from=posteo.jp; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: A4836C925 X-Spam-Score: -1.62 X-Migadu-Scanner: scn0.migadu.com X-TUID: T4hF13rfdsjD X-Post: https://github.com/daviwil/emacs-from-scratch/issues/67 Hello together. # Introduction I am quite new to emacs and building my init.el based the "Emacs from Scratch" (by System Crafter) videos. In org-mode I experience some wired behavior of the SHIFT-TAB key when (un)folding headings in an .org file. # Problem In some cases SHIFT-TAB creates a M-[ ~ is undefined message or simply does not work without an error message. # System Debian 11 GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.16.0) of 2021-03-28, modified by Debian Copyright (C) 2020 Free Software Foundation, Inc. # Minimal init.el This can be used for reproduction. ;; === Package setup === (require 'package) (setq package-archives '(("melpa" . "https://melpa.org/packages/") ("org" . "https://orgmode.org/elpa/") ("elpa" . "https://elpa.gnu.org/packages/"))) (package-initialize) ;; === use-package == ;; use-package to simplify the config file (unless (package-installed-p 'use-package) (package-refresh-contents) (package-install 'use-package)) (require 'use-package) (setq use-package-always-ensure 't) (use-package org) # Description of the behavior in multiple cases ## Windows SSH-terminal Form a Windows 10 client and its usual command prompt (not PowerShell, not Terminal.app) I log into my machine via SSH and (of course) use emacs in none-gui mode then. TAB works. But SHIFT-TAB produce the M-[ ~ is undefined error. ## A tty terminal (Debian 11) Here TAB works. But S-TAB does not. The latter does not produce any error message. There is simply no reaction on that button. ## Cases in where it is NOT reproducable - Gui mode in XFCE session on Debian 11 - Terminal emulator (terminator) in a XFCE session on Debian 11 - SSH terminal from Debian 11 ## Sidenotes There is a stackoverflow QA for this: https://stackoverflow.com/q/3518846 The solution there does not work for me (Emacs from Debian 11). This problem is totally out of my scope of understanding. Thanks in advance