Inability to use the Meta key in gnome-terminal (probably related to invoking the HUD?)

Asked by Jo Vermeulen

When I'm using Bash in gnome-terminal, I'm currently unable to use the GNU Readline shortcuts to move forward a word, because pressing Left Alt + a key tries to open a menu option. For example, Alt+f opens the file menu. For some reason, the Alt key is bound to the file menu here.

Expected behavior: Alt+f moves the cursor forward one word
Current behavior: Alt+f opens the file menu.

The strange thing is that it does work in an GUI version of Emacs (without invoking the HUD), but not when Emacs is run directly in the terminal (emacs23-nox). It also works correctly in xterm (after Ctrl + left-click > select "Meta Sends Escape"). So I'm not sure if it's a bug in gnome-terminal or in unity.

When you hold the Alt key in Emacs or xterm, nothing happens, the HUD is only displayed when you release the key again. Of course, when you're using it as a meta key, you're never doing that, you're holding it and combining it with another key. So that's the correct behaviour. In gnome-terminal, however, holding the Alt key doesn't do anything. It seems to be the case that combinations using the Alt key are interpreted as shortcuts for the menubar in gnome-terminal.

On a related note, I'm wondering whether binding Alt to the HUD won't conflict with the usage of Alt as a meta key? While Alt is the obvious choice (and I like the concept of the HUD), it would be very annoying to be unable to use the meta key in other programs.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu unity Edit question
Assignee:
No assignee Edit question
Solved by:
Jo Vermeulen
Solved:
Last query:
Last reply:
Revision history for this message
Jo Vermeulen (jozilla) said :
#1

Sorry, this would be better as a bug report. Closing the question now.