aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2020-09-08 12:34:42 +0200
committerLars Ingebrigtsen2020-09-08 12:34:42 +0200
commit65565a16cfb16881c625f4431fd8d8f85a892ecc (patch)
tree8b7a37c306938c04462c87dcc2456f2d1da8ed89
parent2630bbbcdf4a775d826c18c3209e7adb7a726ef6 (diff)
downloademacs-65565a16cfb16881c625f4431fd8d8f85a892ecc.tar.gz
emacs-65565a16cfb16881c625f4431fd8d8f85a892ecc.zip
Revert "Explain in the tab-always-indent doc how to make TAB insert a TAB"
This reverts commit 4b2371631167e509668b6268334e324fdd2f0327. overriding-terminal-local-map should apparently not be used for minor stuff like this.
-rw-r--r--lisp/indent.el11
1 files changed, 1 insertions, 10 deletions
diff --git a/lisp/indent.el b/lisp/indent.el
index 9f32cedfa4a..0a0dd99ce08 100644
--- a/lisp/indent.el
+++ b/lisp/indent.el
@@ -53,16 +53,7 @@ If `complete', TAB first tries to indent the current line, and if the line
53was already indented, then try to complete the thing at point. 53was already indented, then try to complete the thing at point.
54 54
55Some programming language modes have their own variable to control this, 55Some programming language modes have their own variable to control this,
56e.g., `c-tab-always-indent', and do not respect this variable. 56e.g., `c-tab-always-indent', and do not respect this variable."
57
58If you want the TAB key to always insert a literal TAB character,
59this can't be controlled by setting this variable. Instead you
60could say something like:
61
62\(setq overriding-terminal-local-map
63 (let ((map (make-sparse-keymap)))
64 (define-key map [?\t] 'self-insert-command)
65 map))"
66 :group 'indent 57 :group 'indent
67 :type '(choice 58 :type '(choice
68 (const :tag "Always indent" t) 59 (const :tag "Always indent" t)