aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/simple.el
diff options
context:
space:
mode:
authorMiles Bader2005-06-06 02:39:45 +0000
committerMiles Bader2005-06-06 02:39:45 +0000
commitfdffd346262841cb194225ea0acd8059c57ec2d4 (patch)
treed8b3699131f7d1b94bc46c7d8be62af6b8b5ebfe /lisp/simple.el
parenta5c508fe3a3f456c987283156315d0384d38fe9e (diff)
parenta9b4333620eb259e974445066a8e64cee0c21d69 (diff)
downloademacs-fdffd346262841cb194225ea0acd8059c57ec2d4.tar.gz
emacs-fdffd346262841cb194225ea0acd8059c57ec2d4.zip
Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-57
Merge from emacs--cvs-trunk--0 Patches applied: * emacs--cvs-trunk--0 (patch 324-352) - Merge from gnus--rel--5.10 - Update from CVS - etc/emacs-buffer.gdb: Remove RCS keywords * gnus--rel--5.10 (patch 70-79) - Update from CVS - Merge from emacs--cvs-trunk--0
Diffstat (limited to 'lisp/simple.el')
-rw-r--r--lisp/simple.el30
1 files changed, 16 insertions, 14 deletions
diff --git a/lisp/simple.el b/lisp/simple.el
index 240896b5eef..016c48924e0 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -920,21 +920,21 @@ in *Help* buffer. See also the command `describe-char'."
920(defvar read-expression-history nil) 920(defvar read-expression-history nil)
921 921
922(defcustom eval-expression-print-level 4 922(defcustom eval-expression-print-level 4
923 "*Value to use for `print-level' when printing value in `eval-expression'. 923 "Value for `print-level' while printing value in `eval-expression'.
924A value of nil means no limit." 924A value of nil means no limit."
925 :group 'lisp 925 :group 'lisp
926 :type '(choice (const :tag "No Limit" nil) integer) 926 :type '(choice (const :tag "No Limit" nil) integer)
927 :version "21.1") 927 :version "21.1")
928 928
929(defcustom eval-expression-print-length 12 929(defcustom eval-expression-print-length 12
930 "*Value to use for `print-length' when printing value in `eval-expression'. 930 "Value for `print-length' while printing value in `eval-expression'.
931A value of nil means no limit." 931A value of nil means no limit."
932 :group 'lisp 932 :group 'lisp
933 :type '(choice (const :tag "No Limit" nil) integer) 933 :type '(choice (const :tag "No Limit" nil) integer)
934 :version "21.1") 934 :version "21.1")
935 935
936(defcustom eval-expression-debug-on-error t 936(defcustom eval-expression-debug-on-error t
937 "*Non-nil means set `debug-on-error' when evaluating in `eval-expression'. 937 "If non-nil set `debug-on-error' to t in `eval-expression'.
938If nil, don't change the value of `debug-on-error'." 938If nil, don't change the value of `debug-on-error'."
939 :group 'lisp 939 :group 'lisp
940 :type 'boolean 940 :type 'boolean
@@ -2247,7 +2247,7 @@ is nil, the buffer substring is returned unaltered.
2247If DELETE is non-nil, the text between BEG and END is deleted 2247If DELETE is non-nil, the text between BEG and END is deleted
2248from the buffer. 2248from the buffer.
2249 2249
2250Point is temporarily set to BEG before caling 2250Point is temporarily set to BEG before calling
2251`buffer-substring-filters', in case the functions need to know 2251`buffer-substring-filters', in case the functions need to know
2252where the text came from. 2252where the text came from.
2253 2253
@@ -3351,25 +3351,27 @@ Outline mode sets this."
3351 (let ((forward (> arg 0)) 3351 (let ((forward (> arg 0))
3352 (part (nth 2 (pos-visible-in-window-p (point) nil t)))) 3352 (part (nth 2 (pos-visible-in-window-p (point) nil t))))
3353 (if (and (consp part) 3353 (if (and (consp part)
3354 (> (setq part (if forward (cdr part) (car part))) 0)) 3354 (> (if forward (cdr part) (car part)) 0))
3355 (set-window-vscroll nil 3355 (set-window-vscroll nil
3356 (if forward 3356 (if forward
3357 (+ (window-vscroll nil t) 3357 (+ (window-vscroll nil t)
3358 (min part 3358 (min (cdr part)
3359 (* (frame-char-height) arg))) 3359 (* (frame-char-height) arg)))
3360 (max 0 3360 (max 0
3361 (- (window-vscroll nil t) 3361 (- (window-vscroll nil t)
3362 (min part 3362 (min (car part)
3363 (* (frame-char-height) (- arg)))))) 3363 (* (frame-char-height) (- arg))))))
3364 t) 3364 t)
3365 (set-window-vscroll nil 0) 3365 (set-window-vscroll nil 0)
3366 (when (line-move-1 arg noerror to-end) 3366 (when (line-move-1 arg noerror to-end)
3367 (sit-for 0) 3367 (when (not forward)
3368 (if (and (not forward) 3368 ;; Update display before calling pos-visible-in-window-p,
3369 (setq part (nth 2 (pos-visible-in-window-p 3369 ;; because it depends on window-start being up-to-date.
3370 (line-beginning-position) nil t))) 3370 (sit-for 0)
3371 (> (cdr part) 0)) 3371 (if (and (setq part (nth 2 (pos-visible-in-window-p
3372 (set-window-vscroll nil (cdr part) t)) 3372 (line-beginning-position) nil t)))
3373 (> (cdr part) 0))
3374 (set-window-vscroll nil (cdr part) t)))
3373 t))) 3375 t)))
3374 (line-move-1 arg noerror to-end))) 3376 (line-move-1 arg noerror to-end)))
3375 3377
@@ -4762,7 +4764,7 @@ Use \\<completion-list-mode-map>\\[mouse-choose-completion] to select one\
4762 (setq major-mode 'completion-list-mode) 4764 (setq major-mode 'completion-list-mode)
4763 (make-local-variable 'completion-base-size) 4765 (make-local-variable 'completion-base-size)
4764 (setq completion-base-size nil) 4766 (setq completion-base-size nil)
4765 (run-hooks 'completion-list-mode-hook)) 4767 (run-mode-hooks 'completion-list-mode-hook))
4766 4768
4767(defun completion-list-mode-finish () 4769(defun completion-list-mode-finish ()
4768 "Finish setup of the completions buffer. 4770 "Finish setup of the completions buffer.