From: Lars Ingebrigtsen Date: Sun, 18 Jul 2021 13:24:55 +0000 (+0200) Subject: Make indent-tabs-mode into a regular mode instead of just a variable X-Git-Tag: emacs-28.0.90~1825 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c112f73668f201e8799d265e05874007fec78ca1;p=emacs.git Make indent-tabs-mode into a regular mode instead of just a variable * lisp/simple.el (indent-tabs-mode): Make into a minor mode (bug#6276). --- diff --git a/etc/NEWS b/etc/NEWS index f547e2531c6..6e2d5cc9a6f 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -2222,6 +2222,9 @@ This command, called interactively, toggles the local value of ** Miscellaneous +--- +*** 'indent-tabs-mode' is now a global minor mode instead of just a variable. + --- *** New user option 'save-place-abbreviate-file-names'. diff --git a/lisp/simple.el b/lisp/simple.el index 322693f631a..6de21902210 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -6682,6 +6682,10 @@ or \"mark.*active\" at the prompt." ;; It's defined in C/cus-start, this stops the d-m-m macro defining it again. :variable (default-value 'transient-mark-mode)) +(define-minor-mode indent-tabs-mode + "Toggle whether indentation can insert TAB characters." + :global t :group 'indent :variable indent-tabs-mode) + (defvar widen-automatically t "Non-nil means it is ok for commands to call `widen' when they want to. Some commands will do this in order to go to positions outside