Giter Site home page Giter Site logo

Comments (12)

kiwanami avatar kiwanami commented on August 22, 2024

Thank you for your bug report!
Hmm, I have checked the displaying block event at #60.
But, because I'm not a heavy user for orgmode, I might miss an another bug.
Will you show the small sample org file which can reproduce the bug?

from emacs-calfw.

mankoff avatar mankoff commented on August 22, 2024

Here is how I can reproduce the bug.

  1. My test.el init file.
(add-to-list 'load-path "~/local/src/org-mode/lisp")
(add-to-list 'load-path "~/local/src/org-mode/contrib" t)
(require 'org)
(setq org-agenda-files '("test.org"))

(add-to-list 'load-path "~/.emacs.d/elpa/calfw-20150831.1847")
(add-to-list 'load-path "~/.emacs.d/elpa/calfw-20150824.2347")

(require 'calfw)
(require 'calfw-org)
(cfw:open-org-calendar)

I am opening with emacs -Q test.el, and evaluating only one of add-to-list calfw lines. Date ranges are shown as a range in the elpa 0824 version, and not the elpa 0831 version.

  1. My test.org file:

* TODO Test Item
  <2015-09-07 Lun>--<2015-09-10 Jeu>
  1. Here are two screenshots. The first from version 0824, shows a date range. The second does not.

capture d ecran 2015-09-07 a 11 20 18 -04 00

capture d ecran 2015-09-07 a 11 16 47 -04 00

from emacs-calfw.

kiwanami avatar kiwanami commented on August 22, 2024

@mankoff Thank you for your detailed report!
I'll check it.

from emacs-calfw.

kiwonum avatar kiwonum commented on August 22, 2024

@kiwanami This issue might be able to get fixed as follows:
in the cfw:org-get-timerange function (calfw-org.el):

from (if (string-match "(\\([0-9]+)/\\([0-9]+\\)): " extra)
to (if (string-match "(\\([ 0-9]+)/\\([ 0-9]+\\)): " extra)

I hope this fix is applied to the main branch (and melpa as well) as soon as possible.

from emacs-calfw.

mankoff avatar mankoff commented on August 22, 2024

Fixed in elpa version 20170320.506

from emacs-calfw.

kiwonum avatar kiwonum commented on August 22, 2024

@mankoff I just tested; but, this has not been solved yet in the version you mentioned.

from emacs-calfw.

mankoff avatar mankoff commented on August 22, 2024

Weird. It does for me. Here is my DEBUG.el

(require 'org)
(setq org-agenda-files '("test.org"))

(add-to-list 'load-path "~/.emacs.d/elpa/calfw-20170320.506")

(require 'calfw)
(require 'calfw-org)
(cfw:open-org-calendar)

Here is test.org

* TODO Test Item
<2017-03-31 Fri>--<2017-04-03 Mon>

I launch emacs (OS X, v 25.2.2) with /Applications/Emacs.app/Content/MacOS/Emacs -Q DEBUG.el and then manually evaluate (C-x C-e) each line, then T for two-week view.

And here is what the calendar looks like:

screen shot 2017-03-31 at 10 24 53

If you can't replicate this, we should probably re-open the bug and figure out why.

from emacs-calfw.

kiwonum avatar kiwonum commented on August 22, 2024

Interesting... I quickly tested your scripts; it works with Org-mode version 8.2.10 but doesn't work with Org mode version 9.0.5 (the current melpa version).
From an additional test, I found the patch I posted above works for both.

from emacs-calfw.

mankoff avatar mankoff commented on August 22, 2024

This is getting complicated. I first noticed it worked in my default config, which is Org 9.0.5. The MWE example above uses the Emacs version, which is older (not sure what version). So... on my computer, I have it working (as above) with current calfw and old Org, but also current calfw and Org 9.0.5 but also my large and complicated init.el...

from emacs-calfw.

mankoff avatar mankoff commented on August 22, 2024

I just added (add-to-list 'load-path "~/.emacs.d/elpa/org-20170210") to the DEBUG.el (and load it before (require 'org)) and it works on my system. Latest calfw and Org from elpa.

from emacs-calfw.

kiwonum avatar kiwonum commented on August 22, 2024

Hm... it seems a problem on my side. I retested and it works for both. I need to figure out the problem. Thank you for your time.

from emacs-calfw.

kiwonum avatar kiwonum commented on August 22, 2024

I got it. This is because of the string format of an agenda entry.

For example, if the multiple-day entry looks like
"(1/4): TODO Test Item",
it perfectly works.
But, I use a different setting for org-agenda-timerange-leaders (e.g., "" "(%3d/%-3d): "), which shows the same entry differently like
"( 1/4 ): TODO Test Item";
here, there exist some spaces in the entry.

This is the reason why my patch works for my case.

from emacs-calfw.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.