• Emacs Alt, Meta: partial fail

    From Mike Spencer@21:1/5 to All on Sat Oct 19 03:02:14 2019
    Jeez, looks kinda dead here. But maybe Ivan or another guru is
    checking in betimes.

    New Slackware 14.2 install, Emacs 24.5

    I have configured the keyboard so that:

    (1) Caps Lock -> Control
    (2) Left Control key -> ALT_L

    (1) is fine everywhere.

    (2) works in twm (ALT-button-1 puts a window behind)
    works in X console select (ALT-F{1-7})
    works in Emacs-24.5-with-x11 running in its own window (M-x whatever)
    works in Emacs-24.5-with-x11 running in a console (M-x whatever)

    fails in Emacs-24.5-with-x11 -nw in an xterm
    fails in Emacs-24.5-no-x11 in an xterm
    fails in Emacs-24.5-with-x11 via telnet in an xterm on another host


    In the fail cases, ALT-x -> o-with slash; Alt-p -> edh character.

    The left ALT key fails in the same way as the left Control key
    configured to be ALT. So ALT-x isn't M-x in emacs -nw.

    I've been regularly dumping new versions of Emacs and using Emacs
    20.7.2 ever since I started with Slackware 8 circa 1999. The
    (reconfigured) ALT key has been fine. Not with 24.5. Is there a fix/workaround or should I just go back to 20.7?

    (Yes, I know 24.5 is itself now long in the tooth. Bandwidth and
    other factors constrain me to get the version that's in the distro
    working. Too many other tedious details/tasks involved in the install
    to mess with yet anothe package just now.)

    --
    Mike Spencer Nova Scotia, Canada

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Vladimir Sedach@21:1/5 to Mike Spencer on Sat Oct 19 10:31:26 2019
    Mike Spencer <mds@bogus.nodomain.nowhere> writes:

    I have configured the keyboard so that:

    (1) Caps Lock -> Control
    (2) Left Control key -> ALT_L

    What xmodmap commands/configuration are you using to do this, and
    what keycode does xev show for left alt/left control?

    --
    Vladimir Sedach
    Software engineering services in Los Angeles https://oneofus.la

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mike Spencer@21:1/5 to Vladimir Sedach on Sun Oct 20 03:24:28 2019
    Vladimir Sedach <vsedach@oneofus.la> writes:

    Mike Spencer <mds@bogus.nodomain.nowhere> writes:

    I have configured the keyboard so that:

    (1) Caps Lock -> Control
    (2) Left Control key -> ALT_L

    What xmodmap commands/configuration are you using to do this, and
    what keycode does xev show for left alt/left control?

    Thanks for replying. I have a fix from someone on gnu.emacs.help.
    For the record, it is to put:

    XTerm*metaSendsEscape: true

    in ~/.Xresources or as arg to the -xrm switch when starting the xterm
    in which (a recent version of) emacs -nw is to be run. Needs to be
    done also on a remote host when running (recent) emacs via telnet in
    an xterm on the remote host. Seems to be the answer after assorted
    tests.

    My ~/.Xmodmap seems to do the right thing for everything else I do in
    X so I'll spare you the many lines of that file and output from xmodmap
    (-pm | -pke). (But I'll be back if something further goes awry. :-)

    Tnx,
    --
    Mike Spencer Nova Scotia, Canada

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Pankaj Jangid@21:1/5 to Vladimir Sedach on Sun Oct 20 19:01:09 2019
    Vladimir Sedach <vsedach@oneofus.la> writes:

    Mike Spencer <mds@bogus.nodomain.nowhere> writes:

    I have configured the keyboard so that:

    (1) Caps Lock -> Control
    (2) Left Control key -> ALT_L

    What xmodmap commands/configuration are you using to do this, and
    what keycode does xev show for left alt/left control?

    These are OS related settings. On MacOS,

    Preference > Keyboard > Modifier Keys.

    --
    Pankaj Jangid

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)