aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Blandy1992-08-04 02:36:45 +0000
committerJim Blandy1992-08-04 02:36:45 +0000
commit29929437a388ae7dc43fab9f1a9f002162eb4348 (patch)
tree9cba221f54b8cd58ab80c754b29fc0ccb97b27f0
parentb5bb472ebef87cbf33931c671436738ea102f6b0 (diff)
downloademacs-29929437a388ae7dc43fab9f1a9f002162eb4348.tar.gz
emacs-29929437a388ae7dc43fab9f1a9f002162eb4348.zip
*** empty log message ***
-rw-r--r--lisp/simple.el52
1 files changed, 15 insertions, 37 deletions
diff --git a/lisp/simple.el b/lisp/simple.el
index 6609ba49c76..b883f213945 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -392,39 +392,21 @@ to get different commands to edit and resubmit."
392(setq minibuffer-history-variable 'minibuffer-history) 392(setq minibuffer-history-variable 'minibuffer-history)
393(setq minibuffer-history-position nil) 393(setq minibuffer-history-position nil)
394 394
395(define-key minibuffer-local-map "\en" 'next-history-element) 395(mapcar
396(define-key minibuffer-local-ns-map "\en" 'next-history-element) 396 (function (lambda (key-and-command)
397(define-key minibuffer-local-ns-map "\en" 'next-history-element) 397 (mapcar
398(define-key minibuffer-local-completion-map "\en" 'next-history-element) 398 (function (lambda (keymap)
399(define-key minibuffer-local-completion-map "\en" 'next-history-element) 399 (define-key (symbol-value keymap)
400(define-key minibuffer-local-must-match-map "\en" 'next-history-element) 400 (car key-and-command)
401 401 (cdr key-and-command))))
402(define-key minibuffer-local-map "\ep" 'previous-history-element) 402 '(minibuffer-local-map
403(define-key minibuffer-local-ns-map "\ep" 'previous-history-element) 403 minibuffer-local-ns-map
404(define-key minibuffer-local-ns-map "\ep" 'previous-history-element) 404 minibuffer-local-completion-map
405(define-key minibuffer-local-completion-map "\ep" 'previous-history-element) 405 minibuffer-local-must-match-map))))
406(define-key minibuffer-local-completion-map "\ep" 'previous-history-element) 406 '(("\en" . next-history-element) ([next] . next-history-element)
407(define-key minibuffer-local-must-match-map "\ep" 'previous-history-element) 407 ("\ep" . previous-history-element) ([prior] . previous-history-element)
408 408 ("\er" . previous-matching-history-element)
409(define-key minibuffer-local-map "\er" 'previous-matching-history-element) 409 ("\es" . next-matching-history-element)))
410(define-key minibuffer-local-ns-map "\er" 'previous-matching-history-element)
411(define-key minibuffer-local-ns-map "\er" 'previous-matching-history-element)
412(define-key minibuffer-local-completion-map "\er"
413 'previous-matching-history-element)
414(define-key minibuffer-local-completion-map "\er"
415 'previous-matching-history-element)
416(define-key minibuffer-local-must-match-map "\er"
417 'previous-matching-history-element)
418
419(define-key minibuffer-local-map "\es" 'next-matching-history-element)
420(define-key minibuffer-local-ns-map "\es" 'next-matching-history-element)
421(define-key minibuffer-local-ns-map "\es" 'next-matching-history-element)
422(define-key minibuffer-local-completion-map "\es"
423 'next-matching-history-element)
424(define-key minibuffer-local-completion-map "\es"
425 'next-matching-history-element)
426(define-key minibuffer-local-must-match-map "\es"
427 'next-matching-history-element)
428 410
429(put 'previous-matching-history-element 'enable-recursive-minibuffers t) 411(put 'previous-matching-history-element 'enable-recursive-minibuffers t)
430(defun previous-matching-history-element (regexp n) 412(defun previous-matching-history-element (regexp n)
@@ -872,10 +854,6 @@ yanking point; just return the Nth kill forward."
872 (let ((interprogram-paste (and (= n 0) 854 (let ((interprogram-paste (and (= n 0)
873 interprogram-paste-function 855 interprogram-paste-function
874 (funcall interprogram-paste-function)))) 856 (funcall interprogram-paste-function))))
875;;; RMS: Turn off the interprogram paste feature
876;;; because currently it is wedged: it is always
877;;; giving a null string.
878 (setq interprogram-paste nil)
879 (if interprogram-paste 857 (if interprogram-paste
880 (progn 858 (progn
881 ;; Disable the interprogram cut function when we add the new 859 ;; Disable the interprogram cut function when we add the new