From: Glenn Morris Date: Tue, 9 Jan 2018 18:54:11 +0000 (-0500) Subject: Quieten semantic normal usage X-Git-Tag: emacs-26.0.91~26 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=34b41e3bc63db635612233a887a30ef11651c1c1;p=emacs.git Quieten semantic normal usage * lisp/cedet/semantic/lex.el (semantic-flex): Mark obsolete at compile time in the normal way, not at run-time. (Bug#30035) --- diff --git a/lisp/cedet/semantic/lex.el b/lisp/cedet/semantic/lex.el index 9a35dd82f06..3a8b0c78002 100644 --- a/lisp/cedet/semantic/lex.el +++ b/lisp/cedet/semantic/lex.el @@ -471,6 +471,7 @@ PROPERTY set." ;;; Lexical Analyzer framework settings ;; +;; FIXME change to non-obsolete default. (defvar semantic-lex-analyzer 'semantic-flex "The lexical analyzer used for a given buffer. See `semantic-lex' for documentation. @@ -1857,7 +1858,7 @@ end of the return token will be larger than END. To truly restrict scanning, use `narrow-to-region'. The last argument, LENGTH specifies that `semantic-flex' should only return LENGTH tokens." - (message "`semantic-flex' is an obsolete function. Use `define-lex' to create lexers.") + (declare (obsolete define-lex "23.2")) (if (not semantic-flex-keywords-obarray) (setq semantic-flex-keywords-obarray [ nil ])) (let ((ts nil)