From 3ba23d3758e06d95b14ed4e89607e258d15ddbf7 Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Wed, 12 Oct 2022 23:21:07 +0200 Subject: Add Rust mode and update lua-mode, markdown-mode and yaml-mode --- .emacs.d/lisp/yaml-mode.el | 6 +++--- 1 file changed, 3 insertions(+), 3 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 666f128..07ac224 100644 --- a/.emacs.d/lisp/yaml-mode.el +++ b/.emacs.d/lisp/yaml-mode.el @@ -306,8 +306,8 @@ artificially limited to the value of (if (eolp) (goto-char (1+ (point)))) (unless (or (eobp) (>= (point) bound)) (let ((begin (point)) - (end (min (1+ (point-at-eol)) bound))) - (goto-char (point-at-bol)) + (end (min (1+ (line-end-position)) bound))) + (goto-char (line-beginning-position)) (while (and (looking-at yaml-blank-line-re) (not (bobp))) (forward-line -1)) @@ -426,7 +426,7 @@ margin." otherwise do nothing." (interactive) (save-excursion - (goto-char (point-at-bol)) + (goto-char (line-beginning-position)) (while (and (looking-at-p yaml-blank-line-re) (not (bobp))) (forward-line -1)) (let ((nlines yaml-block-literal-search-lines) -- cgit v1.3