(diary-mark-entries-1): Only mark all days of a given name if the
authorGlenn Morris <rgm@gnu.org>
Sat, 22 Aug 2009 19:47:42 +0000 (19:47 +0000)
committerGlenn Morris <rgm@gnu.org>
Sat, 22 Aug 2009 19:47:42 +0000 (19:47 +0000)
pattern is not more specific.

lisp/ChangeLog
lisp/calendar/diary-lib.el

index ce2c146..cbd9f90 100644 (file)
@@ -1,5 +1,8 @@
 2009-08-22  Glenn Morris  <rgm@gnu.org>
 
+       * calendar/diary-lib.el (diary-mark-entries-1): Only mark all days of a
+       given name if the pattern is not more specific.
+
        * calendar/lunar.el (lunar-phase-names): New option.
        (lunar-phase): Doc fix.
        (lunar-cycles-per-year): New constant.
index 0081170..ac60851 100644 (file)
@@ -1246,7 +1246,9 @@ function that converts absolute dates to dates of the appropriate type.  "
                                (buffer-substring-no-properties
                                 (point) (line-end-position))
                                file-glob-attrs)))
-            (if dd-name
+            ;; Only mark all days of a given name if the pattern
+            ;; contains no more specific elements.
+            (if (and dd-name (not (or d-pos m-pos y-pos)))
                 (calendar-mark-days-named
                  (cdr (assoc-string dd-name
                                     (calendar-make-alist