mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-13 15:00:42 -08:00
Fix 'kill-ring-deindent-mode'
* lisp/indent-aux.el
(kill-ring-deindent-buffer-substring-function): Fix deindenting
for modes which set 'indent-tab-mode' to nil. (Bug#77981)
(cherry picked from commit 1c7fe501fe)
This commit is contained in:
parent
3f7787c979
commit
b4b7ddb603
1 changed files with 4 additions and 0 deletions
|
|
@ -45,10 +45,14 @@ is yanked."
|
|||
end (max a b)))
|
||||
(let ((indentation (save-excursion (goto-char beg)
|
||||
(current-column)))
|
||||
(i-t-m indent-tabs-mode)
|
||||
(text (if delete
|
||||
(delete-and-extract-region beg end)
|
||||
(buffer-substring beg end))))
|
||||
(with-temp-buffer
|
||||
;; Indent/deindent the same as the major mode in the original
|
||||
;; buffer.
|
||||
(setq indent-tabs-mode i-t-m)
|
||||
(insert text)
|
||||
(indent-rigidly (point-min) (point-max)
|
||||
(- indentation))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue