* bug#12045: 24.1.50; semantic :: Debugger entered--Lisp error: (wrong-type-argument syntax-table-p nil) @ 2012-07-25 14:58 Jambunathan K 2012-07-25 21:13 ` David Engster 0 siblings, 1 reply; 12+ messages in thread From: Jambunathan K @ 2012-07-25 14:58 UTC (permalink / raw) To: 12045 I am exploring semantic for the first time. 1. runemacs.exe -Q 2. Visit your favorite library. M-x find-library RET org-odt.el RET 3. M-x semantic-mode RET 4. C-c , j (With cursor on "some" symbol) 5. Note the following error. Either some interesting thing should happen or a useful message should be echoed. Debugger entered--Lisp error: (wrong-type-argument syntax-table-p nil) set-syntax-table(nil) semantic-ctxt-current-symbol-default(nil) semantic-ctxt-current-symbol() semantic-ctxt-current-thing() semantic-complete-default-to-tag(nil) semantic-complete-read-tag-engine([object semantic-collector-buffer-deep "Jump to symbol: " #<buffer org-odt.el> nil unbound unbound unbound unbound unbound] [object semantic-displayor-traditional-with-focus-highlight "simple" nil unbound unbound] "Jump to symbol: " nil nil nil) semantic-complete-read-tag-buffer-deep("Jump to symbol: ") semantic-complete-jump-local() call-interactively(semantic-complete-jump-local nil nil) In GNU Emacs 24.1.50.1 (i386-mingw-nt5.1.2600) of 2012-07-23 on MARVIN Bzr revision: 109189 vincentb1@users.sourceforge.net-20120722211412-mnq2ih82me0bpuhx Windowing system distributor `Microsoft Corp.', version 5.1.2600 Configured using: `configure --with-gcc (4.6) --no-opt --enable-checking --cflags -ID:/devel/emacs/libs/libXpm-3.5.8/include -ID:/devel/emacs/libs/libXpm-3.5.8/src -ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include -ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include -ID:/devel/emacs/libs/giflib-4.1.4-1/include -ID:/devel/emacs/libs/jpeg-6b-4/include -ID:/devel/emacs/libs/tiff-3.8.2-1/include -ID:/devel/emacs/libs/gnutls-3.0.9/include -ID:/devel/emacs/libs/libiconv-1.13.1-1-dev/include -ID:/devel/emacs/libs/libxml2-2.7.8/include/libxml2' Important settings: value of $EMACSDATA: C:/Program Files/emacs-24.1.50/etc value of $EMACSDOC: C:/Program Files/emacs-24.1.50/etc value of $EMACSLOADPATH: C:/Program Files/emacs-24.1.50/site-lisp;C:/Program Files/emacs-24.1.50/../site-lisp;C:/Program Files/emacs-24.1.50/lisp;C:/Program Files/emacs-24.1.50/leim value of $EMACSPATH: C:/Program Files/emacs-24.1.50/bin value of $LANG: ENG locale-coding-system: cp1252 default enable-multibyte-characters: t ^ permalink raw reply [flat|nested] 12+ messages in thread
* bug#12045: 24.1.50; semantic :: Debugger entered--Lisp error: (wrong-type-argument syntax-table-p nil) 2012-07-25 14:58 bug#12045: 24.1.50; semantic :: Debugger entered--Lisp error: (wrong-type-argument syntax-table-p nil) Jambunathan K @ 2012-07-25 21:13 ` David Engster 2012-07-27 20:25 ` Jambunathan K 2012-08-07 8:08 ` Jambunathan K 0 siblings, 2 replies; 12+ messages in thread From: David Engster @ 2012-07-25 21:13 UTC (permalink / raw) To: Jambunathan K; +Cc: 12045 Jambunathan K. writes: > I am exploring semantic for the first time. > > 1. runemacs.exe -Q > 2. Visit your favorite library. M-x find-library RET org-odt.el RET > 3. M-x semantic-mode RET > 4. C-c , j (With cursor on "some" symbol) > 5. Note the following error. Either some interesting thing should > happen or a useful message should be echoed. > > Debugger entered--Lisp error: (wrong-type-argument syntax-table-p nil) I'm pretty sure I've fixed this bug some time ago in the upstream CEDET version from bzr, so it should get fixed in Emacs proper when we do the next merge for Emacs 24.2. If you'd like to test the upstream version, read here http://cedet.sourceforge.net/bzr-repo.shtml on how to get it. -David ^ permalink raw reply [flat|nested] 12+ messages in thread
* bug#12045: 24.1.50; semantic :: Debugger entered--Lisp error: (wrong-type-argument syntax-table-p nil) 2012-07-25 21:13 ` David Engster @ 2012-07-27 20:25 ` Jambunathan K 2012-07-27 20:47 ` Achim Gratz 2012-07-28 7:03 ` Eli Zaretskii 2012-08-07 8:08 ` Jambunathan K 1 sibling, 2 replies; 12+ messages in thread From: Jambunathan K @ 2012-07-27 20:25 UTC (permalink / raw) To: David Engster; +Cc: 12045 David Engster <deng@randomsample.de> writes: > Jambunathan K. writes: >> I am exploring semantic for the first time. >> >> 1. runemacs.exe -Q >> 2. Visit your favorite library. M-x find-library RET org-odt.el RET >> 3. M-x semantic-mode RET >> 4. C-c , j (With cursor on "some" symbol) >> 5. Note the following error. Either some interesting thing should >> happen or a useful message should be echoed. >> >> Debugger entered--Lisp error: (wrong-type-argument syntax-table-p nil) > > I'm pretty sure I've fixed this bug some time ago in the upstream CEDET > version from bzr, so it should get fixed in Emacs proper when we do the > next merge for Emacs 24.2. If you'd like to test the upstream version, > read here > > http://cedet.sourceforge.net/bzr-repo.shtml > > on how to get it. I am running in to issues compiling cedet with my Cygwin shell. This is because my path names have spaces and the makefile doesn't allow for it. My Emacs is a native Windows Emacs. Here is an annotated log. make fails because the path has spaces --8<---------------cut here---------------start------------->8--- kjambunathan@Jambu-NetBook /cygdrive/c/Documents and Settings/kjambunathan/My Documents/My Data/src/cedet $ make Removing loaddefs.el files from subprojects. /bin/sh: line 0: cd: /cygdrive/c/Documents: No such file or directory /bin/sh: line 0: cd: /cygdrive/c/Documents: No such file or directory /bin/sh: line 0: cd: /cygdrive/c/Documents: No such file or directory /bin/sh: line 0: cd: /cygdrive/c/Documents: No such file or directory /bin/sh: line 0: cd: /cygdrive/c/Documents: No such file or directory /bin/sh: line 0: cd: /cygdrive/c/Documents: No such file or directory /bin/sh: line 0: cd: /cygdrive/c/Documents: No such file or directory make: *** [clean-autoloads] Error 1 --8<---------------cut here---------------end--------------->8--- Passing CURDIR with "~" explicitly set gets me past the above hurdle and from the looks of it compilation seems to be proceeding just fine. --8<---------------cut here---------------start------------->8--- $ make EMACS="/cygdrive/c/Program\ Files/emacs-24.1.50/bin/runemacs.exe" CURDIR="~/src/cedet" Removing loaddefs.el files from subprojects. Generating autoloads. make[1]: Entering directory `/cygdrive/c/Documents and Settings/kjambunathan/My Documents/My Data/src/cedet/lisp/cedet' /cygdrive/c/Program\ Files/emacs-24.1.50/bin/runemacs.exe -batch --no-site-file --eval '(setq debug-on-error t)' -l "../../cedet-remove-builtin.el" -L ../speedbar/ -L ../eieio/ -L ./ -L ./ --eval '(setq generated-autoload-file "/cygdrive/c/Documents and Settings/kjambunathan/My Documents/My Data/src/cedet/lisp/cedet/loaddefs.el")' -f batch-update-autoloads /cygdrive/c/Documents and Settings/kjambunathan/My Documents/My Data/src/cedet/lisp/cedet make[1]: Leaving directory `/cygdrive/c/Documents and Settings/kjambunathan/My Documents/My Data/src/cedet/lisp/cedet' --8<---------------cut here---------------end--------------->8--- ..but make fails while installing info. --8<---------------cut here---------------start------------->8--- make[1]: Leaving directory `/cygdrive/c/Documents and Settings/kjambunathan/My Documents/My Data/src/cedet/doc/texi' Installing info files under /cygdrive/c/Documents and Settings/kjambunathan/My Documents/My Data//src/cedet/doc/info cp: cannot stat `/cygdrive/c/Documents': No such file or directory ~/src/cedet/doc/info/dir: could not read (No such file or directory) and could not create (No such file or directory) cp: cannot stat `and': No such file or directory ~/src/cedet/doc/info/dir: could not read (No such file or directory) and could not create (No such file or directory) --8<---------------cut here---------------end--------------->8--- I find no semantic.elc - file from which `semantic-mode' comes from - in my build path. I have a mixed feeling about how good the compilation went. --8<---------------cut here---------------start------------->8--- $ find . -name 'semantic.elc' kjambunathan@Jambu-NetBook /cygdrive/c/Documents and Settings/kjambunathan/My Documents/My Data/src/cedet --8<---------------cut here---------------end--------------->8--- > -David ^ permalink raw reply [flat|nested] 12+ messages in thread
* bug#12045: 24.1.50; semantic :: Debugger entered--Lisp error: (wrong-type-argument syntax-table-p nil) 2012-07-27 20:25 ` Jambunathan K @ 2012-07-27 20:47 ` Achim Gratz 2012-07-28 7:03 ` Eli Zaretskii 1 sibling, 0 replies; 12+ messages in thread From: Achim Gratz @ 2012-07-27 20:47 UTC (permalink / raw) To: 12045 Jambunathan K writes: > I am running in to issues compiling cedet with my Cygwin shell. This is > because my path names have spaces and the makefile doesn't allow for it. > My Emacs is a native Windows Emacs. Use 8.3 compatible names in your path components as a workaround, e.g. "PROGRA~1" instead of "Program Files". Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Samples for the Waldorf Blofeld: http://Synth.Stromeko.net/Downloads.html#BlofeldSamplesExtra ^ permalink raw reply [flat|nested] 12+ messages in thread
* bug#12045: 24.1.50; semantic :: Debugger entered--Lisp error: (wrong-type-argument syntax-table-p nil) 2012-07-27 20:25 ` Jambunathan K 2012-07-27 20:47 ` Achim Gratz @ 2012-07-28 7:03 ` Eli Zaretskii 1 sibling, 0 replies; 12+ messages in thread From: Eli Zaretskii @ 2012-07-28 7:03 UTC (permalink / raw) To: Jambunathan K; +Cc: 12045, deng > From: Jambunathan K <kjambunathan@gmail.com> > Date: Sat, 28 Jul 2012 01:55:58 +0530 > Cc: 12045@debbugs.gnu.org > > I am running in to issues compiling cedet with my Cygwin shell. This is > because my path names have spaces and the makefile doesn't allow for it. That's right, 'make' doesn't support whitespace in file names, and never will. You can use various tricks to get around that, and sometimes you will succeed, but if you want the problem be gone for good, don't use file names with whitespace when 'make' is part of the game. > ..but make fails while installing info. > > --8<---------------cut here---------------start------------->8--- > make[1]: Leaving directory `/cygdrive/c/Documents and Settings/kjambunathan/My Documents/My Data/src/cedet/doc/texi' > Installing info files under /cygdrive/c/Documents and Settings/kjambunathan/My Documents/My Data//src/cedet/doc/info > cp: cannot stat `/cygdrive/c/Documents': No such file or directory > ~/src/cedet/doc/info/dir: could not read (No such file or directory) and could not create (No such file or directory) > cp: cannot stat `and': No such file or directory > ~/src/cedet/doc/info/dir: could not read (No such file or directory) and could not create (No such file or directory) > --8<---------------cut here---------------end--------------->8--- Quoting the arguments passed to 'install-info' might help here. ^ permalink raw reply [flat|nested] 12+ messages in thread
* bug#12045: 24.1.50; semantic :: Debugger entered--Lisp error: (wrong-type-argument syntax-table-p nil) 2012-07-25 21:13 ` David Engster 2012-07-27 20:25 ` Jambunathan K @ 2012-08-07 8:08 ` Jambunathan K 2012-10-11 20:45 ` David Engster 1 sibling, 1 reply; 12+ messages in thread From: Jambunathan K @ 2012-08-07 8:08 UTC (permalink / raw) To: David Engster; +Cc: 12045 David Engster <deng@randomsample.de> writes: > Jambunathan K. writes: >> I am exploring semantic for the first time. >> >> 1. runemacs.exe -Q >> 2. Visit your favorite library. M-x find-library RET org-odt.el RET >> 3. M-x semantic-mode RET >> 4. C-c , j (With cursor on "some" symbol) >> 5. Note the following error. Either some interesting thing should >> happen or a useful message should be echoed. >> >> Debugger entered--Lisp error: (wrong-type-argument syntax-table-p nil) > > I'm pretty sure I've fixed this bug some time ago in the upstream CEDET > version from bzr, so it should get fixed in Emacs proper when we do the > next merge for Emacs 24.2. If you'd like to test the upstream version, > read here > > http://cedet.sourceforge.net/bzr-repo.shtml > > on how to get it. My original report was on Windows. The current report is on Debian Squeeze against CEDET bzr repo. So, consider this a bug report against the "future"-CEDET. When I do "C-c , j" on some symbol, that I know is defined in current .el file, I get ,---- | Jump to symbol: org-e-odt-lib-dir [No Match] [5 times] `---- When I partially type up the symbol and do TAB for completion, I get ,---- | semantic-analyze-current-context: Cannot analyze buffers not supported | by Semantic `---- If semantic does not support EmacsLisp files [1], 1. It should report an error or warning when the buffer tries to enter semantic-mode. 2. Disable menu items (starting with Developement->etc) that doesn't apply to current buffer. Footnotes: [1] Or for that matter a given language. I have the following in my .emacs, as suggested by cedet help. ,---- | ;; Load CEDET. | ;; See cedet/common/cedet.info for configuration details. | ;; IMPORTANT: For Emacs >= 23.2, you must place this *before* any | ;; CEDET component (including EIEIO) gets activated by another | ;; package (Gnus, auth-source, ...). | (load-file "~/src/cedet/cedet-devel-load.el") | | ;; Add further minor-modes to be enabled by semantic-mode. | ;; See doc-string of `semantic-default-submodes' for other things | ;; you can use here. | (add-to-list 'semantic-default-submodes 'global-semantic-idle-summary-mode t) | (add-to-list 'semantic-default-submodes 'global-semantic-idle-completions-mode t) | (add-to-list 'semantic-default-submodes 'global-cedet-m3-minor-mode t) | | ;; Enable Semantic | (semantic-mode 1) | | ;; Enable EDE (Project Management) features | (global-ede-mode 1) `---- > -David ^ permalink raw reply [flat|nested] 12+ messages in thread
* bug#12045: 24.1.50; semantic :: Debugger entered--Lisp error: (wrong-type-argument syntax-table-p nil) 2012-08-07 8:08 ` Jambunathan K @ 2012-10-11 20:45 ` David Engster 2012-10-11 21:04 ` David Engster 2012-10-12 0:08 ` Stefan Monnier 0 siblings, 2 replies; 12+ messages in thread From: David Engster @ 2012-10-11 20:45 UTC (permalink / raw) To: Jambunathan K; +Cc: 12045 Jambunathan K. writes: > My original report was on Windows. The current report is on Debian > Squeeze against CEDET bzr repo. So, consider this a bug report against > the "future"-CEDET. > > When I do "C-c , j" on some symbol, that I know is defined in current > .el file, I get > ,---- > | Jump to symbol: org-e-odt-lib-dir [No Match] [5 times] > `---- > > When I partially type up the symbol and do TAB for completion, I get > ,---- > | semantic-analyze-current-context: Cannot analyze buffers not supported > | by Semantic > `---- > > If semantic does not support EmacsLisp files [1], > 1. It should report an error or warning when the buffer tries to enter > semantic-mode. > > 2. Disable menu items (starting with Developement->etc) that doesn't > apply to current buffer. You are right, this problem still exists. It is due to the fact that semantic-mode is active for all buffers (it is a minor mode after all), whether they could be parsed or not. Raising an error or warning for all buffers that cannot be parsed would surely be very annoying, so we cannot do that. However, we can check if a buffer was parsed by calling `semantic-active-p' (which simply returns `semantic-new-buffer-fcn-was-run'). The solution for the menu items is pretty simple (checking for `semantic-active-p' instead of only looking at `semantic-mode'). I've now pushed a change to CEDET upstream that does this, and I will merge it soon. Regarding interactive commands, especially those with a pre-defined keybinding, I'm not entirely sure what would be the best fix. The easiest way would be if keymaps could be activated dependend on a buffer-local variable, just as I can do that via the :visible attribute for menu items. I don't think this is possible, but maybe someone around here knows a solution. Otherwise, we'd have to check for `semantic-active-p' in all interactive commands. -David ^ permalink raw reply [flat|nested] 12+ messages in thread
* bug#12045: 24.1.50; semantic :: Debugger entered--Lisp error: (wrong-type-argument syntax-table-p nil) 2012-10-11 20:45 ` David Engster @ 2012-10-11 21:04 ` David Engster 2012-10-12 0:08 ` Stefan Monnier 1 sibling, 0 replies; 12+ messages in thread From: David Engster @ 2012-10-11 21:04 UTC (permalink / raw) To: Jambunathan K; +Cc: 12045 David Engster writes: >> When I do "C-c , j" on some symbol, that I know is defined in current >> .el file, I get >> ,---- >> | Jump to symbol: org-e-odt-lib-dir [No Match] [5 times] >> `---- [...] > You are right, this problem still exists. It is due to the fact that > semantic-mode is active for all buffers (it is a minor mode after all), > whether they could be parsed or not. I forgot to add: The reason I was confused in the beginning was that CEDET actually does parse Elisp files. I just lately realized that this feature is not enabled by default in Emacs proper. You have to manually require it through (require 'semantic/bovine/el) Maybe Yidong disabled it during the initial merge because he found it too intrusive. I'm not sure, which is why I'm CCing him. Maybe this is something that could be changed? -David ^ permalink raw reply [flat|nested] 12+ messages in thread
* bug#12045: 24.1.50; semantic :: Debugger entered--Lisp error: (wrong-type-argument syntax-table-p nil) 2012-10-11 20:45 ` David Engster 2012-10-11 21:04 ` David Engster @ 2012-10-12 0:08 ` Stefan Monnier 2012-10-12 6:10 ` David Engster 1 sibling, 1 reply; 12+ messages in thread From: Stefan Monnier @ 2012-10-12 0:08 UTC (permalink / raw) To: David Engster; +Cc: Jambunathan K, 12045 > Regarding interactive commands, especially those with a pre-defined > keybinding, I'm not entirely sure what would be the best fix. The > easiest way would be if keymaps could be activated dependend on a > buffer-local variable, just as I can do that via the :visible attribute > for menu items. Minor mode keymaps work exactly this way (the minor-mode variable enables/disables the corresponding keymap). But usually it's not necessary to disable a binding just because it's currently unusable. Just like most menu items use :enable rather than :visible, since that lets the user know that there is such a feature, even though it currently can't be used. Stefan ^ permalink raw reply [flat|nested] 12+ messages in thread
* bug#12045: 24.1.50; semantic :: Debugger entered--Lisp error: (wrong-type-argument syntax-table-p nil) 2012-10-12 0:08 ` Stefan Monnier @ 2012-10-12 6:10 ` David Engster 2012-10-12 13:47 ` Stefan Monnier 0 siblings, 1 reply; 12+ messages in thread From: David Engster @ 2012-10-12 6:10 UTC (permalink / raw) To: Stefan Monnier; +Cc: Jambunathan K, 12045 Stefan Monnier writes: >> Regarding interactive commands, especially those with a pre-defined >> keybinding, I'm not entirely sure what would be the best fix. The >> easiest way would be if keymaps could be activated dependend on a >> buffer-local variable, just as I can do that via the :visible attribute >> for menu items. > > Minor mode keymaps work exactly this way (the minor-mode variable > enables/disables the corresponding keymap). But usually it's not > necessary to disable a binding just because it's currently unusable. > Just like most menu items use :enable rather than :visible, since that > lets the user know that there is such a feature, even though it > currently can't be used. OK, so I will change the Semantic menu items to :visible semantic-mode :enable (semantic-active-p) Regarding the key bindings however, I think we can agree that the current situation needs improvement. The interactive commands usually assume that the buffer was correctly set up for parsing and hence raise some cryptic error if that isn't the case (see subject). So if the keybindings should simply stay enabled in all buffers if semantic-mode is active, I will have to add some `semantic-raise-error-if-unparsed' function at the beginning of every interactive function. -David ^ permalink raw reply [flat|nested] 12+ messages in thread
* bug#12045: 24.1.50; semantic :: Debugger entered--Lisp error: (wrong-type-argument syntax-table-p nil) 2012-10-12 6:10 ` David Engster @ 2012-10-12 13:47 ` Stefan Monnier 2012-10-14 19:41 ` David Engster 0 siblings, 1 reply; 12+ messages in thread From: Stefan Monnier @ 2012-10-12 13:47 UTC (permalink / raw) To: David Engster; +Cc: Jambunathan K, 12045 > Regarding the key bindings however, I think we can agree that the > current situation needs improvement. The interactive commands usually > assume that the buffer was correctly set up for parsing and hence raise > some cryptic error if that isn't the case (see subject). Right, the error message should be improved. > So if the keybindings should simply stay enabled in all buffers if > semantic-mode is active, I will have to add some > `semantic-raise-error-if-unparsed' function at the beginning of every > interactive function. Also, compared to making the binding conditional, this has the advantage that the error message can say *why* the binding doesn't work, contrary to a laconic "<key> is undefined". Stefan ^ permalink raw reply [flat|nested] 12+ messages in thread
* bug#12045: 24.1.50; semantic :: Debugger entered--Lisp error: (wrong-type-argument syntax-table-p nil) 2012-10-12 13:47 ` Stefan Monnier @ 2012-10-14 19:41 ` David Engster 0 siblings, 0 replies; 12+ messages in thread From: David Engster @ 2012-10-14 19:41 UTC (permalink / raw) To: Stefan Monnier; +Cc: Jambunathan K, 12045 Stefan Monnier writes: >> So if the keybindings should simply stay enabled in all buffers if >> semantic-mode is active, I will have to add some >> `semantic-raise-error-if-unparsed' function at the beginning of every >> interactive function. > > Also, compared to making the binding conditional, this has the advantage > that the error message can say *why* the binding doesn't work, contrary > to a laconic "<key> is undefined". I've now merged those changes into Emacs trunk. The Semantic menu items should now be inactive when the buffer is not parsed. Also, I added the above described check to some of the interactive functions so they raise a proper error. Please let me know if I missed some important ones here. -David ^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2012-10-14 19:41 UTC | newest] Thread overview: 12+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2012-07-25 14:58 bug#12045: 24.1.50; semantic :: Debugger entered--Lisp error: (wrong-type-argument syntax-table-p nil) Jambunathan K 2012-07-25 21:13 ` David Engster 2012-07-27 20:25 ` Jambunathan K 2012-07-27 20:47 ` Achim Gratz 2012-07-28 7:03 ` Eli Zaretskii 2012-08-07 8:08 ` Jambunathan K 2012-10-11 20:45 ` David Engster 2012-10-11 21:04 ` David Engster 2012-10-12 0:08 ` Stefan Monnier 2012-10-12 6:10 ` David Engster 2012-10-12 13:47 ` Stefan Monnier 2012-10-14 19:41 ` David Engster
Code repositories for project(s) associated with this external index https://git.savannah.gnu.org/cgit/emacs.git https://git.savannah.gnu.org/cgit/emacs/org-mode.git This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.