emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: Error on preview of latex equation [8.3.2 (release_8.3.2-138-g679adc @ /Users/rainerkrug/.emacs.d/org-mode/lisp/)]
@ 2015-10-01 12:58 Rainer M Krug
  2015-10-01 19:45 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Rainer M Krug @ 2015-10-01 12:58 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 10406 bytes --]



Sometimes after wo=rking in a document with many latex formulas I get,
when trying to preview a new formula I get the folowing error:

,----
| org-remove-if: Wrong type argument: number-or-marker-p, nil
`----

Closing the document and re-opening fixes it for some time and then it
re-occurs.

Here is the backtrace:

,----
| Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
|   #[(o) "\304\b!	Y\205.\0\305\b!\nX\205.\0\306\b!\210\v\206.\0\307\211.\207" [o beg end removedp overlay-start overlay-end delete-overlay t] 2](#<overlay in no buffer>)
|   org-remove-if(#[(o) "\304\b!	Y\205.\0\305\b!\nX\205.\0\306\b!\210\v\206.\0\307\211.\207" [o beg end removedp overlay-start overlay-end delete-overlay t] 2] (#<overlay in no buffer> #<overlay from 6957 to 7041 in constrOptim.org> #<overlay from 6806 to 6938 in constrOptim.org> #<overlay from 6275 to 6444 in constrOptim.org> #<overlay from 14782 to 15045 in constrOptim.org> #<overlay from 14710 to 14713 in constrOptim.org> #<overlay from 14657 to 14660 in constrOptim.org> #<overlay from 14635 to 14648 in constrOptim.org> #<overlay from 14225 to 14597 in constrOptim.org> #<overlay from 14198 to 14207 in constrOptim.org> #<overlay from 14189 to 14194 in constrOptim.org> #<overlay from 14182 to 14187 in constrOptim.org> #<overlay from 14174 to 14180 in constrOptim.org> #<overlay from 14148 to 14160 in constrOptim.org> #<overlay from 14058 to 14061 in constrOptim.org> #<overlay from 13613 to 14040 in constrOptim.org> #<overlay from 13353 to 13600 in constrOptim.org> #<overlay from 13129 to 13244 in constrOptim.org> #<overlay from 12758 to 13094 in constrOptim.org>))
|   org-remove-latex-fragment-image-overlays(6553 6802)
|   org-toggle-latex-fragment(nil)
|   funcall-interactively(org-toggle-latex-fragment nil)
|   call-interactively(org-toggle-latex-fragment nil nil)
|   command-execute(org-toggle-latex-fragment)
`----


Emacs  : GNU Emacs 25.0.50.1 (x86_64-apple-darwin14.5.0, NS appkit-1348.17 Version 10.10.5 (Build 14F27))
 of 2015-09-29
Package: Org-mode version 8.3.2 (release_8.3.2-138-g679adc @ /Users/rainerkrug/.emacs.d/org-mode/lisp/)

