Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.forth > #45099
| From | Bernd Paysan <bernd.paysan@gmx.de> |
|---|---|
| Newsgroups | comp.lang.forth |
| Subject | Re: how can I use emacs to locate definitions in gforth |
| Date | 2016-01-26 23:32 +0100 |
| Organization | A noiseless patient Spider |
| Message-ID | <n88s07$72h$1@dont-email.me> (permalink) |
| References | <1xncku6jdsoew$.fjc551fr2azd$.dlg@40tude.net> <56a7dbb1.1184940288@news.eternal-september.org> |
Stephen Pelc wrote: > A proper Forth that implements LOCATE in a classic fashion does > several things. > 1) stores the file and line number in some way that can be found > with the word's name. > 2) Can call a configurable external program with a configurable > command line > 3) Puts this together so that the user can configure the editor > and command line. > > If a Forth cannot do this, then that Forth has a quality of > implementation issue. The issue with a GNU project is that GNU is more than just one program. It's an entire operating system, usually using the Linux kernel. And of course, the GNU project has an editor: Emacs. This editor has a "locate" functionality, which is supported by a TAGS file. vi also has this feature (the file for vi just is in lower case: tags). Since most people using Emacs don't develop in an interactive language, that way is better for them. To make use of this feature, we added creation of TAGS and tags files to Gforth. That's the way Gforth stores information about where a word is located; that's the way which works best with these Unix editors. Other editors on Unix often support either one or the other format. If you think that's not how things work under Windows: Yes, it's not. It's also not the way traditional Forth works; probably because the poor C compiler users can't say "locate xxx" on their C prompt ;-). But just because you are unfamiliar with something doesn't make that a bad thing - staying in the editor while jumping from one to the next definition is fun; before I could only have that with an embedded editor (which I had in bigForth). Anyways, as GNU maintainer, I have to tell you that we don't recommend proprietary operating systems and editors ;-). The locate feature is relatively new, so we certainly welcome suggestions - the point of snapshot releases is to get feedback. A embedded information about the location of a word as described above would help with editors that don't support any tags file, as well as with a possible embedded editor - I'm thinking about writing such an editor, as the users on Android (and probably also Windows ;-) don't have a nice integration with a good programmer's editor. -- Bernd Paysan "If you want it done right, you have to do it yourself" net2o ID: kQusJzA;7*?t=uy@X}1GWr!+0qqp_Cn176t4(dQ* http://bernd-paysan.de/
Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
how can I use emacs to locate definitions in gforth Coos Haak <chforth@hccnet.nl> - 2016-01-26 00:27 +0100
Re: how can I use emacs to locate definitions in gforth Bernd Paysan <bernd.paysan@gmx.de> - 2016-01-26 02:11 +0100
Re: how can I use emacs to locate definitions in gforth Albert van der Horst <albert@spenarnc.xs4all.nl> - 2016-01-26 11:35 +0000
Re: how can I use emacs to locate definitions in gforth anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2016-01-26 17:04 +0000
Re: how can I use emacs to locate definitions in gforth "Elizabeth D. Rather" <erather@forth.com> - 2016-01-26 09:21 -1000
Re: how can I use emacs to locate definitions in gforth stephen@mpeforth.com (Stephen Pelc) - 2016-01-26 20:52 +0000
Re: how can I use emacs to locate definitions in gforth Albert van der Horst <albert@spenarnc.xs4all.nl> - 2016-01-26 21:24 +0000
Re: how can I use emacs to locate definitions in gforth mhx@iae.nl - 2016-01-26 14:32 -0800
Re: how can I use emacs to locate definitions in gforth Roelf Toxopeus <rt4all@notthis.hetnet.nl> - 2016-01-27 07:35 +0100
Re: how can I use emacs to locate definitions in gforth mhx@iae.nl - 2016-01-27 03:26 -0800
Re: how can I use emacs to locate definitions in gforth Bernd Paysan <bernd.paysan@gmx.de> - 2016-01-26 23:32 +0100
Re: how can I use emacs to locate definitions in gforth stephen@mpeforth.com (Stephen Pelc) - 2016-01-27 00:17 +0000
Re: how can I use emacs to locate definitions in gforth Bernd Paysan <bernd.paysan@gmx.de> - 2016-01-27 21:50 +0100
Re: how can I use emacs to locate definitions in gforth Hannu Vuolasaho <vuokkosetae@gmail.com> - 2016-01-27 04:11 +0200
Re: how can I use emacs to locate definitions in gforth anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2016-01-27 14:39 +0000
Re: how can I use emacs to locate definitions in gforth stephen@mpeforth.com (Stephen Pelc) - 2016-01-27 23:53 +0000
Re: how can I use emacs to locate definitions in gforth anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2016-01-28 17:09 +0000
Re: how can I use emacs to locate definitions in gforth stephen@mpeforth.com (Stephen Pelc) - 2016-01-29 00:17 +0000
Re: how can I use emacs to locate definitions in gforth Julian Fondren <julian.fondren@gmail.com> - 2016-01-28 17:20 -0800
Re: how can I use emacs to locate definitions in gforth stephen@mpeforth.com (Stephen Pelc) - 2016-01-29 02:22 +0000
Re: how can I use emacs to locate definitions in gforth Andrew Haley <andrew29@littlepinkcloud.invalid> - 2016-01-29 02:24 -0600
Re: how can I use emacs to locate definitions in gforth Julian Fondren <julian.fondren@gmail.com> - 2016-01-29 03:49 -0800
Re: how can I use emacs to locate definitions in gforth Albert van der Horst <albert@spenarnc.xs4all.nl> - 2016-01-29 11:41 +0000
Re: how can I use emacs to locate definitions in gforth anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2016-01-29 13:00 +0000
Re: how can I use emacs to locate definitions in gforth Bernd Paysan <bernd.paysan@gmx.de> - 2016-01-29 22:50 +0100
Re: how can I use emacs to locate definitions in gforth anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2016-01-29 12:42 +0000
Re: how can I use emacs to locate definitions in gforth stephen@mpeforth.com (Stephen Pelc) - 2016-01-30 10:10 +0000
Re: how can I use emacs to locate definitions in gforth anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2016-01-30 14:29 +0000
Re: how can I use emacs to locate definitions in gforth mhx@iae.nl - 2016-01-31 02:58 -0800
Re: how can I use emacs to locate definitions in gforth anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2016-01-31 15:09 +0000
Re: how can I use emacs to locate definitions in gforth anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2016-01-27 14:36 +0000
Re: how can I use emacs to locate definitions in gforth Julian Fondren <julian.fondren@gmail.com> - 2016-01-27 07:37 -0800
Re: how can I use emacs to locate definitions in gforth Andrew Haley <andrew29@littlepinkcloud.invalid> - 2016-01-27 10:35 -0600
Re: how can I use emacs to locate definitions in gforth anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2016-01-27 16:58 +0000
Re: how can I use emacs to locate definitions in gforth "Elizabeth D. Rather" <erather@forth.com> - 2016-01-27 08:48 -1000
csiph-web