aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Ludlam2015-04-11 19:18:14 -0400
committerDavid Engster2017-01-22 22:25:15 +0100
commit7308eaf0b48488d199e09bc9f1ae0433d17571d5 (patch)
tree31ba59a4a7d0548021980c9a9bef38494fd7363d
parentec4505da3f31a6e829c81e9d3a8555a9c6877c9e (diff)
downloademacs-7308eaf0b48488d199e09bc9f1ae0433d17571d5.tar.gz
emacs-7308eaf0b48488d199e09bc9f1ae0433d17571d5.zip
semantic: Accept FLAGS parameter for makefile-mode for analyzing completions
* lisp/cedet/semantic/bovine/make.el (semantic-analyze-possible-completions): Add support for FLAGS arg (currently ignored)
-rw-r--r--lisp/cedet/semantic/bovine/make.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/cedet/semantic/bovine/make.el b/lisp/cedet/semantic/bovine/make.el
index 2a224bd99be..78a0926ea33 100644
--- a/lisp/cedet/semantic/bovine/make.el
+++ b/lisp/cedet/semantic/bovine/make.el
@@ -175,9 +175,10 @@ This is the same as a regular prototype."
175 (semantic-format-tag-prototype tag parent color)) 175 (semantic-format-tag-prototype tag parent color))
176 176
177(define-mode-local-override semantic-analyze-possible-completions 177(define-mode-local-override semantic-analyze-possible-completions
178 makefile-mode (context) 178 makefile-mode (context &rest flags)
179 "Return a list of possible completions in a Makefile. 179 "Return a list of possible completions in a Makefile.
180Uses default implementation, and also gets a list of filenames." 180Uses default implementation, and also gets a list of filenames.
181Any extra FLAGS are ignored."
181 (require 'semantic/analyze/complete) 182 (require 'semantic/analyze/complete)
182 (with-current-buffer (oref context buffer) 183 (with-current-buffer (oref context buffer)
183 (let* ((normal (semantic-analyze-possible-completions-default context)) 184 (let* ((normal (semantic-analyze-possible-completions-default context))