emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carlo Tambuatco <oraclmaster@gmail.com>
To: Ihor Radchenko <yantar92@posteo.net>
Cc: Org-Mode Mailing List <emacs-orgmode@gnu.org>
Subject: Re: [BUG] Org-9.6.x org templates hang on 'clipboard pasted as level 2 subtree'...
Date: Sat, 15 Apr 2023 23:34:54 -0400	[thread overview]
Message-ID: <CAJb92Ez-BVLw3rkV3iA8VosRZ3+K3tvw-UoWn0orqmEf3QWLRw@mail.gmail.com> (raw)
In-Reply-To: <87y1n7ao17.fsf@localhost>


[-- Attachment #1.1: Type: text/plain, Size: 3296 bytes --]

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 <yantar92@posteo.net> wrote:

> Carlo Tambuatco <oraclmaster@gmail.com> 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>
>

[-- Attachment #1.2: Type: text/html, Size: 4905 bytes --]

[-- Attachment #2: org-capture-templates.el --]
[-- Type: application/octet-stream, Size: 5765 bytes --]

(setf org-capture-templates '(("N" "New Note")
                              ("Np" "Personal Note" entry (file+headline
                                                          "~/Documents/Org/Personal/Notes.org"
                                                          "Personal Notes")
                               "* %? \nCaptured On: %t \n%i\n" :empty-lines 1)

                              ("Ns" "Study Note" entry (file+headline
                                                       "~/Documents/Org/Programming/Notes.org"
                                                       "Study Notes")
                               "* %? \nCaptured On: %t \n%i\n" :empty-lines 1)

                              ("Nw" "Work Note" entry (file+headline
                                                       "~/Documents/Org/Work/Notes.org"
                                                       "Work Notes")
                               "* %? \nCaptured On: %^t \n%i\n" :empty-lines 1)
			      ("a" "Appointment" entry (file+headline
                                                        "~/Documents/Org/Personal/Personal_Schedule.org"
                                                        "Appointments")
                               "* TODO %? \nSCHEDULED: %^{when}t DEADLINE: %^{when}t\n:PROPERTIES:\n:COOKIE_DATA: %^{COOKIE_DATA|todo recursive|recursive|nil}p\n:ORDERED: %^{ORDERED|t|nil}p\n:END:\n" :empty-lines 1)

                              ("d" "Due Date" entry (file+headline
                                                        "~/Documents/Org/Personal/Personal_Schedule.org"
                                                        "Due Dates")
                               "* TODO %? \nDEADLINE: %^{when}t\n:PROPERTIES:\n:COOKIE_DATA: %^{COOKIE_DATA|todo recursive|recursive|nil}p\n:END:\n" :empty-lines 1)

                              ("e" "Event" entry (file+headline
                                                        "~/Documents/Org/Personal/Personal_Schedule.org"
                                                        "Events")
                               "* TODO %? \nSCHEDULED: %^{when}t\n" :empty-lines 1)
			      ("t" "TV Show" entry (file+headline
                                                        "~/Documents/Org/Personal/TV_Schedule.org"
                                                        "Current TV Shows:")
                               "* WATCH %? [/]\nSCHEDULED: %^{when}t\n:PROPERTIES:\n:COOKIE_DATA: %^{COOKIE_DATA|checkbox recursive|recursive|nil}p\n:Network: %^{Network|Netflix|AZ Prime|HBO|Cinemax|Showtime|CW|AMC|FX|Fox|Facebook|USA|nil}p\n:ORDERED: %^{ORDERED|t|nil}p\n:STYLE: %^{STYLE|habit|nil}p\n:END:\n:LOGBOOK:\n:END:\nEpisodes:\n1. [ ] " :empty-lines 1)

                              ("m" "Movies / TV / Streaming Events" entry (file+headline
                                                        "~/Documents/Org/Personal/TV_Schedule.org"
                                                        "Movies / TV / Streaming Events")
                               "* WATCH %? \nSCHEDULED: %^{when}t\n:PROPERTIES:\n:Network: %^{Network|Netflix|AZ Prime|HBO|Cinemax|Showtime|CW|AMC|FX|Fox|USA|DVD|nil}p\n:END:\n" :empty-lines 1)

			      ("B" "New Book")
			      ("Bn" "Novel" entry (file+headline
						   "~/Documents/Org/Personal/Books_Read.org"
						   "Novels Read")
			       "* TODO %? \n:PROPERTIES:\n:AUTHOR: %^{AUTHOR}p\n:END:\n"
			       :empty-lines 1)

			      ("Bf" "Nonfiction" entry (file+headline
						   "~/Documents/Org/Personal/Books_Read.org"
						   "Nonfiction Read")
			       "* TODO %? \n:PROPERTIES:\n:AUTHOR: %^{AUTHOR}p\n:TOPIC: %^{TOPIC}p\n:END:\n"
			       :empty-lines 1)

                              ("r" "Race" entry (file+headline
                                                 "~/Documents/Org/Personal/Workouts.org"
                                                 "Scheduled Races")
                               "* RACE %? \nSCHEDULED: %^{when}t" :empty-lines 1)

                              ("R" "New Reminder")

                              ("Rr" "Reminder" entry (file+headline
                                                     "~/Documents/Org/Personal/Personal_Schedule.org"
                                                     "Reminders")
                               "* TODO %? \n:PROPERTIES:\n:COOKIE_DATA: %^{COOKIE_DATA|todo recursive|recursive|nil}p\n:ORDERED: %^{ORDERED|t|nil}p\n:STYLE: %^{STYLE|habit|nil}p\n:END:\n" :empty-lines 1)

                              ("Rg" "Game Release Date" entry (file+headline
                                                     "~/Documents/Org/Personal/Personal_Schedule.org"
                                                     "Reminders")
                               "* TODO %? \nSCHEDULED: %^{when}t\n:PROPERTIES:\n:Console: %^{Console|PS5|PC}p\n:END:\n" :empty-lines 1)

			      ("C" "New Chore(s)/Task(s)")

                              ("Cc" "Chore" entry (file+headline
                                                        "~/Documents/Org/Personal/Personal_Schedule.org"
                                                        "Chores")
                               "* TODO %? \nSCHEDULED: %^{when}t\n:PROPERTIES:\n:COOKIE_DATA: %^{COOKIE_DATA|todo recursive|checkbox recursive|recursive|nil}p\n:ORDERED: %^{ORDERED|t|nil}p\n:STYLE: %^{STYLE|nil|habit}p\n:CATEGORY: %^{CATEGORY|nil|Daily_Chores}p\n:END:\n" :empty-lines 1)

			      ("Ct" "Task" entry (file+headline
						 "~/Documents/Org/Personal/Personal_Schedule.org"
						 "Tasks")
			       "* TODO %? \nSCHEDULED: %^{when}t\n:PROPERTIES:\n:COOKIE_DATA: %^{COOKIE_DATA|todo recursive|checkbox recursive|recursive|nil}p\n:ORDERED: %^{ORDERED|t|nil}p\n:END:\n" :empty-lines 1)
			      ))

  reply	other threads:[~2023-04-16  3:36 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-03 19:53 [BUG] Org-9.6.x org templates hang on 'clipboard pasted as level 2 subtree' Carlo Tambuatco
2023-04-04  8:54 ` Ihor Radchenko
2023-04-04 10:14   ` Carlo Tambuatco
2023-04-04 10:19     ` Ihor Radchenko
2023-04-04 10:25       ` Carlo Tambuatco
2023-04-04 11:24         ` Ihor Radchenko
2023-04-16  3:34           ` Carlo Tambuatco [this message]
2023-04-16 12:12             ` Ihor Radchenko
2023-04-17 10:40               ` Carlo Tambuatco
2023-06-06 15:03                 ` Carlo Tambuatco
2023-06-07 11:29                   ` Ihor Radchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAJb92Ez-BVLw3rkV3iA8VosRZ3+K3tvw-UoWn0orqmEf3QWLRw@mail.gmail.com \
    --to=oraclmaster@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=yantar92@posteo.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).