Re: line numbers in code

2001-06-02 Thread Richard Cobbe
Lo, on Friday, June 1, D-Man did write: On Thu, May 31, 2001 at 06:49:31PM -0700, Krzys Majewski wrote: snip the vi/emacs proselytizing | Type M-x tutorial (Escape-x tutorial) for a 15 minute intro that will That is press and release Escape, press and release x, type 'tutorial'. (this

Re: line numbers in code

2001-06-01 Thread D-Man
On Thu, May 31, 2001 at 06:49:31PM -0700, Krzys Majewski wrote: vi instructions | propagandaThe correct solution is | emacs filename | M-x goto-line 12 | /propaganda | | vi is great for quick hacking as root, Maybe... | but emacs is the real deal. Naw, (g)vim is much better wink (I have

Re: line numbers in code

2001-06-01 Thread Alan Shutko
Krzys Majewski [EMAIL PROTECTED] writes: propagandaThe correct solution is emacs filename M x goto-line 12 /propaganda YM emacsclient +12 filename. HTH. -- Alan Shutko [EMAIL PROTECTED] - In a variety of flavors! When you're not looking at it, this fortune is written in FORTRAN.

Re: line numbers in code

2001-06-01 Thread Alan Shutko
D-Man [EMAIL PROTECTED] writes: Naw, (g)vim is much better wink (I have tried emacs, and that is my conclusion, now go make your own after trying both) Sure... does (g)vim include Tetris? Or a text adventure? Or a shrink to help your mind cope with the constant mode changes? How

Re: line numbers in code

2001-06-01 Thread D-Man
On Fri, Jun 01, 2001 at 10:02:22AM -0400, Alan Shutko wrote: | D-Man [EMAIL PROTECTED] writes: | | Naw, (g)vim is much better wink | | (I have tried emacs, and that is my conclusion, now go make your own | after trying both) | | Sure... does (g)vim include Tetris? Or a text adventure?

Re: line numbers in code

2001-06-01 Thread Alan Shutko
D-Man [EMAIL PROTECTED] writes: Can emacs on a floppy (including all the syntax highlighting I actually use) to take to less fortunate machines (usually windoze boxen^H^H^H^H^Hpaperweights)? Absolutely. Just write it out to a CD, and stack the CD on the floppy. 8^) Can you extend emacs

Re: line numbers in code

2001-06-01 Thread Erik Steffl
Alan Shutko wrote: D-Man [EMAIL PROTECTED] writes: Naw, (g)vim is much better wink (I have tried emacs, and that is my conclusion, now go make your own after trying both) Sure... does (g)vim include Tetris? Or a text adventure? Or a shrink to help your mind cope with the

Re: line numbers in code

2001-05-31 Thread Krzys Majewski
will trillich [EMAIL PROTECTED] writes: On Sat, May 26, 2001 at 03:41:38AM -0600, John Galt wrote: In vi, :1267 works... Also, for vim, start your editing session right at the exact line you're interested in via vi +1267 filename.here propagandaThe correct solution is emacs

Re: line numbers in code

2001-05-30 Thread will trillich
On Sat, May 26, 2001 at 03:41:38AM -0600, John Galt wrote: In vi, :1267 works... Also, for vim, start your editing session right at the exact line you're interested in via vi +1267 filename.here Or, if already editing the file, hop to that line with 1267G You can also

Re: line numbers in code

2001-05-27 Thread Neil Booth
Romain Lerallut wrote:- Romain Lerallut wrote:- You can run *any* text through cpp (not just C program sources, I use it for my Fortran codes:) That's not true, certainly in GCC 3.0. Neil. h: echo '__LINE__' | cpp-3.0 -P 1 looks like you can ( with my Fortran

line numbers in code

2001-05-26 Thread john gennard
I'm having to look for certain lines in code and have been doing so by laboriously counting down the program. As many error messages make reference to line numbers, I feel sure there must be a simple way to locate say 'line 1267' How do people go about this? Thanks,John.

Re: line numbers in code

2001-05-26 Thread Aaron Hall
On Fri, 25 May 2001, john gennard wrote: I'm having to look for certain lines in code and have been doing so by laboriously counting down the program. As many error messages make reference to line numbers, I feel sure there must be a simple way to locate say 'line 1267' How do people go about

Re: line numbers in code

2001-05-26 Thread Romain Lerallut
On Fri, 25 May 2001, john gennard wrote: I'm having to look for certain lines in code and have been doing so by laboriously counting down the program. As many error messages make reference to line numbers, I feel sure there must be a simple way to locate say 'line 1267' How do people go about

Re: line numbers in code

2001-05-26 Thread Willi Dyck
On Fri, May 25, 2001 at 08:59:48PM +0100, john gennard wrote: I'm having to look for certain lines in code and have been doing so by laboriously counting down the program. As many error messages make reference to line numbers, I feel sure there must be a simple way to locate say 'line 1267'

Re: line numbers in code

2001-05-26 Thread Erik Steffl
john gennard wrote: I'm having to look for certain lines in code and have been doing so by laboriously counting down the program. As many error messages make reference to line numbers, I feel sure there must be a simple way to locate say 'line 1267' How do people go about this? in vi you

Re: line numbers in code

2001-05-26 Thread John Galt
In vi, :1267 works... On Fri, 25 May 2001, john gennard wrote: I'm having to look for certain lines in code and have been doing so by laboriously counting down the program. As many error messages make reference to line numbers, I feel sure there must be a simple way to locate say 'line 1267'

Re: line numbers in code

2001-05-26 Thread Neil Booth
Romain Lerallut wrote:- You can run *any* text through cpp (not just C program sources, I use it for my Fortran codes:) That's not true, certainly in GCC 3.0. Neil.

Re: line numbers in code

2001-05-26 Thread Romain Lerallut
On Sat, 26 May 2001, Neil Booth wrote: Romain Lerallut wrote:- You can run *any* text through cpp (not just C program sources, I use it for my Fortran codes:) That's not true, certainly in GCC 3.0. Neil. h: echo '__LINE__' | cpp-3.0 -P 1 looks like you can ( with my Fortran codes

Re: line numbers in code

2001-05-26 Thread Tommi Komulainen
On Fri, May 25, 2001 at 08:59:48PM +0100, john gennard wrote: I'm having to look for certain lines in code and have been doing so by laboriously counting down the program. As many error messages make reference to line numbers, I feel sure there must be a simple way to locate say 'line 1267'

Re: line numbers in code

2001-05-26 Thread Petr \[Dingo\] Dvorak
On Fri, 25 May 2001, john gennard wrote: jg I'm having to look for certain lines in code and have been doing so jg by laboriously counting down the program. As many error messages jg make reference to line numbers, I feel sure there must be a simple jg way to locate say 'line 1267' How do people

Re: line numbers in code

2001-05-26 Thread Alan Shutko
Tommi Komulainen [EMAIL PROTECTED] writes: 1. If you are not running make, but gcc directly, then I suggest you make a small Makefile, it'll usually pay off if you compile often. If you're running gcc directly, you may not even _need_ a Makefile. Given a file prog.c, and no Makefile,

Re: line numbers in code

2001-05-26 Thread John Galt
On Sat, 26 May 2001, Petr [Dingo] Dvorak wrote: On Fri, 25 May 2001, john gennard wrote: jg I'm having to look for certain lines in code and have been doing so jg by laboriously counting down the program. As many error messages jg make reference to line numbers, I feel sure there must be a