From b183534b55c460954bcc4ca9c7ffad7374da285b Mon Sep 17 00:00:00 2001 From: Guillaume Papin Date: Thu, 28 Sep 2023 10:21:29 +0200 Subject: [PATCH] replace deprecated `point-at-bol` by `pos-bol` --- irony-completion.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/irony-completion.el b/irony-completion.el index f94548e2..b3163db2 100644 --- a/irony-completion.el +++ b/irony-completion.el @@ -279,17 +279,17 @@ A candidate is composed of the following elements: (format "%s\\=" (regexp-opt '("." ;object member access "->" ;pointer member access "::"))) ;scope operator - (point-at-bol) t) + (pos-bol) t) (unless ;; ignore most common uses of '.' where it's not a member access (and (eq (char-after) ?.) (or ;; include statements: #include (looking-back "^#\\s-*include\\s-+[<\"][^>\"]*" - (point-at-bol)) + (pos-bol)) ;; floating point numbers (not thorough, see: ;; http://en.cppreference.com/w/cpp/language/floating_literal) - (looking-back "[^_a-zA-Z0-9][[:digit:]]+" (point-at-bol)))) + (looking-back "[^_a-zA-Z0-9][[:digit:]]+" (pos-bol)))) ;; except the above exceptions we use a "whitelist" for the places ;; where it looks like a member access (irony-completion--skip-whitespaces-backward) @@ -306,7 +306,7 @@ A candidate is composed of the following elements: ;; or just look if the face is: font-lock-keyword-face? (save-excursion (and (re-search-backward "\\b\\([_a-zA-Z][_a-zA-Z0-9]*\\)\\=" - (point-at-bol) t) + (pos-bol) t) (not (member (match-string 0) '("class" "sizeof" "typename"))))))))))))