diff options
| -rw-r--r-- | admin/FOR-RELEASE | 4 | ||||
| -rw-r--r-- | lisp/ChangeLog | 39 | ||||
| -rw-r--r-- | lisp/ChangeLog.12 | 2 | ||||
| -rw-r--r-- | lisp/calc/calc-ext.el | 19 | ||||
| -rw-r--r-- | lisp/calc/calc-graph.el | 74 | ||||
| -rw-r--r-- | lisp/cus-edit.el | 8 | ||||
| -rw-r--r-- | lisp/emulation/tpu-edt.el | 15 | ||||
| -rw-r--r-- | lisp/faces.el | 25 | ||||
| -rw-r--r-- | lisp/mail/rmailsum.el | 10 | ||||
| -rw-r--r-- | lisp/menu-bar.el | 3 | ||||
| -rw-r--r-- | lisp/progmodes/compile.el | 31 | ||||
| -rw-r--r-- | lisp/server.el | 1 | ||||
| -rw-r--r-- | lisp/startup.el | 4 | ||||
| -rw-r--r-- | man/ChangeLog | 6 | ||||
| -rw-r--r-- | man/calc.texi | 9 | ||||
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/fileio.c | 8 | ||||
| -rw-r--r-- | src/xselect.c | 6 |
18 files changed, 199 insertions, 69 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 | ||
| 58 | Here we list small fixes that arrived too late for Emacs 22.1, but | 62 | Here 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 @@ | |||
| 1 | 2007-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 | |||
| 1 | 2007-08-03 Miles Bader <miles@gnu.org> | 10 | 2007-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 | ||
| 21 | 2007-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 | |||
| 41 | 2007-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 | |||
| 47 | 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 48 | |||
| 49 | * server.el (server-window): Add switch-to-buffer-other-frame option. | ||
| 50 | |||
| 12 | 2007-08-03 Glenn Morris <rgm@gnu.org> | 51 | 2007-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 dca4aed54d1..c26f79bf6f8 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 | ||
| 11281 | 2006-04-02 Drew Adams <drew.adams@oracle.com> (tiny change) | 11281 | 2006-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. | ||
| 2219 | If 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. | ||
| 2226 | If 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. | |||
| 1357 | If ALL is t (interactively, with prefix arg), include variables | 1357 | If ALL is t (interactively, with prefix arg), include variables |
| 1358 | that are not customizable options, as well as faces and groups | 1358 | that 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. |
| 1394 | With prefix arg, include variables that are not customizable options | 1394 | With 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. |
| 1993 | Prefix argument serves as a repeat count." | 1986 | Prefix 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. |
| 2000 | Prefix argument serves as a repeat count." | 1993 | Prefix 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 43d95672446..55a7f3846a9 100644 --- a/lisp/faces.el +++ b/lisp/faces.el | |||
| @@ -1506,6 +1506,28 @@ If there is neither a user setting nor a default for FACE, return nil." | |||
| 1506 | (get face 'saved-face) | 1506 | (get face 'saved-face) |
| 1507 | (face-default-spec face))) | 1507 | (face-default-spec face))) |
| 1508 | 1508 | ||
| 1509 | (defsubst face-normalize-spec (spec) | ||
| 1510 | "Return a normalized face-spec of SPEC." | ||
| 1511 | (let (normalized-spec) | ||
| 1512 | (while spec | ||
| 1513 | (let ((attribute (car spec)) | ||
| 1514 | (value (car (cdr spec)))) | ||
| 1515 | ;; Support some old-style attribute names and values. | ||
| 1516 | (case attribute | ||
| 1517 | (:bold (setq attribute :weight value (if value 'bold 'normal))) | ||
| 1518 | (:italic (setq attribute :slant value (if value 'italic 'normal))) | ||
| 1519 | ((:foreground :background) | ||
| 1520 | ;; Compatibility with 20.x. Some bogus face specs seem to | ||
| 1521 | ;; exist containing things like `:foreground nil'. | ||
| 1522 | (if (null value) (setq value 'unspecified))) | ||
| 1523 | (t (unless (assq attribute face-x-resources) | ||
| 1524 | (setq attribute nil)))) | ||
| 1525 | (when attribute | ||
| 1526 | (push attribute normalized-spec) | ||
| 1527 | (push value normalized-spec))) | ||
| 1528 | (setq spec (cdr (cdr spec)))) | ||
| 1529 | (nreverse normalized-spec))) | ||
| 1530 | |||
| 1509 | 1531 | ||
| 1510 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 1532 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
| 1511 | ;;; Frame-type independent color support. | 1533 | ;;; Frame-type independent color support. |
| @@ -1653,7 +1675,8 @@ according to the `background-mode' and `display-type' frame parameters." | |||
| 1653 | ;; be unmodified, so we can avoid consing in the common case. | 1675 | ;; be unmodified, so we can avoid consing in the common case. |
| 1654 | (dolist (face (face-list)) | 1676 | (dolist (face (face-list)) |
| 1655 | (when (not (face-spec-match-p face | 1677 | (when (not (face-spec-match-p face |
| 1656 | (face-user-default-spec face) | 1678 | (face-normalize-spec |
| 1679 | (face-user-default-spec face)) | ||
| 1657 | (selected-frame))) | 1680 | (selected-frame))) |
| 1658 | (push face locally-modified-faces))) | 1681 | (push face locally-modified-faces))) |
| 1659 | ;; Now change to the new frame parameters | 1682 | ;; 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 aaa1d8a1bbd..aa9e6604c67 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. | |||
| 917 | Additionally, with universal prefix arg, compilation buffer will be in | 917 | Additionally, with universal prefix arg, compilation buffer will be in |
| 918 | comint mode, i.e. interactive. | 918 | comint mode, i.e. interactive. |
| 919 | 919 | ||
| 920 | To run more than one compilation at once, start one and rename | 920 | To run more than one compilation at once, start one then rename |
| 921 | the \`*compilation*' buffer to some other name with | 921 | the \`*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. |
| 923 | termination of the main compilation process kills its | 923 | It will create a new \`*compilation*' buffer. |
| 924 | subprocesses. | 924 | |
| 925 | On most systems, termination of the main compilation process | ||
| 926 | kills its subprocesses. | ||
| 925 | 927 | ||
| 926 | The name used for the buffer is actually whatever is returned by | 928 | The name used for the buffer is actually whatever is returned by |
| 927 | the function in `compilation-buffer-name-function', so you can set that | 929 | the function in `compilation-buffer-name-function', so you can set that |
| @@ -970,7 +972,7 @@ visible rather than the beginning." | |||
| 970 | If NAME-FUNCTION is non-nil, call it with one argument MODE-NAME | 972 | If NAME-FUNCTION is non-nil, call it with one argument MODE-NAME |
| 971 | to determine the buffer name. | 973 | to determine the buffer name. |
| 972 | Likewise if `compilation-buffer-name-function' is non-nil. | 974 | Likewise if `compilation-buffer-name-function' is non-nil. |
| 973 | If current buffer is the mode MODE-COMMAND, | 975 | If current buffer has the major mode MODE-COMMAND, |
| 974 | return the name of the current buffer, so that it gets reused. | 976 | return the name of the current buffer, so that it gets reused. |
| 975 | Otherwise, construct a buffer name from MODE-NAME." | 977 | Otherwise, 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 | ||
| 1010 | MODE is the major mode to set in the compilation buffer. Mode | 1012 | MODE is the major mode to set in the compilation buffer. Mode |
| 1011 | may also be t meaning use `compilation-shell-minor-mode' under `comint-mode'. | 1013 | may also be t meaning use `compilation-shell-minor-mode' under `comint-mode'. |
| 1014 | |||
| 1012 | If NAME-FUNCTION is non-nil, call it with one argument (the mode name) | 1015 | If NAME-FUNCTION is non-nil, call it with one argument (the mode name) |
| 1013 | to determine the buffer name. | 1016 | to determine the buffer name. Otherwise, the default is to |
| 1017 | reuses the current buffer if it has the proper major mode, | ||
| 1018 | else use or create a buffer with name based on the major mode. | ||
| 1014 | 1019 | ||
| 1015 | If HIGHLIGHT-REGEXP is non-nil, `next-error' will temporarily highlight | 1020 | If HIGHLIGHT-REGEXP is non-nil, `next-error' will temporarily highlight |
| 1016 | the matching section of the visited source line; the default is to use the | 1021 | the 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. |
| 1627 | If AVOID-CURRENT is nil, and | ||
| 1628 | the current buffer is a compilation buffer, return it. | ||
| 1629 | If AVOID-CURRENT is non-nil, return the current buffer | ||
| 1630 | only 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 a9907f9d3a3..15bcaa3282f 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 3ab65eba5d0..453567556f5 100644 --- a/lisp/startup.el +++ b/lisp/startup.el | |||
| @@ -1679,9 +1679,9 @@ Type \\[describe-distribution] for information on getting the latest version.")) | |||
| 1679 | 1679 | ||
| 1680 | (defun startup-echo-area-message () | 1680 | (defun startup-echo-area-message () |
| 1681 | (if (eq (key-binding "\C-h\C-p") 'describe-project) | 1681 | (if (eq (key-binding "\C-h\C-p") 'describe-project) |
| 1682 | "For information about the GNU Project and its goals, type C-h C-p." | 1682 | "For information about the GNU system and GNU/Linux, type C-h C-p." |
| 1683 | (substitute-command-keys | 1683 | (substitute-command-keys |
| 1684 | "For information about the GNU Project and its goals, type \ | 1684 | "For information about the GNU system and GNU/Linux, type \ |
| 1685 | \\[describe-project]."))) | 1685 | \\[describe-project]."))) |
| 1686 | 1686 | ||
| 1687 | 1687 | ||
diff --git a/man/ChangeLog b/man/ChangeLog index 80ddad0085d..18cd4b72bc6 100644 --- a/man/ChangeLog +++ b/man/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2007-08-03 Jay Belanger <jay.p.belanger@gmail.com> | ||
| 2 | |||
| 3 | * calc.texi (Basic Graphics): Mention the graphing of error | ||
| 4 | forms. | ||
| 5 | (Graphics Options): Mention how `g s' handles error forms. | ||
| 6 | |||
| 1 | 2007-08-01 Alan Mackenzie <acm@muc.de> | 7 | 2007-08-01 Alan Mackenzie <acm@muc.de> |
| 2 | 8 | ||
| 3 | * cc-mode.texi (Mailing Lists and Bug Reports): Correct "-no-site-file" | 9 | * cc-mode.texi (Mailing Lists and Bug Reports): Correct "-no-site-file" |
diff --git a/man/calc.texi b/man/calc.texi index 3085e2e8dd8..9e50629a3b2 100644 --- a/man/calc.texi +++ b/man/calc.texi | |||
| @@ -28417,7 +28417,10 @@ variables. | |||
| 28417 | 28417 | ||
| 28418 | The ``x'' and ``y'' values for the data points (as pulled from the vectors, | 28418 | The ``x'' and ``y'' values for the data points (as pulled from the vectors, |
| 28419 | calculated from the formulas, or interpolated from the intervals) should | 28419 | calculated from the formulas, or interpolated from the intervals) should |
| 28420 | be real numbers (integers, fractions, or floats). If either the ``x'' | 28420 | be real numbers (integers, fractions, or floats). One exception to this |
| 28421 | is that the ``y'' entry can consist of a vector of numbers combined with | ||
| 28422 | error forms, in which case the points will be plotted with the | ||
| 28423 | appropriate error bars. Other than this, if either the ``x'' | ||
| 28421 | value or the ``y'' value of a given data point is not a real number, that | 28424 | value or the ``y'' value of a given data point is not a real number, that |
| 28422 | data point will be omitted from the graph. The points on either side | 28425 | data point will be omitted from the graph. The points on either side |
| 28423 | of the invalid point will @emph{not} be connected by a line. | 28426 | of the invalid point will @emph{not} be connected by a line. |
| @@ -28815,7 +28818,9 @@ available for any device. | |||
| 28815 | The @kbd{g S} (@code{calc-graph-point-style}) command similarly turns | 28818 | The @kbd{g S} (@code{calc-graph-point-style}) command similarly turns |
| 28816 | the symbols at the data points on or off, or sets the point style. | 28819 | the symbols at the data points on or off, or sets the point style. |
| 28817 | If you turn both lines and points off, the data points will show as | 28820 | If you turn both lines and points off, the data points will show as |
| 28818 | tiny dots. | 28821 | tiny dots. If the ``y'' values being plotted contain error forms and |
| 28822 | the connecting lines are turned off, then this command will also turn | ||
| 28823 | the error bars on or off. | ||
| 28819 | 28824 | ||
| 28820 | @cindex @code{LineStyles} variable | 28825 | @cindex @code{LineStyles} variable |
| 28821 | @cindex @code{PointStyles} variable | 28826 | @cindex @code{PointStyles} variable |
diff --git a/src/ChangeLog b/src/ChangeLog index f26f918c941..87376db4e7f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2007-08-03 Richard Stallman <rms@gnu.org> | ||
| 2 | |||
| 3 | * fileio.c (Fvisited_file_modtime): Use make_time. | ||
| 4 | |||
| 1 | 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change) | 5 | 2007-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 678c6df58c0..6e47670f09c 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -5694,11 +5694,9 @@ file modification time, this function returns 0. | |||
| 5694 | See Info node `(elisp)Modification Time' for more details. */) | 5694 | See Info node `(elisp)Modification Time' for more details. */) |
| 5695 | () | 5695 | () |
| 5696 | { | 5696 | { |
| 5697 | Lisp_Object tcons; | 5697 | if (! current_buffer->modtime) |
| 5698 | tcons = long_to_cons ((unsigned long) current_buffer->modtime); | 5698 | return make_number (0); |
| 5699 | if (CONSP (tcons)) | 5699 | return make_time ((time_t) current_buffer->modtime); |
| 5700 | return list2 (XCAR (tcons), XCDR (tcons)); | ||
| 5701 | return tcons; | ||
| 5702 | } | 5700 | } |
| 5703 | 5701 | ||
| 5704 | DEFUN ("set-visited-file-modtime", Fset_visited_file_modtime, | 5702 | DEFUN ("set-visited-file-modtime", Fset_visited_file_modtime, |
diff --git a/src/xselect.c b/src/xselect.c index 7e77df0d6c3..b2d47bd1175 100644 --- a/src/xselect.c +++ b/src/xselect.c | |||
| @@ -1873,9 +1873,9 @@ selection_data_to_lisp_data (display, data, size, type, format) | |||
| 1873 | } | 1873 | } |
| 1874 | } | 1874 | } |
| 1875 | 1875 | ||
| 1876 | /* Convert a single 16 or small 32 bit number to a Lisp_Int. | 1876 | /* Convert a single 16-bit number or a small 32-bit number to a Lisp_Int. |
| 1877 | If the number is > 16 bits, convert it to a cons of integers, | 1877 | If the number is 32 bits and won't fit in a Lisp_Int, |
| 1878 | 16 bits in each half. | 1878 | convert it to a cons of integers, 16 bits in each half. |
| 1879 | */ | 1879 | */ |
| 1880 | else if (format == 32 && size == sizeof (int)) | 1880 | else if (format == 32 && size == sizeof (int)) |
| 1881 | return long_to_cons (((unsigned int *) data) [0]); | 1881 | return long_to_cons (((unsigned int *) data) [0]); |