From a4c96147d1875d359db8d7fda3489954046a5db8 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Tue, 3 May 2022 16:02:51 +0200 Subject: [PATCH] Make TAB work in makefile mode when transient mark mode is on * lisp/progmodes/make-mode.el (makefile-mode): Insert a tab instead of removing it (bug#37087). --- lisp/progmodes/make-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/make-mode.el b/lisp/progmodes/make-mode.el index 91307f6c09f..1a1dc3aee9a 100644 --- a/lisp/progmodes/make-mode.el +++ b/lisp/progmodes/make-mode.el @@ -889,7 +889,7 @@ Makefile mode can be configured by modifying the following variables: (setq-local comment-start-skip "#+[ \t]*") ;; Make sure TAB really inserts \t. - (setq-local indent-line-function 'indent-to-left-margin) + (setq-local indent-line-function #'insert-tab) ;; Real TABs are important in makefiles (setq indent-tabs-mode t)) -- 2.39.2