diff options
| author | Lars Ingebrigtsen | 2021-07-18 15:24:55 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2021-07-18 15:24:55 +0200 |
| commit | c112f73668f201e8799d265e05874007fec78ca1 (patch) | |
| tree | 356470431ed37854e46cb66db69a57ce794d3af5 | |
| parent | d2f9295a1fc0416760652b5e22f913c6ca2d80e6 (diff) | |
| download | emacs-c112f73668f201e8799d265e05874007fec78ca1.tar.gz emacs-c112f73668f201e8799d265e05874007fec78ca1.zip | |
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).
| -rw-r--r-- | etc/NEWS | 3 | ||||
| -rw-r--r-- | lisp/simple.el | 4 |
2 files changed, 7 insertions, 0 deletions
| @@ -2223,6 +2223,9 @@ This command, called interactively, toggles the local value of | |||
| 2223 | ** Miscellaneous | 2223 | ** Miscellaneous |
| 2224 | 2224 | ||
| 2225 | --- | 2225 | --- |
| 2226 | *** 'indent-tabs-mode' is now a global minor mode instead of just a variable. | ||
| 2227 | |||
| 2228 | --- | ||
| 2226 | *** New user option 'save-place-abbreviate-file-names'. | 2229 | *** New user option 'save-place-abbreviate-file-names'. |
| 2227 | 2230 | ||
| 2228 | --- | 2231 | --- |
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." | |||
| 6682 | ;; It's defined in C/cus-start, this stops the d-m-m macro defining it again. | 6682 | ;; It's defined in C/cus-start, this stops the d-m-m macro defining it again. |
| 6683 | :variable (default-value 'transient-mark-mode)) | 6683 | :variable (default-value 'transient-mark-mode)) |
| 6684 | 6684 | ||
| 6685 | (define-minor-mode indent-tabs-mode | ||
| 6686 | "Toggle whether indentation can insert TAB characters." | ||
| 6687 | :global t :group 'indent :variable indent-tabs-mode) | ||
| 6688 | |||
| 6685 | (defvar widen-automatically t | 6689 | (defvar widen-automatically t |
| 6686 | "Non-nil means it is ok for commands to call `widen' when they want to. | 6690 | "Non-nil means it is ok for commands to call `widen' when they want to. |
| 6687 | Some commands will do this in order to go to positions outside | 6691 | Some commands will do this in order to go to positions outside |