aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuri Linkov2008-03-16 17:45:11 +0000
committerJuri Linkov2008-03-16 17:45:11 +0000
commitf564644bb24e635429f9fc8990882d3291f69387 (patch)
tree7e0dc63cf37ffd3fe015375f5abf77dade76007e
parenta86b330f8fa754c4b919ea14d0c5dcf261f055c4 (diff)
downloademacs-f564644bb24e635429f9fc8990882d3291f69387.tar.gz
emacs-f564644bb24e635429f9fc8990882d3291f69387.zip
(goto-line): Leave mark at previous position. Doc fix.
-rw-r--r--lisp/ChangeLog16
-rw-r--r--lisp/simple.el12
2 files changed, 24 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 1c4070fc14b..8fdbf297e1e 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,19 @@
12008-03-16 Juri Linkov <juri@jurta.org>
2
3 * isearch.el (isearch-edit-string): Use search-ring-yank-pointer
4 and regexp-search-ring-yank-pointer for the HISTPOS argument of
5 read-from-minibuffer to provide the correct initial minibuffer
6 history position in isearch-edit-string when it is called from
7 isearch-ring-adjust.
8
9 * menu-bar.el (kill-this-buffer): Use menu-bar-non-minibuffer-window-p
10 to check if the current buffer is the minibuffer, and in this case
11 call abort-recursive-edit to kill the minibuffer. Doc fix.
12 (kill-this-buffer-enabled-p): Allow this function to return non-nil
13 when the current buffer is the minibuffer.
14
15 * simple.el (goto-line): Leave mark at previous position. Doc fix.
16
12008-03-16 Tassilo Horn <tassilo@member.fsf.org> 172008-03-16 Tassilo Horn <tassilo@member.fsf.org>
2 18
3 * doc-view.el (doc-view-doc->txt, doc-view-convert-current-doc): 19 * doc-view.el (doc-view-doc->txt, doc-view-convert-current-doc):
diff --git a/lisp/simple.el b/lisp/simple.el
index c140e719d58..d7cea7d3194 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -819,10 +819,11 @@ that uses or sets the mark."
819 819
820(defun goto-line (arg &optional buffer) 820(defun goto-line (arg &optional buffer)
821 "Goto line ARG, counting from line 1 at beginning of buffer. 821 "Goto line ARG, counting from line 1 at beginning of buffer.
822Normally, move point in the current buffer. 822Normally, move point in the current buffer, and leave mark at previous
823With just \\[universal-argument] as argument, move point in the most recently 823position. With just \\[universal-argument] as argument, move point
824displayed other buffer, and switch to it. When called from Lisp code, 824in the most recently displayed other buffer, and switch to it.
825the optional argument BUFFER specifies a buffer to switch to. 825When called from Lisp code, the optional argument BUFFER specifies
826a buffer to switch to.
826 827
827If there's a number in the buffer at point, it is the default for ARG." 828If there's a number in the buffer at point, it is the default for ARG."
828 (interactive 829 (interactive
@@ -859,6 +860,9 @@ If there's a number in the buffer at point, it is the default for ARG."
859 (let ((window (get-buffer-window buffer))) 860 (let ((window (get-buffer-window buffer)))
860 (if window (select-window window) 861 (if window (select-window window)
861 (switch-to-buffer-other-window buffer)))) 862 (switch-to-buffer-other-window buffer))))
863 ;; Leave mark at previous position
864 (or (and transient-mark-mode mark-active)
865 (push-mark))
862 ;; Move to the specified line number in that buffer. 866 ;; Move to the specified line number in that buffer.
863 (save-restriction 867 (save-restriction
864 (widen) 868 (widen)