aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2011-04-19 23:27:19 -0700
committerPaul Eggert2011-04-19 23:27:19 -0700
commit997bfc65800964e26fb281c8d7490b060f4a1d87 (patch)
treee9704154fa5f96b05308fae4755aa526c2ce1327
parentb8e30af5f6f8f669a14318aa818a10e70553c821 (diff)
parentfe0e7ad71862047ff05d6822d683c3efa7f64d0e (diff)
downloademacs-997bfc65800964e26fb281c8d7490b060f4a1d87.tar.gz
emacs-997bfc65800964e26fb281c8d7490b060f4a1d87.zip
Merge from mainline.
-rw-r--r--ChangeLog4
-rw-r--r--configure.in2
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/calendar/solar.el28
-rw-r--r--lisp/gnus/ChangeLog6
-rw-r--r--lisp/gnus/gnus-registry.el8
6 files changed, 33 insertions, 21 deletions
diff --git a/ChangeLog b/ChangeLog
index a63fbc96bff..6a3b1701726 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
12011-04-20 Ken Brown <kbrown@cornell.edu>
2
3 * configure.in (use_mmap_for_buffers): Set to yes on Cygwin.
4
12011-04-12 Glenn Morris <rgm@gnu.org> 52011-04-12 Glenn Morris <rgm@gnu.org>
2 6
3 * configure.in: Require ImageMagick >= 6.2.8. (Bug#7955) 7 * configure.in: Require ImageMagick >= 6.2.8. (Bug#7955)
diff --git a/configure.in b/configure.in
index 3d99873eabb..d20dee81e5b 100644
--- a/configure.in
+++ b/configure.in
@@ -1631,7 +1631,7 @@ fi
1631 1631
1632use_mmap_for_buffers=no 1632use_mmap_for_buffers=no
1633case "$opsys" in 1633case "$opsys" in
1634 freebsd|irix6-5) use_mmap_for_buffers=yes ;; 1634 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
1635esac 1635esac
1636 1636
1637AC_FUNC_MMAP 1637AC_FUNC_MMAP
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 66f854da5e3..867d7f9aa23 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12011-04-20 Glenn Morris <rgm@gnu.org>
2
3 * calendar/solar.el (solar-horizontal-coordinates):
4 Use the longitude argument rather than `calendar-longitude'.
5 (solar-date-next-longitude): Remove unused locals.
6
12011-04-19 Stefan Monnier <monnier@iro.umontreal.ca> 72011-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
2 8
3 * progmodes/octave-mod.el (octave-in-comment-p, octave-in-string-p) 9 * progmodes/octave-mod.el (octave-in-comment-p, octave-in-string-p)
diff --git a/lisp/calendar/solar.el b/lisp/calendar/solar.el
index 31aed0484d7..84a1544d709 100644
--- a/lisp/calendar/solar.el
+++ b/lisp/calendar/solar.el
@@ -453,7 +453,7 @@ height (between -180 and 180) are both in degrees."
453 (st (+ solar-sidereal-time-greenwich-midnight 453 (st (+ solar-sidereal-time-greenwich-midnight
454 (* ut 1.00273790935))) 454 (* ut 1.00273790935)))
455 ;; Hour angle (in degrees). 455 ;; Hour angle (in degrees).
456 (ah (- (* st 15) (* 15 (car ec)) (* -1 (calendar-longitude)))) 456 (ah (- (* st 15) (* 15 (car ec)) (* -1 longitude)))
457 (de (cadr ec)) 457 (de (cadr ec))
458 (azimuth (solar-atn2 (- (* (solar-cosine-degrees ah) 458 (azimuth (solar-atn2 (- (* (solar-cosine-degrees ah)
459 (solar-sin-degrees latitude)) 459 (solar-sin-degrees latitude))
@@ -771,26 +771,22 @@ day numbers. The values of `calendar-daylight-savings-starts',
771`calendar-daylight-savings-starts-time', `calendar-daylight-savings-ends', 771`calendar-daylight-savings-starts-time', `calendar-daylight-savings-ends',
772`calendar-daylight-savings-ends-time', `calendar-daylight-time-offset', 772`calendar-daylight-savings-ends-time', `calendar-daylight-time-offset',
773and `calendar-time-zone' are used to interpret local time." 773and `calendar-time-zone' are used to interpret local time."
774 (let* ((long) 774 (let ((start d)
775 (start d) 775 (next (mod (* l (1+ (floor (/ (solar-longitude d) l)))) 360))
776 (start-long (solar-longitude d)) 776 (end (+ d (* (/ l 360.0) 400)))
777 (next (mod (* l (1+ (floor (/ start-long l)))) 360)) 777 long)
778 (end (+ d (* (/ l 360.0) 400))) 778 ;; Bisection search for nearest minute.
779 (end-long (solar-longitude end))) 779 (while (< 0.00001 (- end start))
780 (while ; bisection search for nearest minute 780 ;; start <= d < end
781 (< 0.00001 (- end start))
782 ;; start <= d < end
783 ;; start-long <= next < end-long when next != 0 781 ;; start-long <= next < end-long when next != 0
784 ;; when next = 0, we look for the discontinuity (start-long is near 360 782 ;; when next = 0, look for the discontinuity (start-long is near 360
785 ;; and end-long is small (less than l). 783 ;; and end-long is small (less than l)).
786 (setq d (/ (+ start end) 2.0) 784 (setq d (/ (+ start end) 2.0)
787 long (solar-longitude d)) 785 long (solar-longitude d))
788 (if (or (and (not (zerop next)) (< long next)) 786 (if (or (and (not (zerop next)) (< long next))
789 (and (zerop next) (< l long))) 787 (and (zerop next) (< l long)))
790 (setq start d 788 (setq start d)
791 start-long long) 789 (setq end d)))
792 (setq end d
793 end-long long)))
794 (/ (+ start end) 2.0))) 790 (/ (+ start end) 2.0)))
795 791
796;; FIXME but there already is solar-sunrise-sunset. 792;; FIXME but there already is solar-sunrise-sunset.
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 8417d37cadf..35531df0ad2 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,9 @@
12011-04-20 Katsumi Yamaoka <yamaoka@jpl.org>
2
3 * gnus-registry.el (gnus-registry-action)
4 (gnus-registry-fetch-header-fast):
5 Don't use mail-header that looks an internal function of mailheader.el.
6
12011-04-18 Katsumi Yamaoka <yamaoka@jpl.org> 72011-04-18 Katsumi Yamaoka <yamaoka@jpl.org>
2 8
3 * gnus-registry.el: Eliminate cl functions. 9 * gnus-registry.el: Eliminate cl functions.
diff --git a/lisp/gnus/gnus-registry.el b/lisp/gnus/gnus-registry.el
index 697dc373b1f..009786dec80 100644
--- a/lisp/gnus/gnus-registry.el
+++ b/lisp/gnus/gnus-registry.el
@@ -304,8 +304,8 @@ This is not required after changing `gnus-registry-cache-file'."
304 (let* ((id (mail-header-id data-header)) 304 (let* ((id (mail-header-id data-header))
305 (subject (mail-header-subject data-header)) 305 (subject (mail-header-subject data-header))
306 (recipients (gnus-registry-sort-addresses 306 (recipients (gnus-registry-sort-addresses
307 (or (ignore-errors (mail-header "Cc" data-header)) "") 307 (or (cdr (assq "Cc" data-header)) "")
308 (or (ignore-errors (mail-header "To" data-header)) ""))) 308 (or (cdr (assq "To" data-header)) "")))
309 (sender (nth 0 (gnus-registry-extract-addresses 309 (sender (nth 0 (gnus-registry-extract-addresses
310 (mail-header-from data-header)))) 310 (mail-header-from data-header))))
311 (from (gnus-group-guess-full-name-from-command-method from)) 311 (from (gnus-group-guess-full-name-from-command-method from))
@@ -742,8 +742,8 @@ Addresses without a name will say \"noname\"."
742 (if (and (numberp article) 742 (if (and (numberp article)
743 (assoc article (gnus-data-list nil))) 743 (assoc article (gnus-data-list nil)))
744 (gnus-string-remove-all-properties 744 (gnus-string-remove-all-properties
745 (mail-header header (gnus-data-header 745 (cdr (assq header (gnus-data-header
746 (assoc article (gnus-data-list nil))))) 746 (assoc article (gnus-data-list nil))))))
747 nil)) 747 nil))
748 748
749;; registry marks glue 749;; registry marks glue