# HG changeset patch # User Jim Blandy # Date 712895805 0 # Node ID c5c4c2ee8f268562fc72e6a31b4a9b6cc64aa660 # Parent 7b984ce24013c05daa00ba2f99f25033c50a89c7 *** empty log message *** diff -r 7b984ce24013 -r c5c4c2ee8f26 lisp/simple.el --- a/lisp/simple.el Tue Aug 04 02:02:27 1992 +0000 +++ b/lisp/simple.el Tue Aug 04 02:36:45 1992 +0000 @@ -392,39 +392,21 @@ (setq minibuffer-history-variable 'minibuffer-history) (setq minibuffer-history-position nil) -(define-key minibuffer-local-map "\en" 'next-history-element) -(define-key minibuffer-local-ns-map "\en" 'next-history-element) -(define-key minibuffer-local-ns-map "\en" 'next-history-element) -(define-key minibuffer-local-completion-map "\en" 'next-history-element) -(define-key minibuffer-local-completion-map "\en" 'next-history-element) -(define-key minibuffer-local-must-match-map "\en" 'next-history-element) - -(define-key minibuffer-local-map "\ep" 'previous-history-element) -(define-key minibuffer-local-ns-map "\ep" 'previous-history-element) -(define-key minibuffer-local-ns-map "\ep" 'previous-history-element) -(define-key minibuffer-local-completion-map "\ep" 'previous-history-element) -(define-key minibuffer-local-completion-map "\ep" 'previous-history-element) -(define-key minibuffer-local-must-match-map "\ep" 'previous-history-element) - -(define-key minibuffer-local-map "\er" 'previous-matching-history-element) -(define-key minibuffer-local-ns-map "\er" 'previous-matching-history-element) -(define-key minibuffer-local-ns-map "\er" 'previous-matching-history-element) -(define-key minibuffer-local-completion-map "\er" - 'previous-matching-history-element) -(define-key minibuffer-local-completion-map "\er" - 'previous-matching-history-element) -(define-key minibuffer-local-must-match-map "\er" - 'previous-matching-history-element) - -(define-key minibuffer-local-map "\es" 'next-matching-history-element) -(define-key minibuffer-local-ns-map "\es" 'next-matching-history-element) -(define-key minibuffer-local-ns-map "\es" 'next-matching-history-element) -(define-key minibuffer-local-completion-map "\es" - 'next-matching-history-element) -(define-key minibuffer-local-completion-map "\es" - 'next-matching-history-element) -(define-key minibuffer-local-must-match-map "\es" - 'next-matching-history-element) +(mapcar + (function (lambda (key-and-command) + (mapcar + (function (lambda (keymap) + (define-key (symbol-value keymap) + (car key-and-command) + (cdr key-and-command)))) + '(minibuffer-local-map + minibuffer-local-ns-map + minibuffer-local-completion-map + minibuffer-local-must-match-map)))) + '(("\en" . next-history-element) ([next] . next-history-element) + ("\ep" . previous-history-element) ([prior] . previous-history-element) + ("\er" . previous-matching-history-element) + ("\es" . next-matching-history-element))) (put 'previous-matching-history-element 'enable-recursive-minibuffers t) (defun previous-matching-history-element (regexp n) @@ -872,10 +854,6 @@ (let ((interprogram-paste (and (= n 0) interprogram-paste-function (funcall interprogram-paste-function)))) -;;; RMS: Turn off the interprogram paste feature -;;; because currently it is wedged: it is always -;;; giving a null string. - (setq interprogram-paste nil) (if interprogram-paste (progn ;; Disable the interprogram cut function when we add the new