Loading ...
Sorry, an error occurred while loading the content.

1716RE: [jasspa] me -n ?

Expand Messages
  • Phillips, Steven
    Nov 14, 2005
      The use of 'C-h k' for this type of problem has limited use. The problem
      is that these keys events send multiple key sequences and unless you
      have already setup the translation correctly ME will generate several
      input key events for that single key press.

      For example, if the Home key generates "^[ [ 1 ~", without the correct
      translation this will be broken down to:

      "esc [" - '^[' is an escape char, this is bound to backward-paragraph
      "1" - Insert a '1'
      "~" - Insert a '~'

      Doing a describe-key before pressing this key would report 'esc-[
      backward-paragraph' but you would not see this as ME then immediately
      receives a '1' and '~' key event. ME tends to go ballistic if you press
      these extended keys without the correct translation because they all
      tend to start with '^['.

      So how do you fix this? As already discussed, it is through the use of
      translate-key, previous posting
      http://groups.yahoo.com/group/jasspa/message/928 covers most of this.

      I would however like to add 2 suggestions on how to get the required key
      translation sequence:

      1) Run 'sh' (the most basic shell), press the problematic key and then
      return (enter). As sh does not usually handle these keys either it will
      usually print something like:

      ~[[1~: Not found

      2) A simpler way of using ME's $recent-keys is to run:

      me -n @a

      Because 'a.emf' does not exist ME effectively starts up with no
      configuration, i.e. no translate-key settings that can cause confusion.
      This is easier that trying to find and comment out all the existing


      > -----Original Message-----
      > From: jasspa@yahoogroups.com [mailto:jasspa@yahoogroups.com] On Behalf
      > Thomas Hundt
      > Sent: Saturday, November 12, 2005 8:11 AM
      > To: jasspa@yahoogroups.com
      > Subject: Re: [jasspa] me -n ?
      > You are doing a C-h k to find out what ME is seeing the key as, right?
      > And you've done a search for likely keywords like "keysym" and
      > "mapping" and "map" in the ME yahoo group archive, right?
      > -Th
      > Meino Christian Cramer wrote:
      > > Hi,
      > >
      > > Sometimes I like to use "me -n" instead of "me". Unfortunately some
      > > keys behaves oddly like "Del", "Home", "End" and such. Instead of
      > > moving around in the text they do insert a control-character into
      > > sourcecode I am writing.
      > >
      > > TERM is set to "xterm".
      > >
      > > I fear, when tweaking any setting and "me -n" will run, I will
      > > confuse the "pure me" instead.
      > >
      > > What can I do to circumvent the problem ?
      > >
      > > Does "me -n" behaves ok when using together with "screen" ?
      > >
      > > Keep microemacsing!
      > > Meino
      > ------------------------ Yahoo! Groups Sponsor
      > This is an unmoderated list. JASSPA is not responsible for the content
      > any material posted to this list.
      > To unsubscribe, send a mail message to
      > mailto:jasspa-unsubscribe@yahoogroups.com
      > or visit http://groups.yahoo.com/group/jasspa and
      > modify your account settings manually.
      > Yahoo! Groups Links
    • Show all 10 messages in this topic