From: Eric Ludlam Date: Sat, 11 Apr 2015 23:18:01 +0000 (-0400) Subject: semantic: Accept FLAGS in texinfo-mode for analyzing completions X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ec4505da3f31a6e829c81e9d3a8555a9c6877c9e;p=emacs.git semantic: Accept FLAGS in texinfo-mode for analyzing completions * lisp/cedet/semantic/texi.el (semantic-analyze-possible-completions): Add support for FLAGS (currently ignored). --- 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))