aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiles Bader2007-08-03 05:57:16 +0000
committerMiles Bader2007-08-03 05:57:16 +0000
commit29adb7b55e89881d05165ddacd28144d1f878355 (patch)
tree8ea24492e6d79c7befd2537b72054c7c420615bd
parentba55f217f5620668f4205f5bff83ae51abf584f8 (diff)
parent0896d93184a719bc994a3e699de27190aac0acb1 (diff)
downloademacs-29adb7b55e89881d05165ddacd28144d1f878355.tar.gz
emacs-29adb7b55e89881d05165ddacd28144d1f878355.zip
Merge from emacs--devo--0
Patches applied: * emacs--devo--0 (patch 843-844) - Update from CVS - Merge from emacs--rel--22 * emacs--rel--22 (patch 84-87) - Update from CVS - Change capitalization of VC backend names for new backends Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-241
-rw-r--r--admin/FOR-RELEASE4
-rw-r--r--lisp/ChangeLog39
-rw-r--r--lisp/ChangeLog.122
-rw-r--r--lisp/calc/calc-ext.el19
-rw-r--r--lisp/calc/calc-graph.el74
-rw-r--r--lisp/cus-edit.el8
-rw-r--r--lisp/emulation/tpu-edt.el15
-rw-r--r--lisp/faces.el25
-rw-r--r--lisp/mail/rmailsum.el10
-rw-r--r--lisp/menu-bar.el3
-rw-r--r--lisp/progmodes/compile.el31
-rw-r--r--lisp/server.el1
-rw-r--r--lisp/startup.el4
-rw-r--r--src/ChangeLog4
-rw-r--r--src/fileio.c8
-rw-r--r--src/xselect.c6
16 files changed, 186 insertions, 67 deletions
diff --git a/admin/FOR-RELEASE b/admin/FOR-RELEASE
index 9ae3f1a2ed7..9d67f20240a 100644
--- a/admin/FOR-RELEASE
+++ b/admin/FOR-RELEASE
@@ -53,6 +53,10 @@ http://lists.gnu.org/archive/html/emacs-devel/2007-04/msg01113.html
53 53
54** dksw@eircom.net, 3 Jul: Telnet mode (rsh/ssh) 54** dksw@eircom.net, 3 Jul: Telnet mode (rsh/ssh)
55 55
56** bojohan+news@dd.chalmers.se, 1 Aug: n_schumacher@web.de: modification hooks called only once in
57
58** sdl.web@gmail.com: problem with transparent PNG image display
59
56* FIXES FOR EMACS 22.2 60* FIXES FOR EMACS 22.2
57 61
58Here we list small fixes that arrived too late for Emacs 22.1, but 62Here we list small fixes that arrived too late for Emacs 22.1, but
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 19014a996f9..8d35fa06ac5 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,12 @@
12007-08-03 Jay Belanger <jay.p.belanger@gmail.com>
2
3 * calc/calc-ext.el (math-get-value,math-get-sdev)
4 (math-contains-sdev): New functions.
5
6 * calc/calc-graph.el (calc-graph-format-data)
7 (calc-graph-add-curve): Check for error forms.
8 (calc-graph-set-styles): Add option for error forms.
9
12007-08-03 Miles Bader <miles@gnu.org> 102007-08-03 Miles Bader <miles@gnu.org>
2 11
3 * vc-hooks.el (vc-handled-backends): Change capitalization of VC 12 * vc-hooks.el (vc-handled-backends): Change capitalization of VC
@@ -9,6 +18,36 @@
9 * vc-bzr.el (vc-bzr-dir-state, vc-bzr-dired-state-info) 18 * vc-bzr.el (vc-bzr-dir-state, vc-bzr-dired-state-info)
10 (vc-bzr-unload-hook): Use `Bzr' as VC backend name, not `BZR'. 19 (vc-bzr-unload-hook): Use `Bzr' as VC backend name, not `BZR'.
11 20
212007-08-02 Richard Stallman <rms@gnu.org>
22
23 * mail/rmailsum.el (rmail-make-summary-line): Find end of msg number
24 to update deleted flag.
25
26 * cus-edit.el (customize-apropos, customize-apropos-options)
27 (customize-apropos-faces, customize-apropos-groups): Improve prompt.
28
29 * menu-bar.el (menu-bar-help-menu): Add "About GNU" menu item.
30
31 * startup.el (fancy-splash-head, startup-echo-area-message):
32 Change message text.
33
34 * emulation/tpu-edt.el (next-line-internal): Setting deleted.
35 All callers use line-move.
36
37 * progmodes/compile.el (compilation-find-buffer): Return current
38 buffer immediately if suitable.
39 (compile, compilation-buffer-name, compilation-start): Doc fixes.
40
412007-07-31 Daiki Ueno <ueno@unixuser.org>
42
43 * faces.el (face-normalize-spec): New function.
44 (frame-set-background-mode): Normalize face-spec before calling
45 face-spec-match-p.
46
472007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
48
49 * server.el (server-window): Add switch-to-buffer-other-frame option.
50
122007-08-03 Glenn Morris <rgm@gnu.org> 512007-08-03 Glenn Morris <rgm@gnu.org>
13 52
14 * cus-edit.el (customize-apropos): Make the error message indicate 53 * cus-edit.el (customize-apropos): Make the error message indicate
diff --git a/lisp/ChangeLog.12 b/lisp/ChangeLog.12
index 1dccfd1a0a3..df869c0fa5d 100644
--- a/lisp/ChangeLog.12
+++ b/lisp/ChangeLog.12
@@ -11278,7 +11278,7 @@
11278 (name, size, mode) <define-ibuffer-column>: Add a header-mouse-map 11278 (name, size, mode) <define-ibuffer-column>: Add a header-mouse-map
11279 property. 11279 property.
11280 11280
112812006-04-02 Drew Adams <drew.adams@oracle.com> (tiny change) 112812006-04-02 Drew Adams <drew.adams@oracle.com>
11282 11282
11283 * speedbar.el (speedbar-after-create-hook): Doc fix. 11283 * speedbar.el (speedbar-after-create-hook): Doc fix.
11284 11284
diff --git a/lisp/calc/calc-ext.el b/lisp/calc/calc-ext.el
index b517a54c6f0..5a334778aa5 100644
--- a/lisp/calc/calc-ext.el
+++ b/lisp/calc/calc-ext.el
@@ -2213,6 +2213,25 @@ calc-kill calc-kill-region calc-yank))))
2213 a 2213 a
2214 (math-reject-arg a 'constp))) 2214 (math-reject-arg a 'constp)))
2215 2215
2216;;; Some functions for working with error forms.
2217(defun math-get-value (x)
2218 "Get the mean value of the error form X.
2219If X is not an error form, return X."
2220 (if (eq (car-safe x) 'sdev)
2221 (nth 1 x)
2222 x))
2223
2224(defun math-get-sdev (x &optional one)
2225 "Get the standard deviation of the error form X.
2226If X is not an error form, return 1."
2227 (if (eq (car-safe x) 'sdev)
2228 (nth 2 x)
2229 (if one 1 0)))
2230
2231(defun math-contains-sdev-p (ls)
2232 "Non-nil if the list LS contains an error form."
2233 (let ((ls (if (eq (car-safe ls) 'vec) (cdr ls) ls)))
2234 (memq t (mapcar (lambda (x) (eq (car-safe x) 'sdev)) ls))))
2216 2235
2217;;; Coerce integer A to be a small integer. [S I] 2236;;; Coerce integer A to be a small integer. [S I]
2218(defun math-fixnum (a) 2237(defun math-fixnum (a)
diff --git a/lisp/calc/calc-graph.el b/lisp/calc/calc-graph.el
index 48bdecf59a6..a7e85d9fa85 100644
--- a/lisp/calc/calc-graph.el
+++ b/lisp/calc/calc-graph.el
@@ -218,7 +218,8 @@
218 0) 218 0)
219 (or (and (Math-num-integerp pstyle) (math-trunc pstyle)) 219 (or (and (Math-num-integerp pstyle) (math-trunc pstyle))
220 (if (eq (car-safe (calc-var-value (nth 2 ydata))) 'vec) 220 (if (eq (car-safe (calc-var-value (nth 2 ydata))) 'vec)
221 0 -1))))) 221 0 -1))
222 (math-contains-sdev-p (eval (nth 2 ydata))))))
222 223
223(defun calc-graph-lookup (thing) 224(defun calc-graph-lookup (thing)
224 (if (and (eq (car-safe thing) 'var) 225 (if (and (eq (car-safe thing) 'var)
@@ -792,6 +793,10 @@
792 calc-graph-numsteps (1- (* calc-graph-numsteps (1+ calc-graph-numsteps3)))))) 793 calc-graph-numsteps (1- (* calc-graph-numsteps (1+ calc-graph-numsteps3))))))
793 794
794(defun calc-graph-format-data () 795(defun calc-graph-format-data ()
796 (if (math-contains-sdev-p calc-graph-yp)
797 (let ((yp calc-graph-yp))
798 (setq calc-graph-yp (cons 'vec (mapcar 'math-get-value (cdr yp))))
799 (setq calc-graph-zp (cons 'vec (mapcar 'math-get-sdev (cdr yp))))))
795 (while (<= (setq calc-graph-stepcount (1+ calc-graph-stepcount)) calc-graph-numsteps) 800 (while (<= (setq calc-graph-stepcount (1+ calc-graph-stepcount)) calc-graph-numsteps)
796 (if calc-graph-xvec 801 (if calc-graph-xvec
797 (setq calc-graph-xp (cdr calc-graph-xp) 802 (setq calc-graph-xp (cdr calc-graph-xp)
@@ -1059,7 +1064,7 @@ This \"dumb\" driver will be present in Gnuplot 3.0."
1059 (interactive "P") 1064 (interactive "P")
1060 (calc-graph-set-styles t (and style (prefix-numeric-value style)))) 1065 (calc-graph-set-styles t (and style (prefix-numeric-value style))))
1061 1066
1062(defun calc-graph-set-styles (lines points) 1067(defun calc-graph-set-styles (lines points &optional yerr)
1063 (calc-graph-init) 1068 (calc-graph-init)
1064 (save-excursion 1069 (save-excursion
1065 (set-buffer calc-gnuplot-input) 1070 (set-buffer calc-gnuplot-input)
@@ -1067,7 +1072,7 @@ This \"dumb\" driver will be present in Gnuplot 3.0."
1067 (error "No data points have been set!")) 1072 (error "No data points have been set!"))
1068 (let ((base (point)) 1073 (let ((base (point))
1069 (mode nil) (lstyle nil) (pstyle nil) 1074 (mode nil) (lstyle nil) (pstyle nil)
1070 start end lenbl penbl) 1075 start end lenbl penbl errform)
1071 (re-search-forward "[,\n]") 1076 (re-search-forward "[,\n]")
1072 (forward-char -1) 1077 (forward-char -1)
1073 (setq end (point) start end) 1078 (setq end (point) start end)
@@ -1087,29 +1092,48 @@ This \"dumb\" driver will be present in Gnuplot 3.0."
1087 (setq pstyle (string-to-number 1092 (setq pstyle (string-to-number
1088 (buffer-substring (match-beginning 1) 1093 (buffer-substring (match-beginning 1)
1089 (match-end 1))))))) 1094 (match-end 1)))))))
1090 (setq lenbl (or (equal mode "lines") (equal mode "linespoints")) 1095 (unless yerr
1091 penbl (or (equal mode "points") (equal mode "linespoints"))) 1096 (setq lenbl (or (equal mode "lines")
1092 (if lines 1097 (equal mode "linespoints"))
1093 (or (eq lines t) 1098 penbl (or (equal mode "points")
1094 (setq lstyle lines 1099 (equal mode "linespoints")))
1095 lenbl (>= lines 0))) 1100 (if lines
1096 (setq lenbl (not lenbl))) 1101 (or (eq lines t)
1097 (if points 1102 (setq lstyle lines
1098 (or (eq points t) 1103 lenbl (>= lines 0)))
1099 (setq pstyle points 1104 (setq lenbl (not lenbl)))
1100 penbl (>= points 0))) 1105 (if points
1101 (setq penbl (not penbl))) 1106 (or (eq points t)
1102 (delete-region start end) 1107 (setq pstyle points
1108 penbl (>= points 0)))
1109 (setq penbl (not penbl))))
1110 (delete-region start end)
1103 (goto-char start) 1111 (goto-char start)
1104 (insert " with " 1112 (setq errform
1105 (if lenbl 1113 (condition-case nil
1106 (if penbl "linespoints" "lines") 1114 (math-contains-sdev-p
1107 (if penbl "points" "dots"))) 1115 (eval (intern
1108 (if (and pstyle (> pstyle 0)) 1116 (concat "var-"
1109 (insert " " (if (and lstyle (> lstyle 0)) (int-to-string lstyle) "1") 1117 (save-excursion
1110 " " (int-to-string pstyle)) 1118 (re-search-backward ":\\(.*\\)\\}")
1111 (if (and lstyle (> lstyle 0)) 1119 (match-string 1))))))
1112 (insert " " (int-to-string lstyle)))))) 1120 (error nil)))
1121 (if yerr
1122 (insert " with yerrorbars")
1123 (insert " with "
1124 (if (and errform
1125 (equal mode "dots")
1126 (eq lines t))
1127 "yerrorbars"
1128 (if lenbl
1129 (if penbl "linespoints" "lines")
1130 (if penbl "points" "dots"))))
1131 (if (and pstyle (> pstyle 0))
1132 (insert " "
1133 (if (and lstyle (> lstyle 0)) (int-to-string lstyle) "1")
1134 " " (int-to-string pstyle))
1135 (if (and lstyle (> lstyle 0))
1136 (insert " " (int-to-string lstyle)))))))
1113 (calc-graph-view-commands)) 1137 (calc-graph-view-commands))
1114 1138
1115(defun calc-graph-zero-x (flag) 1139(defun calc-graph-zero-x (flag)
diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el
index 2cfd247a645..869533b3c3e 100644
--- a/lisp/cus-edit.el
+++ b/lisp/cus-edit.el
@@ -1357,7 +1357,7 @@ If ALL is `groups', include only groups.
1357If ALL is t (interactively, with prefix arg), include variables 1357If ALL is t (interactively, with prefix arg), include variables
1358that are not customizable options, as well as faces and groups 1358that are not customizable options, as well as faces and groups
1359\(but we recommend using `apropos-variable' instead)." 1359\(but we recommend using `apropos-variable' instead)."
1360 (interactive "sCustomize regexp: \nP") 1360 (interactive "sCustomize (regexp): \nP")
1361 (let ((found nil)) 1361 (let ((found nil))
1362 (mapatoms (lambda (symbol) 1362 (mapatoms (lambda (symbol)
1363 (when (string-match regexp (symbol-name symbol)) 1363 (when (string-match regexp (symbol-name symbol))
@@ -1393,19 +1393,19 @@ that are not customizable options, as well as faces and groups
1393 "Customize all loaded customizable options matching REGEXP. 1393 "Customize all loaded customizable options matching REGEXP.
1394With prefix arg, include variables that are not customizable options 1394With prefix arg, include variables that are not customizable options
1395\(but we recommend using `apropos-variable' instead)." 1395\(but we recommend using `apropos-variable' instead)."
1396 (interactive "sCustomize regexp: \nP") 1396 (interactive "sCustomize options (regexp): \nP")
1397 (customize-apropos regexp (or arg 'options))) 1397 (customize-apropos regexp (or arg 'options)))
1398 1398
1399;;;###autoload 1399;;;###autoload
1400(defun customize-apropos-faces (regexp) 1400(defun customize-apropos-faces (regexp)
1401 "Customize all loaded faces matching REGEXP." 1401 "Customize all loaded faces matching REGEXP."
1402 (interactive "sCustomize regexp: \n") 1402 (interactive "sCustomize faces (regexp): \n")
1403 (customize-apropos regexp 'faces)) 1403 (customize-apropos regexp 'faces))
1404 1404
1405;;;###autoload 1405;;;###autoload
1406(defun customize-apropos-groups (regexp) 1406(defun customize-apropos-groups (regexp)
1407 "Customize all loaded groups matching REGEXP." 1407 "Customize all loaded groups matching REGEXP."
1408 (interactive "sCustomize regexp: \n") 1408 (interactive "sCustomize groups (regexp): \n")
1409 (customize-apropos regexp 'groups)) 1409 (customize-apropos regexp 'groups))
1410 1410
1411;;; Buffer. 1411;;; Buffer.
diff --git a/lisp/emulation/tpu-edt.el b/lisp/emulation/tpu-edt.el
index f1cdc0ca864..f3792b92e42 100644
--- a/lisp/emulation/tpu-edt.el
+++ b/lisp/emulation/tpu-edt.el
@@ -1035,13 +1035,6 @@ This is useful for inserting control characters."
1035(defalias 'tpu-error 'error) 1035(defalias 'tpu-error 'error)
1036 1036
1037 1037
1038;; Around emacs version 18.57, function line-move was renamed to
1039;; next-line-internal. If we're running under an older emacs,
1040;; make next-line-internal equivalent to line-move.
1041
1042(if (not (fboundp 'next-line-internal)) (fset 'next-line-internal 'line-move))
1043
1044
1045;;; 1038;;;
1046;;; Help 1039;;; Help
1047;;; 1040;;;
@@ -1992,14 +1985,14 @@ With argument, do this that many times."
1992 "Move to next line. 1985 "Move to next line.
1993Prefix argument serves as a repeat count." 1986Prefix argument serves as a repeat count."
1994 (interactive "p") 1987 (interactive "p")
1995 (next-line-internal num) 1988 (line-move num)
1996 (setq this-command 'next-line)) 1989 (setq this-command 'next-line))
1997 1990
1998(defun tpu-previous-line (num) 1991(defun tpu-previous-line (num)
1999 "Move to previous line. 1992 "Move to previous line.
2000Prefix argument serves as a repeat count." 1993Prefix argument serves as a repeat count."
2001 (interactive "p") 1994 (interactive "p")
2002 (next-line-internal (- num)) 1995 (line-move (- num))
2003 (setq this-command 'previous-line)) 1996 (setq this-command 'previous-line))
2004 1997
2005(defun tpu-next-beginning-of-line (num) 1998(defun tpu-next-beginning-of-line (num)
@@ -2122,7 +2115,7 @@ A repeat count means scroll that many sections."
2122 (let* ((beg (tpu-current-line)) 2115 (let* ((beg (tpu-current-line))
2123 (height (1- (window-height))) 2116 (height (1- (window-height)))
2124 (lines (* num (/ (* height tpu-percent-scroll) 100)))) 2117 (lines (* num (/ (* height tpu-percent-scroll) 100))))
2125 (next-line-internal (- lines)) 2118 (line-move (- lines))
2126 (if (> lines beg) (recenter 0)))) 2119 (if (> lines beg) (recenter 0))))
2127 2120
2128(defun tpu-scroll-window-up (num) 2121(defun tpu-scroll-window-up (num)
@@ -2132,7 +2125,7 @@ A repeat count means scroll that many sections."
2132 (let* ((beg (tpu-current-line)) 2125 (let* ((beg (tpu-current-line))
2133 (height (1- (window-height))) 2126 (height (1- (window-height)))
2134 (lines (* num (/ (* height tpu-percent-scroll) 100)))) 2127 (lines (* num (/ (* height tpu-percent-scroll) 100))))
2135 (next-line-internal lines) 2128 (line-move lines)
2136 (if (>= (+ lines beg) height) (recenter -1)))) 2129 (if (>= (+ lines beg) height) (recenter -1))))
2137 2130
2138(defun tpu-pan-right (num) 2131(defun tpu-pan-right (num)
diff --git a/lisp/faces.el b/lisp/faces.el
index 76bb2b6e038..72751002765 100644
--- a/lisp/faces.el
+++ b/lisp/faces.el
@@ -1577,6 +1577,28 @@ If there is neither a user setting nor a default for FACE, return nil."
1577 (get face 'saved-face) 1577 (get face 'saved-face)
1578 (face-default-spec face))) 1578 (face-default-spec face)))
1579 1579
1580(defsubst face-normalize-spec (spec)
1581 "Return a normalized face-spec of SPEC."
1582 (let (normalized-spec)
1583 (while spec
1584 (let ((attribute (car spec))
1585 (value (car (cdr spec))))
1586 ;; Support some old-style attribute names and values.
1587 (case attribute
1588 (:bold (setq attribute :weight value (if value 'bold 'normal)))
1589 (:italic (setq attribute :slant value (if value 'italic 'normal)))
1590 ((:foreground :background)
1591 ;; Compatibility with 20.x. Some bogus face specs seem to
1592 ;; exist containing things like `:foreground nil'.
1593 (if (null value) (setq value 'unspecified)))
1594 (t (unless (assq attribute face-x-resources)
1595 (setq attribute nil))))
1596 (when attribute
1597 (push attribute normalized-spec)
1598 (push value normalized-spec)))
1599 (setq spec (cdr (cdr spec))))
1600 (nreverse normalized-spec)))
1601
1580 1602
1581;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1603;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1582;;; Frame-type independent color support. 1604;;; Frame-type independent color support.
@@ -1719,7 +1741,8 @@ according to the `background-mode' and `display-type' frame parameters."
1719 ;; be unmodified, so we can avoid consing in the common case. 1741 ;; be unmodified, so we can avoid consing in the common case.
1720 (dolist (face (face-list)) 1742 (dolist (face (face-list))
1721 (when (not (face-spec-match-p face 1743 (when (not (face-spec-match-p face
1722 (face-user-default-spec face) 1744 (face-normalize-spec
1745 (face-user-default-spec face))
1723 (selected-frame))) 1746 (selected-frame)))
1724 (push face locally-modified-faces))) 1747 (push face locally-modified-faces)))
1725 ;; Now change to the new frame parameters 1748 ;; Now change to the new frame parameters
diff --git a/lisp/mail/rmailsum.el b/lisp/mail/rmailsum.el
index 85527e59f67..fd5931fdef9 100644
--- a/lisp/mail/rmailsum.el
+++ b/lisp/mail/rmailsum.el
@@ -288,12 +288,14 @@ nil for FUNCTION means all messages."
288 (if (zerop (% rmail-new-summary-line-count 10)) 288 (if (zerop (% rmail-new-summary-line-count 10))
289 (message "Computing summary lines...%d" 289 (message "Computing summary lines...%d"
290 rmail-new-summary-line-count)) 290 rmail-new-summary-line-count))
291 (rmail-make-summary-line-1 msg))))) 291 (rmail-make-summary-line-1 msg))))
292 delpos)
292 ;; Fix up the part of the summary that says "deleted" or "unseen". 293 ;; Fix up the part of the summary that says "deleted" or "unseen".
293 (aset line 5 294 (string-match "[0-9]+" line)
294 (if (rmail-message-deleted-p msg) ?\D 295 (aset line (match-end 0)
296 (if (rmail-message-deleted-p msg) ?D
295 (if (= ?0 (char-after (+ 3 (rmail-msgbeg msg)))) 297 (if (= ?0 (char-after (+ 3 (rmail-msgbeg msg))))
296 ?\- ?\ ))) 298 ?- ?\s)))
297 line)) 299 line))
298 300
299;;;###autoload 301;;;###autoload
diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el
index 6b579763689..48f4613287b 100644
--- a/lisp/menu-bar.el
+++ b/lisp/menu-bar.el
@@ -1364,6 +1364,9 @@ key, a click, or a menu-item"))
1364(define-key menu-bar-help-menu [describe-copying] 1364(define-key menu-bar-help-menu [describe-copying]
1365 '(menu-item "Copying Conditions" describe-copying 1365 '(menu-item "Copying Conditions" describe-copying
1366 :help "Show the Emacs license (GPL)")) 1366 :help "Show the Emacs license (GPL)"))
1367(define-key menu-bar-help-menu [describe-project]
1368 '(menu-item "About GNU" describe-project
1369 :help "About the GNU System, GNU Project, and GNU/Linux"))
1367(define-key menu-bar-help-menu [describe-distribution] 1370(define-key menu-bar-help-menu [describe-distribution]
1368 '(menu-item "Getting New Versions" describe-distribution 1371 '(menu-item "Getting New Versions" describe-distribution
1369 :help "How to get latest versions of Emacs")) 1372 :help "How to get latest versions of Emacs"))
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index 2710066c2cd..caf0e94b927 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -917,11 +917,13 @@ non-nil; otherwise uses `compile-command'. With prefix arg, always prompts.
917Additionally, with universal prefix arg, compilation buffer will be in 917Additionally, with universal prefix arg, compilation buffer will be in
918comint mode, i.e. interactive. 918comint mode, i.e. interactive.
919 919
920To run more than one compilation at once, start one and rename 920To run more than one compilation at once, start one then rename
921the \`*compilation*' buffer to some other name with 921the \`*compilation*' buffer to some other name with
922\\[rename-buffer]. Then start the next one. On most systems, 922\\[rename-buffer]. Then _switch buffers_ and start the new compilation.
923termination of the main compilation process kills its 923It will create a new \`*compilation*' buffer.
924subprocesses. 924
925On most systems, termination of the main compilation process
926kills its subprocesses.
925 927
926The name used for the buffer is actually whatever is returned by 928The name used for the buffer is actually whatever is returned by
927the function in `compilation-buffer-name-function', so you can set that 929the function in `compilation-buffer-name-function', so you can set that
@@ -970,7 +972,7 @@ visible rather than the beginning."
970If NAME-FUNCTION is non-nil, call it with one argument MODE-NAME 972If NAME-FUNCTION is non-nil, call it with one argument MODE-NAME
971to determine the buffer name. 973to determine the buffer name.
972Likewise if `compilation-buffer-name-function' is non-nil. 974Likewise if `compilation-buffer-name-function' is non-nil.
973If current buffer is the mode MODE-COMMAND, 975If current buffer has the major mode MODE-COMMAND,
974return the name of the current buffer, so that it gets reused. 976return the name of the current buffer, so that it gets reused.
975Otherwise, construct a buffer name from MODE-NAME." 977Otherwise, construct a buffer name from MODE-NAME."
976 (cond (name-function 978 (cond (name-function
@@ -1009,8 +1011,11 @@ The rest of the arguments are optional; for them, nil means use the default.
1009 1011
1010MODE is the major mode to set in the compilation buffer. Mode 1012MODE is the major mode to set in the compilation buffer. Mode
1011may also be t meaning use `compilation-shell-minor-mode' under `comint-mode'. 1013may also be t meaning use `compilation-shell-minor-mode' under `comint-mode'.
1014
1012If NAME-FUNCTION is non-nil, call it with one argument (the mode name) 1015If NAME-FUNCTION is non-nil, call it with one argument (the mode name)
1013to determine the buffer name. 1016to determine the buffer name. Otherwise, the default is to
1017reuses the current buffer if it has the proper major mode,
1018else use or create a buffer with name based on the major mode.
1014 1019
1015If HIGHLIGHT-REGEXP is non-nil, `next-error' will temporarily highlight 1020If HIGHLIGHT-REGEXP is non-nil, `next-error' will temporarily highlight
1016the matching section of the visited source line; the default is to use the 1021the matching section of the visited source line; the default is to use the
@@ -1617,12 +1622,16 @@ Use this command in a compilation log buffer. Sets the mark at point there."
1617 (setq compilation-current-error (point)) 1622 (setq compilation-current-error (point))
1618 (next-error-internal))) 1623 (next-error-internal)))
1619 1624
1620;; Return a compilation buffer.
1621;; If the current buffer is a compilation buffer, return it.
1622;; Otherwise, look for a compilation buffer and signal an error
1623;; if there are none.
1624(defun compilation-find-buffer (&optional avoid-current) 1625(defun compilation-find-buffer (&optional avoid-current)
1625 (next-error-find-buffer avoid-current 'compilation-buffer-internal-p)) 1626 "Return a compilation buffer.
1627If AVOID-CURRENT is nil, and
1628the current buffer is a compilation buffer, return it.
1629If AVOID-CURRENT is non-nil, return the current buffer
1630only as a last resort."
1631 (if (and (compilation-buffer-internal-p (current-buffer))
1632 (not avoid-current))
1633 (current-buffer)
1634 (next-error-find-buffer avoid-current 'compilation-buffer-internal-p)))
1626 1635
1627;;;###autoload 1636;;;###autoload
1628(defun compilation-next-error-function (n &optional reset) 1637(defun compilation-next-error-function (n &optional reset)
diff --git a/lisp/server.el b/lisp/server.el
index 1bdeb07ca0f..89756fd0eca 100644
--- a/lisp/server.el
+++ b/lisp/server.el
@@ -164,6 +164,7 @@ Only programs can do so."
164 :match (lambda (widget value) 164 :match (lambda (widget value)
165 (not (functionp value))) 165 (not (functionp value)))
166 nil) 166 nil)
167 (function-item :tag "Display in new frame" switch-to-buffer-other-frame)
167 (function-item :tag "Use pop-to-buffer" pop-to-buffer) 168 (function-item :tag "Use pop-to-buffer" pop-to-buffer)
168 (function :tag "Other function"))) 169 (function :tag "Other function")))
169 170
diff --git a/lisp/startup.el b/lisp/startup.el
index e6d983ef60f..3430e588309 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -1682,9 +1682,9 @@ Type \\[describe-distribution] for information on getting the latest version."))
1682 1682
1683(defun startup-echo-area-message () 1683(defun startup-echo-area-message ()
1684 (if (eq (key-binding "\C-h\C-p") 'describe-project) 1684 (if (eq (key-binding "\C-h\C-p") 'describe-project)
1685 "For information about the GNU Project and its goals, type C-h C-p." 1685 "For information about the GNU system and GNU/Linux, type C-h C-p."
1686 (substitute-command-keys 1686 (substitute-command-keys
1687 "For information about the GNU Project and its goals, type \ 1687 "For information about the GNU system and GNU/Linux, type \
1688\\[describe-project]."))) 1688\\[describe-project].")))
1689 1689
1690 1690
diff --git a/src/ChangeLog b/src/ChangeLog
index 7e0edb14fd3..b0857fd63d0 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12007-08-03 Richard Stallman <rms@gnu.org>
2
3 * fileio.c (Fvisited_file_modtime): Use make_time.
4
12007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change) 52007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
2 6
3 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained 7 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
diff --git a/src/fileio.c b/src/fileio.c
index 5c855c7e269..6af3386b82a 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -5608,11 +5608,9 @@ file modification time, this function returns 0.
5608See Info node `(elisp)Modification Time' for more details. */) 5608See Info node `(elisp)Modification Time' for more details. */)
5609 () 5609 ()
5610{ 5610{
5611 Lisp_Object tcons; 5611 if (! current_buffer->modtime)
5612 tcons = long_to_cons ((unsigned long) current_buffer->modtime); 5612 return make_number (0);
5613 if (CONSP (tcons)) 5613 return make_time ((time_t) current_buffer->modtime);
5614 return list2 (XCAR (tcons), XCDR (tcons));
5615 return tcons;
5616} 5614}
5617 5615
5618DEFUN ("set-visited-file-modtime", Fset_visited_file_modtime, 5616DEFUN ("set-visited-file-modtime", Fset_visited_file_modtime,
diff --git a/src/xselect.c b/src/xselect.c
index 729c05f190a..33468f0d63a 100644
--- a/src/xselect.c
+++ b/src/xselect.c
@@ -1854,9 +1854,9 @@ selection_data_to_lisp_data (display, data, size, type, format)
1854 } 1854 }
1855 } 1855 }
1856 1856
1857 /* Convert a single 16 or small 32 bit number to a Lisp_Int. 1857 /* Convert a single 16-bit number or a small 32-bit number to a Lisp_Int.
1858 If the number is > 16 bits, convert it to a cons of integers, 1858 If the number is 32 bits and won't fit in a Lisp_Int,
1859 16 bits in each half. 1859 convert it to a cons of integers, 16 bits in each half.
1860 */ 1860 */
1861 else if (format == 32 && size == sizeof (int)) 1861 else if (format == 32 && size == sizeof (int))
1862 return long_to_cons (((unsigned int *) data) [0]); 1862 return long_to_cons (((unsigned int *) data) [0]);