all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [BUG] error on org-add-note? [9.6.6 (release_9.6.6 @ /usr/share/emacs/29.1/lisp/org/)]
@ 2023-11-13  8:40 brizly
  2023-11-17  8:19 ` Ihor Radchenko
  0 siblings, 1 reply; 4+ messages in thread
From: brizly @ 2023-11-13  8:40 UTC (permalink / raw)
  To: emacs-orgmode

hi there, 

i was in a java-project and [alt]-x "org-add-note", when the
warnings apperes an i should file bug, so here i am.

(I was not using this function for a long time, perhaps there is
missing a config for a folder?)

--
Greetings
brizly


Emacs  : GNU Emacs 29.1 (build 1, x86_64-redhat-linux-gnu, GTK+ Version
3.24.38, cairo version 1.17.8)
 of 2023-09-24
Package: Org mode version 9.6.6 (release_9.6.6 @
/usr/share/emacs/29.1/lisp/org/)

current state:
==============
(setq
 org-link-elisp-confirm-function 'yes-or-no-p
 org-directory "/home/brizly/Dokumente/fit/gtd"
 org-bibtex-headline-format-function #[257 "\300\236A\207" [:title] 3
"\n\n(fn ENTRY)"]
 org-download-file-format-function 'org-download-file-format-default
 org-log-done 'time
 org-fontify-done-headline nil
 org-twbs-format-drawer-function '(lambda (name contents) contents)
 org-startup-folded t
 org-babel-after-execute-hook '(spacemacs/ob-fix-inline-images)
 org-agenda-files '("/home/brizly/Dokumente/fit/gtd")
 org-persist-after-read-hook '(org-element--cache-persist-after-read)
 org-export-before-parsing-hook '(org-attach-expand-links)
 org-cycle-tab-first-hook '(org-babel-hide-result-toggle-maybe org-
babel-header-arg-expand)
 org-default-notes-file "/home/brizly/Dokumente/fit/gtd/notes.org"
 org-export-async-init-file
"/home/brizly/.emacs.d/layers/+emacs/org/local/org-async-init.el"
 org-publish-timestamp-directory "~/.emacs.d/.cache/.org-timestamps/"
 org-archive-hook '(org-attach-archive-delete-maybe)
 org-odt-format-inlinetask-function 'org-odt-format-inlinetask-default-
function
 org-ascii-format-drawer-function #[771 "\207" [] 4 "\n\n(fn NAME
CONTENTS WIDTH)"]
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-show-
empty-lines
                  org-cycle-optimize-window-after-visibility-change
org-cycle-display-inline-images)
 org-persist-before-read-hook '(org-element--cache-persist-before-read)
 org-twbs-head "\n<link  href=\"/bootstrap.min.css\"
rel=\"stylesheet\">\n<script src=\"/jquery.min.js\"></script>\n<script
src=\"/bootstrap.min.js\"></script>"
 org-modules '(org-habit ol-doi ol-w3m ol-bbdb ol-bibtex ol-docview ol-
gnus ol-info ol-irc ol-mhe ol-rmail ol-eww)
 org-image-actual-width nil
 org-mode-hook '(#[0 "\300\301\302\303\304$\207" [add-hook change-
major-mode-hook org-fold-show-all append local] 5]
                 #[0 "\300\301\302\303\304$\207"
                   [add-hook change-major-mode-hook org-babel-show-
result-all append local] 5]
                 org-babel-result-hide-spec org-babel-hide-all-hashes
                 #[0 "\301\211\207" [imenu-create-index-function org-
imenu-get-tree] 2] flyspell-mode
                 spacemacs/org-setup-evil-surround spacemacs/load-
yasnippet toc-org-enable org-download-enable
                 dotspacemacs//prettify-spacemacs-docs spacemacs//evil-
org-mode org-eldoc-load
                 spacemacs//init-company-org-mode company-mode)
 org-babel-load-languages '((restclient . t) (sql . t) (python . t)
(java . t) (js . t) (groovy . t) (calc . t)
                            (latex . t) (plantuml . t) (shell . t)
(http . t))
 org-id-locations-file "~/.emacs.d/.cache/.org-id-locations"
 org-twbs-format-inlinetask-function 'ignore
 org-latex-format-drawer-function #[514 "\207" [] 3 "\n\n(fn _
CONTENTS)"]
 org-download-abbreviate-filename-function 'file-relative-name
 org-latex-format-headline-function 'org-latex-format-headline-default-
function
 org-confirm-shell-link-function 'yes-or-no-p
 org-present-mode-hook '(spacemacs//org-present-start)
 org-present-mode-quit-hook '(spacemacs//org-present-end)
 org-download-annotate-function 'org-download-annotate-default
 org-html-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME
CONTENTS)"]
 outline-isearch-open-invisible-function 'outline-isearch-open-
invisible
 org-plantuml-jar-path "/home/brizly/Downloads/plantuml.jar"
 org-odt-format-headline-function 'org-odt-format-headline-default-
function
 org-link-translation-function 'toc-org-unhrefify
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-babel-tangle-lang-exts '(("latex" . "tex") ("emacs-lisp" . "el")
("elisp" . "el"))
 org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-
configure-edit-buffer)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-log-buffer-setup-hook '(spacemacs//org-note-mode)
 org-twbs-format-headline-function 'ignore
 org-speed-command-hook '(org-speed-command-activate org-babel-speed-
command-activate)
 org-html-format-inlinetask-function 'org-html-format-inlinetask-
default-function
 org-clock-persist-file "~/.emacs.d/.cache/org-clock-save.el"
 org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-
default
 org-latex-prefer-user-labels t
 org-odt-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME
CONTENTS)"]
 org-confirm-babel-evaluate nil
 org-fold-core-isearch-open-function 'org-fold-core--isearch-reveal
 org-latex-format-inlinetask-function 'org-latex-format-inlinetask-
default-function
 org-persist-before-write-hook '(org-element--cache-persist-before-
write)
 org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-
header-arg-expand)
 org-link-shell-confirm-function 'yes-or-no-p
 org-babel-pre-tangle-hook '(save-buffer)
 org-agenda-loop-over-headlines-in-active-region nil
 org-occur-hook '(org-first-headline-recenter)
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-link-parameters '(("orgit-rev" :store orgit-rev-store :follow
orgit-rev-open :export orgit-rev-export
                        :complete orgit-rev-complete-link)
                       ("orgit-log" :store orgit-log-store :follow
orgit-log-open :export orgit-log-export
                        :complete orgit-log-complete-link)
                       ("orgit" :store orgit-status-store :follow
orgit-status-open :export orgit-status-export
                        :complete orgit-status-complete-link)
                       ("treemacs" :store treemacs-store-org-link)
                       ("attachment" :follow org-attach-follow
:complete org-attach-complete-link)
                       ("eww" :follow org-eww-open :store org-eww-
store-link)
                       ("rmail" :follow org-rmail-open :store org-
rmail-store-link)
                       ("mhe" :follow org-mhe-open :store org-mhe-
store-link)
                       ("irc" :follow org-irc-visit :store org-irc-
store-link :export org-irc-export)
                       ("info" :follow org-info-open :export org-info-
export :store org-info-store-link
                        :insert-description org-info-description-as-
command)
                       ("gnus" :follow org-gnus-open :store org-gnus-
store-link)
                       ("docview" :follow org-docview-open :export org-
docview-export :store org-docview-store-link)
                       ("bibtex" :follow org-bibtex-open :store org-
bibtex-store-link)
                       ("bbdb" :follow org-bbdb-open :export org-bbdb-
export :complete org-bbdb-complete-link
                        :store org-bbdb-store-link)
                       ("w3m" :store org-w3m-store-link)
                       ("doi" :follow org-link-doi-open :export org-
link-doi-export) ("id" :follow org-id-open)
                       ("orgit-topic" :store orgit-topic-store :follow
orgit-topic-open :export orgit-topic-export
                        :complete orgit-topic-complete-link)
                       ("file+sys") ("file+emacs") ("shell" :follow
org-link--open-shell)
                       ("news" :follow
                        #[514 "\301\300\302Q\"\207" ["news" browse-url
":"] 6 "\n\n(fn URL ARG)"])
                       ("mailto" :follow
                        #[514 "\301\300\302Q\"\207" ["mailto" browse-
url ":"] 6 "\n\n(fn URL ARG)"])
                       ("https" :follow
                        #[514 "\301\300\302Q\"\207" ["https" browse-url
":"] 6 "\n\n(fn URL ARG)"])
                       ("http" :follow
                        #[514 "\301\300\302Q\"\207" ["http" browse-url
":"] 6 "\n\n(fn URL ARG)"])
                       ("ftp" :follow #[514 "\301\300\302Q\"\207"
["ftp" browse-url ":"] 6 "\n\n(fn URL ARG)"])
                       ("help" :follow org-link--open-help :store org-
link--store-help)
                       ("file" :complete org-link-complete-file)
("elisp" :follow org-link--open-elisp))
 org-html-format-headline-function 'org-html-format-headline-default-
function
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-agenda-restore-windows-after-quit t
 org-startup-with-inline-images t
 org-imenu-depth 8
 org-download-link-format-function 'org-download-link-format-function-
default
 org-latex-pdf-process '("lualatex -shell-escape -interaction
nonstopmode -output-directory %o %f"
                         "lualatex -shell-escape -interaction
nonstopmode -output-directory %o %f")
 org-src-lang-modes '(("http" . "ob-http") ("C" . c) ("C++" . c++)
("asymptote" . asy) ("bash" . sh)
                      ("beamer" . latex) ("calc" . fundamental) ("cpp"
. c++) ("ditaa" . artist)
                      ("desktop" . conf-desktop) ("dot" . fundamental)
("elisp" . emacs-lisp) ("ocaml" . tuareg)
                      ("screen" . shell-script) ("shell" . sh)
("sqlite" . sql) ("toml" . conf-toml))
 )



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [BUG] error on org-add-note? [9.6.6 (release_9.6.6 @ /usr/share/emacs/29.1/lisp/org/)]
  2023-11-13  8:40 [BUG] error on org-add-note? [9.6.6 (release_9.6.6 @ /usr/share/emacs/29.1/lisp/org/)] brizly
@ 2023-11-17  8:19 ` Ihor Radchenko
  2023-11-17  8:43   ` brizly
  0 siblings, 1 reply; 4+ messages in thread
From: Ihor Radchenko @ 2023-11-17  8:19 UTC (permalink / raw)
  To: brizly; +Cc: emacs-orgmode

brizly <org-bugtracker-2362@system.rocks> writes:

> i was in a java-project and [alt]-x "org-add-note", when the
> warnings apperes an i should file bug, so here i am.
>
> (I was not using this function for a long time, perhaps there is
> missing a config for a folder?)

Do I understand correctly that you tried to run M-x org-add-note from a
non-Org file?

-- 
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>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [BUG] error on org-add-note? [9.6.6 (release_9.6.6 @ /usr/share/emacs/29.1/lisp/org/)]
  2023-11-17  8:19 ` Ihor Radchenko
