diff options
| author | Richard M. Stallman | 2007-03-04 17:48:56 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2007-03-04 17:48:56 +0000 |
| commit | d7e7ecd748c0de17e5d8923a51e7c53d6dce18af (patch) | |
| tree | 6c29b618f3f3f5d1e1a7a3ce3d1957366bebdd96 | |
| parent | 4dea1735d4fd173dd8b7a160229093e2588a1a9a (diff) | |
| download | emacs-d7e7ecd748c0de17e5d8923a51e7c53d6dce18af.tar.gz emacs-d7e7ecd748c0de17e5d8923a51e7c53d6dce18af.zip | |
(beginning-of-buffer, end-of-buffer):
Avoid treating plain C-u like numeric arg.
(completion-setup-function): Don't set default-directory to nil.
| -rw-r--r-- | lisp/simple.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/simple.el b/lisp/simple.el index 44408c4f427..4b3ebecb12c 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -758,7 +758,7 @@ Don't use this command in Lisp programs! | |||
| 758 | (/ size 10)) | 758 | (/ size 10)) |
| 759 | (/ (+ 10 (* size (prefix-numeric-value arg))) 10))) | 759 | (/ (+ 10 (* size (prefix-numeric-value arg))) 10))) |
| 760 | (point-min)))) | 760 | (point-min)))) |
| 761 | (if arg (forward-line 1))) | 761 | (if (and arg (not (consp arg))) (forward-line 1))) |
| 762 | 762 | ||
| 763 | (defun end-of-buffer (&optional arg) | 763 | (defun end-of-buffer (&optional arg) |
| 764 | "Move point to the end of the buffer; leave mark at previous position. | 764 | "Move point to the end of the buffer; leave mark at previous position. |
| @@ -785,7 +785,7 @@ Don't use this command in Lisp programs! | |||
| 785 | (point-max)))) | 785 | (point-max)))) |
| 786 | ;; If we went to a place in the middle of the buffer, | 786 | ;; If we went to a place in the middle of the buffer, |
| 787 | ;; adjust it to the beginning of a line. | 787 | ;; adjust it to the beginning of a line. |
| 788 | (cond (arg (forward-line 1)) | 788 | (cond ((and arg (not (consp arg))) (forward-line 1)) |
| 789 | ((> (point) (window-end nil t)) | 789 | ((> (point) (window-end nil t)) |
| 790 | ;; If the end of the buffer is not already on the screen, | 790 | ;; If the end of the buffer is not already on the screen, |
| 791 | ;; then scroll specially to put it near, but not at, the bottom. | 791 | ;; then scroll specially to put it near, but not at, the bottom. |
| @@ -5088,7 +5088,8 @@ of the minibuffer before point is always the common substring.)") | |||
| 5088 | ;; so it will get copied into the completion list buffer. | 5088 | ;; so it will get copied into the completion list buffer. |
| 5089 | (if minibuffer-completing-file-name | 5089 | (if minibuffer-completing-file-name |
| 5090 | (with-current-buffer mainbuf | 5090 | (with-current-buffer mainbuf |
| 5091 | (setq default-directory (file-name-directory mbuf-contents)))) | 5091 | (setq default-directory (or (file-name-directory mbuf-contents) |
| 5092 | default-directory)))) | ||
| 5092 | (with-current-buffer standard-output | 5093 | (with-current-buffer standard-output |
| 5093 | (completion-list-mode) | 5094 | (completion-list-mode) |
| 5094 | (set (make-local-variable 'completion-reference-buffer) mainbuf) | 5095 | (set (make-local-variable 'completion-reference-buffer) mainbuf) |