unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#30035: 27.0.50; stream of messages about ‘semantic-flex’
@ 2018-01-08 23:04 Sam Steingold
  2018-01-09 18:39 ` Glenn Morris
  2020-10-27  1:18 ` Stefan Kangas
  0 siblings, 2 replies; 6+ messages in thread
From: Sam Steingold @ 2018-01-08 23:04 UTC (permalink / raw)
  To: 30035

In GNU Emacs 27.0.50 (build 1, x86_64-apple-darwin17.3.0, NS appkit-1561.20 Version 10.13.2 (Build 17C88))
 of 2018-01-08 built on Clr-Sam.local
Repository revision: a0365437c9ee308ad7978e436631020f513b25e7
Windowing system distributor 'Apple', version 10.3.1561
System Description:  Mac OS X 10.13.2

I keep getting messages about semantic-flex being obsolete.
lispbibl.d is in C-mode as came with Emacs.
1. it should not be constantly re-parsed (it has been buries for many days)
2. stock emacs package (cc-mode) should not use obsolete functionality.

Recent messages:
Parsing lispbibl.d (LL)...1%
Parsing lispbibl.d (LL)...
‘semantic-flex’ is an obsolete function.  Use ‘define-lex’ to create lexers. [132 times]
Parsing lispbibl.d (LL)...
‘semantic-flex’ is an obsolete function.  Use ‘define-lex’ to create lexers. [211 times]
Quit
funcall-interactively: No recursive edit is in progress
Parsing lispbibl.d (LL)...
‘semantic-flex’ is an obsolete function.  Use ‘define-lex’ to create lexers. [596 times]
Parsing lispbibl.d (LL)...4%

Configured using:
 'configure --with-mailutils --with-ns
 PKG_CONFIG_PATH=/usr/local/opt/libxml2/lib/pkgconfig:/usr/local/opt/imagemagick/lib/pkgconfig/
 --without-makeinfo'

Configured features:
NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS JSON

Important settings:
  value of $LC_ALL: en_US.UTF-8
  value of $LANG: C
  locale-coding-system: utf-8-unix

Major mode: Messages

Minor modes in effect:
  shell-dirtrack-mode: t
  diff-auto-refine-mode: t
  pyvenv-mode: t
  global-edit-server-edit-mode: t
  global-semanticdb-minor-mode: t
  global-semantic-idle-scheduler-mode: t
  which-function-mode: t
  url-handler-mode: t
  semantic-mode: t
  show-paren-mode: t
  desktop-save-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  buffer-read-only: t
  column-number-mode: t
  line-number-mode: t

Load-path shadows:
None found.

