emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* SHIFT-TAB not working in Windows-SSH-shell or Debian-tty (sometimes "M-[ ~ is undefined")
@ 2021-10-31 15:25 c.buhtz
  2021-10-31 21:16 ` Tim Cross
  0 siblings, 1 reply; 2+ messages in thread
From: c.buhtz @ 2021-10-31 15:25 UTC (permalink / raw)
  To: Emacs-orgmode

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-10-31 22:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-31 15:25 SHIFT-TAB not working in Windows-SSH-shell or Debian-tty (sometimes "M-[ ~ is undefined") c.buhtz
2021-10-31 21:16 ` Tim Cross

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).