From: Sergey Kostyaev Date: Thu, 10 Jan 2019 19:45:30 +0000 (+0700) Subject: Fix bug introduced by commit fixing this issue X-Git-Tag: emacs-29.0.90~1616^2~524^2~4^2~338 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d0c8c6011e774c91a35d14086506b34fb070682e;p=emacs.git 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 --- 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))