comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: LINE NUMBERS
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: LINE NUMBERS [message #24031] Tue, 06 March 2001 16:11
Kenneth Mankoff is currently offline  Kenneth Mankoff
Messages: 42
Registered: August 1999
Member
[snip]
> Well, this is not the standard setting - so you or your Sysadmin must
> have done this. C-g normally does nothing...
[snip]

Correct. My original post stated "At least, thats my key-bindings".

-ken.

>>>> >> "KM" == Kenneth Mankoff <mankoff@lasp.colorado.edu> writes:
>
>>> Kenneth Mankoff <mankoff@lasp.colorado.edu> writes:
>>>> EMACS: CTRL+G will let you enter a line number to jump to. At
>>>> least, thats my key-bindings. If you use emacs, I can let you know
>>>> how to bind a key to the goto-line command.
>>>>
>>>> IDL-WAVE (EMACS): CTRL+G, unless you are going to a line because
>>>> of an error, in which case it is automatic.
>>>
>>> Control-G ? Isn't that the "cancel request" keystroke? I do it all
>>> the time, it makes emacs beep, and annoys the heck out of my
>>> office-mates.
>>>
>>> Craig
>>>
>
> KM> In the mini-buffer, its "cancel request". But in a main window
> KM> edit buffer, its "goto-line". Depends where you are...
>
> Well, this is not the standard setting - so you or your Sysadmin must
> have done this. C-g normally does nothing except canceling whatever
> you are doing. If you are doing nothing, it just beeps, as Craig
> describes.
>
> XEmacs 21.1 has goto-line standard on M-g
> Emacs 20.6 has no standard binding to goto-line. To get it on M-g
> like in XEmacs, put this into .emacs.
>
> (define-key global-map "\M-g" 'goto-line)
>
> Hope this helps
>
> - Carsten
>
>
> --
> Carsten Dominik <dominik@astro.uva.nl> \ _ /
> Sterrenkundig Instituut "Anton Pannekoek" |X| _
> Kruislaan 403; NL-1098 SJ Amsterdam /| |\ _ _ _/ \
> phone +31 (20) 525-7477; FAX +31 (20) 525-7484 __|o|___/ ~~ \___/ ~~~
>
>
Re: LINE NUMBERS [message #24041 is a reply to message #24031] Mon, 05 March 2001 23:58 Go to previous message
dominik is currently offline  dominik
Messages: 47
Registered: June 2000
Member
>>>> > "KM" == Kenneth Mankoff <mankoff@lasp.colorado.edu> writes:

>> Kenneth Mankoff <mankoff@lasp.colorado.edu> writes:
>>> EMACS: CTRL+G will let you enter a line number to jump to. At
>>> least, thats my key-bindings. If you use emacs, I can let you know
>>> how to bind a key to the goto-line command.
>>>
>>> IDL-WAVE (EMACS): CTRL+G, unless you are going to a line because
>>> of an error, in which case it is automatic.
>>
>> Control-G ? Isn't that the "cancel request" keystroke? I do it all
>> the time, it makes emacs beep, and annoys the heck out of my
>> office-mates.
>>
>> Craig
>>

KM> In the mini-buffer, its "cancel request". But in a main window
KM> edit buffer, its "goto-line". Depends where you are...

Well, this is not the standard setting - so you or your Sysadmin must
have done this. C-g normally does nothing except canceling whatever
you are doing. If you are doing nothing, it just beeps, as Craig
describes.

XEmacs 21.1 has goto-line standard on M-g
Emacs 20.6 has no standard binding to goto-line. To get it on M-g
like in XEmacs, put this into .emacs.

(define-key global-map "\M-g" 'goto-line)

Hope this helps

- Carsten


--
Carsten Dominik <dominik@astro.uva.nl> \ _ /
Sterrenkundig Instituut "Anton Pannekoek" |X| _
Kruislaan 403; NL-1098 SJ Amsterdam /| |\ _ _ _/ \
phone +31 (20) 525-7477; FAX +31 (20) 525-7484 __|o|___/ ~~ \___/ ~~~
Re: LINE NUMBERS [message #24043 is a reply to message #24041] Mon, 05 March 2001 17:51 Go to previous message
Kenneth Mankoff is currently offline  Kenneth Mankoff
Messages: 42
Registered: August 1999
Member
> Kenneth Mankoff <mankoff@lasp.colorado.edu> writes:
>> EMACS: CTRL+G will let you enter a line number to jump to. At least, thats
>> my key-bindings. If you use emacs, I can let you know how to bind a key to
>> the goto-line command.
>>
>> IDL-WAVE (EMACS): CTRL+G, unless you are going to a line because of an
>> error, in which case it is automatic.
>
> Control-G ? Isn't that the "cancel request" keystroke? I do it all
> the time, it makes emacs beep, and annoys the heck out of my
> office-mates.
>
> Craig
>

In the mini-buffer, its "cancel request". But in a main window edit
buffer, its "goto-line". Depends where you are...

-k.
Re: LINE NUMBERS [message #24049 is a reply to message #24043] Mon, 05 March 2001 14:25 Go to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
Kenneth Mankoff <mankoff@lasp.colorado.edu> writes:
> EMACS: CTRL+G will let you enter a line number to jump to. At least, thats
> my key-bindings. If you use emacs, I can let you know how to bind a key to
> the goto-line command.
>
> IDL-WAVE (EMACS): CTRL+G, unless you are going to a line because of an
> error, in which case it is automatic.

Control-G ? Isn't that the "cancel request" keystroke? I do it all
the time, it makes emacs beep, and annoys the heck out of my
office-mates.

Craig


--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
Re: LINE NUMBERS [message #24065 is a reply to message #24049] Sun, 04 March 2001 09:34 Go to previous message
Kenneth Mankoff is currently offline  Kenneth Mankoff
Messages: 42
Registered: August 1999
Member
> Is there a way to turn on line numbering in an IDL program file?
>
> If there isn't, what is the fastest way to scroll down to a line (after
> opening) in a long IDL program file?


EMACS: CTRL+G will let you enter a line number to jump to. At least, thats
my key-bindings. If you use emacs, I can let you know how to bind a key to
the goto-line command.

IDL-WAVE (EMACS): CTRL+G, unless you are going to a line because of an
error, in which case it is automatic.

VI: ": q <RETURN> emacs <RETURN>" is the best way to edit files in vi.

PICO: only allows line-number specification upon opening of file
% pico +nnn file_name
nano, an improved pico clone, allows jump-to, i believe.

IDLDE: CTRL+G. I've never used IDLDE, so i don't know how/if this works.


hope this helps.

-ken.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Fortran call_external under linux
Next Topic: IDLgrAxis text scaling

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 14:55:54 PDT 2025

Total time taken to generate the page: 0.00560 seconds