Features:
(shadow emacsbug dired-aux inf-lisp tramp-cmds sh-script smie executable
find-dired log-view d-mode smtpmail bbdb-message mailalias sendmail
cookie1 nnir sort gnus-cite smiley shr svg browse-url mm-archive
gnus-async gnus-bcklg gnus-dup qp mail-extr gnus-ml hl-line disp-table
spam spam-stat gnus-uu yenc nndraft nnmh gnus-agent gnus-srvr gnus-score
score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015 mm-view mml-smime
smime dig utf-7 gnus-cache gnus-sum bbdb-gnus network-stream starttls
nntp gnus-group gnus-undo tramp-cache gnus-start gnus-cloud nnimap
nnmail mail-source utf7 netrc nnoo gnus-spec gnus-int gnus-range
gnus-win pcmpl-unix pcmpl-gnu semantic/bovine/c hideif
semantic/bovine/c-by semantic/lex-spp semantic/bovine/gcc
semantic/bovine semantic/analyze/refs semantic/analyze semantic/scope
semantic/analyze/fcn cl-print debug markdown-mode color noutline outline
log-edit message rfc822 mml mml-sec epa epg epg-config mm-decode
mm-bodies mm-encode gmm-utils mailheader pcvs-util dabbrev
semantic/tag-write skeleton company-capf company-semantic ein-multilang
ein-multilang-fontify org-src ob-comint ob-keys ob-core ob-eval
org-compat org-macs ein-company url-http tls gnutls url-auth mail-parse
rfc2231 url-gw nsm rmc puny ein-notebooklist ein-file ein-notebook
eieio-opt semantic/sb speedbar sb-image dframe ein-inspector
ein-traceback ein-pytools ein-pager ein-completer ein-subpackages
ein-notification ein-scratchsheet ein-worksheet ein-kill-ring
ein-cell-output ein-cell-edit ein-cell ein-skewer skewer-mode
cache-table js2-mode js sgml-mode dom simple-httpd pp ein-output-area
xml ein-kernelinfo ein-kernel ein-ipdb ein-events eieio-compat
ein-websocket websocket bindat ein-contents-api ein-query
request-deferred deferred request url url-proxy url-privacy url-expand
url-methods url-history url-cookie url-domsuf url-util mailcap ein-node
ein-log ein-classes ein-core ein-utils dash cc-mode cc-fonts cc-guess
cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs ein
misearch multi-isearch semantic/edit vc-bzr vc-src vc-sccs vc-svn vc-cvs
vc-rcs add-log semantic/tag-file remember semantic/imenu semantic/sort
semantic/db-file data-debug cedet-files semantic/wisent/python
semantic/decorate/include semantic/db-find semantic/db-ref
semantic/decorate/mode semantic/decorate pulse semantic/dep
semantic/wisent/python-wy semantic/wisent semantic/wisent/wisent rx
company-oddmuse company-keywords company-etags company-gtags
company-dabbrev-code company-dabbrev company-files company-cmake
company-xcode company-clang company-eclim company-template company-css
company-nxml company-bbdb cl-extra yasnippet flymake-proc flymake
company pcase help-fns radix-tree help-mode elpy find-file-in-project
ivy delsel ivy-overlay ffap thingatpt windmove elpy-shell elpy-profile
elpy-django s elpy-refactor derived edmacro kmacro subr-x ido grep
compile files-x etags xref project cus-edit python tramp-sh tramp
tramp-compat tramp-loaddefs trampver shell pcomplete parse-time
format-spec comint ring ansi-color vc-dir ewoc vc vc-git diff-mode
easy-mmode dired dired-loaddefs vc-dispatcher vc-hg flyspell ispell
elec-pair warnings midnight ein-loaddefs pyvenv gnus nnheader gnus-util
rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums mail-utils mm-util
mail-prsvr wid-edit bbdb-mua bbdb-com crm mailabbrev bbdb-loaddefs bbdb
bbdb-site timezone edit-server advice server finder-inf info package
semantic/db-mode semantic/db eieio-base semantic/idle semantic/format
ezimage semantic/tag-ls semantic/find semantic/ctxt which-func imenu
url-handlers url-parse auth-source cl-seq password-cache json map seq
url-vars semantic/util-modes easymenu semantic/util semantic
semantic/tag semantic/lex semantic/fw eieio byte-opt bytecomp
byte-compile cconv eieio-core cl-macs eieio-loaddefs mode-local
find-func cedet paren help-at-pt desktop frameset cus-start cus-load cl
gv cl-loaddefs cl-lib time-date tooltip eldoc electric uniquify
ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win
ucs-normalize mule-util term/common-win tool-bar dnd fontset image
regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode
lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer
select scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932
hebrew greek romanian slovak czech european ethiopic indian cyrillic
chinese composite charscript charprop case-table epa-hook jka-cmpr-hook
help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs
button faces cus-face macroexp files text-properties overlay sha1 md5
base64 format env code-pages mule custom widget hashtable-print-readable
backquote kqueue cocoa ns multi-tty make-network-process emacs)

Memory information:
((conses 16 5914682 288585)
 (symbols 48 62469 125)
 (miscs 40 18679 1273)
 (strings 32 667093 97708)
 (string-bytes 1 29742474)
 (vectors 16 123738)
 (vector-slots 8 2730014 256318)
 (floats 8 570 1212)
 (intervals 56 88635 2237)
 (buffers 992 108))

-- 
Sam Steingold (http://sds.podval.org/) on darwin Ns 10.3.1561
http://steingoldpsychology.com http://www.childpsy.net
https://jihadwatch.org http://islamexposedonline.com
Volume(Pizza of radius Z and thickness A) = PI * Z * Z * A





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#30035: 27.0.50; stream of messages about ‘semantic-flex’
  2018-01-08 23:04 bug#30035: 27.0.50; stream of messages about ‘semantic-flex’ Sam Steingold
@ 2018-01-09 18:39 ` Glenn Morris
  2018-01-09 18:57   ` Glenn Morris
  2018-01-09 19:11   ` Sam Steingold
  2020-10-27  1:18 ` Stefan Kangas
  1 sibling, 2 replies; 6+ messages in thread
From: Glenn Morris @ 2018-01-09 18:39 UTC (permalink / raw)
  To: sds; +Cc: 30035


Please give a minimal complete example starting from emacs -Q, thanks.





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#30035: 27.0.50; stream of messages about ‘semantic-flex’
  2018-01-09 18:39 ` Glenn Morris
@ 2018-01-09 18:57   ` Glenn Morris
  2018-01-09 19:15     ` Sam Steingold
  2018-01-09 19:11   ` Sam Steingold
  1 sibling, 1 reply; 6+ messages in thread
From: Glenn Morris @ 2018-01-09 18:57 UTC (permalink / raw)
  To: sds; +Cc: 30035


Anyway, I guess the following works around it. AFAICS, this code is
unchanged since Cedet was added to Emacs.

commit 34b41e3 (HEAD, origin/emacs-26, emacs-26)
Date:   Tue Jan 9 13:54:11 2018 -0500

    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 9a35dd8..3a8b0c7 100644
--- a/lisp/cedet/semantic/lex.el
+++ b/lisp/cedet/semantic/lex.el
@@ -471,6 +471,7 @@ semantic-lex-types
 ;;; 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 @@ semantic-flex
 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)





