Tim Ruffing <cry...@timruffing.de> writes: > The attached patch fixes the following bug: > > * Have a scheduled item that has also has a deadline with a cusom > prewarning cookie, e.g. <... -3d>. > * Set `org-agenda-skip-deadline-prewarning-if-scheduled' to 7 > > Then in the agenda, the item is shown already 7 days before the > deadline (instead of 3). Judging from their name and documentation, the > "skip" variables `org-agenda-skip-deadline-prewarning-if-scheduled' and > `org-agenda-skip-scheduled-delay-if-deadline` should only ever skip > items in the agenda. In other words, they should only shorten the > prewarning or delay period, but never extend it.
Thanks! May you also add a test? > -(defun org-get-wdays (ts &optional delay zero-delay) > +(defun org-get-wdays (ts &optional delay) Please do not remove arguments from the public functions. This may break code outside Org mode. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>