larsbrinkhoff / forth-mode

Wants to be the SLIME of Forth
GNU General Public License v3.0
61 stars 17 forks source link

broken forth-see with freeforth/spacemacs #66

Open vigilancetech-com opened 7 years ago

vigilancetech-com commented 7 years ago

I clone the latest spacemacs (master or develop branch doesn't matter)

I enable forth mode either with dotspacemacs-additional-packages or package-list-packages

I install freeforth, copy the 'ff' or 'ff.exe' program into my path (e.g. /usr/local/bin)

I edit the ff.ff file near where "equ" is defined to add proper aliases "include=needs" and "help=see" thusly:

\ need these for emacs forth-mode  C-c C-l and C-c C-s

needs` ' alias include`
help` ' alias see`

I bring up a forth program, do M-x forth-mode

Put the cursor on a forth word like "constant"

Hit C-s

It asks me for which forth executable, and I answer 'ff'

It brings up the help screen for "constant" in a forth buffer

I hit 'q' to exit it.

I do the C-s again and

error in process filter: Wrong type argument: markerp, nil

It seems like it works again if I delete both the forth AND the see buffers.

What would be the best behavior IMO would be for it to just send the message "see 'word'" to the currently running forth process, OR when I hit "q" just delete ALL the buffers that were created to facilitate the display of the help rather than merely bury them or leave them open.

Also, it would be nice if it would return the screen configuration to the exact same as it was when I hit 'q.' right now it leaves it split with the empty see buffer.

Also, as an aside, it might be nice to have a key to flip back and forth between the forth interpreter and the forth program you're editing like geiser does with C-z I think. Even the above behavior of finding the forth process, running the help command there, if its not in a visible buffer, either splitting the currently visible one and then displaying the help there until 'q' is hit, or just flipping the whole window to the forth process displaying the help (not read only, and in interactive mode so you can try tinkering with that word you just got help on) then having the C-z to flip back manually (probably having the selection of these two behaviors on a configuration variable would be ideal)

vigilancetech-com commented 7 years ago

It appears to do the same thing with vanilla emacs without spacemacs.