You are not logged in.

#1 2010-02-22 23:26:09

flarkis
Member
From: Tallinn, Estonia
Registered: 2010-02-22
Posts: 8

[SOLVED?] Problem with multi key macros in emacs

I recently made the switch from gentoo to arch, for the most part everything is up and working. The only thing I am having a problem with is GNU emacs, for some reason i can't use some macros that need more than 2 keys to be pressed. For example M-< will not work but for some reason C-_ will. I haven't got the faintest clue as to what the problem is. I am running xfce and using the us keyboard layout. If i run emacs outside of X than all the macros work fine. Any ideas?

Thanks in advance.

Last edited by flarkis (2010-03-01 22:57:24)

Offline

#2 2010-02-23 00:06:12

burnside
Member
From: Asheville, NC
Registered: 2008-09-27
Posts: 45

Re: [SOLVED?] Problem with multi key macros in emacs

Okay, easiest first:

Are you sure the missing keys aren't assigned to XFCE?

Offline

#3 2010-02-23 03:05:45

chpln
Member
From: Australia
Registered: 2009-09-17
Posts: 361

Re: [SOLVED?] Problem with multi key macros in emacs

Also, could you perform a relatively short test-case that exhibits this problem, then post the output of 'M-x view-lossage'.

Offline

#4 2010-02-23 03:38:30

flarkis
Member
From: Tallinn, Estonia
Registered: 2010-02-22
Posts: 8

Re: [SOLVED?] Problem with multi key macros in emacs

I checked an none of the keys are binded to xfce, as well doing the M-X view-lossage show that when I try and enter something like "M-<" I actually get "M-," that leads me to believe that X is not receiving the shift button.

Offline

#5 2010-02-24 17:00:20

olvar
Member
Registered: 2009-11-13
Posts: 97

Re: [SOLVED?] Problem with multi key macros in emacs

is it possible your terminal is eating the keystrokes?
I use urxvt and when I try to do something like <C-Shift-x> it will get the bindings and get into some special mode (ISO 14755) to enter unicode characters.
Most probably you didn't had that in gentoo cos you have to compile with that option.
There may be some way to deactivate that, but couldn't find it in the quick glance I gave to the man page.

Offline

#6 2010-02-24 21:27:45

flarkis
Member
From: Tallinn, Estonia
Registered: 2010-02-22
Posts: 8

Re: [SOLVED?] Problem with multi key macros in emacs

seeing as this problem persists in both the terminal and gui versions i don't think that is possible. I also tried running both versions in twm to see if anything was different. The keys still aren't seen correctly but this time they are replaced with random characters that are not part of my keymap. An X11 problem or keyboard configuration problem?

<?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- -->
<deviceinfo version="0.2">
  <device>
    <match key="info.capabilities" contains="input.keymap">
      <append key="info.callouts.add" type="strlist">hal-setup-keymap</append>
    </match>

    <match key="info.capabilities" contains="input.keys">
      <merge key="input.xkb.rules" type="string">base</merge>

      <!-- If we're using Linux, we use evdev by default (falling back to
           keyboard otherwise). -->
      <merge key="input.xkb.model" type="string">keyboard</merge>
      <match key="/org/freedesktop/Hal/devices/computer:system.kernel.name"
             string="Linux">
        <merge key="input.xkb.model" type="string">evdev</merge>
      </match>

      <merge key="input.xkb.layout" type="string">us</merge>
      <merge key="input.xkb.variant" type="string" />
    </match>
  </device>
</deviceinfo>

Last edited by flarkis (2010-02-25 03:28:08)

Offline

#7 2010-02-27 01:01:13

flarkis
Member
From: Tallinn, Estonia
Registered: 2010-02-22
Posts: 8

Re: [SOLVED?] Problem with multi key macros in emacs

any help anyone?

Offline

#8 2010-02-27 01:31:57

chpln
Member
From: Australia
Registered: 2009-09-17
Posts: 361

Re: [SOLVED?] Problem with multi key macros in emacs

It sounds to me like an issue with X, not your keyboard itself.  Though if you're able to type '<', '>', etc. normally (i.e., when not using additional modifiers), I'm not really sure where to start looking.

Offline

#9 2010-03-01 22:54:22

flarkis
Member
From: Tallinn, Estonia
Registered: 2010-02-22
Posts: 8

Re: [SOLVED?] Problem with multi key macros in emacs

Yea that is my problem as well, I have no where to start looking.

EDIT: I have no idea what happened but it started working today after an full system update. Thanks for all the help.

Last edited by flarkis (2010-03-01 22:56:55)

Offline

#10 2011-01-03 16:17:24

X-dark
Member
From: France
Registered: 2009-10-25
Posts: 142
Website

Re: [SOLVED?] Problem with multi key macros in emacs

olvar wrote:

is it possible your terminal is eating the keystrokes?
I use urxvt and when I try to do something like <C-Shift-x> it will get the bindings and get into some special mode (ISO 14755) to enter unicode characters.
Most probably you didn't had that in gentoo cos you have to compile with that option.
There may be some way to deactivate that, but couldn't find it in the quick glance I gave to the man page.

See there : https://bbs.archlinux.org/viewtopic.php … 46#p874146


Cedric Girard

Offline

Board footer

Powered by FluxBB