[O] [BUG] there are weird offset when org-insert-structure-template
The original text: , | We define refs the same way we define atoms, but the two are used rather differently. | Let's take a quick look at how they work below. | | (def names (ref [])) | | (dosync | (ref-set names ["John"]) | (alter names #(if (not-empty %) | (conj % "Jane") %))) | | In this code, we define a ref called names, then open a transaction using the dosync statement. Inside the transaction we set names to a vector with the value "John". Next, we call alter to check if names is not empty and add "Jane" to the vector of the names if that's the case. | | Note that since this is happening inside a transaction, the check for emptiness depends on the existing state along with any state built up within the same transaction. If we tried to add or remove a name in a different transaction, it would have no visible effect on ours. In case of a collision, one of the transactions would end up being retried. ` Then I use region select code from (def to ))), then press [C-c C-, s]. It has weird offset like this: , | #+begin_src | (def names (ref [])) | | (dosync | (ref-set names ["John"]) | (alter names #(if (not-empty %) | (conj % "Jane") %))) | #+end_src ` But when I region select by backward from ))) to (def, it works fine. no offset. -- [ stardiviner ] don't need to convince with trends. Blog: https://stardiviner.github.io/ IRC(freenode): stardiviner GPG: F09F650D7D674819892591401B5DF1C95AE89AC3
Re: [O] how putting \begin{document} at the right place to export a specific latex class ?
Is this something you need on a permanent basis or is it just for one document you need to produce? If it is something you need on a permanent basis, then something like what I have in my init.el file might work. (beware of the formatting here - mail is likely to make a mess of it, so it may be easier to copy the below into your *scratch* buffer and read it there.). This is just an example of how you can 'tweak' the default org setup to use specific Latex styles and classes. There are other ways to do it, but this one has worked the best for me over the long term. << (setq org-latex-classes '(("beamer" "\\documentclass[presentation]{beamer}" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")) ("article" "\\documentclass[12pt]{hitec} [DEFAULT-PACKAGES] [PACKAGES] [NO-EXTRA] \\settextfraction{0.95}\n" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}")) ("report" "\\documentclass[11pt]{report}" ("\\part{%s}" . "\\part*{%s}") ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")) ("book" "\\documentclass[11pt]{book}" ("\\part{%s}" . "\\part*{%s}") ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")) ("une-article" "\\documentclass[a4paper,12pt]{scrartcl} [DEFAULT-PACKAGES] [PACKAGES] \\usepackage[margin=1.5cm]{geometry} [EXTRA]\n" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}")) ("une-logo" "\\documentclass[a4paper,12pt]{scrartcl} [DEFAULT-PACKAGES] [PACKAGES] \\usepackage[margin=1.5cm]{geometry} [EXTRA] \\definecolor{unegreen}{HTML}{7AB800} \\definecolor{Black}{HTML}{00} \\definecolor{White}{HTML}{FF} \\definecolor{dimgrey}{HTML}{696969} \\makeatletter \\def\\@maketitle{ \\noindent \\begin{minipage}[c][4cm][t]{\\linewidth} \\colorbox{Black}{% \\begin{minipage}[t][4cm][c]{4cm} \\flushleft \\includegraphics{~/.emacs.d/img/unelogo_medium.png} \\end{minipage}} \\colorbox{unegreen}{% \\begin{minipage}[t][4cm][c]{13.5cm} \\flushright \\Large \\textbf{\\color{White}{\\@title}} \\vspace{4pt} \\small \\color{White}{\\@author} \\small \\color{White}{\\@date} \\end{minipage}} \\end{minipage}} \\makeatother\n" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}")) ("old-article" "\\documentclass[11pt]{article}" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))) ) > The above defines a number of org document types I can use in exports. You have - beamer :: presentation - article :: which is modified from default to use the 'hitec' Note the \settestfraction line used to modify the behaviour of the class. - report :: standard report - book :: standard book - une-article :: customised work document using the scrartcl Korma script class - une-logo :: A work document which includes a logo. This last one uses - \maketitle and \minipage as well as other standard commands, all of - which need to be inserted into the latex document before the \begin{}. Essentially, you can replace this with whatever latex commands you need before the \begin{document} line. To use this new class, I put the following in my org document #+LATEX_CLASS: une-logo and lines for #+TITLE:, #+SUBTITLE: etc. Obviously, you will need to work out what needs to be added and depending on what it is, you may need to modify some of the
Re: [O] Support flymake with org-lint
Hello, Alex Branham writes: > Here's a patch that adds support for flymake in Emacs 26 and greater. Thank you. Some comments follow. > It uses org-lint.el as the backend. It can be pretty slow if you have > a large buffer open, so I don't think I'd recommend enabling it by > default. It's nice to be able to use e.g. flymake-goto-next-error to > navigate around the buffer though. According to `flymake-diagnostic-functions', backend functions can use asynchronous processes. This would be more usable if large buffers were checked asynchronously. > Subject: [PATCH] Add support for flymake > > * lisp/org-flymake.el (org-flymake-org-lint-backend): New function > * lisp/org-flymake.el (org-flymake-setup): New function It should be * lisp/org-flymake.el: New file. However, it could go in "org-lint.el" directly, if useful enough, instead of a new library. This is also more logical since it uses internal functions and variables from there. > +(defun org-flymake-org-lint-backend (report-fn &rest _args) > + "A Flymake backend for `org-lint'. > +Calls REPORT-FN directly." > + (let* ((report (org-lint--generate-reports > + (current-buffer) org-lint--checkers)) > + (report (mapcar > + (lambda (c) (seq-into (nth 0 (cdr c)) 'list)) > + report))) > +(funcall report-fn > + (cl-loop > + for (line _trust description _checkers) in report > + for (beg . end) = (flymake-diag-region (current-buffer) > (string-to-number line)) > + collect > + (flymake-make-diagnostic (current-buffer) beg end :note > description))) > +report)) The following may be more idiomatic. At least it uses neither cl-lib nor seq: (funcall report-fn ;; Convert Lint reports into Flymake diagnostic objects. (mapcar (lambda (report) (pcase-let* ((`(,_ [,line ,_ ,description ,_]) report) (`(,beg . ,end) (flymake-diag-region (current-buffer) (string-to-number line (flymake-make-diagnostic (current-buffer) beg end :note description))) (org-lint--generate-reports (current-buffer) org-lint--checkers))) Anyway, I would suggest to focus on asynchronous report generation. WDYT? Regards, -- Nicolas Goaziou
Re: [O] how putting \begin{document} at the right place to export a specific latex class ?
Joseph Vidal-Rosset writes: > Here is my problem: for a specific latex class (xxllp.cls), I have > difficulties to get the \begin{document} at the right place in this > add-to-list: > > (add-to-list 'org-latex-classes > '("xxllp" >"\\documentclass\[oumk,xs]\{xxllp\} > [NO-DEFAULT-PACKAGES] > [NO-PACKAGES] > \\usepackage{amsmath} > \\usepackage{amssymb} > \\usepackage{blabla} > \\usepackage{blablabla} > \\pagestyle{myheadings}\\markboth{Author}{Title of the paper} > \\LaLPonline{??} \\setcounter{page}{1} > \\thispagestyle{LLPrrobezissn} \\label{p} > \\AuthorTitle{Joseph Vidal-Rosset}{\\uppercase{Title of the paper}}" >("\\section\{%s\} . \\section*\{%s\}") >("\\subsection\{%s\} . \\subsection*\{%s\}") > )) > > > For this class, the \begin{document} should be just after > \\pagestyle{myheadings}\\markboth{Author}{Title of the paper} > and just before > \\LaLPonline{??} \\setcounter{page}{1} \\thispagestyle{LLPrrobezissn} > \\label{p} > I don't think you can do that with org-latex-classes: you can define the header part (i.e. some of what goes before the \begin{document}_ and you can define how to map headers at different depths to the latex sectioning structure, but you cannot do precise placement the way that you are trying to. There may be a better way now, but in the old days I used to redefine the org-latex-title-command variable. It gets emitted after the \begin{document} so you can do something like this (setq org-latex-title-command "\\foo\\maketitle") to insert additional stuff. -- Nick "There are only two hard problems in computer science: cache invalidation, naming things, and off-by-one errors." -Martin Fowler
Re: [O] Org agenda started behaving badly
Marcin Borkowski writes: > Hi all, > > so out of nowhere my org agenda started behaving in a strange way. It > seems not to respect my TODO-keywords settings: > > (setq org-todo-keywords > '((sequence "TODO(t!)" "DONE(d!)") > (sequence "SOMEDAY(s!)") > (sequence "CANCELLED(c@)") > (sequence "WAIT(w!)" "|"))) > > i.e., it now shows all the "CANCELLED" items as if "CANCELLED" was not > a todo keyword at all. When I visit the offending file and issue M-x > normal-mode, everything is back to normal again. > What does C-h v org-todo-keywords RET say when you see the problem? Is it possible that there is a local variable shadowing the global setting? > Now the strange thing is, I haven't updated Org in a while. I did now, > but the problem persists. I am on > > Org mode version 9.1.13 (release_9.1.13-791-g842002 @ [...]) > > and > > GNU Emacs 27.0.50 (commit f1e65b7) > > I also can't remember changing my config (but it's quite possible that > I'm forgetting something). > > What I did do is I updated some packages through the Emacs package > manager, but I don't think this is related. > > Now I know this is a bit vague, but does anyone have any idea what might > cause this, or how I could try to debug this problem? > > Of course, I have a lot of Org-mode-related customizations in my > init.el, but I don't think they are related. If I'm wrong, I can post > them here, of course. > > Best, > > -- > Marcin Borkowski > http://mbork.pl > > -- Nick "There are only two hard problems in computer science: cache invalidation, naming things, and off-by-one errors." -Martin Fowler
Re: [O] how putting \begin{document} at the right place to export a specific latex class ?
I mean to put this in your init file: (add-to-list 'org-latex-classes '("xxllp" "\\documentclass[oumk,xs]{xxllp} [NO-DEFAULT-PACKAGES] [NO-PACKAGES] \\usepackage{amsmath} \\usepackage{amssymb} \\usepackage{blabla} \\usepackage{blablabla} \\pagestyle{myheadings}\\markboth{Author}{Title of the paper} " ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))) And then in your org file: #+latex_class: xxllp #+options: toc:nil #+BEGIN_EXPORT latex \\LaLPonline{??} \\setcounter{page}{1} \\thispagestyle{LLPrrobezissn} \\label{p} \AuthorTitle{Joseph Vidal-Rosset}{\uppercase{Title of the paper}} #+END_EXPORT plus rest of your document. That exports as: % Created 2018-06-11 Mon 09:50 % Intended LaTeX compiler: pdflatex \documentclass[oumk,xs]{xxllp} \usepackage{amsmath} \usepackage{amssymb} \usepackage{blabla} \usepackage{blablabla} \pagestyle{myheadings}\markboth{Author}{Title of the paper} \author{John Kitchin} \date{\today} \title{} \begin{document} \\LaLPonline{??} \\setcounter{page}{1} \\thispagestyle{LLPrrobezissn} \\label{p} \AuthorTitle{Joseph Vidal-Rosset}{\uppercase{Title of the paper}} the rest of your document... \end{document} John --- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu On Mon, Jun 11, 2018 at 8:29 AM, Joseph Vidal-Rosset < joseph.vidal.ros...@gmail.com> wrote: > Le lun. 11 juin 2018 à 07:23:54 , John Kitchin > a envoyé ce message: > > Why can’t you just put that last one in your org file? > > Dear John, > > I confess that I do not understand the solution you suggest. Do you > suggest to me to put all the headers of this class in an org file? > Sorry to be so slow. > > Best wishes, > > -- > Joseph >
Re: [O] how putting \begin{document} at the right place to export a specific latex class ?
Le lun. 11 juin 2018 à 07:23:54 , John Kitchin a envoyé ce message: > Why can’t you just put that last one in your org file? Dear John, I confess that I do not understand the solution you suggest. Do you suggest to me to put all the headers of this class in an org file? Sorry to be so slow. Best wishes, -- Joseph
Re: [O] how putting \begin{document} at the right place to export a specific latex class ?
Why can’t you just put that last one in your org file? On Mon, Jun 11, 2018 at 7:17 AM Joseph Vidal-Rosset < joseph.vidal.ros...@gmail.com> wrote: > Thank you John. Therefore I am afraid I will have to give up the export of > this latex class. Too bad. > > Jo. > > 2018-06-11 16:01 GMT+02:00 John Kitchin : > >> It looks like that is probably not possible. By your description, >> everything after \\pagestyle{myheadings}\\markboth{Author}{Title of the >> paper} belongs in the document, and this variable is for setting the header. >> >> \\LaLPonline{??} \\setcounter{page}{1} \\thispagestyle{LLPrrobezissn} >> \\label{p} should probably go in your org file as the first line. >> >> John >> >> --- >> Professor John Kitchin >> Doherty Hall A207F >> Department of Chemical Engineering >> Carnegie Mellon University >> Pittsburgh, PA 15213 >> 412-268-7803 >> @johnkitchin >> http://kitchingroup.cheme.cmu.edu >> >> >> On Mon, Jun 11, 2018 at 5:42 AM, Joseph Vidal-Rosset < >> joseph.vidal.ros...@gmail.com> wrote: >> >>> Hello, >>> >>> Here is my problem: for a specific latex class (xxllp.cls), I have >>> difficulties to get the \begin{document} at the right place in this >>> add-to-list: >>> >>> (add-to-list 'org-latex-classes >>> '("xxllp" >>>"\\documentclass\[oumk,xs]\{xxllp\} >>> [NO-DEFAULT-PACKAGES] >>> [NO-PACKAGES] >>> \\usepackage{amsmath} >>> \\usepackage{amssymb} >>> \\usepackage{blabla} >>> \\usepackage{blablabla} >>> \\pagestyle{myheadings}\\markboth{Author}{Title of the paper} >>>\\LaLPonline{??} \\setcounter{page}{1} >>> \\thispagestyle{LLPrrobezissn} \\label{p} >>> \\AuthorTitle{Joseph Vidal-Rosset}{\\uppercase{Title of the paper}}" >>>("\\section\{%s\} . \\section*\{%s\}") >>>("\\subsection\{%s\} . \\subsection*\{%s\}") >>>)) >>> >>> >>> For this class, the \begin{document} should be just after >>> \\pagestyle{myheadings}\\markboth{Author}{Title of the paper} >>> and just before >>> \\LaLPonline{??} \\setcounter{page}{1} \\thispagestyle{LLPrrobezissn} >>> \\label{p} >>> >>> but because I do not understand clearly the syntax of the function, I >>> do not succeed and the export does not work correctly. >>> >>> Any suggestion? >>> >>> -- >>> Joseph >>> >>> >> > -- John --- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu
Re: [O] how putting \begin{document} at the right place to export a specific latex class ?
Thank you John. Therefore I am afraid I will have to give up the export of this latex class. Too bad. Jo. 2018-06-11 16:01 GMT+02:00 John Kitchin : > It looks like that is probably not possible. By your description, > everything after \\pagestyle{myheadings}\\markboth{Author}{Title of the > paper} belongs in the document, and this variable is for setting the header. > > \\LaLPonline{??} \\setcounter{page}{1} \\thispagestyle{LLPrrobezissn} > \\label{p} should probably go in your org file as the first line. > > John > > --- > Professor John Kitchin > Doherty Hall A207F > Department of Chemical Engineering > Carnegie Mellon University > Pittsburgh, PA 15213 > 412-268-7803 > @johnkitchin > http://kitchingroup.cheme.cmu.edu > > > On Mon, Jun 11, 2018 at 5:42 AM, Joseph Vidal-Rosset < > joseph.vidal.ros...@gmail.com> wrote: > >> Hello, >> >> Here is my problem: for a specific latex class (xxllp.cls), I have >> difficulties to get the \begin{document} at the right place in this >> add-to-list: >> >> (add-to-list 'org-latex-classes >> '("xxllp" >>"\\documentclass\[oumk,xs]\{xxllp\} >> [NO-DEFAULT-PACKAGES] >> [NO-PACKAGES] >> \\usepackage{amsmath} >> \\usepackage{amssymb} >> \\usepackage{blabla} >> \\usepackage{blablabla} >> \\pagestyle{myheadings}\\markboth{Author}{Title of the paper} >>\\LaLPonline{??} \\setcounter{page}{1} >> \\thispagestyle{LLPrrobezissn} \\label{p} >> \\AuthorTitle{Joseph Vidal-Rosset}{\\uppercase{Title of the paper}}" >>("\\section\{%s\} . \\section*\{%s\}") >>("\\subsection\{%s\} . \\subsection*\{%s\}") >>)) >> >> >> For this class, the \begin{document} should be just after >> \\pagestyle{myheadings}\\markboth{Author}{Title of the paper} >> and just before >> \\LaLPonline{??} \\setcounter{page}{1} \\thispagestyle{LLPrrobezissn} >> \\label{p} >> >> but because I do not understand clearly the syntax of the function, I >> do not succeed and the export does not work correctly. >> >> Any suggestion? >> >> -- >> Joseph >> >> >
Re: [O] how putting \begin{document} at the right place to export a specific latex class ?
It looks like that is probably not possible. By your description, everything after \\pagestyle{myheadings}\\markboth{Author}{Title of the paper} belongs in the document, and this variable is for setting the header. \\LaLPonline{??} \\setcounter{page}{1} \\thispagestyle{LLPrrobezissn} \\label{p} should probably go in your org file as the first line. John --- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu On Mon, Jun 11, 2018 at 5:42 AM, Joseph Vidal-Rosset < joseph.vidal.ros...@gmail.com> wrote: > Hello, > > Here is my problem: for a specific latex class (xxllp.cls), I have > difficulties to get the \begin{document} at the right place in this > add-to-list: > > (add-to-list 'org-latex-classes > '("xxllp" >"\\documentclass\[oumk,xs]\{xxllp\} > [NO-DEFAULT-PACKAGES] > [NO-PACKAGES] > \\usepackage{amsmath} > \\usepackage{amssymb} > \\usepackage{blabla} > \\usepackage{blablabla} > \\pagestyle{myheadings}\\markboth{Author}{Title of the paper} >\\LaLPonline{??} \\setcounter{page}{1} > \\thispagestyle{LLPrrobezissn} \\label{p} > \\AuthorTitle{Joseph Vidal-Rosset}{\\uppercase{Title of the paper}}" >("\\section\{%s\} . \\section*\{%s\}") >("\\subsection\{%s\} . \\subsection*\{%s\}") >)) > > > For this class, the \begin{document} should be just after > \\pagestyle{myheadings}\\markboth{Author}{Title of the paper} > and just before > \\LaLPonline{??} \\setcounter{page}{1} \\thispagestyle{LLPrrobezissn} > \\label{p} > > but because I do not understand clearly the syntax of the function, I > do not succeed and the export does not work correctly. > > Any suggestion? > > -- > Joseph > >
[O] Org mode in combination with emacs follow-mode is terrible
Hi, I'm using emacs (git checkout v. 27.0.50) and Org mode (git checkout release_9.1.13-760-g8def68). My typical setup is to use a maximized or full screen emacs frame split into five windows positioned vertically one next to the other. All five windows display one and the same file, that is opened using emacs follow-mode, so that every window is displaying a portion of the same file in a continuous manner. Yet, there seems to be an incompatibility between Org mode and follow-mode: there is terrible lag with every single key input (on a very fast quad core machine); every key stroke produces a 100% processor load. It would seem that this is even worse, when working on portions towards the end of the file. If I deactivate follow-mode, the problem disappears. Anyone got an idea what's going on here and how to debug that? Thanks Gerald. - Sent with mu4e
[O] how putting \begin{document} at the right place to export a specific latex class ?
Hello, Here is my problem: for a specific latex class (xxllp.cls), I have difficulties to get the \begin{document} at the right place in this add-to-list: (add-to-list 'org-latex-classes '("xxllp" "\\documentclass\[oumk,xs]\{xxllp\} [NO-DEFAULT-PACKAGES] [NO-PACKAGES] \\usepackage{amsmath} \\usepackage{amssymb} \\usepackage{blabla} \\usepackage{blablabla} \\pagestyle{myheadings}\\markboth{Author}{Title of the paper} \\LaLPonline{??} \\setcounter{page}{1} \\thispagestyle{LLPrrobezissn} \\label{p} \\AuthorTitle{Joseph Vidal-Rosset}{\\uppercase{Title of the paper}}" ("\\section\{%s\} . \\section*\{%s\}") ("\\subsection\{%s\} . \\subsection*\{%s\}") )) For this class, the \begin{document} should be just after \\pagestyle{myheadings}\\markboth{Author}{Title of the paper} and just before \\LaLPonline{??} \\setcounter{page}{1} \\thispagestyle{LLPrrobezissn} \\label{p} but because I do not understand clearly the syntax of the function, I do not succeed and the export does not work correctly. Any suggestion? -- Joseph
Re: [O] Error in emacs 26.1 when publishing to html
Hello Pascal. On Mon, Jun 11, 2018, 4:29 AM Pascal Quesseveur wrote: > Hello, > > I would like to report the following problem. > > I use emacs 26.1, with org-mode version 9.1.9 on Windows. > > Using emacs with no customization (-Q option) I get an error when > publishing an Org file to html. Org asks for htmlize. > htmlize.el is required for ox-html exports, especially if you export src blocks. You need to have htmlize installed in the default load-path (you will need to do that much customization in emacs -Q sessions too). > , > | org-babel-exp process emacs-lisp at position 10935... > | org-babel-exp process nil at position 11208... > | org-babel-exp process emacs-lisp at position 11275... > | org-html-fontify-code: Please install htmlize from > https://github.com/hniksic/emacs-htmlize > ` > With htmlize loaded, there is no problem. > Correct. That is intended. You need htmlize installed if you have export elements that need fontification/syntax highlighting, like code blocks. > -- Kaushal Modi
Re: [O] Spurious "Non-existent agenda file" message?
Hi John, The problem didn't occur this morning when I constructed the agenda, so I suspect you may be right about it having to do with some transitory state. However, I couldn't provoke the error by creating unsaved buffer with the appropriate name, but I shall look more carefully at what buffers are open next time the problem crops up. Thanks Loris John Kitchin writes: > Sometimes I see this when a buffer is open to a file that has never > been saved. This can happen when I start a new org file and try to do > some agenda thing before I save it, or when some function/process > opens an org-file in a new directory for example, and an agenda thing > happens before it has been saved. > > You could check to see if there is a refile.org buffer open (not > necessarily to the existing file, just one named refile.org) but that > has not been saved. I don't know why such a buffer would be open, but > if it is, it might be a cause of that problem. > > John > > --- > Professor John Kitchin > Doherty Hall A207F > Department of Chemical Engineering > Carnegie Mellon University > Pittsburgh, PA 15213 > 412-268-7803 > @johnkitchin > http://kitchingroup.cheme.cmu.edu > > On Fri, Jun 8, 2018 at 12:38 AM, Loris Bennett > wrote: > > Hi, > > Suddenly, maybe after an update to Org 9.1.13, I get the error > > Non-existent agenda file refile.org. [R]emove from list or [A]bort? > > when generating the agenda. However, the file exists (and has done for > years). If I press 'R', the agenda is built, but the offending file is > not removed and entries from the file are included in the agenda. > > The entry is the 3rd of 3 files. I added a 4th to check whether it is > an off-by-one error, but still only the 3rd entries is considered > non-existent. > > If I add a file to 'org-agenda-files' which really is missing, I get the > error, but when I press 'R' the entry really is removed from the list. > Even if I remove 'refile.org' from the list, I still get the error that > 'refile.org' is missing. > > Any ideas what I could try next? > > Baffled, > > Loris > > -- > This signature is currently under construction. > > -- Dr. Loris Bennett (Mr.) ZEDAT, Freie Universität Berlin Email loris.benn...@fu-berlin.de
[O] Error in emacs 26.1 when publishing to html
Hello, I would like to report the following problem. I use emacs 26.1, with org-mode version 9.1.9 on Windows. Using emacs with no customization (-Q option) I get an error when publishing an Org file to html. Org asks for htmlize. , | org-babel-exp process emacs-lisp at position 10935... | org-babel-exp process nil at position 11208... | org-babel-exp process emacs-lisp at position 11275... | org-html-fontify-code: Please install htmlize from https://github.com/hniksic/emacs-htmlize ` With htmlize loaded, there is no problem. -- Pascal Quesseveur pques...@gmail.com