From bb7d0abc12e60aa52c84e36b9fd3200d7f861f8b Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Thu, 17 Aug 2023 11:41:36 +0200 Subject: Upgrade lua-mode.el markdown-mode and yaml-mode --- .emacs.d/lisp/yaml-mode.el | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to '.emacs.d/lisp/yaml-mode.el') diff --git a/.emacs.d/lisp/yaml-mode.el b/.emacs.d/lisp/yaml-mode.el index fc46e05..d3c1da8 100644 --- a/.emacs.d/lisp/yaml-mode.el +++ b/.emacs.d/lisp/yaml-mode.el @@ -123,7 +123,7 @@ that key is pressed to begin a block literal." "Regexp matching a line containing only (valid) whitespace.") (defconst yaml-directive-re "^\\(?:--- \\)? *%\\(\\w+\\)" - "Regexp matching a line contatining a YAML directive.") + "Regexp matching a line containing a YAML directive.") (defconst yaml-document-delimiter-re "^\\(?:---\\|[.][.][.]\\)" "Rexexp matching a YAML document delimiter line.") @@ -368,11 +368,9 @@ back-dent the line by `yaml-indent-offset' spaces. On reaching column (let ((ci (current-indentation)) (need (yaml-compute-indentation))) (save-excursion - (beginning-of-line) - (delete-horizontal-space) (if (and (equal last-command this-command) (/= ci 0)) - (indent-to (* (/ (- ci 1) yaml-indent-offset) yaml-indent-offset)) - (indent-to need))) + (indent-line-to (* (/ (- ci 1) yaml-indent-offset) yaml-indent-offset)) + (indent-line-to need))) (if (< (current-column) (current-indentation)) (forward-to-indentation 0)))) -- cgit v1.3