Remember to cover the basics, that is, what you expected to happen and
what in fact did happen. You don’t know how to make a good report? See
https://orgmode.org/manual/Feedback.html#Feedback
Your bug report will be posted to the Org mailing list.
texmathp when used in org-mode seems to have problems with multiline align* environments.
Consider the following math environment:
where cursor is at |
. With cursor at this point try (texmathp)
. I get nil
. It seems to only be a problem on the start of a blank line.
Notably, I don’t have the same problem if the major-mode is LaTeX-mode. Moreover, if I run (advice-remove 'texmathp 'org--math-always-on)
then everything works as expected.
So it seems to me this is some bug in the org–math-always-on advice… no?
Emacs : GNU Emacs 28.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.34, cairo version 1.17.6)
of 2022-09-12
Package: Org mode version 9.6 (release_9.6-22-g78d283 @ home/jds6696.emacs.d/straight/build/org-mode/)
current state:============
(setq
org-noter–doc-goto-location-hook ’(org-noter-pdftools–doc-goto-location)
org-roam-db-location “home/jds6696.emacs.d/var/org/org-roam.db”
org-noter–check-location-property-hook ’(org-noter-pdftools–check-link)
org-msg-attached-file-reference “see[ ]\?\\\{0,3\\}\\\|(\)\\|\[ ]\[ ]”
org-link-elisp-confirm-function ’yes-or-no-p
org-directory “~/Dropbox/org”
org-cite-insert-processor ’citar
org-bibtex-headline-format-function #[257 “\300\236A\207” [:title] 3 “(fn ENTRY)”]
org-pdftools-get-desc-function ’org-pdftools-get-desc-default
org-agenda-custom-commands ’((“d” “Custom Day View”
((agenda “”
((org-agenda-span ’day)
(org-agenda-skip-function
’(lambda nil (interactive) (skip-tag “mail”)))
)
)
(todo “NEXT”
((org-agenda-sorting-strategy `(priority-down effort-down))
(org-agenda-overriding-header “Next”)
(org-agenda-skip-function ’(org-agenda-skip-entry-if ’timestamp)))
)
(agenda “”
((org-agenda-span ’day) (org-agenda-overriding-header “Mail”)
(org-agenda-format-date “”)
(org-agenda-skip-function
’(lambda nil (interactive) (skip-not-tag “mail”)))
)
)
(tags-todo “REFILE”
((org-agenda-overriding-header “To Refile”)
(org-tags-match-list-sublevels nil))
)
)
)
(“n” “Next Items”
((todo “NEXT”
((org-agenda-sorting-strategy `(priority-down effort-down))
(org-agenda-overriding-header “Next”))
)
)
)
)
org-agenda-skip-scheduled-if-done t
org-agenda-files ’(“home/jds6696/Dropbox/org/cal-gmail.org“ ”/home/jds6696/Dropbox/org/cal-psu.org“
”/home/jds6696/Dropbox/org/calendar.org“ ”/home/jds6696/Dropbox/org/inbox.org“
”/home/jds6696/Dropbox/org/inbox_mobile.org“ ”/home/jds6696/Dropbox/org/mail.org“
”/home/jds6696/Dropbox/org/meetings_anarres.org“
”/home/jds6696/Dropbox/org/meetings_psu.org“
”/home/jds6696/Dropbox/org/mtx-andrew.org“
”/home/jds6696/Dropbox/org/mtx-kyle.org“
”/home/jds6696/Dropbox/org/mtx-michelle.org“
”/home/jds6696/Dropbox/org/mtx-zhaoma.org“ ”/home/jds6696/Dropbox/org/notes.org“
”/home/jds6696/Dropbox/org/tasks.org“)
org-capture-templates ’((”#“ ”used by gnus-icalendar-org“ entry
(file+olp ”~/Dropbox/org/calendar.org“ ”Calendar“) ”%i“ :immediate-finish t)
(”t“ ”todo“)
(”ta“ ”todo with attachment“ entry (file ”~/Dropbox/org/inbox.org“)
”* TODO %?%U%a“)
(”te“ ”todo tweaks“ entry (file+headline ”~/Dropbox/org/tasks.org“ ”Emacs“)
”* TODO %? :TWEAKS:%U“)
(”tt“ ”plain todo“ entry (file ”~/Dropbox/org/inbox.org“) ”* TODO %?%U“)
(”m“ ”meetings“)
(”ma“ ”meeting anarres“ entry
(file+olp+datetree ”~/Dropbox/org/meetings_anarres.org“)
”* MEETING with %? - %u :MEETING:%U“ :jump-to-captured t :tree-type month)
(”mp“ ”meeting psu“ entry
(file+olp+datetree ”~/Dropbox/org/meetings_psu.org“)
”* MEETING %u with %? :MEETING:“ :jump-to-captured t :tree-type month)
(”mP“ ”meeting specific person“)
(”mPm“ ”meeting Michelle“ entry
(file+olp+datetree ”~/Dropbox/org/mtx-michelle.org“)
”* MEETING %u with Michelle :MEETING:w_michelle:* TRAM Manuscript :p_tram:* ALDEx2 Manuscript :p_tram:* Bacteremia :p_bacteremia:* Decision Theory :p_bdt:* Chicken Microbiome :p_chicken:“ :jump-to-captured t :tree-type month)
(”mPa“ ”meeting Andrew“ entry
(file+olp+datetree ”~/Dropbox/org/mtx-andrew.org“)
”* MEETING %u with Andrew :MEETING:w_andrew:%?“ :jump-to-captured t
:tree-type month)
(”mPd“ ”meeting DIHI“ entry
(file+olp+datetree ”~/Dropbox/org/mtx-michelle.org“)
”* MEETING %u with DIHI :MEETING:w_michelle:p_bacteremia:%?“
:jump-to-captured t :tree-type month)
(”mPk“ ”meeting Kyle“ entry (file+olp+datetree ”~/Dropbox/org/mtx-kyle.org“)
”* MEETING %u with Kyle :MEETING:w_kyle:* cGSEA :p_cgsea:* Effective Scale Models :p_effscalemod:* Future Plans %?“ :jump-to-captured t :tree-type month)
(”mPz“ ”meeting Zhao Ma“ entry
(file+olp+datetree ”~/Dropbox/org/mtx-zhaoma.org“)
”* MEETING %u with Zhao Ma :MEETING:w_zhao:%?“ :jump-to-captured t
:tree-type month)
(”c“ ”calendar event“)
(”cc“ ”plain event“ entry
(file+headline ”~/Dropbox/org/calendar.org“ ”Calendar“) ”* %? %^T“)
(”ca“ ”event with attachment“ entry
(file+headline ”~/Dropbox/org/calendar.org“ ”Calendar“) ”* %? %^T %a“)
(”n“ ”note“ entry (file+headline ”~/Dropbox/org/notes.org“ ”Notes“)
”* %? %U“)
(”P“ ”Protocol“)
(”Pw“ ”Capture Website“ entry (file ”~/Dropbox/org/inbox.org“)
”* TODO %:annotation %i %?“)
)
org-roam-node-display-template #(”${title:200} ${tags:30}“ 13 23 (face org-tag))
org-persist-after-read-hook ’(org-element–cache-persist-after-read)
org-super-links-search-function ‘org-super-links-get-location
org-refile-targets ’((nil :maxlevel . 9) (org-agenda-files :maxlevel . 9))
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 ”~/Dropbox/org/inbox.org“
org-roam-find-file-hook ’(org-roam-buffer–setup-redisplay-h
org-roam–register-completion-functions-h
org-roam–replace-roam-links-on-save-h
org-roam-db-autosync–setup-update-on-save-h)
org-refile-use-outline-path ‘file
org-publish-timestamp-directory ”/home/jds6696.emacs.d/var/org/timestamps/”
org-archive-hook ’(org-attach-archive-delete-maybe)
org-cite-follow-processor ’citar
org-noter-pdftools-markup-pointer-function ’pdf-annot-add-highlight-markup-annotation
org-odt-format-inlinetask-function ’org-odt-format-inlinetask-default-function
org-ascii-format-drawer-function #[771 “\207” [] 4 “(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-noter–note-after-tipping-point-hook ’(org-noter-pdftools–note-after-tipping-point)
org-persist-before-read-hook ’(org-element–cache-persist-before-read)
org-msg-options “html-postamble:nil num:nil ^:{} toc:nil author:nil email:nil \:t tex:dvipng eval:nil”
org-link-from-user-regexp “\\<jds6696@lenovoGen4Sil\\>”
org-image-actual-width nil
org-mode-hook ’(jds~org-cdlatex-hook-function org-pdftools-setup-link aas-activate-for-major-mode
evil-collection-mu4e-org-set-header-to-normal-mode evil-tex-mode turn-on-org-cdlatex
#[0 “\301\211\207” [imenu-create-index-function org-imenu-get-tree] 2]
org-appear-mode
(closure (t) nil
(add-hook ’evil-insert-state-entry-hook #’org-appear-manual-start nil t)
(add-hook ’evil-insert-state-exit-hook #’org-appear-manual-stop nil t))
evil-org-mode org-fragtog-mode er/add-org-mode-expansions
#[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{slug}.org”
“#+title: {slug}.org”
“#+title: %u {citekey}.org”
“#+title: ${author-abbrev} :: ${title}#+filetags: :reference:#+STARTUP: latexpreview”)
:unnarrowed t)
)
org-metaup-hook ’(org-babel-load-in-session-maybe)
org-agenda-skip-additional-timestamps-same-entry t
org-refile-allow-creating-parent-nodes ’confirm
org-use-fast-todo-selection t
org-noter–relative-position-to-view-hook ’(org-noter-pdftools–relative-position-to-view)
org-latex-pdf-process ’(“pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f”
“pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f”
“pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f”)
org-return-follows-link t
org-outline-path-complete-in-steps nil
org-msg-mode t
org-noter-always-create-frame nil
org-special-ctrl-a/e t
org-tags-column -70
org-agenda-current-time-string “>>>>>>>>>> NOW <<<<<<<<<<”
org-attach-store-link-p ’attached
org-agenda-block-separator nil
org-roam-indirect-buffer-hook ’(org-roam–register-completion-functions-h)
org-refile-target-verify-function ’bh/verify-refile-target
org-noter-kill-frame-at-session-end nil
)