diff options
| author | Karoly Lorentey | 2005-06-15 12:57:51 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2005-06-15 12:57:51 +0000 |
| commit | ef85512e51f043d73788f00a2aed13cccde0682c (patch) | |
| tree | fc1fa1378533250f260ef8eaa9a84ae882d9df84 /lisp/simple.el | |
| parent | 8736257554f49445f7b4402ac7a9436b38ce6452 (diff) | |
| parent | ef88a9999004e6c26148c8d280d6a41f623d7249 (diff) | |
| download | emacs-ef85512e51f043d73788f00a2aed13cccde0682c.tar.gz emacs-ef85512e51f043d73788f00a2aed13cccde0682c.zip | |
Merged from miles@gnu.org--gnu-2005 (patch 80-82, 350-422)
Patches applied:
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-350
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-351
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-352
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-353
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-354
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-355
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-356
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-357
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-358
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-359
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-360
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-361
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-362
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-363
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-364
Remove "-face" suffix from widget faces
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-365
Remove "-face" suffix from custom faces
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-366
Remove "-face" suffix from change-log faces
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-367
Remove "-face" suffix from compilation faces
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-368
Remove "-face" suffix from diff-mode faces
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-369
lisp/longlines.el (longlines-visible-face): Face removed
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-370
Remove "-face" suffix from woman faces
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-371
Remove "-face" suffix from whitespace-highlight face
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-372
Remove "-face" suffix from ruler-mode faces
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-373
Remove "-face" suffix from show-paren faces
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-374
Remove "-face" suffix from log-view faces
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-375
Remove "-face" suffix from smerge faces
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-376
Remove "-face" suffix from show-tabs faces
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-377
Remove "-face" suffix from highlight-changes faces
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-378
Remove "-face" suffix from and downcase info faces
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-379
Remove "-face" suffix from pcvs faces
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-380
Update uses of renamed pcvs faces
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-381
Tweak ChangeLog
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-382
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-383
Remove "-face" suffix from strokes-char face
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-384
Remove "-face" suffix from compare-windows face
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-385
Remove "-face" suffix from calendar faces
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-386
Remove "-face" suffix from diary-button face
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-387
Remove "-face" suffix from testcover faces
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-388
Remove "-face" suffix from viper faces
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-389
Remove "-face" suffix from org faces
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-390
Remove "-face" suffix from sgml-namespace face
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-391
Remove "-face" suffix from table-cell face
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-392
Remove "-face" suffix from tex-mode faces
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-393
Remove "-face" suffix from texinfo-heading face
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-394
Remove "-face" suffix from flyspell faces
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-395
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-396
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-397
Remove "-face" suffix from gomoku faces
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-398
Remove "-face" suffix from mpuz faces
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-399
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-400
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-401
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-402
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-403
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-404
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-405
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-406
Merge from gnus--rel--5.10
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-407
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-408
Remove "-face" suffix from Buffer-menu-buffer face
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-409
Remove "-face" suffix from antlr-mode faces
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-410
Remove "-face" suffix from ebrowse faces
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-411
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-412
Remove "-face" suffix from flymake faces
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-413
Remove "-face" suffix from idlwave faces
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-414
Remove "-face" suffix from sh-script faces
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-415
Remove "-face" suffix from vhdl-mode faces
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-416
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-417
Remove "-face" suffix from which-func face
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-418
Remove "-face" suffix from cperl-mode faces
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-419
Remove "-face" suffix from ld-script faces
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-420
Fix cperl-mode font-lock problem
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-421
Tweak which-func face
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-422
Update from CVS
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-80
Merge from emacs--cvs-trunk--0
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-81
Update from CVS
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-82
Update from CVS
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-350
Diffstat (limited to 'lisp/simple.el')
| -rw-r--r-- | lisp/simple.el | 43 |
1 files changed, 28 insertions, 15 deletions
diff --git a/lisp/simple.el b/lisp/simple.el index cd7a90b5111..bd2de4121d3 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'. |
| 924 | A value of nil means no limit." | 924 | A 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'. |
| 931 | A value of nil means no limit." | 931 | A 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'. |
| 938 | If nil, don't change the value of `debug-on-error'." | 938 | If nil, don't change the value of `debug-on-error'." |
| 939 | :group 'lisp | 939 | :group 'lisp |
| 940 | :type 'boolean | 940 | :type 'boolean |
| @@ -3346,34 +3346,43 @@ Outline mode sets this." | |||
| 3346 | (or (memq prop buffer-invisibility-spec) | 3346 | (or (memq prop buffer-invisibility-spec) |
| 3347 | (assq prop buffer-invisibility-spec))))) | 3347 | (assq prop buffer-invisibility-spec))))) |
| 3348 | 3348 | ||
| 3349 | ;; Perform vertical scrolling of tall images if necessary. | 3349 | ;; This is like line-move-1 except that it also performs |
| 3350 | ;; Don't vscroll in a keyboard macro. | 3350 | ;; vertical scrolling of tall images if appropriate. |
| 3351 | ;; That is not really a clean thing to do, since it mixes | ||
| 3352 | ;; scrolling with cursor motion. But so far we don't have | ||
| 3353 | ;; a cleaner solution to the problem of making C-n do something | ||
| 3354 | ;; useful given a tall image. | ||
| 3351 | (defun line-move (arg &optional noerror to-end try-vscroll) | 3355 | (defun line-move (arg &optional noerror to-end try-vscroll) |
| 3352 | (if (and auto-window-vscroll try-vscroll | 3356 | (if (and auto-window-vscroll try-vscroll |
| 3357 | ;; But don't vscroll in a keyboard macro. | ||
| 3353 | (not defining-kbd-macro) | 3358 | (not defining-kbd-macro) |
| 3354 | (not executing-kbd-macro)) | 3359 | (not executing-kbd-macro)) |
| 3355 | (let ((forward (> arg 0)) | 3360 | (let ((forward (> arg 0)) |
| 3356 | (part (nth 2 (pos-visible-in-window-p (point) nil t)))) | 3361 | (part (nth 2 (pos-visible-in-window-p (point) nil t)))) |
| 3357 | (if (and (consp part) | 3362 | (if (and (consp part) |
| 3358 | (> (setq part (if forward (cdr part) (car part))) 0)) | 3363 | (> (if forward (cdr part) (car part)) 0)) |
| 3359 | (set-window-vscroll nil | 3364 | (set-window-vscroll nil |
| 3360 | (if forward | 3365 | (if forward |
| 3361 | (+ (window-vscroll nil t) | 3366 | (+ (window-vscroll nil t) |
| 3362 | (min part | 3367 | (min (cdr part) |
| 3363 | (* (frame-char-height) arg))) | 3368 | (* (frame-char-height) arg))) |
| 3364 | (max 0 | 3369 | (max 0 |
| 3365 | (- (window-vscroll nil t) | 3370 | (- (window-vscroll nil t) |
| 3366 | (min part | 3371 | (min (car part) |
| 3367 | (* (frame-char-height) (- arg)))))) | 3372 | (* (frame-char-height) (- arg)))))) |
| 3368 | t) | 3373 | t) |
| 3369 | (set-window-vscroll nil 0) | 3374 | (set-window-vscroll nil 0) |
| 3370 | (when (line-move-1 arg noerror to-end) | 3375 | (when (line-move-1 arg noerror to-end) |
| 3371 | (sit-for 0) | 3376 | (when (not forward) |
| 3372 | (if (and (not forward) | 3377 | ;; Update display before calling pos-visible-in-window-p, |
| 3373 | (setq part (nth 2 (pos-visible-in-window-p | 3378 | ;; because it depends on window-start being up-to-date. |
| 3374 | (line-beginning-position) nil t))) | 3379 | (sit-for 0) |
| 3375 | (> (cdr part) 0)) | 3380 | ;; If the current line is partly hidden at the bottom, |
| 3376 | (set-window-vscroll nil (cdr part) t)) | 3381 | ;; scroll it partially up so as to unhide the bottom. |
| 3382 | (if (and (setq part (nth 2 (pos-visible-in-window-p | ||
| 3383 | (line-beginning-position) nil t))) | ||
| 3384 | (> (cdr part) 0)) | ||
| 3385 | (set-window-vscroll nil (cdr part) t))) | ||
| 3377 | t))) | 3386 | t))) |
| 3378 | (line-move-1 arg noerror to-end))) | 3387 | (line-move-1 arg noerror to-end))) |
| 3379 | 3388 | ||
| @@ -4835,7 +4844,11 @@ of the differing parts is, by contrast, slightly highlighted." | |||
| 4835 | (- (point) (minibuffer-prompt-end))))) | 4844 | (- (point) (minibuffer-prompt-end))))) |
| 4836 | ;; Otherwise, in minibuffer, the whole input is being completed. | 4845 | ;; Otherwise, in minibuffer, the whole input is being completed. |
| 4837 | (if (minibufferp mainbuf) | 4846 | (if (minibufferp mainbuf) |
| 4838 | (setq completion-base-size 0))) | 4847 | (if (and (symbolp minibuffer-completion-table) |
| 4848 | (get minibuffer-completion-table 'completion-base-size-function)) | ||
| 4849 | (setq completion-base-size | ||
| 4850 | (funcall (get minibuffer-completion-table 'completion-base-size-function))) | ||
| 4851 | (setq completion-base-size 0)))) | ||
| 4839 | ;; Put faces on first uncommon characters and common parts. | 4852 | ;; Put faces on first uncommon characters and common parts. |
| 4840 | (when completion-base-size | 4853 | (when completion-base-size |
| 4841 | (let* ((common-string-length | 4854 | (let* ((common-string-length |