current state:
==============
(setq
 org-src-lang-modes '(("plantuml" . plantuml) ("ocaml" . tuareg) ("elisp" . emacs-lisp) ("ditaa" . artist) ("asymptote" . asy) ("dot" . fundamental)
                      ("sqlite" . sql) ("calc" . fundamental) ("C" . c) ("cpp" . c++) ...)
 org-hide-leading-stars t
 org-tab-first-hook '(org-hide-block-toggle-maybe org-babel-hide-result-toggle-maybe org-babel-header-arg-expand)
 org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook)
 org-notmuch-search-open-function 'org-notmuch-search-follow-link
 org-ellipsis " [...]"
 org-occur-hook '(org-first-headline-recenter)
 org-src-tab-acts-natively t
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-imenu-depth 6
 org-html-format-drawer-function '(lambda (name contents) contents)
 org-src-window-setup 'current-window
 org-latex-format-inlinetask-function 'org-latex-format-inlinetask-default-function
 org-confirm-shell-link-function 'y-or-n-p
 org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
 org-latex-format-headline-function 'org-latex-format-headline-default-function
 org-startup-indented t
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-latex-format-drawer-function '(lambda (name contents) contents)
 org-from-is-user-regexp "\\<Rainer M Krug\\>"
 org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-babel-pre-tangle-hook '(save-buffer)
 org-mode-hook '(rmk/org-mark-readonly (lambda nil (imenu-add-to-menubar "Imenu")) turn-on-org-cdlatex (lambda nil (flyspell-mode 1))
                 #[nil
                   "\305.\306	>\203.\0\307\n\310\311#\210\307\v\312\313#\210\307\v\314\315#\210\306	>\203,.\307\n\316\317#\210\307\n\320\321#\210\322	>\203>.\307\v\323\324#\210\307\v\325\324#\210\326	>\203P.\307\n\327\317#\210\307\n\330\321#\210\331	>\203_.\332\311\f\333BC\334#\210\335	>\203k.\332\311\336\334#\210\337	>\203w.\332\311\340\334#\210\341\342\343\344\311$\210\345\342\311\"\210\342\207"
                   [org-mouse-context-menu-function
                    
                    org-mouse-features
                    
                    org-mouse-map
                    
                    org-mode-map
                    
                    org-outline-regexp
                    
                    org-mouse-context-menu
                    
                    context-menu
                    
                    org-defkey
                    
                    [mouse-3]
                    
                    nil ...]
                   5]
                 rmk/prettier-org-code-blocks #[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-show-block-all append local] 5]
                 #[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-babel-show-result-all append local] 5]
                 org-babel-result-hide-spec org-babel-hide-all-hashes)
 org-refile-targets '((nil :maxlevel . 5))
 org-archive-hook '(org-attach-archive-delete-maybe)
 org-ascii-format-drawer-function '(lambda (name contents width) contents)
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change)
 org-plantuml-jar-path "/Users/rainerkrug/jar/plantuml.jar"
 org-notmuch-open-function 'org-notmuch-follow-link
 org-export-before-processing-hook '(rmk/remove-lines-with-ignore-heading-tag)
 org-modules '(org-bbdb org-bibtex org-docview org-gnus org-info org-irc org-mhe org-rmail org-w3m org-mac-link)
 org-latex-packages-alist '(("" "color") ("" "listings"))
 org-ctrl-k-protect-subtree "ask"
 org-babel-tangle-lang-exts '(("latex" . "tex") ("emacs-lisp" . "el") ("elisp" . "el"))
 org-confirm-elisp-link-function 'yes-or-no-p
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-babel-after-execute-hook '(rmk/update-multiple-results-blocks)
 org-latex-listings t
 org-html-format-headline-function 'org-html-format-headline-default-function
 org-structure-template-alist '(("n" "#+BEGIN_NOTES\n?\n#+END_NOTES")
                                ("nb"
                                 ":PROPERTIES:\n:TITLE: And another thought... or: forgot to change the title again\n:DESCRIPTION: I should have changed that as well\n:CATEGORIES: thoughts\n:END:" "")
                                ("le" "#+end_src \n\n#+begin_src emacs-lisp" "<src lang=\"R\">\n\n</src>")
                                ("el" "#+begin_src emacs-lisp \n ?\n#+end_src" "<src lang=\"emacs-lisp\">\n\n</src>")
                                ("sh" "#+begin_src sh \n  ?\n#+end_src" "<src lang=\"sh\">\n\n</src>")
                                ("r" "#+begin_src R ?\n\n#+end_src" "<src lang=\"R\">\n\n</src>") ("s" "#+BEGIN_SRC ?\n\n#+END_SRC")
                                ("e" "#+BEGIN_EXAMPLE\n?\n#+END_EXAMPLE") ("q" "#+BEGIN_QUOTE\n?\n#+END_QUOTE") ("v" "#+BEGIN_VERSE\n?\n#+END_VERSE") ...)
 org-babel-load-languages '((R . t) (latex . t) (sh . t) (plantuml . t) (emacs-lisp . t) (sqlite . t) (octave . t))
 org-src-preserve-indentation t
 org-babel-post-tangle-hook '(org-babel-run-post-tangle-script org-babel-mark-file-as-tangled)
 org-html-format-inlinetask-function 'org-html-format-inlinetask-default-function
 org-agenda-mode-hook '(#[nil
                          "\302.\303	\304\305#\210\303	\306\307#\210\303	\310\311#\210\303	\312\313#\210\303	\314\315#\207"
                          [org-mouse-context-menu-function org-agenda-mode-map org-mouse-agenda-context-menu org-defkey [mouse-3]
                           org-mouse-show-context-menu [down-mouse-3] org-mouse-move-tree-start [C-mouse-4] org-agenda-earlier ...]
                          4]
                        )
 org-agenda-files '("~/org/notes.org")
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 org-confirm-babel-evaluate nil
 org-publish-project-alist '(("local" :base-directory "./" :base-extension "org" :publishing-directory "./pubHTML/" :recursive t :publishing-function ...)
                             ("EnergyBalance" :components ("EBorg" "EBatattach")) ("EBattach" :components ("EBoutput" "EBinst" "EBR" "EBfigures"))
                             ("EBorg" :base-directory "~/Documents/Projects/EnergyBalance/" :base-extension "org" :publishing-directory
                              "~/Documents/Projects/EnergyBalance/pubHTML/" :recursive nil :publishing-function ...)
                             ("EBoutput" :base-directory "~/Documents/Projects/EnergyBalance/output/" :base-extension any :publishing-directory
                              "~/Documents/Projects/EnergyBalance/pubHTML/output/" :publishing-function org-publish-attachment :recursive ...)
                             ("EBinst" :base-directory "~/Documents/Projects/EnergyBalance/inst/" :base-extension any :publishing-directory
                              "~/Documents/Projects/EnergyBalance/pubHTML/inst/" :publishing-function org-publish-attachment :recursive ...)
                             ("EBR" :base-directory "~/Documents/Projects/EnergyBalance/R/" :base-extension any :publishing-directory
                              "~/Documents/Projects/EnergyBalance/pubHTML/R/" :publishing-function org-publish-attachment :recursive ...)
                             ("EBfigures" :base-directory "~/Documents/Projects/EnergyBalance/figures/" :base-extension any :publishing-directory
                              "~/Documents/Projects/EnergyBalance/pubHTML/figures/" :publishing-function org-publish-attachment :recursive ...)
                             )
 )

