aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorPaul Eggert2011-09-30 10:44:37 -0700
committerPaul Eggert2011-09-30 10:44:37 -0700
commit535272bb73eff5a5db01301e5b60f6128d6dc788 (patch)
treeb41937c81a61bf737ef15efb434fc06338da25b4 /lisp
parent38532ce6ecb33efee5f697886d9fd20a3c2cda01 (diff)
parentf701dc2abbcfb64c0c4d02ac899dccb03ee2b246 (diff)
downloademacs-535272bb73eff5a5db01301e5b60f6128d6dc788.tar.gz
emacs-535272bb73eff5a5db01301e5b60f6128d6dc788.zip
Merge from trunk.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog33
-rw-r--r--lisp/descr-text.el5
-rw-r--r--lisp/help.el11
-rw-r--r--lisp/pcmpl-cvs.el4
-rw-r--r--lisp/simple.el18
-rw-r--r--lisp/startup.el16
-rw-r--r--lisp/window.el9
7 files changed, 73 insertions, 23 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index f83dbdd344a..38651d42596 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,38 @@
12011-09-30 Martin Rudalics <rudalics@gmx.at>
2
3 * startup.el (command-line-1): Fix last fix by inserting
4 initial-scratch-message into *scratch* before displaying it.
5 (Bug#9605) and (Bug#9636)
6
72011-09-29 Eli Zaretskii <eliz@gnu.org>
8
9 * simple.el (line-move): If auto-hscroll-mode is disabled and the
10 window is hscrolled, move by logical lines. (Bug#9607)
11 (line-move-visual): Update the doc string to the above effect.
12
132011-09-29 Martin Rudalics <rudalics@gmx.at>
14
15 * window.el (display-buffer-record-window): When WINDOW is the
16 selected window use `point' instead of `window-point'. (Bug#9626)
17
18 * startup.el (command-line-1): Use insert-before-markers when
19 inserting initial-scratch-message. (Bug#9605)
20
21 * help.el (help-window): Remove variable.
22
232011-09-29 Glenn Morris <rgm@gnu.org>
24
25 * pcmpl-cvs.el (pcomplete/cvs): Add "status" handler.
26
272011-09-29 Juanma Barranquero <lekktu@gmail.com>
28
29 * descr-text.el (describe-char-categories): Accept category
30 descriptions more than one line long.
31
12011-09-28 Stefan Monnier <monnier@iro.umontreal.ca> 322011-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
2 33
34 * simple.el (delete-trailing-whitespace): Fix last change.
35
3 * progmodes/perl-mode.el (perl-syntax-propertize-function): 36 * progmodes/perl-mode.el (perl-syntax-propertize-function):
4 Don't confuse "y => 3" as the beginning of a `y' operation. 37 Don't confuse "y => 3" as the beginning of a `y' operation.
5 38
diff --git a/lisp/descr-text.el b/lisp/descr-text.el
index fca06adb2a9..7d267cec480 100644
--- a/lisp/descr-text.el
+++ b/lisp/descr-text.el
@@ -366,9 +366,10 @@ This function is semi-obsolete. Use `get-char-code-property'."
366 (list (mapconcat 366 (list (mapconcat
367 (lambda (x) 367 (lambda (x)
368 (let* ((c (category-docstring x)) 368 (let* ((c (category-docstring x))
369 (doc (if (string-match "\\`\\(.*?\\)\n\\(.*\\)\\'" c) 369 (doc (if (string-match "\\`\\(.*?\\)\n" c)
370 (propertize (match-string 1 c) 370 (propertize (match-string 1 c)
371 'help-echo (match-string 2 c)) 371 'help-echo
372 (substring c (1+ (match-end 1))))
372 c))) 373 c)))
373 (format "%c:%s" x doc))) 374 (format "%c:%s" x doc)))
374 mnemonics ", "))))) 375 mnemonics ", ")))))
diff --git a/lisp/help.el b/lisp/help.el
index f4338c28ffb..e2af0759a65 100644
--- a/lisp/help.el
+++ b/lisp/help.el
@@ -37,17 +37,6 @@
37(add-hook 'temp-buffer-setup-hook 'help-mode-setup) 37(add-hook 'temp-buffer-setup-hook 'help-mode-setup)
38(add-hook 'temp-buffer-show-hook 'help-mode-finish) 38(add-hook 'temp-buffer-show-hook 'help-mode-finish)
39 39
40;; The variable `help-window' below is used by `help-mode-finish' to
41;; communicate the window displaying help (the "help window") to the
42;; macro `with-help-window'. The latter sets `help-window' to t before
43;; invoking `with-output-to-temp-buffer'. If and only if `help-window'
44;; is eq to t, `help-mode-finish' (called by `temp-buffer-setup-hook')
45;; sets `help-window' to the window selected by `display-buffer'.
46;; Exiting `with-help-window' and calling `help-print-return-message'
47;; reset `help-window' to nil.
48(defvar help-window nil
49 "Window chosen for displaying help.")
50
51;; `help-window-point-marker' is a marker you can move to a valid 40;; `help-window-point-marker' is a marker you can move to a valid
52;; position of the buffer shown in the help window in order to override 41;; position of the buffer shown in the help window in order to override
53;; the standard positioning mechanism (`point-min') chosen by 42;; the standard positioning mechanism (`point-min') chosen by
diff --git a/lisp/pcmpl-cvs.el b/lisp/pcmpl-cvs.el
index 3ff07bca20e..9c9b72ab701 100644
--- a/lisp/pcmpl-cvs.el
+++ b/lisp/pcmpl-cvs.el
@@ -107,6 +107,10 @@
107 "j(pcmpl-cvs-tags '(?U ?P))" 107 "j(pcmpl-cvs-tags '(?U ?P))"
108 "I(pcmpl-cvs-entries '(??))W?")) 108 "I(pcmpl-cvs-entries '(??))W?"))
109 (while (pcomplete-here (pcmpl-cvs-entries '(?U ?P))))) 109 (while (pcomplete-here (pcmpl-cvs-entries '(?U ?P)))))
110 ((pcomplete-test "status")
111 (setq pcomplete-help "(cvs)File status")
112 (pcomplete-opt "vlR")
113 (while (pcomplete-here (pcmpl-cvs-entries))))
110 (t 114 (t
111 (while (pcomplete-here (pcmpl-cvs-entries))))))) 115 (while (pcomplete-here (pcmpl-cvs-entries)))))))
112 116
diff --git a/lisp/simple.el b/lisp/simple.el
index 142270930ca..1ab90792bfa 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -589,9 +589,9 @@ If the region is active, only delete whitespace within the region."
589 ;; Delete trailing empty lines. 589 ;; Delete trailing empty lines.
590 (goto-char end-marker) 590 (goto-char end-marker)
591 (when (and (not end) 591 (when (and (not end)
592 (<= (skip-chars-backward "\n") -2)
593 ;; Really the end of buffer. 592 ;; Really the end of buffer.
594 (save-restriction (widen) (eobp))) 593 (save-restriction (widen) (eobp))
594 (<= (skip-chars-backward "\n") -2))
595 (delete-region (1+ (point)) end-marker)) 595 (delete-region (1+ (point)) end-marker))
596 (set-marker end-marker nil)))) 596 (set-marker end-marker nil))))
597 ;; Return nil for the benefit of `write-file-functions'. 597 ;; Return nil for the benefit of `write-file-functions'.
@@ -4244,7 +4244,9 @@ screen, instead of relying on buffer contents alone. It takes
4244into account variable-width characters and line continuation. 4244into account variable-width characters and line continuation.
4245If nil, `line-move' moves point by logical lines. 4245If nil, `line-move' moves point by logical lines.
4246A non-nil setting of `goal-column' overrides the value of this variable 4246A non-nil setting of `goal-column' overrides the value of this variable
4247and forces movement by logical lines." 4247and forces movement by logical lines.
4248Disabling `auto-hscroll-mode' also overrides forces movement by logical
4249lines when the window is horizontally scrolled."
4248 :type 'boolean 4250 :type 'boolean
4249 :group 'editing-basics 4251 :group 'editing-basics
4250 :version "23.1") 4252 :version "23.1")
@@ -4321,7 +4323,15 @@ and forces movement by logical lines."
4321 (not executing-kbd-macro) 4323 (not executing-kbd-macro)
4322 (line-move-partial arg noerror to-end)) 4324 (line-move-partial arg noerror to-end))
4323 (set-window-vscroll nil 0 t) 4325 (set-window-vscroll nil 0 t)
4324 (if (and line-move-visual (not goal-column)) 4326 (if (and line-move-visual
4327 ;; Display-based column are incompatible with goal-column.
4328 (not goal-column)
4329 ;; When auto-hscroll-mode is turned off and the text in
4330 ;; the window is scrolled to the left, display-based
4331 ;; motion doesn't make sense (because each logical line
4332 ;; occupies exactly one screen line).
4333 (not (and (null auto-hscroll-mode)
4334 (> (window-hscroll) 0))))
4325 (line-move-visual arg noerror) 4335 (line-move-visual arg noerror)
4326 (line-move-1 arg noerror to-end)))) 4336 (line-move-1 arg noerror to-end))))
4327 4337
diff --git a/lisp/startup.el b/lisp/startup.el
index 6c3bb397e9a..16cf41506bd 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -2307,13 +2307,13 @@ A fancy display is used on graphic displays, normal otherwise."
2307 ;; abort later. 2307 ;; abort later.
2308 (unless (frame-live-p (selected-frame)) (kill-emacs nil)))))) 2308 (unless (frame-live-p (selected-frame)) (kill-emacs nil))))))
2309 2309
2310 (when initial-buffer-choice 2310 (when (eq initial-buffer-choice t)
2311 (cond ((eq initial-buffer-choice t) 2311 ;; When initial-buffer-choice equals t make sure that *scratch*
2312 (switch-to-buffer (get-buffer-create "*scratch*"))) 2312 ;; exists.
2313 ((stringp initial-buffer-choice) 2313 (get-buffer-create "*scratch*"))
2314 (find-file initial-buffer-choice))))
2315 2314
2316 ;; If *scratch* exists and is empty, insert initial-scratch-message. 2315 ;; If *scratch* exists and is empty, insert initial-scratch-message.
2316 ;; Do this before switching to *scratch* below to handle bug#9605.
2317 (and initial-scratch-message 2317 (and initial-scratch-message
2318 (get-buffer "*scratch*") 2318 (get-buffer "*scratch*")
2319 (with-current-buffer "*scratch*" 2319 (with-current-buffer "*scratch*"
@@ -2321,6 +2321,12 @@ A fancy display is used on graphic displays, normal otherwise."
2321 (insert initial-scratch-message) 2321 (insert initial-scratch-message)
2322 (set-buffer-modified-p nil)))) 2322 (set-buffer-modified-p nil))))
2323 2323
2324 (when initial-buffer-choice
2325 (cond ((eq initial-buffer-choice t)
2326 (switch-to-buffer (get-buffer-create "*scratch*")))
2327 ((stringp initial-buffer-choice)
2328 (find-file initial-buffer-choice))))
2329
2324 (if (or inhibit-startup-screen 2330 (if (or inhibit-startup-screen
2325 initial-buffer-choice 2331 initial-buffer-choice
2326 noninteractive 2332 noninteractive
diff --git a/lisp/window.el b/lisp/window.el
index 512eebcc663..c6722a62c74 100644
--- a/lisp/window.el
+++ b/lisp/window.el
@@ -3833,7 +3833,14 @@ element is BUFFER."
3833 (list 'other 3833 (list 'other
3834 ;; A quadruple of WINDOW's buffer, start, point and height. 3834 ;; A quadruple of WINDOW's buffer, start, point and height.
3835 (list (window-buffer window) (window-start window) 3835 (list (window-buffer window) (window-start window)
3836 (window-point window) (window-total-size window)) 3836 (if (eq window (selected-window))
3837 ;; When WINDOW is the selected window use its
3838 ;; buffer's `point' instead of `window-point'
3839 ;; (Bug#9626).
3840 (with-current-buffer (window-buffer window)
3841 (point))
3842 (window-point window))
3843 (window-total-size window))
3837 (selected-window) buffer)))) 3844 (selected-window) buffer))))
3838 ((eq type 'window) 3845 ((eq type 'window)
3839 ;; WINDOW has been created on an existing frame. 3846 ;; WINDOW has been created on an existing frame.