Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emacs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
emacs
emacs
Commits
a588d349
Commit
a588d349
authored
Apr 16, 2008
by
Glenn Morris
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(diary-remind): Don't clobber `date' passed by diary-sexp-entry.
parent
f5b00811
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
8 deletions
+14
-8
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/calendar/diary-lib.el
lisp/calendar/diary-lib.el
+9
-8
No files found.
lisp/ChangeLog
View file @
a588d349
2008-04-16 Glenn Morris <rgm@gnu.org>
* calendar/diary-lib.el (diary-remind): Don't clobber `date' passed
by diary-sexp-entry.
2008-04-16 Markus Triska <markus.triska@gmx.at>
* proced.el (proced-command-alist): Add support for darwin.
...
...
lisp/calendar/diary-lib.el
View file @
a588d349
...
...
@@ -1929,8 +1929,8 @@ entry specifies that the diary entry (not the reminder) is non-marking.
Marking of reminders is independent of whether the entry itself is a marking
or nonmarking; if optional parameter MARKING is non-nil then the reminders are
marked on the calendar."
(let ((diary-entry (eval sexp))
date
)
;; `date' has a value at this point, from diary-sexp-entry.
(let ((diary-entry (eval sexp))
)
(cond
;; Diary entry applies on date.
((and diary-entry
...
...
@@ -1940,12 +1940,13 @@ marked on the calendar."
((and (integerp days)
(not diary-entry) ; diary entry does not apply to date
(or (not diary-marking-entries-flag) marking))
(setq date (calendar-gregorian-from-absolute
(+ (calendar-absolute-from-gregorian date) days)))
(when (setq diary-entry (eval sexp)) ; re-evaluate with adjusted date
;; Discard any mark portion from diary-anniversary, etc.
(if (consp diary-entry) (setq diary-entry (cdr diary-entry)))
(mapconcat 'eval diary-remind-message "")))
;; Adjust date, and re-evaluate.
(let ((date (calendar-gregorian-from-absolute
(+ (calendar-absolute-from-gregorian date) days))))
(when (setq diary-entry (eval sexp))
;; Discard any mark portion from diary-anniversary, etc.
(if (consp diary-entry) (setq diary-entry (cdr diary-entry)))
(mapconcat 'eval diary-remind-message ""))))
;; Diary entry may apply to one of a list of days before date.
((and (listp days) days)
(or (diary-remind sexp (car days) marking)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment