Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.forth > #45094

Re: how can I use emacs to locate definitions in gforth

From anton@mips.complang.tuwien.ac.at (Anton Ertl)
Newsgroups comp.lang.forth
Subject Re: how can I use emacs to locate definitions in gforth
Date 2016-01-26 17:04 +0000
Organization Institut fuer Computersprachen, Technische Universitaet Wien
Message-ID <2016Jan26.180448@mips.complang.tuwien.ac.at> (permalink)
References <1xncku6jdsoew$.fjc551fr2azd$.dlg@40tude.net> <n86gvl$od6$1@dont-email.me>

Show all headers | View raw


Bernd Paysan <bernd.paysan@gmx.de> writes:
>Coos Haak wrote:
>> Why can't I use an editor that someone with knowledge of dos and windows
>> like vi or nano ?
>
>It's a GNU project ;-).  Would you be ok with an view-vi and view-emacs, and 
>a deferred VIEW (defaults to view-emacs, but you can always edit ~/.gforthrc 
>to change it)?

The Unix way would be to call 

$EDITOR +<lineno> <file>

or possibly 

$EDITOR +<lineno>:<char-in-line> <file>

We would need to store the position of the definition instead of just
going for the name, but I think we wanted to do that anyway.

If there is no EDITOR defined, we can just show the file name and
display the line and a few before and after, just like SwiftForth is
doing (even when EDITOR is set; it does use EDITOR for something,
however, but I don't remember what).

- anton
-- 
M. Anton Ertl  http://www.complang.tuwien.ac.at/anton/home.html
comp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html
     New standard: http://www.forth200x.org/forth200x.html
   EuroForth 2015: http://www.rigwit.co.uk/EuroForth2015/

Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


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