^ permalink raw reply related	[flat|nested] 6+ messages in thread

* bug#30035: 27.0.50; stream of messages about ‘semantic-flex’
  2018-01-09 18:39 ` Glenn Morris
  2018-01-09 18:57   ` Glenn Morris
@ 2018-01-09 19:11   ` Sam Steingold
  1 sibling, 0 replies; 6+ messages in thread
From: Sam Steingold @ 2018-01-09 19:11 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 30035

> * Glenn Morris <etz@tah.bet> [2018-01-09 13:39:44 -0500]:
>
> Please give a minimal complete example starting from emacs -Q, thanks.

--8<---------------cut here---------------start------------->8---
wget https://sourceforge.net/p/clisp/clisp/ci/tip/tree/src/lispbibl.d?format=raw
emacs -Q lispbibl.d
M-x c-mode
M-x customize-set-variable RET semantic-mode RET t RET
--8<---------------cut here---------------end--------------->8---

Now you need to somehow trigger reparsing.
So far I see no reliable way.
Go to the end of buffer.
Enter stuff.
Enable some C-mode features like hungry delete &c.
Enter more stuff.
Switch to *scratch* and wait.
Eventually it starts repasing like crazy and I cannot even exit normally
(i.e., C-g C-g C-g C-x C-c gets me nowhere).

-- 
Sam Steingold (http://sds.podval.org/) on darwin Ns 10.3.1561
http://steingoldpsychology.com http://www.childpsy.net http://think-israel.org
https://ffii.org http://americancensorship.org http://no2bds.org http://jij.org
Microsoft wants to monopolize the right to be a monopoly.





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#30035: 27.0.50; stream of messages about ‘semantic-flex’
  2018-01-09 18:57   ` Glenn Morris
@ 2018-01-09 19:15     ` Sam Steingold
  0 siblings, 0 replies; 6+ messages in thread
From: Sam Steingold @ 2018-01-09 19:15 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 30035

> * Glenn Morris <etz@tah.bet> [2018-01-09 13:57:27 -0500]:
>
> Anyway, I guess the following works around it.

the messages are only a symptom.
the re-scans are killing editing.

thanks.

-- 
Sam Steingold (http://sds.podval.org/) on darwin Ns 10.3.1561
http://steingoldpsychology.com http://www.childpsy.net http://www.dhimmitude.org
http://camera.org http://www.memritv.org http://jij.org http://think-israel.org
main(a){a="main(a){a=%c%s%c;printf(a,34,a,34);}";printf(a,34,a,34);}





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#30035: 27.0.50; stream of messages about ‘semantic-flex’
  2018-01-08 23:04 bug#30035: 27.0.50; stream of messages about ‘semantic-flex’ Sam Steingold
  2018-01-09 18:39 ` Glenn Morris
@ 2020-10-27  1:18 ` Stefan Kangas
  1 sibling, 0 replies; 6+ messages in thread
From: Stefan Kangas @ 2020-10-27  1:18 UTC (permalink / raw)
  To: Sam Steingold; +Cc: 30035

close 30035 28.1
thanks

Sam Steingold <sds@gnu.org> writes:

> In GNU Emacs 27.0.50 (build 1, x86_64-apple-darwin17.3.0, NS appkit-1561.20 Version 10.13.2 (Build 17C88))
>  of 2018-01-08 built on Clr-Sam.local
> Repository revision: a0365437c9ee308ad7978e436631020f513b25e7
> Windowing system distributor 'Apple', version 10.3.1561
> System Description:  Mac OS X 10.13.2
>
> I keep getting messages about semantic-flex being obsolete.
> lispbibl.d is in C-mode as came with Emacs.
> 1. it should not be constantly re-parsed (it has been buries for many days)
> 2. stock emacs package (cc-mode) should not use obsolete functionality.
>
> Recent messages:
> Parsing lispbibl.d (LL)...1%
> Parsing lispbibl.d (LL)...
> ‘semantic-flex’ is an obsolete function.  Use ‘define-lex’ to create lexers. [132 times]
> Parsing lispbibl.d (LL)...
> ‘semantic-flex’ is an obsolete function.  Use ‘define-lex’ to create lexers. [211 times]
> Quit
> funcall-interactively: No recursive edit is in progress
> Parsing lispbibl.d (LL)...
> ‘semantic-flex’ is an obsolete function.  Use ‘define-lex’ to create lexers. [596 times]
> Parsing lispbibl.d (LL)...4%

semantic-flex has been removed on master, so this issue has solved
itself.  I'm therefore closing this bug report.





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-10-27  1:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-08 23:04 bug#30035: 27.0.50; stream of messages about ‘semantic-flex’ Sam Steingold
2018-01-09 18:39 ` Glenn Morris
2018-01-09 18:57   ` Glenn Morris
2018-01-09 19:15     ` Sam Steingold
2018-01-09 19:11   ` Sam Steingold
2020-10-27  1:18 ` Stefan Kangas

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).