Re: Org agenda crashes when an agenda's deadline is within 14 days of its scheduled time.
Okay. It does indeed work. When will it be available in general release? On Tue, Sep 19, 2023 at 6:09 AM Ihor Radchenko wrote: > Carlo Tambuatco writes: > > > org-version 9.6.9 > > Then, (1) open agenda as usual, get the error; (2) re-define > `org-agenda-get-scheduled' by evaluating the following snippet (C-M-x > with point inside defun in scratch buffer); (3) open agenda again - you > should not get the error. > > (defun org-agenda-get-scheduled ( deadlines with-hour) > "Return the scheduled information for agenda display. > Optional argument DEADLINES is a list of deadline items to be > displayed in agenda view. When WITH-HOUR is non-nil, only return > scheduled items with an hour specification like [h]h:mm." > (with-no-warnings (defvar date)) > (let* ((props (list 'org-not-done-regexp org-not-done-regexp > 'org-todo-regexp org-todo-regexp > 'org-complex-heading-regexp > org-complex-heading-regexp > 'done-face 'org-agenda-done > 'mouse-face 'highlight > 'help-echo > (format "mouse-2 or RET jump to Org file %s" > (abbreviate-file-name buffer-file-name > (regexp (if with-hour > org-scheduled-time-hour-regexp >org-scheduled-time-regexp)) > (today (org-today)) > (todayp (org-agenda-today-p date)) ; DATE bound by calendar. > (current (calendar-absolute-from-gregorian date)) > (deadline-pos > (mapcar (lambda (d) > (let ((m (get-text-property 0 'org-hd-marker d))) > (and m (marker-position m > deadlines)) > scheduled-items) > (goto-char (point-min)) > (if (org-element--cache-active-p) > (org-element-cache-map > (lambda (el) >(when (and (org-element-property :scheduled el) > (or (not with-hour) > (org-element-property >:hour-start >(org-element-property :scheduled el)) > (org-element-property >:hour-end >(org-element-property :scheduled el > (goto-char (org-element-property :contents-begin el)) > (catch :skip >(org-agenda-skip el) >(let* ((s (substring (org-element-property > :raw-value > (org-element-property :scheduled el)) > 1 -1)) > (pos (save-excursion > (goto-char (org-element-property > :contents-begin el)) > ;; We intentionally leave NOERROR > ;; argument in `re-search-forward' nil. If > ;; the search fails here, something went > ;; wrong and we are looking at > ;; non-matching headline. > (re-search-forward regexp (line-end-position)) > (1- (match-beginning 1 > (todo-state (org-element-property :todo-keyword el)) > (donep (eq 'done (org-element-property :todo-type > el))) > (sexp? (eq 'diary > (org-element-property > :type (org-element-property :scheduled > el > ;; SCHEDULE is the scheduled date for the entry. It > is > ;; either the bare date or the last repeat, according > ;; to `org-agenda-prefer-last-repeat'. > (schedule >(cond > (sexp? (org-agenda--timestamp-to-absolute s > current)) > ((or (eq org-agenda-prefer-last-repeat t) > (member todo-state > org-agenda-prefer-last-repeat)) > (org-agenda--timestamp-to-absolute > s today 'past (current-buffer) pos)) > (t (org-agenda--timestamp-to-absolute s > ;; REPEAT is the future repeat closest from CURRENT, > ;; according to `org-agenda-show-future-repeats'. If > ;; the latter is nil, or if the time stamp has no > ;; repeat part, default to SCHEDULE. > (repeat >
Re: Org agenda crashes when an agenda's deadline is within 14 days of its scheduled time.
org-version 9.6.9 On Tue, Sep 19, 2023 at 5:51 AM Ihor Radchenko wrote: > Carlo Tambuatco writes: > > > I'm unfamiliar with how to apply patches to my org install. What do I do? > > May you then first tell me the output of M-x org-version? > > -- > 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> >
Re: Org agenda crashes when an agenda's deadline is within 14 days of its scheduled time.
I'm unfamiliar with how to apply patches to my org install. What do I do? On Tue, Sep 19, 2023 at 5:19 AM Ihor Radchenko wrote: > Carlo Tambuatco writes: > > > then I set a deadline for that item > > * TODO Item > >SCHEDULED: <2023-09-19 Tue> DEADLINE: <2023-10-03 Tue> > > > > notice the deadline for the item is two weeks from the scheduled date, > > > > I get this error: > > > > Debugger entered--Lisp error: (wrong-type-argument stringp (timestamp > > (:type active :raw-value "<2023-10-03 Tue>" :year-start 2023 :month-start > > 10 :day-start 3 :hour-start nil :minute-start nil :year-end 2023 > :month-end > > 10 :day-end 3 :hour-end nil :minute-end nil :begin 115 :end 132 > :post-blank > > 1))) > > Thanks for reporting! > I think I fixed the problem on bugfix. > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=c61ec6255 > > May you please confirm? > > -- > 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> >
Org agenda crashes when an agenda's deadline is within 14 days of its scheduled time.
When I create an agenda item that is scheduled for say: * TODO Item SCHEDULED: <2023-09-19 Tue> then I set a deadline for that item * TODO Item SCHEDULED: <2023-09-19 Tue> DEADLINE: <2023-10-03 Tue> notice the deadline for the item is two weeks from the scheduled date, I get this error: Debugger entered--Lisp error: (wrong-type-argument stringp (timestamp (:type active :raw-value "<2023-10-03 Tue>" :year-start 2023 :month-start 10 :day-start 3 :hour-start nil :minute-start nil :year-end 2023 :month-end 10 :day-end 3 :hour-end nil :minute-end nil :begin 115 :end 132 :post-blank 1))) string-match("\\(\\([0-9]\\{4\\}\\)-\\([0-9]\\{2\\}\\)-\\([0-9]\\{2\\}\\)\\( +..." (timestamp (:type active :raw-value "<2023-10-03 Tue>" :year-start 2023 :month-start 10 :day-start 3 :hour-start nil :minute-start nil :year-end 2023 :month-end 10 :day-end 3 :hour-end nil :minute-end nil :begin 115 :end 132 :post-blank 1))) org-parse-time-string((timestamp (:type active :raw-value "<2023-10-03 Tue>" :year-start 2023 :month-start 10 :day-start 3 :hour-start nil :minute-start nil :year-end 2023 :month-end 10 :day-end 3 :hour-end nil :minute-end nil :begin 115 :end 132 :post-blank 1))) org-time-string-to-time((timestamp (:type active :raw-value "<2023-10-03 Tue>" :year-start 2023 :month-start 10 :day-start 3 :hour-start nil :minute-start nil :year-end 2023 :month-end 10 :day-end 3 :hour-end nil :minute-end nil :begin 115 :end 132 :post-blank 1))) #f(compiled-function (el) #)((headline (:raw-value "Today's Dentist" :begin 80 :end 162 :pre-blank 0 :contents-begin 105 :contents-end 160 :robust-begin nil :robust-end nil :level 2 :priority nil :tags nil :todo-keyword #("TODO" 0 4 (wrap-prefix #("*** " 0 4 (face org-indent)) line-prefix #("*" 0 1 (face org-indent)) face ((:foreground "#FF") org-level-2) fontified t)) :todo-type todo :post-blank 2 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 80 :deadline (timestamp (:type active :raw-value "<2023-10-03 Tue>" :year-start 2023 :month-start 10 :day-start 3 :hour-start nil :minute-start nil :year-end 2023 :month-end 10 :day-end 3 :hour-end nil :minute-end nil :begin 115 :end 132 :post-blank 1)) :scheduled (timestamp (:type active :raw-value "<2023-09-19 Tue>" :year-start 2023 :month-start 9 :day-start 19 :hour-start nil :minute-start nil :year-end 2023 :month-end 9 :day-end 19 :hour-end nil :minute-end nil :begin 143 :end 159 :post-blank 0)) :title (#("Today's Dentist" 0 15 (:parent (headline #3 :parent (headline (:raw-value "Appointments" :begin 1 :end 162 :pre-blank 1 :contents-begin 80 :contents-end 160 :robust-begin 82 :robust-end 158 :level 1 :priority nil :tags (#("@appointment" 0 12 (fontified t face ... mouse-face highlight keymap ... line-prefix "" wrap-prefix ...))) :todo-keyword nil :todo-type nil :post-blank 2 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 1 :title (#("Appointments" 0 12 (:parent ...))) :parent (org-data (:begin 1 :contents-begin 1 :contents-end 160 :end 162 :robust-begin 3 :robust-end 158 :post-blank 2 :post-affiliated 1 :path "/Users/carloftambuatco/Documents/Org/Personal/Appo..." :mode org-data :CATEGORY "Appointments" :parent nil :cached t :org-element--cache-sync-key nil)) :cached t :org-element--cache-sync-key nil)) :cached t :org-element--cache-sync-key nil))) org-element-cache-map(#f(compiled-function (el) #) :next-re "\\]+\\)>" :fail-re "\\]+\\)>" :narrow t) org-agenda-get-scheduled((#(" Appointments:In 14 d.: TODO Today'..." 0 27 (done-face org-agenda-done undone-face org-upcoming-distant-deadline face org-upcoming-distant-deadline date (9 19 2023) type "upcoming-deadline" todo-state #("TODO" 0 4 (wrap-prefix ... line-prefix ... face ... fontified t)) priority 4986 ts-date 738796 effort-minutes nil effort nil warntime nil org-hd-marker # org-marker # help-echo "mouse-2 or RET jump to org file ~/Docu..." org-complex-heading-regexp "^\\(\\*+\\)\\(?: +\\(CANCELLED\\|DONE\\|FAIL\\..." org-todo-regexp "\\(CANCELLED\\|DONE\\|FAIL\\|IN_PROGRESS\\|..." org-not-done-regexp "\\(IN_PROGRESS\\|T\\(?:EST\\(?:ING\\)?\\|ODO..." mouse-face highlight dotime nil ...) 27 62 (done-face org-agenda-done undone-face org-upcoming-distant-deadline face org-upcoming-distant-deadline date (9 19 2023) type "upcoming-deadline" todo-state #("TODO" 0 4 (wrap-prefix ... line-prefix ... face ... fontified t)) priority 4986 ts-date 738796 warntime nil org-hd-marker # org-marker # help-echo "mouse-2 or RET jump to org file ~/Docu..." org-complex-heading-regexp "^\\(\\*+\\)\\(?: +\\(CANCELLED\\|DONE\\|FAIL\\..." org-todo-regexp "\\(CANCELLED\\|DONE\\|FAIL\\|IN_PROGRESS\\|..." org-not-done-regexp "\\(IN_PROGRESS\\|T\\(?:EST\\(?:ING\\)?\\|ODO..." mouse-face highlight dotime nil format ((... ... ... ... ...) (format " %s %s%s%s" ... ... ... ...)) extra "In 14 d.: " ...) 62 74 (done-face org-agenda-done undone-face org-upcoming-distant-deadline date (9 19 2023) type "upcoming-deadline" todo-state #("TODO" 0 4
Re: Org 9.6.9 hangs when saving encrypted entries
Are you suggesting I should try a different version of gpg? On Fri, Sep 15, 2023 at 6:38 AM Ihor Radchenko wrote: > Carlo Tambuatco writes: > > >> From within Emacs. Try to open encrypted file.txt.gpg in Emacs, edit it, > >> and save. > >> > > > > Same behavior. Just tried it. > > From command line: > > > > gpg —symmetric newfile.txt > > > > this produces newfile.txt.gpg > > > > Open newfile.txt.gpg within emacs. Opens and decrypts into buffer just > fine. > > Then edit the file and save with C-x C-s. > > > > Then emacs hangs. Have to C-g to get out of it. > > Then, it has nothing to do with Org. > > Looks like https://debbugs.gnu.org/cgi/bugreport.cgi?bug=63882 - a known > issue with particular GPG version. But, AFAIK, that issue is limited to > GPG 2.4.1. > > I would recommend you to double-check your GPG version and if it does > not fit bug#63882, report the problem to Emacs (M-x report-emacs-bug). > > -- > 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> >
Re: Org 9.6.9 hangs when saving encrypted entries
> On Sep 15, 2023, at 6:20 AM, Ihor Radchenko wrote: > > Carlo Tambuatco writes: > >>> What if you do the same with a simple textual file (not an Org file)? >> >> You mean gpg from the command line or within emacs? > > From within Emacs. Try to open encrypted file.txt.gpg in Emacs, edit it, > and save. > Same behavior. Just tried it. From command line: gpg —symmetric newfile.txt this produces newfile.txt.gpg Open newfile.txt.gpg within emacs. Opens and decrypts into buffer just fine. Then edit the file and save with C-x C-s. Then emacs hangs. Have to C-g to get out of it. > -- > 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>
Re: Org 9.6.9 hangs when saving encrypted entries
> On Sep 15, 2023, at 5:22 AM, Ihor Radchenko wrote: > > Carlo Tambuatco writes: > >> Emacs 29.1, org version 9.6.9 >> When encrypting an entry in org-mode using symmetric encryption >> and gpg 2.2, emacs just hangs there on 'Saving file'. >> >> Tried running a backtrace using emacs -Q, but no errors generated, >> it just hangs there. >> >> There is nothing wrong with gpg, I can encrypt/decrypt from the command >> line just fine, and when viewing files with gpg extension, it correctly >> decrypts it and the decrypted contents are viewable in the buffer. But >> when saving a modified file with encryption, emacs just hangs there. > > What if you do the same with a simple textual file (not an Org file)? You mean gpg from the command line or within emacs? > > -- > 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>
Org 9.6.9 hangs when saving encrypted entries
Emacs 29.1, org version 9.6.9 When encrypting an entry in org-mode using symmetric encryption and gpg 2.2, emacs just hangs there on 'Saving file'. Tried running a backtrace using emacs -Q, but no errors generated, it just hangs there. There is nothing wrong with gpg, I can encrypt/decrypt from the command line just fine, and when viewing files with gpg extension, it correctly decrypts it and the decrypted contents are viewable in the buffer. But when saving a modified file with encryption, emacs just hangs there.
Re: Is there a size limit to org files?
You might want to look into what changed between org 9.5.5 and 9.6, because that is when this strange behavior started (for me anyway). I've been hanging onto 9.5.5 for as long as I could until I upgraded to emacs 29. Then the above mentioned strange behavior resumed. My fix for it was to split up my large org files into smaller files, and so far no strange behavior. On Fri, Sep 8, 2023 at 12:51 PM Ihor Radchenko wrote: > Carlo Tambuatco writes: > > > I noticed that an org file I was using for my capture templates was > getting > > quite large > > and that my capture templates that were pasting TODO entries in that file > > were starting to exhibit > > strange behavior. Mostly just getting stuck at a mysterious "clipboard > > pasted to level 2 subtree" > > message, then it would just hang there until I hit ctrl g. > > That could be a bug, but it is impossible to fix it without knowing more > details. > > > Since this file was getting quite big and unwieldy, > 5000 lines, I > > decided ... > > I am using 100x (yes, 100 times) larger org file right now. With 500k > lines. > > > > So, I was wondering if there is hardcoded somewhere in org some kind of > > size limit to the > > files it has to deal with, or is this some limitation arising naturally > > from the size of > > the clipboard? I'm not sure how org handles large files when considering > > how to paste > > entries from capture templates. > > There is no size limit on Org files. Although certain operations may > become slower when the file size reaches tens of megabytes. > > Clipboard should normally not be a problem either. > > If you can interrupt with C-g, there might be some infinite loop > somewhere in the code. > > -- > 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> >
Is there a size limit to org files?
I noticed that an org file I was using for my capture templates was getting quite large and that my capture templates that were pasting TODO entries in that file were starting to exhibit strange behavior. Mostly just getting stuck at a mysterious "clipboard pasted to level 2 subtree" message, then it would just hang there until I hit ctrl g. Since this file was getting quite big and unwieldy, > 5000 lines, I decided to split it up, so that the various entries under their headers would be split up into different files. I basically just put each header into its own separate file, and updated my org-capture-templates accordingly. Since then, no strange behavior, no stalling and hanging for no apparent reason. So, I was wondering if there is hardcoded somewhere in org some kind of size limit to the files it has to deal with, or is this some limitation arising naturally from the size of the clipboard? I'm not sure how org handles large files when considering how to paste entries from capture templates.
Re: [SUMMARY] [[bbb:OrgMeetup]] on Wed, Aug 9, 19:00 UTC+3 (was: Interest in an Org video meetup?)
Was unable to attend due to a power outage. Is this going to be a monthly/semi monthly meetup? Is the next one scheduled already? On Thu, Aug 10, 2023, 4:13 AM Ihor Radchenko wrote: > Ihor Radchenko writes: > > > URL: https://bbb.emacsverse.org/b/iho-h7r-qg8-led > > Time & Date: <2023-08-09 Wed 19:00-21:00 @+03,Europe/Istanbul> > > The room will be open half an hour before the official start. > > Thanks everyone who participated! We had quite a few people by Emacs > meetup standards. > > Here is a short summary of the main discussion points (those that I > remember): > > - Adham Omran announced his new package for Anki (flash card/spaced > repetition) integration: > https://github.com/adham-omran/ankifier > Efficiently create Anki flashcards from your notes. > > - Ilya Cheryshov announced his new package to display agenda time grid > as _interactive_ svg image. Looks like the usual Google calendar view, > but inside Emacs. > https://github.com/ichernyshovvv/org-timeblock/ > Org mailing list discussion: > https://list.orgmode.org/87edkc85fl.fsf@localhost/T/#t > > - Similar, but ASCII-only package: > https://github.com/ml729/calfw-blocks, based on Calfw Emacs calendar > framework. > > - More on visualizing Org statistics: > - https://github.com/rksm/clj-org-analyzer/: clocking data visualizer > using web-frontend. Features heatmap view of clocking time > per-day. Allows filtering by tags. > - https://github.com/Elilif/org-heatmap/: monthly heatmap for habit > tracking > - A bit tangent, but illustrates how to make use of time clocking: > https://samplesize.one/blog/posts/my_year_in_data/ > - One more article I did not mention during the meetup: > https://sqrtminusone.xyz/posts/2023-04-13-emacs/ > > - [[info:eintr#Top][eintr#Top]] Elisp introduction for non-programmers. > This is really a > well-written manual worth reading if your config is larger than a few > lines. > > - yantar92's window manager: Awesome WM https://awesomewm.org/ > > - https://git.sr.ht/~bzg/worg is the source code of Org WIKI (WORG) > [ Contributions welcome: a number of articles really need some love > there ] > - We also have some Org internals documented as articles in WORG. > > - Meeting report export template (backend): > https://github.com/DarkBuffalo/ox-report > which reminded me of actual LaTeX template by Tecosaur (Org dev): > https://github.com/tecosaur/BMC > > - New WIP fast LaTeX preview system with instant preview as you type > - Demo: https://www.youtube.com/watch?v=n-AfvuV-bYo > - Another demo previously posted on the mailing list: > https://www.youtube.com/watch?v=n-AfvuV-bYo > - And the mailing list discussion with more details: > https://list.orgmode.org/orgmode/87lek2up0w@tec.tecosaur.net/ > > - =#+begin_src := will give you completion of header arguments > - Same for #+ keywords and, sometimes, for their values (like for > #+TAGS: ) > - The underlying code is in lisp/org-pcomplete.el > - Also, see org-eldoc (part of org-contrib): > https://git.sr.ht/~bzg/org-contrib/tree/master/item/lisp/org-eldoc.el > > - Collaboration using Org mode > - Concurrent editing options are not great, unfortunately: > - https://code.librehq.com/qhong/crdt.el (need Emacs for all sides) > - https://logseq.com/: similar to notion/obsidian, but supports Org > syntax > - Can use Git, if not real-time. Org is just a plain text. > - I also used email workflow using pdf export -> sending email -> > getting pdf with comments back -> modifying Org source -> ... > > - Authoring books/thesis in Org > - Adham Omran wrote his thesis in Arabic using Org mode > - Emacs has built-in right-to-left language support > [[info:emacs#Bidirectional Editing][emacs#Bidirectional Editing]] > - Right-to-left may be mixed with left-to-right (English) in Org > export, though some LaTeX-specific tweaking may be needed. > - Org offers _some_ help with #+LANGUAGE document keyword > (see [[info:org#LaTeX specific export settings][org#LaTeX specific > export settings]]) > - Also, https://list.orgmode.org/orgmode/87h6z7jq4o.fsf@localhost/ > - There was a question about XeLaTeX, but, AFAIK, event normal > LaTeX can support Arabic and other Unicode languages with > polyglossia package. Although fonts may be tricky to set and a > number of people opt-in to LuaTeX/XeLaTeX for smoother > experience (the downside is that non-LaTeX may not always be an > option in real-life publisher requirements) > - Examples from Org mailing list on complex typesetting while keeping > sources in Org mode > - https://list.orgmode.org/orgmode/87y1yovcip@posteo.net/ > - The bi-lingual book I mentioned: > https://list.orgmode.org/orgmode/87h70tyyiz@posteo.net/ > > - Adham Omran wrote colemak input method for Arabic (only qwerty-based > variant is available by default in Emacs) > - I
Re: [BUG] Org-9.6.x org templates hang on 'clipboard pasted as level 2 subtree'...
Hey Ihor, I recently upgraded my emacs to emacs@29 via homebrew, and I know this is an old thread, but now that my new emacs version comes with org-9.6.6, I am getting the same issues as I detailed in this thread with my org capture templates. I tried to do a reproduce with emacs -q but the error does not reproduce in those conditions, so it might be an issue with org mode interacting with some of my other packages installed. I will include a list of emacs packages I have installed, and my org-init.el file. Maybe you could see if anything jumps out at you that is causing this weird behavior. On Mon, Apr 17, 2023 at 6:40 AM Carlo Tambuatco wrote: > I've decided to delete the org-9.6 folder entirely and go with the > built-in org-9.5.5 that comes with my emacs distribution, emacs-28.2 (9.0). > > Maybe for some reason newer versions of org are just incompatible with > my version of emacs 28.2. Maybe the version of emacs you're using is > newer or somehow more compatible with these bleeding edge development > versions of org-mode, but I suppose when I upgrade my emacs the version > of org that comes with it (9.6, I suppose) will just work out of the box. > > At any rate, I can't spend any more time and energy on this. I'll stick to > what works. Thanks for the help. > > On Sun, Apr 16, 2023 at 8:09 AM Ihor Radchenko > wrote: > >> Carlo Tambuatco writes: >> >> > I restarted emacs with org 9.6.3 and reloaded it uncompiled and >> > did M-x toggle-debug-on-error to turn on backtrace on error. >> > >> > I have also attached a copy of what my org-capture-templates >> > variable looks like. >> > >> > Comparing these backtraces to my org-capture-templates, >> > you can see that only some of them fail (the ones corresponding to >> > 'd', 'e', 'r', 'Rr', 'Rg', and 'Cc') >> > >> > They all worked up until Org 9.6. They still work under Org 9.5.5, so >> > I don't know what changed. >> >> I tried your templates locally and I am not seeing any problem. >> >> May you try to reproduce starting from emacs -Q? >> Or, alternatively, try to use the following version of Org capture, use >> C-g to exit, and report the (hopefully) more detailed backtrace. >> >> (defun org-capture ( goto keys) >> "Capture something. >> \\ >> This will let you select a template from `org-capture-templates', and >> then file the newly captured information. The text is immediately >> inserted at the target location, and an indirect buffer is shown where >> you can edit it. Pressing `\\[org-capture-finalize]' brings you back to >> the \ >> previous >> state of Emacs, so that you can continue your work. >> >> When called interactively with a `\\[universal-argument]' prefix argument >> \ >> GOTO, don't >> capture anything, just go to the file/headline where the selected >> template stores its notes. >> >> With a `\\[universal-argument] \\[universal-argument]' prefix argument, >> go to \ >> the last note stored. >> >> When called with a `C-0' (zero) prefix, insert a template at point. >> >> When called with a `C-1' (one) prefix, force prompting for a date when >> a datetree entry is made. >> >> ELisp programs can set KEYS to a string associated with a template >> in `org-capture-templates'. In this case, interactive selection >> will be bypassed. >> >> If `org-capture-use-agenda-date' is non-nil, capturing from the >> agenda will use the date at point as the default date. Then, a >> `C-1' prefix will tell the capture process to use the HH:MM time >> of the day at point (if any) or the current HH:MM time." >> (interactive "P") >> (when (and org-capture-use-agenda-date >> (eq major-mode 'org-agenda-mode)) >> (setq org-overriding-default-time >> (org-get-cursor-date (equal goto 1 >> (cond >>((equal goto '(4)) (org-capture-goto-target keys)) >>((equal goto '(16)) (org-capture-goto-last-stored)) >>(t >> (let* ((orig-buf (current-buffer)) >>(annotation (if (and (boundp >> 'org-capture-link-is-already-stored) >> org-capture-link-is-already-stored) >>(plist-get org-store-link-plist :annotation) >> (ignore-errors (org-store-link nil >>(entry (or org-capture-entry (org-capture-select-template >> keys))) >>initial) >> (setq initial (or org-capture-initial >> (and (org-region-active-p) >>
Re: Org deadlines require a specific time now?
How do I run emacs -Q with the emacs app? That's what I am running, but it behaves differently from running emacs from the command line terminal. On Mon, Jun 5, 2023 at 10:52 AM Ihor Radchenko wrote: > Carlo Tambuatco writes: > > > Using emacs 29.0.9, org-mode 9.6.6 > > > > I noticed whenever my deadlines lack a time, like so: > > > > DEADLINE: <2023-06-12 Mon> > > > > when I open the agenda view org-mode complains at me giving me this > error: > > > > org-parse-time-string: Wrong type argument: stringp, (timestamp (:type > active :raw-value "<2023-06-12 Mon>" :year-start 2023 :month-start 6 > :day-start 12 …)) > > I am unable to reproduce. > May you please provide more detailed steps starting from emacs -Q? > See https://orgmode.org/manual/Feedback.html#Feedback > > -- > 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> >
Org deadlines require a specific time now?
Using emacs 29.0.9, org-mode 9.6.6 I noticed whenever my deadlines lack a time, like so: DEADLINE: <2023-06-12 Mon> when I open the agenda view org-mode complains at me giving me this error: org-parse-time-string: Wrong type argument: stringp, (timestamp (:type active :raw-value "<2023-06-12 Mon>" :year-start 2023 :month-start 6 :day-start 12 …)) When I add a time to the deadline (even though I do not need one) DEADLINE: <2023-06-12 Mon 12:00> the error message goes away. It does not matter what the time is, just that it has to be there. This is rather strange given that it is easy to create deadlines without any times by default by simply selecting a date from the calendar and pressing enter. Is this intentional or a bug?
How much rust code is incorporated into emacs source?
And are there any plans to incorporate more?
Re: Interest in an Org video meetup?
I’d be interested. Might get more people to contribute to the codebase. Weekends Saturday afternoons would be best for me, I don’t know about anyone else. Are we talking Zoom here? -Carlo > On Oct 6, 2022, at 9:20 AM, Russell Adams wrote: > > > Would there be any interest in a monthly 1-2 hour long ad-hoc screen > sharing and video discussion for Org-mode? > > I'm offering to schedule and moderate the first few events. I'd > propose a Saturday meeting in the afternoon European time to cover EU > and NA. > > I'm considering using Jitsi, or maybe GNU Jami. > > Topics could include Q, demonstrations of features, interactive > troubleshooting, etc. I hadn't considered presentations, but > that could be an option too. > > Comments? > > -- > Russell Adamsrlad...@adamsinfoserv.com >https://www.adamsinfoserv.com/ >
Re: [BUG] Org-9.6.x org templates hang on 'clipboard pasted as level 2 subtree'...
I've decided to delete the org-9.6 folder entirely and go with the built-in org-9.5.5 that comes with my emacs distribution, emacs-28.2 (9.0). Maybe for some reason newer versions of org are just incompatible with my version of emacs 28.2. Maybe the version of emacs you're using is newer or somehow more compatible with these bleeding edge development versions of org-mode, but I suppose when I upgrade my emacs the version of org that comes with it (9.6, I suppose) will just work out of the box. At any rate, I can't spend any more time and energy on this. I'll stick to what works. Thanks for the help. On Sun, Apr 16, 2023 at 8:09 AM Ihor Radchenko wrote: > Carlo Tambuatco writes: > > > I restarted emacs with org 9.6.3 and reloaded it uncompiled and > > did M-x toggle-debug-on-error to turn on backtrace on error. > > > > I have also attached a copy of what my org-capture-templates > > variable looks like. > > > > Comparing these backtraces to my org-capture-templates, > > you can see that only some of them fail (the ones corresponding to > > 'd', 'e', 'r', 'Rr', 'Rg', and 'Cc') > > > > They all worked up until Org 9.6. They still work under Org 9.5.5, so > > I don't know what changed. > > I tried your templates locally and I am not seeing any problem. > > May you try to reproduce starting from emacs -Q? > Or, alternatively, try to use the following version of Org capture, use > C-g to exit, and report the (hopefully) more detailed backtrace. > > (defun org-capture ( goto keys) > "Capture something. > \\ > This will let you select a template from `org-capture-templates', and > then file the newly captured information. The text is immediately > inserted at the target location, and an indirect buffer is shown where > you can edit it. Pressing `\\[org-capture-finalize]' brings you back to > the \ > previous > state of Emacs, so that you can continue your work. > > When called interactively with a `\\[universal-argument]' prefix argument \ > GOTO, don't > capture anything, just go to the file/headline where the selected > template stores its notes. > > With a `\\[universal-argument] \\[universal-argument]' prefix argument, go > to \ > the last note stored. > > When called with a `C-0' (zero) prefix, insert a template at point. > > When called with a `C-1' (one) prefix, force prompting for a date when > a datetree entry is made. > > ELisp programs can set KEYS to a string associated with a template > in `org-capture-templates'. In this case, interactive selection > will be bypassed. > > If `org-capture-use-agenda-date' is non-nil, capturing from the > agenda will use the date at point as the default date. Then, a > `C-1' prefix will tell the capture process to use the HH:MM time > of the day at point (if any) or the current HH:MM time." > (interactive "P") > (when (and org-capture-use-agenda-date > (eq major-mode 'org-agenda-mode)) > (setq org-overriding-default-time > (org-get-cursor-date (equal goto 1 > (cond >((equal goto '(4)) (org-capture-goto-target keys)) >((equal goto '(16)) (org-capture-goto-last-stored)) >(t > (let* ((orig-buf (current-buffer)) >(annotation (if (and (boundp > 'org-capture-link-is-already-stored) > org-capture-link-is-already-stored) >(plist-get org-store-link-plist :annotation) > (ignore-errors (org-store-link nil >(entry (or org-capture-entry (org-capture-select-template > keys))) >initial) > (setq initial (or org-capture-initial > (and (org-region-active-p) > (buffer-substring (point) (mark) > (when (stringp initial) > (remove-text-properties 0 (length initial) '(read-only t) initial)) > (when (stringp annotation) > (remove-text-properties 0 (length annotation) > '(read-only t) annotation)) > (cond >((equal entry "C") > (customize-variable 'org-capture-templates)) >((equal entry "q") > (user-error "Abort")) >(t > (org-capture-set-plist entry) > (org-capture-get-template) > (org-capture-put :original-buffer orig-buf > :original-file (or (buffer-file-name orig-buf) > (and (featurep 'dired) > (car (rassq orig-buf > > dired-buffers > :original-file-nondirectory > (and (
Re: [BUG] Org-9.6.x org templates hang on 'clipboard pasted as level 2 subtree'...
Sorry it took so long to get a backtrace going...I've been really busy. I restarted emacs with org 9.6.3 and reloaded it uncompiled and did M-x toggle-debug-on-error to turn on backtrace on error. I have also attached a copy of what my org-capture-templates variable looks like. Comparing these backtraces to my org-capture-templates, you can see that only some of them fail (the ones corresponding to 'd', 'e', 'r', 'Rr', 'Rg', and 'Cc') They all worked up until Org 9.6. They still work under Org 9.5.5, so I don't know what changed. These backtraces were produced when I hit C-g to abort a capture template that got stuck on 'clipboard pasted as level 2 subtree', Let me know what you think. Here are some of the backtraces generated: Debugger entered--Lisp error: (error "Capture template ‘d’: Quit") signal(error ("Capture template ‘d’: Quit")) error("Capture template `%s': %s" "d" "Quit") org-capture(nil) funcall-interactively(org-capture nil) call-interactively(org-capture nil nil) command-execute(org-capture) Debugger entered--Lisp error: (error "Capture template ‘e’: Quit") signal(error ("Capture template ‘e’: Quit")) error("Capture template `%s': %s" "e" "Quit") org-capture(nil) funcall-interactively(org-capture nil) call-interactively(org-capture nil nil) command-execute(org-capture) Debugger entered--Lisp error: (error "Capture template ‘r’: Quit") signal(error ("Capture template ‘r’: Quit")) error("Capture template `%s': %s" "r" "Quit") org-capture(nil) funcall-interactively(org-capture nil) call-interactively(org-capture nil nil) command-execute(org-capture) Debugger entered--Lisp error: (error "Capture template ‘Rr’: Quit") signal(error ("Capture template ‘Rr’: Quit")) error("Capture template `%s': %s" "Rr" "Quit") org-capture(nil) funcall-interactively(org-capture nil) call-interactively(org-capture nil nil) command-execute(org-capture) Debugger entered--Lisp error: (error "Capture template ‘Rg’: Quit") signal(error ("Capture template ‘Rg’: Quit")) error("Capture template `%s': %s" "Rg" "Quit") org-capture(nil) funcall-interactively(org-capture nil) call-interactively(org-capture nil nil) command-execute(org-capture) Debugger entered--Lisp error: (error "Capture template ‘Cc’: Quit") signal(error ("Capture template ‘Cc’: Quit")) error("Capture template `%s': %s" "Cc" "Quit") org-capture(nil) funcall-interactively(org-capture nil) call-interactively(org-capture nil nil) command-execute(org-capture) On Tue, Apr 4, 2023 at 7:21 AM Ihor Radchenko wrote: > Carlo Tambuatco writes: > > > I installed emacs from emacs-plus@28 formula on homebrew for macOS > Ventura. > > > > So, I don’t think it is teh GTK emacs build… > > I see. > Then, may you try to create a minimal reproducer? > See https://orgmode.org/manual/Feedback.html#Feedback > > -- > 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> > org-capture-templates.el Description: Binary data
Re: [BUG] Org-9.6.x org templates hang on 'clipboard pasted as level 2 subtree'...
I installed emacs from emacs-plus@28 formula on homebrew for macOS Ventura. So, I don’t think it is teh GTK emacs build… > On Apr 4, 2023, at 6:19 AM, Ihor Radchenko wrote: > > Carlo Tambuatco writes: > >> I tried M-x toggle-debug-on-quit like you said, then I tried to run one of >> my >> capture templates. It froze on ‘clipboard pasted as level 2 subtree’, again, >> then >> I did C-g to quit, but then it just quits out of creating the template. I >> think it >> is some bug during the copy paste step when it is pasting information from >> the template to the subtree, but I don’t know the technical details. >> >> I don’t see any backtrace. > > Hmm. > Do you happen to use GTK Emacs build? > > -- > 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>
Re: [BUG] Org-9.6.x org templates hang on 'clipboard pasted as level 2 subtree'...
I tried M-x toggle-debug-on-quit like you said, then I tried to run one of my capture templates. It froze on ‘clipboard pasted as level 2 subtree’, again, then I did C-g to quit, but then it just quits out of creating the template. I think it is some bug during the copy paste step when it is pasting information from the template to the subtree, but I don’t know the technical details. I don’t see any backtrace. It is weird, because SOME of my templates still work. But all of my templates worked perfectly before 9.6.x. Now some of them are giving me this error. > On Apr 4, 2023, at 4:54 AM, Ihor Radchenko wrote: > > Carlo Tambuatco writes: > >> This is a bug that started with org-9.6, and has persisted up until now. I >> have stayed >> with org-9.5.5 waiting until this is resolved, but it has not as of yet. >> >> What happens is, for certain org templates that I run, the buffer simply >> freezes and displays a message: clipboard pasted as level 2 subtree'. >> >> Emacs then becomes unresponsive. All I can do is force quit and restart >> emacs. > > Does C-g work? > If it does, may you run M-x toggle-debug-on-quit, trigger the hand, > press, C-g, and then share the backtrace? > > -- > 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>
[BUG] Org-9.6.x org templates hang on 'clipboard pasted as level 2 subtree'...
This is a bug that started with org-9.6, and has persisted up until now. I have stayed with org-9.5.5 waiting until this is resolved, but it has not as of yet. What happens is, for certain org templates that I run, the buffer simply freezes and displays a message: clipboard pasted as level 2 subtree'. Emacs then becomes unresponsive. All I can do is force quit and restart emacs. All of my templates worked perfectly up until 9.5.5, and most of them still work. It is only with 4 or 5 of them that cause this issue. I do not think it is a syntax issue, as they worked before, but has any syntax for defining org templates changed with the 9.6.x releases?
[BUG] Org 9.6 Inactive timestamp search no longer works as expected.
Simple inactive timestamp search for recent completed tasks used to return as expected. ie: +TIMESTAMP_IA>=“”+TIMESTAMP_IA<“” would return all tasks that I completed today. (Had an inactive timestamp greater than or equal to 12:00 am of the current day, but less than tomorrow) Now it returns nothing. Running just +TIMESTAMP_IA>=“” gives me a bunch of tasks with timestamps less than today. Pretty much every timestamp that is less than today, which is huge. Pretty much the opposite of what you would expect it to return. Am reverting back to Org 9.5.5 until this issue is resolved.
Re: [PATCH] Bug: Duplicate logbook entry for repeated tasks [9.4.6 (9.4.6-gab9f2a @ /home/gustavo/.emacs.d/elpa/org-9.4.6/)]
Newbie question: what command do I use to apply the patch…? > On Jul 12, 2021, at 1:50 PM, Bhavin Gandhi wrote: > > On Sun, 11 Jul 2021 at 06:59, Ihor Radchenko wrote: >> You are right. I believe that I fixed the breakage in the attached >> patch. Also, I noticed that c67037 did not fix the original bug when >> state change requests interactive note. > > Thanks! I tested your latest patch, and it is fixing both the original > issues which `c67037' solved as well as this one. > > I was trying to understand your change. So, when we call > `org-agenda-todo', it calls `org-todo' which adds the > post-command-hook. This hook is supposed to run when `org-agenda-todo' > finishes, but instead of that we call it directly. This makes sure that > the change is recorded in `buffer-undo-list'. > > Sorry if that's too much to ask, but why don't we need something similar > when org-log-note-how is 'note? Can you please help me understand that? > I tried reading org-add-log-note and org-store-log-note, but I think I'm > missing something basic here. > > Also, should this line from org.el (org-store-log-note) be removed? > > ;; Don't add undo information when called from `org-agenda-todo'. >
Re: BUG: Logging habits to LOGBOOK results in double entered time stamp.
Here's the value: Its value is ((sequence "TODO(t)" "IN_PROGRESS(i)" "|" "DONE(d!)" "POSTPONED(p@)" "CANCELLED(c@)") (sequence "TEST(e)" "TESTING(s)" "|" "PASS(p!)" "FAIL(f@)")) Original value was ((sequence "TODO" "DONE")) On Mon, Jun 14, 2021 at 1:22 PM Bhavin Gandhi wrote: > Hello Carlo > > On Wed, 9 Jun 2021 at 10:42, Carlo Tambuatco wrote: > > When I mark the task as DONE for the day, it logs the task as: > > > > :LOGBOOK: > > - State "DONE" from "TODO" [2021-06-08 Tue 22:20] <-- > Repeated entry > > - State "DONE" from "TODO" [2021-06-08 Tue 22:20] > > […] > > > > I'm not able to reproduce this issue with emacs -q and the latest > master. But I think that this issue is similar to > https://orgmode.org/list/877diwbm6a@gmail.com/T/#u > > Can you share the value of org-todo-keywords variable? (C-h v > org-todo-keywords). > > -- > Bhavin Gandhi (bhavin192) | https://geeksocket.in >
BUG: Logging habits to LOGBOOK results in double entered time stamp.
There seems to be a bug in Org mode version 9.4.6, (9.4.6-2-g21eb69-elpa ...), For example, I have a TODO habit task like so: TODO Some task SCHEDULED: <2021-06-08 Tue .+1d> :PROPERTIES: :STYLE:habit :LAST_REPEAT: [2021-06-07 Mon 23:19] :CATEGORY: Daily Chores :END: :LOGBOOK: - State "DONE" from "TODO" [2021-06-07 Mon 23:19] - State "DONE" from "TODO" [2021-06-06 Sun 22:18] - State "DONE" from "TODO" [2021-06-05 Sat 23:13] :END: When I mark the task as DONE for the day, it logs the task as: TODO Some task SCHEDULED: <2021-06-09 Tue .+1d> :PROPERTIES: :STYLE:habit :LAST_REPEAT: [2021-06-08 Tue 22:20] :CATEGORY: Daily Chores :END: :LOGBOOK: - State "DONE" from "TODO" [2021-06-08 Tue 22:20] <-- Repeated entry - State "DONE" from "TODO" [2021-06-08 Tue 22:20] - State "DONE" from "TODO" [2021-06-07 Mon 23:19] - State "DONE" from "TODO" [2021-06-06 Sun 22:18] - State "DONE" from "TODO" [2021-06-05 Sat 23:13] :END:
How to reload org agenda files without restarting emacs...?
Suppose I share agenda files with other computers on the network, and someone else changes an org agenda file that I use, how do I update the agenda view to see those changes reflected within emacs without having to restart emacs? Is there an org mode command for this?
Re: Strange problem loading org features in Emacs 27.1
> On Aug 16, 2020, at 2:00 AM, Axel Kielhorn wrote: > > Hello Carlo, > >> Am 16.08.2020 um 05:31 schrieb Carlo Tambuatco : >> >> I have org-20200803 package installed in my elpa folder. >> >> Here’s the message emacs gives me after loading my org-init.el file >> initializing org mode in >> emacs 27.1: >> >> Problems while trying to load feature ‘org-bbdb’ >> ... >> Problems while trying to load feature ‘org-rmail’ >> >> The offending line of code in the org-init.el file is: >> >> ;;;Customize org modules >> (setq org-modules '(org-bbdb >> org-gnus >> org-habit >> org-irc >> org-mouse >> org-crypt >> org-protocol >> org-w3m >> org-bibtex >> org-docview >> org-info >> org-mhe >> org-rmail)) >> >> (eval-after-load 'org >> '(org-load-modules-maybe t)) >> >> I don’t know enough about how org mode is organized to know what is going on >> here, but I just >> noticed this happening after upgrading to emacs-27. >> >> What do I do about this problem? Emacs isn’t giving me enough information to >> give me an idea >> of what is going on here. > > These files have been renamed in March 2019. > > With Emacs 26 the file from a previous org version supplied with Emacs have > been used. > Emacs 27.1 has a more recent version of org-mode. > > The easiest way to fix this is to rename the files in your org-init.el file. > > Of course you can use the customize interface as well. > > Greetings > Axel > > > Thanks. What was the reason for the name change?
Strange problem loading org features in Emacs 27.1
I have org-20200803 package installed in my elpa folder. Here’s the message emacs gives me after loading my org-init.el file initializing org mode in emacs 27.1: Problems while trying to load feature ‘org-bbdb’ Problems while trying to load feature ‘org-gnus’ Problems while trying to load feature ‘org-irc’ Problems while trying to load feature ‘org-w3m’ Problems while trying to load feature ‘org-bibtex’ Problems while trying to load feature ‘org-docview’ Problems while trying to load feature ‘org-info’ Problems while trying to load feature ‘org-mhe’ Problems while trying to load feature ‘org-rmail’ The offending line of code in the org-init.el file is: ;;;Customize org modules (setq org-modules '(org-bbdb org-gnus org-habit org-irc org-mouse org-crypt org-protocol org-w3m org-bibtex org-docview org-info org-mhe org-rmail)) (eval-after-load 'org '(org-load-modules-maybe t)) As you see, some of them load no problem, but most of them do not. I checked the org folder, and it seems the .el files that fail to load all start with ‘ol’. ol-bbdb.el ol-gnus.el ol-irc.el ol-w3m.el ol-bibtex.el ol-docview.el ol-info.el ol-mhe.el ol-rmail.el I don’t know enough about how org mode is organized to know what is going on here, but I just noticed this happening after upgrading to emacs-27. What do I do about this problem? Emacs isn’t giving me enough information to give me an idea of what is going on here.
Support for simultaneous running clocks?
I don't know if anyone has suggested or is working on the ability for org mode to keep track of multiple running clocks simultaneously. I'd like the ability to keep track of, for example, how long something takes to compile while I keep track of how long I am working on some other project task at the same time.