-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :       +33 - (0)9 53 10 27 44
Cell:       +33 - (0)6 85 62 59 98
Fax :       +33 - (0)9 58 10 27 44

Fax (D):    +49 - (0)3 21 21 25 22 44

email:      Rainer@krugs.de

Skype:      RMkrug

PGP: 0x0F52F982

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 454 bytes --]

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

* Re: Bug: Error on preview of latex equation [8.3.2 (release_8.3.2-138-g679adc @ /Users/rainerkrug/.emacs.d/org-mode/lisp/)]
  2015-10-01 12:58 Bug: Error on preview of latex equation [8.3.2 (release_8.3.2-138-g679adc @ /Users/rainerkrug/.emacs.d/org-mode/lisp/)] Rainer M Krug
@ 2015-10-01 19:45 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2015-10-01 19:45 UTC (permalink / raw)
  To: Rainer M Krug; +Cc: emacs-orgmode

Hello,

Rainer M Krug <Rainer@krugs.de> writes:

> Sometimes after wo=rking in a document with many latex formulas I get,
> when trying to preview a new formula I get the folowing error:
>
> ,----
> | org-remove-if: Wrong type argument: number-or-marker-p, nil
> `----

Fixed, hopefully.


Regards,

-- 
Nicolas Goaziou

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

end of thread, other threads:[~2015-10-01 19:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-01 12:58 Bug: Error on preview of latex equation [8.3.2 (release_8.3.2-138-g679adc @ /Users/rainerkrug/.emacs.d/org-mode/lisp/)] Rainer M Krug
2015-10-01 19:45 ` Nicolas Goaziou

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