summaryrefslogtreecommitdiff
path: root/lisp/calendar/diary-lib.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2009-08-22 19:47:42 +0000
committerGlenn Morris <rgm@gnu.org>2009-08-22 19:47:42 +0000
commit977955fab75bdc1b6d4fb9ff82861ea46802547e (patch)
tree73ab294b27b79bdb4726f60b1e80e8459cd66f98 /lisp/calendar/diary-lib.el
parentb4deec2e852119c77df0803bb08f00f5d1637c28 (diff)
downloademacs-977955fab75bdc1b6d4fb9ff82861ea46802547e.tar.gz
(diary-mark-entries-1): Only mark all days of a given name if the
pattern is not more specific.
Diffstat (limited to 'lisp/calendar/diary-lib.el')
-rw-r--r--lisp/calendar/diary-lib.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/calendar/diary-lib.el b/lisp/calendar/diary-lib.el
index 0081170d8ac..ac608517e0f 100644
--- a/lisp/calendar/diary-lib.el
+++ b/lisp/calendar/diary-lib.el
@@ -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