473,320 Members | 1,953 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Emacs python mode question

If I should like to go to line 345: how can I do that? Typing M-x
goto-line and then 345 is a bit cumbersome.
I defines the key Alt-g to be goto-line, but it does not work.

TIA,
jb
----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Jul 18 '05 #1
7 1643

jb> If I should like to go to line 345: how can I do that? Typing M-x
jb> goto-line and then 345 is a bit cumbersome. I defines the key Alt-g
jb> to be goto-line, but it does not work.

Is M-g not bound to goto-line? You can check for keybindings by typing "C-h
w" then entering the name of a command.

Skip

Jul 18 '05 #2
On Sat, 10 Jan 2004 15:49:22 -0600, Skip Montanaro wrote:

jb> If I should like to go to line 345: how can I do that? Typing M-x
jb> goto-line and then 345 is a bit cumbersome. I defines the key
Alt-g jb> to be goto-line, but it does not work.

Is M-g not bound to goto-line? You can check for keybindings by typing
"C-h w" then entering the name of a command.


Thx.
gogo-line is on the menu but is not bound to a key. How can I bind it?

--
jb
----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Jul 18 '05 #3
jblazi <jb****@hotmail.com> writes:
gogo-line is on the menu but is not bound to a key. How can I bind it?


Put (global-set-key (kbd "M-g") 'goto-line) in your ~/.emacs

Sean

--
"Hver sin smak", sa vintapperen, han drakk mens de andre sloss.
Jul 18 '05 #4

jb> gogo-line is on the menu but is not bound to a key. How can I bind
jb> it?

M-x global-set-key RET

should do the job interactively. In your ~/.emacs file use something like:

(define-key esc-map [g] 'goto-line)

YMMV. I don't use GNU Emacs anymore. Keybindings is one area in which
Emacs and XEmacs have diverged. Try C-h f define-key RET.

Skip

Jul 18 '05 #5
In article <pa****************************@hotmail.com>, jblazi wrote:
If I should like to go to line 345: how can I do that? Typing M-x
goto-line and then 345 is a bit cumbersome.
I defines the key Alt-g to be goto-line, but it does not work.


In XEmacs, you can just highlight the error line and middle-click. I don't
know whether this feature is missing in Gnu Emacs or just turned off.

Dave Cook
Jul 18 '05 #6
On Sat, 10 Jan 2004 16:25:59 -0600, Skip Montanaro wrote:
(define-key esc-map [g] 'goto-line)


For one reason or the other, this does not work. (I tried several such
options before posting.)
When I do this (and save .emacs and restart Emacs of course) I get the
message

Set face default (M-g d) ...

in the command line buffer.

jb
----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Jul 18 '05 #7
jblazi <jb****@hotmail.com> writes:
On Sat, 10 Jan 2004 16:25:59 -0600, Skip Montanaro wrote:
(define-key esc-map [g] 'goto-line)


For one reason or the other, this does not work.


It doesn't work because the above will specifically set ESC-g to goto-line,
which isn't what you want, I guess. Try either of the following:

(global-set-key [(meta g)] 'goto-line)
(global-set-key "\eg" 'goto-line)

Before you save your .emacs you can verify that the command works by pressing
C-xC-e right after the closing ')' and then M-g.

'as
Jul 18 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Tom Locke | last post by:
Hi All, I'm having trouble with the python shell within emacs. It's hanging when I use tkinter. Setup is: Windows XP emacs 21.3 py-mode 4.6 Recipe:
6
by: Christian Seberino | last post by:
I am looking at the ELSE home page and trying to figure out if I should invest the time to learn about the ELSE minor mode for Emacs. Is there any programmer out there using ELSE that is getting...
5
by: Tuxtrax | last post by:
Hi all My editor of choice on linux for python, bar none, is xemacs. I love the python mode that detects a python file and handles indentation and coloration for me automagically. I have been...
0
by: Greg Novak | last post by:
I realize that this is a pretty esoteric question, but I'm not even getting any traction on it by myself. I believe that the problem has to do with signal handling for programs run underneath...
3
by: porterboy | last post by:
CONTEXT: I am using Emacs to edit Python code and sometimes also Matlab code. When I hit <return> in a loop of some sort, Emacs usually gets the nesting indentation right, which is particularly...
12
by: Rex Eastbourne | last post by:
Hi, I'm interested in running a Python interpreter in Emacs. I have Python extensions for Emacs, and my python menu lists "C-c !" as the command to run the interpreter. Yet when I run it I get...
1
by: Marcio Rosa da Silva | last post by:
Hi all, My first try on using RST to write an email. so I can (will) make mistakes :-) I am experiencing the problem shown in this thread_ of the `python-mode`_ discussion list hosted at...
12
by: Thomas Bartkus | last post by:
Does anyone use emacs together with both WordStar key bindings and python mode? I'm afraid that Wordstar editing key commands are burned R/O into my knuckles! I would like to play with emacs...
4
by: emin.shopper | last post by:
Emacs seems to freeze when doing certain shell commands on Microsoft Windows. The following is a simple example with Xemacs: ---------------------------------------------------------- ...
15
by: skip | last post by:
If you're an Emacs user who has used both python-mode.el (the python mode code distributed with Python and XEmacs) and python.el (the python mode code distributed with GNU Emacs), I'd like to get...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.