help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: something to jump to file:line


From: Roman Suzi
Subject: Re: something to jump to file:line
Date: Sun, 23 Sep 2001 01:37:23 +0400 (MSD)

On Sun, 23 Sep 2001, Ehud Karni wrote:

>On Sun, 23 Sep 2001 00:34:19 +0400 (MSD), Roman Suzi <rnd@onego.ru> wrote:
>>
>> I am looking for some way to automate visiting specific
>> lines in files, like grep display does, but from file.
>>
>> For example, if I have this kind of file:
>>
>> --- mytags -------------------
>> file1.txt:12  trararar
>> file1.txt:190  gfhgggg
>> file2.txt:345  dfasdf
>> ------------------------------
>>
>> I'd like to step on the line and press some key (Enter, for example)
>> to visit specified file on specified line.
>>
>> I can control the format of mytags and put anything on lines.
>
>The easiest way to accomplish your wish is to do:
>1. Add another : after the line number
>i.e. your example will become:
>file1.txt:12:  trararar
>file1.txt:190:  gfhgggg
>file.txt:345:  dfasdf
>2. In this buffer do M-x compilation-mode <Enter>

I knew it is easy!
But how about positioning to trararar?

>Thats it ! when you now type <Enter> in a line, Emacs will open the
>desired file in the requested line.
>
>To learn more about it read the help for the `next-error' command.

>Ehud.

Thank you!

Sincerely yours, Roman Suzi
-- 
_/ Russia _/ Karelia _/ Petrozavodsk _/ rnd@onego.ru _/
_/ Saturday, September 22, 2001 _/ Powered by Linux RedHat 6.2 _/
_/ "A clean desk is a sign of a cluttered desk drawer." _/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]