Re: LINE NUMBERS [message #24031] |
Tue, 06 March 2001 16:11 |
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  |
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  |
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  |
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  |
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.
|
|
|