@ 2023-11-17  8:43   ` brizly
  2023-11-17  9:01     ` Ihor Radchenko
  0 siblings, 1 reply; 4+ messages in thread
From: brizly @ 2023-11-17  8:43 UTC (permalink / raw)
  To: Ihor Radchenko; +Cc: emacs-orgmode

Am Freitag, dem 17.11.2023 um 08:19 +0000 schrieb Ihor Radchenko:
> brizly <org-bugtracker-2362@system.rocks> writes:
> 
> > i was in a java-project and [alt]-x "org-add-note", when the
> > warnings apperes an i should file bug, so here i am.
> > 
> > (I was not using this function for a long time, perhaps there is
> > missing a config for a folder?)
> 
> Do I understand correctly that you tried to run M-x org-add-note from
> a
> non-Org file?
> 

That is correct, perhaps my fault, but surprising to get a stacktrace?

Meanwhile i recognized it was the wrong function for what i wanted to
do. I was searching for "org-capture", which works on any file in my
homefolder, as it creates relative links in the matching file
"notes.org" as configured in my setting.

So, long story short, perhaps this is not a (relevant) bug, i just used
it the wrong way.

--
Greetings
brizly


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [BUG] error on org-add-note? [9.6.6 (release_9.6.6 @ /usr/share/emacs/29.1/lisp/org/)]
  2023-11-17  8:43   ` brizly
@ 2023-11-17  9:01     ` Ihor Radchenko
  0 siblings, 0 replies; 4+ messages in thread
From: Ihor Radchenko @ 2023-11-17  9:01 UTC (permalink / raw)
  To: brizly; +Cc: emacs-orgmode

brizly <org-bugtracker-2362@system.rocks> writes:

>> Do I understand correctly that you tried to run M-x org-add-note from
>> a
>> non-Org file?
>> 
>
> That is correct, perhaps my fault, but surprising to get a stacktrace?

`org-add-note' assumes that it is called from an Org buffer. So, as
you may expect, all kinds of unexpected things might happen when it is
called outside Org buffer.

Starting from Emacs 28, we are able to limit commands to show up only in
Org buffers (if necessary). However, we still support Emacs 27 that does
not have that feature, and I know no good way to add mode declaration to
commands without breaking Emacs 27. So, for now, we should leave the
situation as is, until Emacs 30 is release when we can drop Emacs 27
support.

I will leave this open until then.
Confirmed.

-- 
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>


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-11-17  8:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-13  8:40 [BUG] error on org-add-note? [9.6.6 (release_9.6.6 @ /usr/share/emacs/29.1/lisp/org/)] brizly
2023-11-17  8:19 ` Ihor Radchenko
2023-11-17  8:43   ` brizly
2023-11-17  9:01     ` Ihor Radchenko

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.