From d0c8c6011e774c91a35d14086506b34fb070682e Mon Sep 17 00:00:00 2001 From: Sergey Kostyaev Date: Fri, 11 Jan 2019 02:45:30 +0700 Subject: [PATCH] Fix bug introduced by commit fixing this issue * eglot.el (eglot--sig-info): Protect against invalid label. GitHub-reference: per https://github.com/joaotavora/eglot/issues/121 --- lisp/progmodes/eglot.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 18067f61b56..d251bcb7c09 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -2005,9 +2005,10 @@ is not active." params-end t) (list (match-beginning 0) (match-end 0)))) (mapcar #'1+ (append label nil))))) - (add-face-text-property - beg end - 'eldoc-highlight-function-argument))) + (if (and beg end) + (add-face-text-property + beg end + 'eldoc-highlight-function-argument)))) ;; ...and/or maybe add its doc on a line by its own. (when documentation (goto-char (point-max)) -- 2.39.2