From owner-freebsd-hackers Thu Oct 10 01:50:04 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id BAA01169 for hackers-outgoing; Thu, 10 Oct 1996 01:50:04 -0700 (PDT) Received: from ki1.chemie.fu-berlin.de (ki1.Chemie.FU-Berlin.DE [160.45.24.21]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id BAA01141 for ; Thu, 10 Oct 1996 01:49:59 -0700 (PDT) Received: by ki1.chemie.fu-berlin.de (Smail3.1.28.1) from mail.hanse.de (193.174.9.9) with smtp id ; Thu, 10 Oct 96 10:48 MEST Received: from wavehh.UUCP by mail.hanse.de with UUCP for freebsd-hackers@freebsd.org id ; Thu, 10 Oct 96 09:48 MET Received: by wavehh.hanse.de (4.1/SMI-4.1) id AA29697; Thu, 10 Oct 96 10:46:11 +0200 From: cracauer@wavehh.hanse.de (Martin Cracauer) Message-Id: <9610100846.AA29697@wavehh.hanse.de> Subject: Clean solution for emacs-Meta key problem found To: freebsd-hackers@freebsd.org Date: Thu, 10 Oct 1996 10:46:11 +0200 (MET DST) #Reply-To: cracauer@wavehh.hanse.de X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk The reason for emacs not using the Meta key in curses mode when remote logged in from an xterm is: emacs-19.34/src/term.c: meta_key = tgetflag ("km") || tgetflag ("MT"); Neither of these where set in FreeBSD's termcap entry for xterm. I copied the xterm entry from NetBSD's termcap file and things work now, without need to modify ~/.emacs. I prepare a pr for it (unless one of the commiters just commit a fix and drops me a note). It looks like FreeBSD's xterm entry is just outdated. The NetBSD entry is contributed by Eric Raymond, as it seems. For syscons, you'll have to change the mapfile as suggested and set one of these flags in syscon's termcap entry, too. That may open the problem how to decide whether an Meta-enabled keymap has been loaded and set ":km:" as needed. Martin -- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Martin Cracauer http://www.bik-gmbh.de/~cracauer Fax +49 40 522 85 36