aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-09-14 09:01:02 +0000
committerRichard M. Stallman1994-09-14 09:01:02 +0000
commit7908d27ce0ca21164af1e6ea4918f21f542d399a (patch)
tree8ef39f6e6feff69e6bedeab214014d1a4f2ac7e5
parent838cd60df95de0207196b78e483ce5288ad784e7 (diff)
downloademacs-7908d27ce0ca21164af1e6ea4918f21f542d399a.tar.gz
emacs-7908d27ce0ca21164af1e6ea4918f21f542d399a.zip
(repeat-complex-command, next-history-element,
previous-matching-history-element): Override print-level when offering command lines to edit.
-rw-r--r--lisp/simple.el16
1 files changed, 10 insertions, 6 deletions
diff --git a/lisp/simple.el b/lisp/simple.el
index c26690c9ca3..6bcfd42d46c 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -423,9 +423,10 @@ to get different commands to edit and resubmit."
423 (if elt 423 (if elt
424 (progn 424 (progn
425 (setq newcmd 425 (setq newcmd
426 (read-from-minibuffer 426 (let ((print-level nil))
427 "Redo: " (prin1-to-string elt) read-expression-map t 427 (read-from-minibuffer
428 (cons 'command-history arg))) 428 "Redo: " (prin1-to-string elt) read-expression-map t
429 (cons 'command-history arg))))
429 430
430 ;; If command was added to command-history as a string, 431 ;; If command was added to command-history as a string,
431 ;; get rid of that. We want only evallable expressions there. 432 ;; get rid of that. We want only evallable expressions there.
@@ -512,14 +513,16 @@ If N is negative, find the next or Nth next match."
512 "No earlier matching history item"))) 513 "No earlier matching history item")))
513 (if (string-match regexp 514 (if (string-match regexp
514 (if minibuffer-history-sexp-flag 515 (if minibuffer-history-sexp-flag
515 (prin1-to-string (nth (1- pos) history)) 516 (let ((print-level nil))
517 (prin1-to-string (nth (1- pos) history)))
516 (nth (1- pos) history))) 518 (nth (1- pos) history)))
517 (setq n (+ n (if (< n 0) 1 -1))))) 519 (setq n (+ n (if (< n 0) 1 -1)))))
518 (setq minibuffer-history-position pos) 520 (setq minibuffer-history-position pos)
519 (erase-buffer) 521 (erase-buffer)
520 (let ((elt (nth (1- pos) history))) 522 (let ((elt (nth (1- pos) history)))
521 (insert (if minibuffer-history-sexp-flag 523 (insert (if minibuffer-history-sexp-flag
522 (prin1-to-string elt) 524 (let ((print-level nil))
525 (prin1-to-string elt))
523 elt))) 526 elt)))
524 (goto-char (point-min))) 527 (goto-char (point-min)))
525 (if (or (eq (car (car command-history)) 'previous-matching-history-element) 528 (if (or (eq (car (car command-history)) 'previous-matching-history-element)
@@ -562,7 +565,8 @@ If N is negative, find the previous or Nth previous match."
562 (symbol-value minibuffer-history-variable)))) 565 (symbol-value minibuffer-history-variable))))
563 (insert 566 (insert
564 (if minibuffer-history-sexp-flag 567 (if minibuffer-history-sexp-flag
565 (prin1-to-string elt) 568 (let ((print-level nil))
569 (prin1-to-string elt))
566 elt))) 570 elt)))
567 (goto-char (point-min))))) 571 (goto-char (point-min)))))
568 572