From: Lars Ingebrigtsen Date: Fri, 4 Dec 2020 09:46:34 +0000 (+0100) Subject: Preload iso-trans.el X-Git-Tag: emacs-28.0.90~4935 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f365eb2e055c05e8dbd76aca6b6d10b0a888d5da;p=emacs.git Preload iso-trans.el * lisp/loadup.el ("international/iso-transl"): Load by default so that we get `Alt-' bindings (bug#21310). * lisp/international/iso-transl.el: Remove autoloads and some comments. --- diff --git a/etc/NEWS b/etc/NEWS index 81f1fe3c1a5..7f18f129461 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -1352,6 +1352,12 @@ This new command (bound to 'C-c C-l') regenerates the current hunk. ** Miscellaneous +--- +*** iso-transl is now preloaded. +This means that keystrokes like 'Alt-[' are defined by default, +instead of only becoming available after doing (for instance) +'C-x 8 '. + *** New user option 'completions-detailed'. When non-nil, some commands like 'describe-symbol' show more detailed completions with more information in completion prefix and suffix. diff --git a/lisp/international/iso-transl.el b/lisp/international/iso-transl.el index bde989d41de..39fd75ea514 100644 --- a/lisp/international/iso-transl.el +++ b/lisp/international/iso-transl.el @@ -30,22 +30,12 @@ ;; A-umlaut as `C-x 8 " A' or `Alt-" A' (if you have an Alt key) or ;; `umlaut A' (if you have an umlaut/diaeresis key). -;; C-x 8 is set up to autoload this package, -;; but Alt keys and dead accent keys are only defined -;; once you have loaded the package. It is nontrivial -;; to make all of the Alt keys autoload, and it is not clear -;; that the dead accent keys SHOULD autoload this package. - ;; This package supports all characters defined by ISO 8859-1, along ;; with a few other ISO 10646 characters commonly used in English and ;; basic math. ;;; Code: -;;; Provide some binding for startup: -;;;###autoload (define-key key-translation-map "\C-x8" 'iso-transl-ctl-x-8-map) -;;;###autoload (autoload 'iso-transl-ctl-x-8-map "iso-transl" "Keymap for C-x 8 prefix." t 'keymap) - (defvar iso-transl-dead-key-alist '((?\' . mute-acute) (?\` . mute-grave) diff --git a/lisp/loadup.el b/lisp/loadup.el index 4b711eed065..d3c8664bbca 100644 --- a/lisp/loadup.el +++ b/lisp/loadup.el @@ -351,6 +351,7 @@ (load "cus-start") ;Late to reduce customize-rogue (needs loaddefs.el anyway) (if (not (eq system-type 'ms-dos)) (load "tooltip")) +(load "international/iso-transl") ; Binds Alt-[ and friends. ;; This file doesn't exist when building a development version of Emacs ;; from the repository. It is generated just after temacs is built.