From 0f1c461a5c6233eae750991d3bf4b79c2128fd70 Mon Sep 17 00:00:00 2001 From: duianto Date: Wed, 17 Oct 2018 22:53:14 +0200 Subject: [PATCH] Fix missing newline warning problem: `'face 'minibuffer-prompt` and `new-name` are shown with an orange color, and `describe-char` shows that they have the face: `font-lock-warning-face` solution: adding a newline before them removes the orange warning color --- layers/+spacemacs/spacemacs-defaults/funcs.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/layers/+spacemacs/spacemacs-defaults/funcs.el b/layers/+spacemacs/spacemacs-defaults/funcs.el index be56037e7..16cde4a82 100644 --- a/layers/+spacemacs/spacemacs-defaults/funcs.el +++ b/layers/+spacemacs/spacemacs-defaults/funcs.el @@ -344,7 +344,8 @@ initialized with the current filename." (format (concat "Buffer '%s' is not visiting a file: " "[s]ave to file or [r]ename buffer?") - name) 'face 'minibuffer-prompt))) + name) + 'face 'minibuffer-prompt))) (cond ((eq key ?s) ; save to file ;; this allows for saving a new empty (unmodified) buffer (unless (buffer-modified-p) (set-buffer-modified-p t)) @@ -355,7 +356,8 @@ initialized with the current filename." ;; ask to rename again, if the new buffer name exists (if (yes-or-no-p (format (concat "A buffer named '%s' already exists: " - "Rename again?") new-name)) + "Rename again?") + new-name)) (setq new-name (read-string "New buffer name: ")) (keyboard-quit))) (rename-buffer new-name)