From ea4b3cb0f2d507bf0bc31287418c3bf24349a480 Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Tue, 10 Apr 2018 12:01:58 +0200 Subject: Upgrade php-mode and yaml-mode --- .emacs.d/lisp/yaml-mode.el | 8 +++++--- 1 file changed, 5 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 c3416dd..9f76c38 100644 --- a/.emacs.d/lisp/yaml-mode.el +++ b/.emacs.d/lisp/yaml-mode.el @@ -438,13 +438,15 @@ otherwise do nothing." (defun yaml-fill-paragraph (&optional justify region) "Fill paragraph. -This behaves as `fill-paragraph' except that filling does not -cross boundaries of block literals." +Outside of comments, this behaves as `fill-paragraph' except that +filling does not cross boundaries of block literals. Inside comments, +this will do usual adaptive fill behaviors." (interactive "*P") (save-restriction (yaml-narrow-to-block-literal) (let ((fill-paragraph-function nil)) - (fill-paragraph justify region)))) + (or (fill-comment-paragraph justify) + (fill-paragraph justify region))))) (defun yaml-set-imenu-generic-expression () (make-local-variable 'imenu-generic-expression) -- cgit v1.3