aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/calc/calc-ext.el2
-rw-r--r--lisp/calc/calc-forms.el68
-rw-r--r--lisp/calc/calc-help.el2
-rw-r--r--lisp/calc/calc-misc.el7
-rw-r--r--lisp/calc/calc-mode.el12
-rw-r--r--lisp/calc/calc-prog.el4
-rw-r--r--lisp/calc/calc.el6
-rw-r--r--lisp/calendar/diary-lib.el6
-rw-r--r--lisp/calendar/todo-mode.el6
-rw-r--r--lisp/vc/add-log.el11
-rw-r--r--lisp/vc/diff-mode.el3
-rw-r--r--lisp/vc/ediff-diff.el2
-rw-r--r--lisp/vc/ediff-init.el3
-rw-r--r--lisp/vc/ediff-merg.el4
-rw-r--r--lisp/vc/ediff-ptch.el2
-rw-r--r--lisp/vc/ediff-util.el18
-rw-r--r--lisp/vc/ediff.el6
-rw-r--r--lisp/vc/pcvs.el14
-rw-r--r--lisp/vc/vc-cvs.el2
19 files changed, 94 insertions, 84 deletions
diff --git a/lisp/calc/calc-ext.el b/lisp/calc/calc-ext.el
index bd33fbeb241..2442f020012 100644
--- a/lisp/calc/calc-ext.el
+++ b/lisp/calc/calc-ext.el
@@ -1988,7 +1988,7 @@ calc-kill calc-kill-region calc-yank))))
1988 "kbd-macros: [ (if), : (else), | (else-if), ] (end-if)" 1988 "kbd-macros: [ (if), : (else), | (else-if), ] (end-if)"
1989 "kbd-macros: < > (repeat), ( ) (for), { } (loop)" 1989 "kbd-macros: < > (repeat), ( ) (for), { } (loop)"
1990 "kbd-macros: / (break)" 1990 "kbd-macros: / (break)"
1991 "kbd-macros: \\=` (save), ' (restore)") 1991 "kbd-macros: \\=` (save), \\=' (restore)")
1992 "user" ?Z)) 1992 "user" ?Z))
1993 1993
1994 1994
diff --git a/lisp/calc/calc-forms.el b/lisp/calc/calc-forms.el
index c6e1fdbbeaa..08fa5ceaa79 100644
--- a/lisp/calc/calc-forms.el
+++ b/lisp/calc/calc-forms.el
@@ -63,7 +63,7 @@
63 63
64 64
65(defun calc-hms-notation (fmt) 65(defun calc-hms-notation (fmt)
66 (interactive "sHours-minutes-seconds format (hms, @ ' \", etc.): ") 66 (interactive "sHours-minutes-seconds format (hms, @ \\=' \", etc.): ")
67 (calc-wrapper 67 (calc-wrapper
68 (if (string-match "\\`\\([^,; ]+\\)\\([,; ]*\\)\\([^,; ]\\)\\([,; ]*\\)\\([^,; ]\\)\\'" fmt) 68 (if (string-match "\\`\\([^,; ]+\\)\\([,; ]*\\)\\([^,; ]\\)\\([,; ]*\\)\\([^,; ]\\)\\'" fmt)
69 (progn 69 (progn
@@ -273,7 +273,7 @@
273 (m (math-normalize (nth 2 a))) 273 (m (math-normalize (nth 2 a)))
274 (s (let ((calc-internal-prec (max (- calc-internal-prec 4) 3))) 274 (s (let ((calc-internal-prec (max (- calc-internal-prec 4) 3)))
275 (math-normalize (nth 3 a))))) 275 (math-normalize (nth 3 a)))))
276 (if (or 276 (if (or
277 (math-negp h) 277 (math-negp h)
278 (and (= h 0) (math-negp m)) 278 (and (= h 0) (math-negp m))
279 (and (= h 0) (= m 0) (math-negp s))) 279 (and (= h 0) (= m 0) (math-negp s)))
@@ -378,15 +378,15 @@
378;;; A numerical date is the number of days since midnight on 378;;; A numerical date is the number of days since midnight on
379;;; the morning of December 31, 1 B.C. (Gregorian) or January 2, 1 A.D. (Julian). 379;;; the morning of December 31, 1 B.C. (Gregorian) or January 2, 1 A.D. (Julian).
380;;; Emacs's calendar refers to such a date as an absolute date, some Calc function 380;;; Emacs's calendar refers to such a date as an absolute date, some Calc function
381;;; names also use that terminology. If the date is a non-integer, it represents 381;;; names also use that terminology. If the date is a non-integer, it represents
382;;; a specific date and time. 382;;; a specific date and time.
383;;; A "dt" is a list of the form, (year month day), corresponding to 383;;; A "dt" is a list of the form, (year month day), corresponding to
384;;; an integer code, or (year month day hour minute second), corresponding 384;;; an integer code, or (year month day hour minute second), corresponding
385;;; to a non-integer code. 385;;; to a non-integer code.
386 386
387(defun math-date-to-gregorian-dt (date) 387(defun math-date-to-gregorian-dt (date)
388 "Return the day (YEAR MONTH DAY) in the Gregorian calendar. 388 "Return the day (YEAR MONTH DAY) in the Gregorian calendar.
389DATE is the number of days since December 31, -1 in the Gregorian calendar." 389DATE is the number of days since December 31, -1 in the Gregorian calendar."
390 (let* ((month 1) 390 (let* ((month 1)
391 day 391 day
392 (year (math-quotient (math-add date (if (Math-lessp date 711859) 392 (year (math-quotient (math-add date (if (Math-lessp date 711859)
@@ -399,7 +399,7 @@ DATE is the number of days since December 31, -1 in the Gregorian calendar."
399 (setq year (math-add year -1))) 399 (setq year (math-add year -1)))
400 (if (eq year 0) (setq year -1)) 400 (if (eq year 0) (setq year -1))
401 (setq date (1+ (math-sub date temp))) 401 (setq date (1+ (math-sub date temp)))
402 (setq temp 402 (setq temp
403 (if (math-leap-year-p year) 403 (if (math-leap-year-p year)
404 [1 32 61 92 122 153 183 214 245 275 306 336 999] 404 [1 32 61 92 122 153 183 214 245 275 306 336 999]
405 [1 32 60 91 121 152 182 213 244 274 305 335 999])) 405 [1 32 60 91 121 152 182 213 244 274 305 335 999]))
@@ -410,7 +410,7 @@ DATE is the number of days since December 31, -1 in the Gregorian calendar."
410 410
411(defun math-date-to-julian-dt (date) 411(defun math-date-to-julian-dt (date)
412 "Return the day (YEAR MONTH DAY) in the Julian calendar. 412 "Return the day (YEAR MONTH DAY) in the Julian calendar.
413DATE is the number of days since December 31, -1 in the Gregorian calendar." 413DATE is the number of days since December 31, -1 in the Gregorian calendar."
414 (let* ((month 1) 414 (let* ((month 1)
415 day 415 day
416 (year (math-quotient (math-add date (if (Math-lessp date 711859) 416 (year (math-quotient (math-add date (if (Math-lessp date 711859)
@@ -423,7 +423,7 @@ DATE is the number of days since December 31, -1 in the Gregorian calendar."
423 (setq year (math-add year -1))) 423 (setq year (math-add year -1)))
424 (if (eq year 0) (setq year -1)) 424 (if (eq year 0) (setq year -1))
425 (setq date (1+ (math-sub date temp))) 425 (setq date (1+ (math-sub date temp)))
426 (setq temp 426 (setq temp
427 (if (math-leap-year-p year t) 427 (if (math-leap-year-p year t)
428 [1 32 61 92 122 153 183 214 245 275 306 336 999] 428 [1 32 61 92 122 153 183 214 245 275 306 336 999]
429 [1 32 60 91 121 152 182 213 244 274 305 335 999])) 429 [1 32 60 91 121 152 182 213 244 274 305 335 999]))
@@ -444,7 +444,7 @@ in the Gregorian calendar and the remaining part determines the time."
444 (date (car parts)) 444 (date (car parts))
445 (time (nth 1 parts)) 445 (time (nth 1 parts))
446 (dt (if (and calc-gregorian-switch 446 (dt (if (and calc-gregorian-switch
447 (Math-lessp value 447 (Math-lessp value
448 (or 448 (or
449 (nth 3 calc-gregorian-switch) 449 (nth 3 calc-gregorian-switch)
450 (apply 'math-absolute-from-gregorian-dt calc-gregorian-switch)) 450 (apply 'math-absolute-from-gregorian-dt calc-gregorian-switch))
@@ -453,7 +453,7 @@ in the Gregorian calendar and the remaining part determines the time."
453 (math-date-to-gregorian-dt date)))) 453 (math-date-to-gregorian-dt date))))
454 (if (math-integerp value) 454 (if (math-integerp value)
455 dt 455 dt
456 (append dt 456 (append dt
457 (list 457 (list
458 (/ time 3600) 458 (/ time 3600)
459 (% (/ time 60) 60) 459 (% (/ time 60) 60)
@@ -467,13 +467,13 @@ in the Gregorian calendar and the remaining part determines the time."
467 (year (math-add approx 467 (year (math-add approx
468 (let ((y approx) 468 (let ((y approx)
469 (sum 0)) 469 (sum 0))
470 (while (>= (math-compare date 470 (while (>= (math-compare date
471 (math-absolute-from-iso-dt (setq y (math-add y 1)) 1 1)) 0) 471 (math-absolute-from-iso-dt (setq y (math-add y 1)) 1 1)) 0)
472 (setq sum (+ sum 1))) 472 (setq sum (+ sum 1)))
473 sum)))) 473 sum))))
474 (list 474 (list
475 year 475 year
476 (math-add (car (math-idivmod 476 (math-add (car (math-idivmod
477 (math-sub date (math-absolute-from-iso-dt year 1 1)) 477 (math-sub date (math-absolute-from-iso-dt year 1 1))
478 7)) 478 7))
479 1) 479 1)
@@ -525,7 +525,7 @@ in the Gregorian calendar and the remaining part determines the time."
525(defun math-leap-year-p (year &optional julian) 525(defun math-leap-year-p (year &optional julian)
526 "Non-nil if YEAR is a leap year. 526 "Non-nil if YEAR is a leap year.
527If JULIAN is non-nil, then use the criterion for leap years 527If JULIAN is non-nil, then use the criterion for leap years
528in the Julian calendar, otherwise use the criterion in the 528in the Julian calendar, otherwise use the criterion in the
529Gregorian calendar." 529Gregorian calendar."
530 (if julian 530 (if julian
531 (if (math-negp year) 531 (if (math-negp year)
@@ -584,7 +584,7 @@ Recall that DATE is the number of days since December 31, -1
584in the Gregorian calendar." 584in the Gregorian calendar."
585 (if (eq year 0) (setq year -1)) 585 (if (eq year 0) (setq year -1))
586 (let ((yearm1 (math-sub year 1))) 586 (let ((yearm1 (math-sub year 1)))
587 (math-sub 587 (math-sub
588 ;; Add the number of days of the year and the numbers of days 588 ;; Add the number of days of the year and the numbers of days
589 ;; in the previous years (leap year days to be added separately) 589 ;; in the previous years (leap year days to be added separately)
590 (math-add (math-day-in-year year month day) 590 (math-add (math-day-in-year year month day)
@@ -595,9 +595,9 @@ in the Gregorian calendar."
595 (math-sub 365 595 (math-sub 365
596 (math-quotient (math-sub 3 year) 596 (math-quotient (math-sub 3 year)
597 4))))) 597 4)))))
598 ;; Subtract the number of Julian leap years which are not 598 ;; Subtract the number of Julian leap years which are not
599 ;; Gregorian leap years. In C=4N+r centuries, there will 599 ;; Gregorian leap years. In C=4N+r centuries, there will
600 ;; be 3N+r of these days. The following will compute 600 ;; be 3N+r of these days. The following will compute
601 ;; 3N+r. 601 ;; 3N+r.
602 (let* ((correction (math-mul (math-quotient yearm1 100) 3)) 602 (let* ((correction (math-mul (math-quotient yearm1 100) 3))
603 (res (math-idivmod correction 4))) 603 (res (math-idivmod correction 4)))
@@ -612,7 +612,7 @@ Recall that DATE is the number of days since December 31, -1
612in the Gregorian calendar." 612in the Gregorian calendar."
613 (if (eq year 0) (setq year -1)) 613 (if (eq year 0) (setq year -1))
614 (let ((yearm1 (math-sub year 1))) 614 (let ((yearm1 (math-sub year 1)))
615 (math-sub 615 (math-sub
616 ;; Add the number of days of the year and the numbers of days 616 ;; Add the number of days of the year and the numbers of days
617 ;; in the previous years (leap year days to be added separately) 617 ;; in the previous years (leap year days to be added separately)
618 (math-add (math-day-in-year year month day) 618 (math-add (math-day-in-year year month day)
@@ -731,11 +731,11 @@ as measured in the integer number of days before December 31, 1 BC (Gregorian)."
731 ((eq x 'n) 731 ((eq x 'n)
732 (math-format-number (math-floor math-fd-date))) 732 (math-format-number (math-floor math-fd-date)))
733 ((eq x 'J) 733 ((eq x 'J)
734 (math-format-number 734 (math-format-number
735 (math-add math-fd-date math-julian-date-beginning))) 735 (math-add math-fd-date math-julian-date-beginning)))
736 ((eq x 'j) 736 ((eq x 'j)
737 (math-format-number (math-add 737 (math-format-number (math-add
738 (math-floor math-fd-date) 738 (math-floor math-fd-date)
739 math-julian-date-beginning-int))) 739 math-julian-date-beginning-int)))
740 ((eq x 'U) 740 ((eq x 'U)
741 (math-format-number (nth 1 (math-date-parts math-fd-date 719164)))) 741 (math-format-number (nth 1 (math-date-parts math-fd-date 719164))))
@@ -1082,7 +1082,7 @@ as measured in the integer number of days before December 31, 1 BC (Gregorian)."
1082 (throw 'syntax "Day value is out of range")) 1082 (throw 'syntax "Day value is out of range"))
1083 (and hour 1083 (and hour
1084 (progn 1084 (progn
1085 (if (or (< hour 0) 1085 (if (or (< hour 0)
1086 (> hour 24) 1086 (> hour 24)
1087 (and (= hour 24) 1087 (and (= hour 24)
1088 (not (= minute 0)) 1088 (not (= minute 0))
@@ -1102,7 +1102,7 @@ as measured in the integer number of days before December 31, 1 BC (Gregorian)."
1102 (throw 'syntax "Weekday value is out of range")) 1102 (throw 'syntax "Weekday value is out of range"))
1103 (and hour 1103 (and hour
1104 (progn 1104 (progn
1105 (if (or (< hour 0) 1105 (if (or (< hour 0)
1106 (> hour 24) 1106 (> hour 24)
1107 (and (= hour 24) 1107 (and (= hour 24)
1108 (not (= minute 0)) 1108 (not (= minute 0))
@@ -1473,7 +1473,7 @@ as measured in the integer number of days before December 31, 1 BC (Gregorian)."
1473;; From cal-dst 1473;; From cal-dst
1474(defvar calendar-current-time-zone-cache) 1474(defvar calendar-current-time-zone-cache)
1475 1475
1476(defvar math-calendar-tzinfo 1476(defvar math-calendar-tzinfo
1477 nil 1477 nil
1478 "Information about the timezone, retrieved from the calendar.") 1478 "Information about the timezone, retrieved from the calendar.")
1479 1479
@@ -1523,7 +1523,7 @@ second, the number of seconds offset for daylight savings."
1523 (if (calc-var-value 'var-TimeZone) 1523 (if (calc-var-value 'var-TimeZone)
1524 (calcFunc-tzone (calc-var-value 'var-TimeZone) date) 1524 (calcFunc-tzone (calc-var-value 'var-TimeZone) date)
1525 (let ((tzinfo (math-get-calendar-tzinfo))) 1525 (let ((tzinfo (math-get-calendar-tzinfo)))
1526 (+ (nth 0 tzinfo) 1526 (+ (nth 0 tzinfo)
1527 (* (math-cal-daylight-savings-adjust date) (nth 1 tzinfo))))))) 1527 (* (math-cal-daylight-savings-adjust date) (nth 1 tzinfo)))))))
1528 1528
1529(defvar math-daylight-savings-hook 'math-std-daylight-savings) 1529(defvar math-daylight-savings-hook 'math-std-daylight-savings)
@@ -1559,8 +1559,8 @@ second, the number of seconds offset for daylight savings."
1559 (+ (nth 3 dt) (/ (nth 4 dt) 60.0))) 1559 (+ (nth 3 dt) (/ (nth 4 dt) 60.0)))
1560 (t 1560 (t
1561 0))) 1561 0)))
1562 (rounded-abs-date 1562 (rounded-abs-date
1563 (+ 1563 (+
1564 (calendar-absolute-from-gregorian 1564 (calendar-absolute-from-gregorian
1565 (list (nth 1 dt) (nth 2 dt) (nth 0 dt))) 1565 (list (nth 1 dt) (nth 2 dt) (nth 0 dt)))
1566 (/ (round (* 60 time)) 60.0 24.0)))) 1566 (/ (round (* 60 time)) 60.0 24.0))))
@@ -1700,7 +1700,7 @@ and ends on the last Sunday of October at 2 a.m."
1700 (let* ((dt (math-date-to-dt date)) 1700 (let* ((dt (math-date-to-dt date))
1701 (dim (math-days-in-month (car dt) (nth 1 dt))) 1701 (dim (math-days-in-month (car dt) (nth 1 dt)))
1702 (julian (if calc-gregorian-switch 1702 (julian (if calc-gregorian-switch
1703 (math-date-to-dt (math-sub 1703 (math-date-to-dt (math-sub
1704 (or (nth 3 calc-gregorian-switch) 1704 (or (nth 3 calc-gregorian-switch)
1705 (apply 'math-absolute-from-gregorian-dt calc-gregorian-switch)) 1705 (apply 'math-absolute-from-gregorian-dt calc-gregorian-switch))
1706 1))))) 1706 1)))))
@@ -1727,14 +1727,14 @@ and ends on the last Sunday of October at 2 a.m."
1727 (list 'date (math-dt-to-date (list (car dt) (nth 1 dt) (1+ day)))) 1727 (list 'date (math-dt-to-date (list (car dt) (nth 1 dt) (1+ day))))
1728 ;; Otherwise do some computations 1728 ;; Otherwise do some computations
1729 (let ((tm (+ day (- (nth 2 calc-gregorian-switch) (nth 2 julian))))) 1729 (let ((tm (+ day (- (nth 2 calc-gregorian-switch) (nth 2 julian)))))
1730 (list 'date (math-dt-to-date 1730 (list 'date (math-dt-to-date
1731 (list (car dt) 1731 (list (car dt)
1732 (nth 1 dt) 1732 (nth 1 dt)
1733 ;; 1733 ;;
1734 (if (> tm dim) dim tm))))))) 1734 (if (> tm dim) dim tm)))))))
1735 ((and (eq (car dt) (car julian)) 1735 ((and (eq (car dt) (car julian))
1736 (= (nth 1 dt) (nth 1 julian))) 1736 (= (nth 1 dt) (nth 1 julian)))
1737 ;; In this case, the current month is truncated because of the switch 1737 ;; In this case, the current month is truncated because of the switch
1738 ;; to the Gregorian calendar 1738 ;; to the Gregorian calendar
1739 (list 'date (math-dt-to-date 1739 (list 'date (math-dt-to-date
1740 (list (car dt) 1740 (list (car dt)
@@ -1742,7 +1742,7 @@ and ends on the last Sunday of October at 2 a.m."
1742 (if (>= day (nth 2 julian)) 1742 (if (>= day (nth 2 julian))
1743 (nth 2 julian) 1743 (nth 2 julian)
1744 (1+ day)))))) 1744 (1+ day))))))
1745 (t 1745 (t
1746 ;; The default 1746 ;; The default
1747 (list 'date (math-add (math-dt-to-date (list (car dt) (nth 1 dt) 1)) day)))) 1747 (list 'date (math-add (math-dt-to-date (list (car dt) (nth 1 dt) 1)) day))))
1748 (list 'date (math-add (math-dt-to-date (list (car dt) (nth 1 dt) 1)) day))))) 1748 (list 'date (math-add (math-dt-to-date (list (car dt) (nth 1 dt) 1)) day)))))
@@ -1779,7 +1779,7 @@ and ends on the last Sunday of October at 2 a.m."
1779 ;; Otherwise, just make sure the date doesn't go past the end of the year 1779 ;; Otherwise, just make sure the date doesn't go past the end of the year
1780 (list 'date (math-min (math-add (math-dt-to-date (list (car dt) 1 1)) (1- day)) 1780 (list 'date (math-min (math-add (math-dt-to-date (list (car dt) 1 1)) (1- day))
1781 (math-dt-to-date (list (car dt) 12 31)))))) 1781 (math-dt-to-date (list (car dt) 12 31))))))
1782 (t 1782 (t
1783 (list 'date (math-add (math-dt-to-date (list (car dt) 1 1)) 1783 (list 'date (math-add (math-dt-to-date (list (car dt) 1 1))
1784 (1- day))))) 1784 (1- day)))))
1785 (list 'date (math-add (math-dt-to-date (list (car dt) 1 1)) 1785 (list 'date (math-add (math-dt-to-date (list (car dt) 1 1))
diff --git a/lisp/calc/calc-help.el b/lisp/calc/calc-help.el
index 18c3b76c423..395b12d8699 100644
--- a/lisp/calc/calc-help.el
+++ b/lisp/calc/calc-help.el
@@ -546,7 +546,7 @@ C-w Describe how there is no warranty for Calc."
546 '("Select, Additional, Once; eVal, Formula; Rewrite" 546 '("Select, Additional, Once; eVal, Formula; Rewrite"
547 "More, Less, 1-9, Next, Previous" 547 "More, Less, 1-9, Next, Previous"
548 "Unselect, Clear; Display; Enable; Breakable" 548 "Unselect, Clear; Display; Enable; Breakable"
549 "' (replace), \\=` (edit), +, -, *, /, RET (grab), DEL" 549 "\\=' (replace), \\=` (edit), +, -, *, /, RET (grab), DEL"
550 "SHIFT + swap: Left, Right; maybe: Select, Once" 550 "SHIFT + swap: Left, Right; maybe: Select, Once"
551 "SHIFT + Commute, Merge, Distrib, jump-Eqn, Isolate" 551 "SHIFT + Commute, Merge, Distrib, jump-Eqn, Isolate"
552 "SHIFT + Negate, & (invert); Unpack") 552 "SHIFT + Negate, & (invert); Unpack")
diff --git a/lisp/calc/calc-misc.el b/lisp/calc/calc-misc.el
index 4d84146af94..e141589ab7b 100644
--- a/lisp/calc/calc-misc.el
+++ b/lisp/calc/calc-misc.el
@@ -225,7 +225,7 @@ Calc user interface as before (either C-x * C or C-x * K; initially C-x * C).
225 "Letter keys: SHIFT + Num-eval; More-recn; eXec-kbd-macro; Keep-args" 225 "Letter keys: SHIFT + Num-eval; More-recn; eXec-kbd-macro; Keep-args"
226 "Other keys: +, -, *, /, ^, \\ (int div), : (frac div)" 226 "Other keys: +, -, *, /, ^, \\ (int div), : (frac div)"
227 "Other keys: & (1/x), | (concat), % (modulo), ! (factorial)" 227 "Other keys: & (1/x), | (concat), % (modulo), ! (factorial)"
228 "Other keys: ' (alg-entry), = (eval), \\=` (edit); M-RET (last-args)" 228 "Other keys: \\=' (alg-entry), = (eval), \\=` (edit); M-RET (last-args)"
229 "Other keys: SPC/RET (enter/dup), LFD (over); < > (scroll horiz)" 229 "Other keys: SPC/RET (enter/dup), LFD (over); < > (scroll horiz)"
230 "Other keys: DEL (drop), M-DEL (drop-above); { } (scroll vert)" 230 "Other keys: DEL (drop), M-DEL (drop-above); { } (scroll vert)"
231 "Other keys: TAB (swap/roll-dn), M-TAB (roll-up)" 231 "Other keys: TAB (swap/roll-dn), M-TAB (roll-up)"
@@ -253,11 +253,12 @@ Calc user interface as before (either C-x * C or C-x * K; initially C-x * C).
253 0)) 253 0))
254 (let ((msg (nth calc-help-phase msgs))) 254 (let ((msg (nth calc-help-phase msgs)))
255 (message "%s" (if msg 255 (message "%s" (if msg
256 (concat msg ":" 256 (concat (substitute-command-keys msg) ":"
257 (make-string (- (apply 'max 257 (make-string (- (apply 'max
258 (mapcar 'length 258 (mapcar 'length
259 msgs)) 259 msgs))
260 (length msg)) 32) 260 (length msg))
261 ?\ )
261 " [?=MORE]") 262 " [?=MORE]")
262 "")))))))) 263 ""))))))))
263 264
diff --git a/lisp/calc/calc-mode.el b/lisp/calc/calc-mode.el
index 605084e3f35..b5eef7f6784 100644
--- a/lisp/calc/calc-mode.el
+++ b/lisp/calc/calc-mode.el
@@ -258,7 +258,7 @@
258 (setq calc-display-raw (if calc-display-raw nil (if arg 0 t))) 258 (setq calc-display-raw (if calc-display-raw nil (if arg 0 t)))
259 (calc-do-refresh) 259 (calc-do-refresh)
260 (if calc-display-raw 260 (if calc-display-raw
261 (message "Press d ' again to cancel \"raw\" display mode")))) 261 (message "%s" "Press d ' again to cancel \"raw\" display mode"))))
262 262
263 263
264 264
@@ -446,11 +446,11 @@
446 (calc-change-mode '(calc-algebraic-mode calc-incomplete-algebraic-mode) 446 (calc-change-mode '(calc-algebraic-mode calc-incomplete-algebraic-mode)
447 (list (not calc-algebraic-mode) nil))) 447 (list (not calc-algebraic-mode) nil)))
448 (use-local-map calc-mode-map) 448 (use-local-map calc-mode-map)
449 (message (if calc-algebraic-mode 449 (message "%s" (if calc-algebraic-mode
450 "Numeric keys and ( and [ begin algebraic entry" 450 "Numeric keys and ( and [ begin algebraic entry"
451 (if calc-incomplete-algebraic-mode 451 (if calc-incomplete-algebraic-mode
452 "Only ( and [ begin algebraic entry" 452 "Only ( and [ begin algebraic entry"
453 "No keys except ' and $ begin algebraic entry"))))) 453 "No keys except ' and $ begin algebraic entry")))))
454 454
455(defun calc-symbolic-mode (n) 455(defun calc-symbolic-mode (n)
456 (interactive "P") 456 (interactive "P")
diff --git a/lisp/calc/calc-prog.el b/lisp/calc/calc-prog.el
index cc1d27032ef..58d2b5ce431 100644
--- a/lisp/calc/calc-prog.el
+++ b/lisp/calc/calc-prog.el
@@ -1441,7 +1441,7 @@ Redefine the corresponding command."
1441 (let ((calc-kbd-push-level 0)) 1441 (let ((calc-kbd-push-level 0))
1442 (execute-kbd-macro (substring body 0 -2)))) 1442 (execute-kbd-macro (substring body 0 -2))))
1443 (let ((calc-kbd-push-level (1+ calc-kbd-push-level))) 1443 (let ((calc-kbd-push-level (1+ calc-kbd-push-level)))
1444 (message "Saving modes; type Z' to restore") 1444 (message "%s" "Saving modes; type Z' to restore")
1445 (recursive-edit)))))) 1445 (recursive-edit))))))
1446 1446
1447(defun calc-kbd-pop () 1447(defun calc-kbd-pop ()
@@ -1450,7 +1450,7 @@ Redefine the corresponding command."
1450 (progn 1450 (progn
1451 (message "Mode settings restored") 1451 (message "Mode settings restored")
1452 (exit-recursive-edit)) 1452 (exit-recursive-edit))
1453 (error "Unbalanced Z' in keyboard macro"))) 1453 (error "%s" "Unbalanced Z' in keyboard macro")))
1454 1454
1455 1455
1456;; (defun calc-kbd-report (msg) 1456;; (defun calc-kbd-report (msg)
diff --git a/lisp/calc/calc.el b/lisp/calc/calc.el
index 8e4df58793d..ea20986bc85 100644
--- a/lisp/calc/calc.el
+++ b/lisp/calc/calc.el
@@ -736,7 +736,7 @@ If hms, angles are in degrees-minutes-seconds.")
736 736
737(defcalcmodevar calc-algebraic-mode nil 737(defcalcmodevar calc-algebraic-mode nil
738 "If non-nil, numeric entry accepts whole algebraic expressions. 738 "If non-nil, numeric entry accepts whole algebraic expressions.
739If nil, algebraic expressions must be preceded by \"'\".") 739If nil, algebraic expressions must be preceded by \"\\='\".")
740 740
741(defcalcmodevar calc-incomplete-algebraic-mode nil 741(defcalcmodevar calc-incomplete-algebraic-mode nil
742 "Like calc-algebraic-mode except only affects ( and [ keys.") 742 "Like calc-algebraic-mode except only affects ( and [ keys.")
@@ -1311,7 +1311,7 @@ This is an RPN calculator featuring arbitrary-precision integer, rational,
1311floating-point, complex, matrix, and symbolic arithmetic. 1311floating-point, complex, matrix, and symbolic arithmetic.
1312 1312
1313RPN calculation: 2 RET 3 + produces 5. 1313RPN calculation: 2 RET 3 + produces 5.
1314Algebraic style: ' 2+3 RET produces 5. 1314Algebraic style: \\=' 2+3 RET produces 5.
1315 1315
1316Basic operators are +, -, *, /, ^, & (reciprocal), % (modulo), n (change-sign). 1316Basic operators are +, -, *, /, ^, & (reciprocal), % (modulo), n (change-sign).
1317 1317
@@ -1330,7 +1330,7 @@ Notations: 3.14e6 3.14 * 10^6
1330 [1 .. 4) semi-open interval, 1 <= x < 4 1330 [1 .. 4) semi-open interval, 1 <= x < 4
1331 2 +/- 3 (p key) number with mean 2, standard deviation 3 1331 2 +/- 3 (p key) number with mean 2, standard deviation 3
1332 2 mod 3 (M key) number 2 computed modulo 3 1332 2 mod 3 (M key) number 2 computed modulo 3
1333 <1 jan 91> Date form (enter using ' key) 1333 <1 jan 91> Date form (enter using \\=' key)
1334 1334
1335 1335
1336\\{calc-mode-map} 1336\\{calc-mode-map}
diff --git a/lisp/calendar/diary-lib.el b/lisp/calendar/diary-lib.el
index ec02900f495..b21fc687144 100644
--- a/lisp/calendar/diary-lib.el
+++ b/lisp/calendar/diary-lib.el
@@ -910,10 +910,12 @@ This is recursive; that is, included files may include other files."
910 (diary-list-entries original-date number t))))) 910 (diary-list-entries original-date number t)))))
911 (display-warning 911 (display-warning
912 :error 912 :error
913 (format "Can't read included diary file %s\n" diary-file))) 913 (format-message "Can't read included diary file %s\n"
914 diary-file)))
914 (display-warning 915 (display-warning
915 :error 916 :error
916 (format "Can't find included diary file %s\n" diary-file))))) 917 (format-message "Can't find included diary file %s\n"
918 diary-file)))))
917 (goto-char (point-min))) 919 (goto-char (point-min)))
918 920
919(defun diary-include-other-diary-files () 921(defun diary-include-other-diary-files ()
diff --git a/lisp/calendar/todo-mode.el b/lisp/calendar/todo-mode.el
index 925d00866d1..83f2fedf25b 100644
--- a/lisp/calendar/todo-mode.el
+++ b/lisp/calendar/todo-mode.el
@@ -237,7 +237,8 @@ The final element is \"*\", indicating an unspecified month.")
237 (when (string= (widget-value widget) todo-item-mark) 237 (when (string= (widget-value widget) todo-item-mark)
238 (widget-put 238 (widget-put
239 widget :error 239 widget :error
240 "Invalid value: must be distinct from ‘todo-item-mark’") 240 (format-message
241 "Invalid value: must be distinct from ‘todo-item-mark’"))
241 widget))) 242 widget)))
242 :initialize 'custom-initialize-default 243 :initialize 'custom-initialize-default
243 :set 'todo-reset-prefix 244 :set 'todo-reset-prefix
@@ -1694,7 +1695,8 @@ only when no items are marked."
1694 (when (string= (widget-value widget) todo-prefix) 1695 (when (string= (widget-value widget) todo-prefix)
1695 (widget-put 1696 (widget-put
1696 widget :error 1697 widget :error
1697 "Invalid value: must be distinct from ‘todo-prefix’") 1698 (format-message
1699 "Invalid value: must be distinct from ‘todo-prefix’"))
1698 widget))) 1700 widget)))
1699 :set (lambda (symbol value) 1701 :set (lambda (symbol value)
1700 (custom-set-default symbol (propertize value 'face 'todo-mark))) 1702 (custom-set-default symbol (propertize value 'face 'todo-mark)))
diff --git a/lisp/vc/add-log.el b/lisp/vc/add-log.el
index e24b6ccae01..d120d052215 100644
--- a/lisp/vc/add-log.el
+++ b/lisp/vc/add-log.el
@@ -481,9 +481,9 @@ try to visit the file for the change under `point' instead."
481 (apply 'change-log-goto-source-1 481 (apply 'change-log-goto-source-1
482 (append change-log-find-head change-log-find-tail)) 482 (append change-log-find-head change-log-find-tail))
483 (error 483 (error
484 (format "Cannot find more matches for tag `%s' in file `%s'" 484 "Cannot find more matches for tag `%s' in file `%s'"
485 (car change-log-find-head) 485 (car change-log-find-head)
486 (nth 2 change-log-find-head))))) 486 (nth 2 change-log-find-head))))
487 (save-excursion 487 (save-excursion
488 (let* ((at (point)) 488 (let* ((at (point))
489 (tag-at (change-log-search-tag-name)) 489 (tag-at (change-log-search-tag-name))
@@ -515,9 +515,8 @@ try to visit the file for the change under `point' instead."
515 (condition-case nil 515 (condition-case nil
516 (setq change-log-find-tail 516 (setq change-log-find-tail
517 (apply 'change-log-goto-source-1 change-log-find-head)) 517 (apply 'change-log-goto-source-1 change-log-find-head))
518 (error 518 (error "Cannot find matches for tag `%s' in file `%s'"
519 (format "Cannot find matches for tag `%s' in file `%s'" 519 tag file))))))))
520 tag file)))))))))
521 520
522(defun change-log-next-error (&optional argp reset) 521(defun change-log-next-error (&optional argp reset)
523 "Move to the Nth (default 1) next match in a ChangeLog buffer. 522 "Move to the Nth (default 1) next match in a ChangeLog buffer.
diff --git a/lisp/vc/diff-mode.el b/lisp/vc/diff-mode.el
index 948a45e6f5c..37ed4a53b44 100644
--- a/lisp/vc/diff-mode.el
+++ b/lisp/vc/diff-mode.el
@@ -2128,7 +2128,8 @@ fixed, visit it in a buffer."
2128 (goto-char hunk-end)) 2128 (goto-char hunk-end))
2129 (if modified-buffers 2129 (if modified-buffers
2130 (message "Deleted trailing whitespace from %s." 2130 (message "Deleted trailing whitespace from %s."
2131 (mapconcat (lambda (buf) (concat "`" (buffer-name buf) "'")) 2131 (mapconcat (lambda (buf) (format-message
2132 "`%s'" (buffer-name buf)))
2132 modified-buffers ", ")) 2133 modified-buffers ", "))
2133 (message "No trailing whitespace to delete."))))) 2134 (message "No trailing whitespace to delete.")))))
2134 2135
diff --git a/lisp/vc/ediff-diff.el b/lisp/vc/ediff-diff.el
index b3093943d4e..352892c945a 100644
--- a/lisp/vc/ediff-diff.el
+++ b/lisp/vc/ediff-diff.el
@@ -1373,7 +1373,7 @@ affects only files whose names match the expression."
1373 ;; Normalize empty filter RE to nil. 1373 ;; Normalize empty filter RE to nil.
1374 (unless (> (length filter-re) 0) (setq filter-re nil)) 1374 (unless (> (length filter-re) 0) (setq filter-re nil))
1375 ;; Indicate progress 1375 ;; Indicate progress
1376 (message "Comparing %s and %s modulo %s" d1 d2 filter-re) 1376 (message "Comparing `%s' and `%s' modulo `%s'" d1 d2 filter-re)
1377 (cond 1377 (cond
1378 ;; D1 & D2 directories => recurse 1378 ;; D1 & D2 directories => recurse
1379 ((and (file-directory-p d1) 1379 ((and (file-directory-p d1)
diff --git a/lisp/vc/ediff-init.el b/lisp/vc/ediff-init.el
index d6b538cff2b..8c935bfab19 100644
--- a/lisp/vc/ediff-init.el
+++ b/lisp/vc/ediff-init.el
@@ -1719,6 +1719,9 @@ Unless optional argument INPLACE is non-nil, return a new string."
1719 (aset newstr i tochar))) 1719 (aset newstr i tochar)))
1720 newstr))) 1720 newstr)))
1721 1721
1722(unless (fboundp 'format-message)
1723 (defalias 'format-message 'format))
1724
1722(defun ediff-abbrev-jobname (jobname) 1725(defun ediff-abbrev-jobname (jobname)
1723 (cond ((eq jobname 'ediff-directories) 1726 (cond ((eq jobname 'ediff-directories)
1724 "Compare two directories") 1727 "Compare two directories")
diff --git a/lisp/vc/ediff-merg.el b/lisp/vc/ediff-merg.el
index 72dfc0861f5..2da3de1a10e 100644
--- a/lisp/vc/ediff-merg.el
+++ b/lisp/vc/ediff-merg.el
@@ -268,8 +268,8 @@ Buffer B."
268 (setq ediff-default-variant 268 (setq ediff-default-variant
269 (intern 269 (intern
270 (completing-read 270 (completing-read
271 (format "Current merge default is `%S'. New default: " 271 (format-message "Current merge default is `%S'. New default: "
272 ediff-default-variant) 272 ediff-default-variant)
273 actual-alist nil 'must-match))) 273 actual-alist nil 'must-match)))
274 (ediff-do-merge ediff-current-difference 'remerge) 274 (ediff-do-merge ediff-current-difference 'remerge)
275 (ediff-recenter) 275 (ediff-recenter)
diff --git a/lisp/vc/ediff-ptch.el b/lisp/vc/ediff-ptch.el
index 80990feac35..b665034d135 100644
--- a/lisp/vc/ediff-ptch.el
+++ b/lisp/vc/ediff-ptch.el
@@ -723,7 +723,7 @@ optional argument, then use it."
723 (with-output-to-temp-buffer ediff-msg-buffer 723 (with-output-to-temp-buffer ediff-msg-buffer
724 (ediff-with-current-buffer standard-output 724 (ediff-with-current-buffer standard-output
725 (fundamental-mode)) 725 (fundamental-mode))
726 (princ (format 726 (princ (format-message
727 "Patch program has failed due to a bad patch file, 727 "Patch program has failed due to a bad patch file,
728it couldn't apply all hunks, OR 728it couldn't apply all hunks, OR
729it couldn't create the backup for the file being patched. 729it couldn't create the backup for the file being patched.
diff --git a/lisp/vc/ediff-util.el b/lisp/vc/ediff-util.el
index 26bba40b4b4..bf5bb5cd5da 100644
--- a/lisp/vc/ediff-util.el
+++ b/lisp/vc/ediff-util.el
@@ -2097,7 +2097,7 @@ ARG is a prefix argument. If nil, copy the current difference region."
2097 2097
2098 (if this-buf-n-th-diff-saved 2098 (if this-buf-n-th-diff-saved
2099 (if (yes-or-no-p 2099 (if (yes-or-no-p
2100 (format 2100 (format-message
2101 "You've previously copied diff region %d to buffer %S. Confirm? " 2101 "You've previously copied diff region %d to buffer %S. Confirm? "
2102 (1+ n) buf-type)) 2102 (1+ n) buf-type))
2103 t 2103 t
@@ -2858,13 +2858,14 @@ Hit \\[ediff-recenter] to reset the windows afterward."
2858 (B-line (ediff-with-current-buffer ediff-buffer-B 2858 (B-line (ediff-with-current-buffer ediff-buffer-B
2859 (1+ (count-lines (point-min) (point))))) 2859 (1+ (count-lines (point-min) (point)))))
2860 C-line) 2860 C-line)
2861 (princ (format "\Buffer A's point is on line %d\n" A-line)) 2861 (princ (format-message "Buffer A's point is on line %d\n" A-line))
2862 (princ (format "Buffer B's point is on line %d\n" B-line)) 2862 (princ (format-message "Buffer B's point is on line %d\n" B-line))
2863 (if ediff-3way-job 2863 (if ediff-3way-job
2864 (progn 2864 (progn
2865 (setq C-line (ediff-with-current-buffer ediff-buffer-C 2865 (setq C-line (ediff-with-current-buffer ediff-buffer-C
2866 (1+ (count-lines (point-min) (point))))) 2866 (1+ (count-lines (point-min) (point)))))
2867 (princ (format "Buffer C's point is on line %d\n" C-line))))) 2867 (princ (format-message
2868 "Buffer C's point is on line %d\n" C-line)))))
2868 2869
2869 (princ (format "\nCurrent difference number = %S\n" 2870 (princ (format "\nCurrent difference number = %S\n"
2870 (cond ((< ediff-current-difference 0) 'start) 2871 (cond ((< ediff-current-difference 0) 'start)
@@ -2890,7 +2891,7 @@ Hit \\[ediff-recenter] to reset the windows afterward."
2890 (princ 2891 (princ
2891 "\nIgnoring regions that match") 2892 "\nIgnoring regions that match")
2892 (princ 2893 (princ
2893 (format 2894 (format-message
2894 "\n\t regexp `%s' in buffer A %S\n\t regexp `%s' in buffer B\n" 2895 "\n\t regexp `%s' in buffer A %S\n\t regexp `%s' in buffer B\n"
2895 ediff-regexp-hide-A ediff-hide-regexp-connective 2896 ediff-regexp-hide-A ediff-hide-regexp-connective
2896 ediff-regexp-hide-B))) 2897 ediff-regexp-hide-B)))
@@ -2899,15 +2900,16 @@ Hit \\[ediff-recenter] to reset the windows afterward."
2899 (princ 2900 (princ
2900 "\nFocusing on regions that match") 2901 "\nFocusing on regions that match")
2901 (princ 2902 (princ
2902 (format 2903 (format-message
2903 "\n\t regexp `%s' in buffer A %S\n\t regexp `%s' in buffer B\n" 2904 "\n\t regexp `%s' in buffer A %S\n\t regexp `%s' in buffer B\n"
2904 ediff-regexp-focus-A ediff-focus-regexp-connective 2905 ediff-regexp-focus-A ediff-focus-regexp-connective
2905 ediff-regexp-focus-B))) 2906 ediff-regexp-focus-B)))
2906 (t (princ "\nSelective browsing via a user-defined method.\n"))) 2907 (t (princ "\nSelective browsing via a user-defined method.\n")))
2907 2908
2908 (princ 2909 (princ
2909 (format "\nBugs/suggestions: type `%s' while in Ediff Control Panel." 2910 (format-message
2910 (substitute-command-keys "\\[ediff-submit-report]"))) 2911 "\nBugs/suggestions: type `%s' while in Ediff Control Panel."
2912 (substitute-command-keys "\\[ediff-submit-report]")))
2911 ) ; with output 2913 ) ; with output
2912 (if (frame-live-p ediff-control-frame) 2914 (if (frame-live-p ediff-control-frame)
2913 (ediff-reset-mouse ediff-control-frame)) 2915 (ediff-reset-mouse ediff-control-frame))
diff --git a/lisp/vc/ediff.el b/lisp/vc/ediff.el
index 837940c7763..65ca0bd4408 100644
--- a/lisp/vc/ediff.el
+++ b/lisp/vc/ediff.el
@@ -1294,7 +1294,7 @@ buffer."
1294 (let (rev1 rev2) 1294 (let (rev1 rev2)
1295 (setq rev1 1295 (setq rev1
1296 (read-string 1296 (read-string
1297 (format 1297 (format-message
1298 "Version 1 to merge (default %s's working version): " 1298 "Version 1 to merge (default %s's working version): "
1299 (if (stringp file) 1299 (if (stringp file)
1300 (file-name-nondirectory file) "current buffer"))) 1300 (file-name-nondirectory file) "current buffer")))
@@ -1326,7 +1326,7 @@ buffer."
1326 (let (rev1 rev2 ancestor-rev) 1326 (let (rev1 rev2 ancestor-rev)
1327 (setq rev1 1327 (setq rev1
1328 (read-string 1328 (read-string
1329 (format 1329 (format-message
1330 "Version 1 to merge (default %s's working version): " 1330 "Version 1 to merge (default %s's working version): "
1331 (if (stringp file) 1331 (if (stringp file)
1332 (file-name-nondirectory file) "current buffer"))) 1332 (file-name-nondirectory file) "current buffer")))
@@ -1338,7 +1338,7 @@ buffer."
1338 (file-name-nondirectory file) "current buffer"))) 1338 (file-name-nondirectory file) "current buffer")))
1339 ancestor-rev 1339 ancestor-rev
1340 (read-string 1340 (read-string
1341 (format 1341 (format-message
1342 "Ancestor version (default %s's base revision): " 1342 "Ancestor version (default %s's base revision): "
1343 (if (stringp file) 1343 (if (stringp file)
1344 (file-name-nondirectory file) "current buffer")))) 1344 (file-name-nondirectory file) "current buffer"))))
diff --git a/lisp/vc/pcvs.el b/lisp/vc/pcvs.el
index 6d8e5374145..f6a9e08d84b 100644
--- a/lisp/vc/pcvs.el
+++ b/lisp/vc/pcvs.el
@@ -968,10 +968,10 @@ With a prefix argument, prompt for cvs FLAGS to use."
968The files are stored to DIR." 968The files are stored to DIR."
969 (interactive 969 (interactive
970 (let* ((branch (cvs-prefix-get 'cvs-branch-prefix)) 970 (let* ((branch (cvs-prefix-get 'cvs-branch-prefix))
971 (prompt (format "CVS Checkout Directory for `%s%s': " 971 (prompt (format-message "CVS Checkout Directory for `%s%s': "
972 (cvs-get-module) 972 (cvs-get-module)
973 (if branch (format " (branch: %s)" branch) 973 (if branch (format " (branch: %s)" branch)
974 "")))) 974 ""))))
975 (list (read-directory-name prompt nil default-directory nil)))) 975 (list (read-directory-name prompt nil default-directory nil))))
976 (let ((modules (split-string-and-unquote (cvs-get-module))) 976 (let ((modules (split-string-and-unquote (cvs-get-module)))
977 (flags (cvs-add-branch-prefix 977 (flags (cvs-add-branch-prefix
@@ -2403,9 +2403,9 @@ The exact behavior is determined also by `cvs-dired-use-hook'."
2403 (goto-char (point-min)) 2403 (goto-char (point-min))
2404 (looking-at ".*to add this file permanently\n\\'")) 2404 (looking-at ".*to add this file permanently\n\\'"))
2405 (dolist (file (if (listp files) files (list files))) 2405 (dolist (file (if (listp files) files (list files)))
2406 (insert "cvs add: scheduling file `" 2406 (insert (format-message
2407 (file-name-nondirectory file) 2407 "cvs add: scheduling file `%s' for addition\n"
2408 "' for addition\n"))) 2408 (file-name-nondirectory file)))))
2409 ;; VC never (?) does `cvs -n update' so dcd=nil 2409 ;; VC never (?) does `cvs -n update' so dcd=nil
2410 ;; should probably always be the right choice. 2410 ;; should probably always be the right choice.
2411 (cvs-parse-process nil subdir)))))))) 2411 (cvs-parse-process nil subdir))))))))
diff --git a/lisp/vc/vc-cvs.el b/lisp/vc/vc-cvs.el
index 298bcefb7bf..0aa9c5a1e22 100644
--- a/lisp/vc/vc-cvs.el
+++ b/lisp/vc/vc-cvs.el
@@ -281,7 +281,7 @@ committed and support display of sticky tags."
281 (propertize 281 (propertize
282 (if (zerop (length sticky-tag)) 282 (if (zerop (length sticky-tag))
283 string 283 string
284 (setq help-echo (format-message "%s on the %s branch" 284 (setq help-echo (format-message "%s on the `%s' branch"
285 help-echo sticky-tag)) 285 help-echo sticky-tag))
286 (concat string "[" sticky-tag "]")) 286 (concat string "[" sticky-tag "]"))
287 'help-echo help-echo))) 287 'help-echo help-echo)))