X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/011cddd649d81956ce13b9325b059dac78e61c4d..f2536958ec711b50a0cf8714defb921193ea8ae4:/lisp/cus-theme.el diff --git a/lisp/cus-theme.el b/lisp/cus-theme.el index dbe4fa42d8..3160e23d9e 100644 --- a/lisp/cus-theme.el +++ b/lisp/cus-theme.el @@ -1,9 +1,9 @@ ;;; cus-theme.el -- custom theme creation user interface ;; -;; Copyright (C) 2001-2013 Free Software Foundation, Inc. +;; Copyright (C) 2001-2016 Free Software Foundation, Inc. ;; ;; Author: Alex Schroeder -;; Maintainer: FSF +;; Maintainer: emacs-devel@gnu.org ;; Keywords: help, faces ;; Package: emacs @@ -32,9 +32,11 @@ (defvar custom-new-theme-mode-map (let ((map (make-keymap))) - (set-keymap-parent map widget-keymap) + (set-keymap-parent map (make-composed-keymap widget-keymap + special-mode-map)) (suppress-keymap map) (define-key map "\C-x\C-s" 'custom-theme-write) + (define-key map "q" 'Custom-buffer-done) (define-key map "n" 'widget-forward) (define-key map "p" 'widget-backward) map) @@ -490,10 +492,10 @@ It includes all faces in list FACES." '("" "c"))) doc) (when fn - (princ " in `") + (princ (substitute-command-keys " in `")) (help-insert-xref-button (file-name-nondirectory fn) 'help-theme-def fn) - (princ "'")) + (princ (substitute-command-keys "'"))) (princ ".\n") (if (custom-theme-p theme) (progn @@ -515,7 +517,7 @@ It includes all faces in list FACES." (setq doc (nth 2 sexp))))))) (princ "\n\nDocumentation:\n") (princ (if (stringp doc) - doc + (substitute-command-keys doc) "No documentation available."))) (princ "\n\nYou can ") (help-insert-xref-button "customize" 'help-theme-edit theme) @@ -585,7 +587,7 @@ Theme files are named *-theme.el in `")) :follow-link 'mouse-face :action (lambda (_widget &rest _ignore) (describe-variable 'custom-theme-load-path))) - (widget-insert "'.\n\n") + (widget-insert (substitute-command-keys "'.\n\n")) ;; If the user has made customizations, display a warning and ;; provide buttons to disable or convert them.