Variable: x-alternatives-map

x-alternatives-map is a variable defined in common-win.el.gz.

Value

<iso-lefttab>    Keyboard Macro
M-<backspace>    Keyboard Macro
M-<clear>        Keyboard Macro
M-<delete>       Keyboard Macro
M-<escape>       Keyboard Macro
M-<linefeed>     Keyboard Macro
M-<return>       Keyboard Macro
M-<tab>          Keyboard Macro
S-<iso-lefttab>  Keyboard Macro

Documentation

Keymap of possible alternative meanings for some keys.

Source Code

;; Defined in /usr/src/emacs/lisp/term/common-win.el.gz
;;; common-win.el --- common part of handling window systems  -*- lexical-binding: t; -*-

;; Copyright (C) 1993-1994, 2001-2022 Free Software Foundation, Inc.

;; Maintainer: emacs-devel@gnu.org
;; Keywords: terminals

;; This file is part of GNU Emacs.

;; GNU Emacs is free software: you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.

;; GNU Emacs is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;; GNU General Public License for more details.

;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs.  If not, see <https://www.gnu.org/licenses/>.

;;; Commentary:

;;; Code:

;;;; Function keys

(defvar x-alternatives-map
  (let ((map (make-sparse-keymap)))
    ;; Map certain keypad keys into ASCII characters that people usually expect.
    (define-key map [M-backspace] [?\M-\d])
    (define-key map [M-delete] [?\M-\d])
    (define-key map [M-tab] [?\M-\t])
    (define-key map [M-linefeed] [?\M-\n])
    (define-key map [M-clear] [?\M-\C-l])
    (define-key map [M-return] [?\M-\C-m])
    (define-key map [M-escape] [?\M-\e])
    (unless (featurep 'ns)
      (define-key map [iso-lefttab] [backtab])
      (define-key map [S-iso-lefttab] [backtab]))
    (and (or (eq system-type 'windows-nt)
	     (featurep 'ns))
	 (define-key map [S-tab] [backtab]))
    map)
  "Keymap of possible alternative meanings for some keys.")