From ec4505da3f31a6e829c81e9d3a8555a9c6877c9e Mon Sep 17 00:00:00 2001 From: Eric Ludlam Date: Sat, 11 Apr 2015 19:18:01 -0400 Subject: [PATCH] semantic: Accept FLAGS in texinfo-mode for analyzing completions * lisp/cedet/semantic/texi.el (semantic-analyze-possible-completions): Add support for FLAGS (currently ignored). --- lisp/cedet/semantic/texi.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/cedet/semantic/texi.el b/lisp/cedet/semantic/texi.el index 79f879899d3..d630856543f 100644 --- a/lisp/cedet/semantic/texi.el +++ b/lisp/cedet/semantic/texi.el @@ -412,12 +412,13 @@ Optional argument POINT is where to look for the environment." "List of commands that we might bother completing.") (define-mode-local-override semantic-analyze-possible-completions - texinfo-mode (context) + texinfo-mode (context &rest flags) "List smart completions at point. Since texinfo is not a programming language the default version is not useful. Instead, look at the current symbol. If it is a command do primitive texinfo built ins. If not, use ispell to lookup words -that start with that symbol." +that start with that symbol. +Any extra FLAGS are currently ignored." (let ((prefix (car (oref context :prefix))) ) (cond ((member 'function (oref context :prefixclass)) -- 2.39.5