Re: Bug: refiling gobbles a newline and absorbs the next heading [9.1.9 (release_9.1.9-65-g5e4542 @ /Applications/Emacs.app/Contents/Resources/lisp/org/)]
Hello, For me, with my version, it is more than a visual problem. Before refiling, the Org buffer is: ``` * heading 1 ** TODO test* heading 2 * heading 3 ``` and after refiling to `heading 3`, it is: ``` * heading 1 * heading 3 ** TODO test* heading 2 ``` Doing `S-TAB` on the document does not change it in my version. Regards, Miguel On Sat, 11 Jan 2020 at 15:58 WET, Nicolas Goaziou wrote: > Hello, > > Miguel Morin writes: > >> It's interesting that you are unable to reproduce the result. I have >> Emacs 26.3 (9.0) on macOS Mojave 10.14.6. I have reproduced it with >> `emacs -q`, so the problem is not my init file. Then I don't know what >> the culprit is and am curious and available to try things to find it. > > OK. I can reproduce it. Actually, this is a _visual_ problem, the > document is not mangled at all. If you do S-TAB on the document you will > notice that everything is at the right place. > > I'm not saying there is no bug, but it is much less bad than I thought. > I have no clue about the reason for this. > > Regards,
Re: [O] Orgmode Latex Export with Babel/LilyPond
On Sun, 2020-01-12 at 10:43 +1300, adam wrote: > On Sun, 2020-01-12 at 09:04 +1300, adam wrote: > > > > On Sat, 2020-01-11 at 12:30 -0300, Jonathan Gregory wrote: > > > > > > > > > > > > On 11 Jan 2020, adam wrote: > > > > > > > > > > > > > > > > > > > Still no success in tangling the examples modal-cycle.org > > > > modal-cycle2.org > > > > shown here, > > > > https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-lilypond.html > > > > > > > > > > > > My current problem is Emacs rejecting the addition of either Lilypond > > > > or > > > > lilypond, in the org-babel-do-load-languages > > > > > > > > (org-babel-do-load-languages > > > > 'org-babel-load-languages > > > > '( > > > > (emacs-lisp . t) > > > > (shell . t) > > > > (org . t) > > > > (Lilypond . t) > > > > )) > > > > > > > > including either in the last line causes an error at Emacs startup, > > > > reported as, > > > > > > > > Warning (initialization): An error occurred while loading > > > > ‘/home/user/.emacs’: > > > > Symbol's value as variable is void: > > > > > > > > > > > Earlier in my .emacs init file, I had hopefully defined lilypond, thus > > > > > > > > (setq ly-nix-ly-path "lilypond") > > > > > > > > (add-to-list 'load-path "/usr/share/emacs/site-lisp/") > > > > > > > > (autoload 'LilyPond-mode "lilypond-mode") > > > > > > > > (setq auto-mode-alist > > > > (cons '("\\.ly$" . LilyPond-mode) auto-mode-alist)) > > > > > > > > (add-hook 'LilyPond-mode-hook (lambda () (turn-on-font-lock))) > > > > > > > > > > > > In /usr/share/emacs/site-lisp/ many lilypond related .el files > > > > are located, > > > > > > > > lilypond-font-lock.el > > > > lilypond-indent.el > > > > lilypond-init.el > > > > lilypond-mode.el > > > > lilypond-song.el > > > > lilypond-what-beat.el > > > > lilypond-words.el > > > > ltx-help.el > > > > ob-lilypond.el > > > > ob-Lilypond.el > > > > ob-lisp.el > > > > org-tests.el > > > > > > > > > > > > $ which lilypond is unhelpful, > > > > > > > > /usr/bin/lilypond > > > > > > > > > > > > The lilypond installation is at, > > > > > > > > /usr/share/lilypond/2.18.2/ > > > > > > > > > > > > Any advice or suggestions would be most welcome. > > > Version 9.1.9 comes with ob-lilypond.el. There's no ob-babel-lilypond.el > > > AFAIK. > > > Also, > > > where is ly-nix-ly-path and other ly-* variables defined? I don't see > > > these > > > variables. > > > > > Thank you. I'll look inside ob-lilypond.el for clues, variables to be > > defined. > > > > > > Org-mode version 9.1.9 (release_9.1.9-65 ...) @ > > /usr/share/emacs/26.3/lisp/org > > on Ubuntu 18.04 > > > > $ find / -name "ob*.el" locates only the ob-lilypond.el I downloaded > > from github > > > > > > Maybe I need a (require 'lilypond) somewhere, I was thinking. > > > > > > Its a new system here. Emacs was installed with Ubuntu's software manager, > > lilypond > > was installed with $ sudo apt install lilypond Neither were built from > > source. > > > > OK, my bad. When I look inside ob-lilypond.el I find I pulled a page of > markup > stuff. > Will grab a proper ob-lilypond.el That will improve matters. Improvement with correct ob-lilypond.el Now the (org-babel-do-load-languages ..) doesn't cause Emacs to report error at Emacs start-up. Presently, with examples modal-cycle.org modal-cycle-2.org modes-in-key-of-C.org I can C-c C-e l p export to PDF, but there's no music symbols. Also I have no M-x ly-* commands available. Org Customize Option, babel, lilypond, for org-babel-lilypond-commands is set to nil
export and split orgmode headers into separate md files?
Hi all For work specific needs at uni i have a need to take a comprehensive org file with hundreds of headers and split each header into separate .md files (with the header name as file name//first header in the md file). Has anyone done anything remotely similar? Or if not can someone point me in the right direction on how to even start dealing with this? thx a lot in advance any tips would be very much appreciated kind regards Z
Re: [O] Orgmode Latex Export with Babel/LilyPond
On Sun, 2020-01-12 at 09:04 +1300, adam wrote: > On Sat, 2020-01-11 at 12:30 -0300, Jonathan Gregory wrote: > > > > > > On 11 Jan 2020, adam wrote: > > > > > > > > > > > Still no success in tangling the examples modal-cycle.org > > > modal-cycle2.org > > > shown here, > > > https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-lilypond.html > > > > > > My current problem is Emacs rejecting the addition of either Lilypond or > > > lilypond, in the org-babel-do-load-languages > > > > > > (org-babel-do-load-languages > > > 'org-babel-load-languages > > > '( > > > (emacs-lisp . t) > > > (shell . t) > > > (org . t) > > > (Lilypond . t) > > > )) > > > > > > including either in the last line causes an error at Emacs startup, > > > reported as, > > > > > > Warning (initialization): An error occurred while loading > > > ‘/home/user/.emacs’: > > > Symbol's value as variable is void: > > > > > > > > Earlier in my .emacs init file, I had hopefully defined lilypond, thus > > > > > > (setq ly-nix-ly-path "lilypond") > > > > > > (add-to-list 'load-path "/usr/share/emacs/site-lisp/") > > > > > > (autoload 'LilyPond-mode "lilypond-mode") > > > > > > (setq auto-mode-alist > > > (cons '("\\.ly$" . LilyPond-mode) auto-mode-alist)) > > > > > > (add-hook 'LilyPond-mode-hook (lambda () (turn-on-font-lock))) > > > > > > > > > In /usr/share/emacs/site-lisp/ many lilypond related .el files > > > are located, > > > > > > lilypond-font-lock.el > > > lilypond-indent.el > > > lilypond-init.el > > > lilypond-mode.el > > > lilypond-song.el > > > lilypond-what-beat.el > > > lilypond-words.el > > > ltx-help.el > > > ob-lilypond.el > > > ob-Lilypond.el > > > ob-lisp.el > > > org-tests.el > > > > > > > > > $ which lilypond is unhelpful, > > > > > > /usr/bin/lilypond > > > > > > > > > The lilypond installation is at, > > > > > > /usr/share/lilypond/2.18.2/ > > > > > > > > > Any advice or suggestions would be most welcome. > > Version 9.1.9 comes with ob-lilypond.el. There's no ob-babel-lilypond.el > > AFAIK. Also, > > where is ly-nix-ly-path and other ly-* variables defined? I don't see these > > variables. > > > Thank you. I'll look inside ob-lilypond.el for clues, variables to be > defined. > > > Org-mode version 9.1.9 (release_9.1.9-65 ...) @ > /usr/share/emacs/26.3/lisp/org > on Ubuntu 18.04 > > $ find / -name "ob*.el" locates only the ob-lilypond.el I downloaded > from github > > > Maybe I need a (require 'lilypond) somewhere, I was thinking. > > > Its a new system here. Emacs was installed with Ubuntu's software manager, > lilypond > was installed with $ sudo apt install lilypond Neither were built from > source. > OK, my bad. When I look inside ob-lilypond.el I find I pulled a page of markup stuff. Will grab a proper ob-lilypond.el That will improve matters.
Re: Bug: refiling gobbles a newline and absorbs the next heading [9.1.9 (release_9.1.9-65-g5e4542 @ /Applications/Emacs.app/Contents/Resources/lisp/org/)]
dunno if this is useful but i encounter mangled visibility all the time. concatenated headings and ellipsis at top of screen are the two that i can think of that are most common. undo-tree might cause the concatenated headings. On 1/11/20, Nicolas Goaziou wrote: > Hello, > > Miguel Morin writes: > >> It's interesting that you are unable to reproduce the result. I have >> Emacs 26.3 (9.0) on macOS Mojave 10.14.6. I have reproduced it with >> `emacs -q`, so the problem is not my init file. Then I don't know what >> the culprit is and am curious and available to try things to find it. > > OK. I can reproduce it. Actually, this is a _visual_ problem, the > document is not mangled at all. If you do S-TAB on the document you will > notice that everything is at the right place. > > I'm not saying there is no bug, but it is much less bad than I thought. > I have no clue about the reason for this. > > Regards, > > -- > Nicolas Goaziou > > -- The Kafka Pandemic What is misopathy? https://thekafkapandemic.blogspot.com/2013/10/why-some-diseases-are-wronged.html The disease DOES progress. MANY people have died from it. And ANYBODY can get it at any time.
Re: [O] Orgmode Latex Export with Babel/LilyPond
On Sat, 2020-01-11 at 12:30 -0300, Jonathan Gregory wrote: > > On 11 Jan 2020, adam wrote: > > > > > Still no success in tangling the examples modal-cycle.org > > modal-cycle2.org > > shown here, > > https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-lilypond.html > > > > My current problem is Emacs rejecting the addition of either Lilypond or > > lilypond, in the org-babel-do-load-languages > > > > (org-babel-do-load-languages > > 'org-babel-load-languages > > '( > > (emacs-lisp . t) > > (shell . t) > > (org . t) > > (Lilypond . t) > > )) > > > > including either in the last line causes an error at Emacs startup, > > reported as, > > > > Warning (initialization): An error occurred while loading > > ‘/home/user/.emacs’: > > Symbol's value as variable is void: > > > > > Earlier in my .emacs init file, I had hopefully defined lilypond, thus > > > > (setq ly-nix-ly-path "lilypond") > > > > (add-to-list 'load-path "/usr/share/emacs/site-lisp/") > > > > (autoload 'LilyPond-mode "lilypond-mode") > > > > (setq auto-mode-alist > > (cons '("\\.ly$" . LilyPond-mode) auto-mode-alist)) > > > > (add-hook 'LilyPond-mode-hook (lambda () (turn-on-font-lock))) > > > > > > In /usr/share/emacs/site-lisp/ many lilypond related .el files > > are located, > > > > lilypond-font-lock.el > > lilypond-indent.el > > lilypond-init.el > > lilypond-mode.el > > lilypond-song.el > > lilypond-what-beat.el > > lilypond-words.el > > ltx-help.el > > ob-lilypond.el > > ob-Lilypond.el > > ob-lisp.el > > org-tests.el > > > > > > $ which lilypond is unhelpful, > > > > /usr/bin/lilypond > > > > > > The lilypond installation is at, > > > > /usr/share/lilypond/2.18.2/ > > > > > > Any advice or suggestions would be most welcome. > Version 9.1.9 comes with ob-lilypond.el. There's no ob-babel-lilypond.el > AFAIK. Also, > where is ly-nix-ly-path and other ly-* variables defined? I don't see these > variables. > Thank you. I'll look inside ob-lilypond.el for clues, variables to be defined. Org-mode version 9.1.9 (release_9.1.9-65 ...) @ /usr/share/emacs/26.3/lisp/org on Ubuntu 18.04 $ find / -name "ob*.el" locates only the ob-lilypond.el I downloaded from github Maybe I need a (require 'lilypond) somewhere, I was thinking. Its a new system here. Emacs was installed with Ubuntu's software manager, lilypond was installed with $ sudo apt install lilypond Neither were built from source.
Re: (setq org-hide-emphasis-markers t) + markup + lists + Visible only = blank list items
Hello, Michael Dixon writes: > I’m running Org 9.3.1 and Emacs 27.0.60, which I compile myself. > > I discovered that if I have (setq org-hide-emphasis-markers t) in my > config, and I create an ordered or unordered list where there are list > items only containing marked up text, and then I export Visible only > (C-v), those list items export as blank lines (other than the bullet > or number). > > For example, if I have an org file with the following: > > * Heading > This is some text. And following is a list. > 1. ~with code~ > 2. some text ~with code~ > 3. some text > > And back to a new paragraph > > It will export to LaTeX/PDF as: > Heading > This is some text. And following is a list. > > some text with code > some text > And back to a new paragraph > If I look at the LaTeX source that was exported for the list, this is what it > looks like: > \begin{enumerate} > \item > \item some text \texttt{with code} > \item some text > \end{enumerate} Fixed. Thank you. Regards, -- Nicolas Goaziou
Re: ol-notmuch.el first line, incorrect filename: org-notmuch.el
Hello, Duianto - writes: > Problem: > The first line of `ol-notmuch.el` shows the filename as: `org-notmuch.el` > https://code.orgmode.org/bzg/org-mode/src/3a6061e787efc9793ce1b7445a1f2502f679b40e/contrib/lisp/ol-notmuch.el#L1 Fixed. Thank you. Regards, -- Nicolas Goaziou
Re: Bug: refiling gobbles a newline and absorbs the next heading [9.1.9 (release_9.1.9-65-g5e4542 @ /Applications/Emacs.app/Contents/Resources/lisp/org/)]
Hello, Miguel Morin writes: > It's interesting that you are unable to reproduce the result. I have > Emacs 26.3 (9.0) on macOS Mojave 10.14.6. I have reproduced it with > `emacs -q`, so the problem is not my init file. Then I don't know what > the culprit is and am curious and available to try things to find it. OK. I can reproduce it. Actually, this is a _visual_ problem, the document is not mangled at all. If you do S-TAB on the document you will notice that everything is at the right place. I'm not saying there is no bug, but it is much less bad than I thought. I have no clue about the reason for this. Regards, -- Nicolas Goaziou
Re: [O] Orgmode Latex Export with Babel/LilyPond
On 11 Jan 2020, adam wrote: > Still no success in tangling the examples modal-cycle.org modal-cycle2.org > shown here, > https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-lilypond.html > > My current problem is Emacs rejecting the addition of either Lilypond or > lilypond, in the org-babel-do-load-languages > >(org-babel-do-load-languages > 'org-babel-load-languages > '( >(emacs-lisp . t) >(shell . t) >(org . t) >(Lilypond . t) >)) > > including either in the last line causes an error at Emacs startup, reported > as, > >Warning (initialization): An error occurred while loading > ‘/home/user/.emacs’: >Symbol's value as variable is void: > > Earlier in my .emacs init file, I had hopefully defined lilypond, thus > >(setq ly-nix-ly-path "lilypond") > >(add-to-list 'load-path "/usr/share/emacs/site-lisp/") > >(autoload 'LilyPond-mode "lilypond-mode") > >(setq auto-mode-alist > (cons '("\\.ly$" . LilyPond-mode) auto-mode-alist)) > >(add-hook 'LilyPond-mode-hook (lambda () (turn-on-font-lock))) > > > In /usr/share/emacs/site-lisp/ many lilypond related .el files > are located, > >lilypond-font-lock.el >lilypond-indent.el >lilypond-init.el >lilypond-mode.el >lilypond-song.el >lilypond-what-beat.el >lilypond-words.el >ltx-help.el >ob-lilypond.el >ob-Lilypond.el >ob-lisp.el >org-tests.el > > > $ which lilypond is unhelpful, > >/usr/bin/lilypond > > > The lilypond installation is at, > >/usr/share/lilypond/2.18.2/ > > > Any advice or suggestions would be most welcome. Version 9.1.9 comes with ob-lilypond.el. There's no ob-babel-lilypond.el AFAIK. Also, where is ly-nix-ly-path and other ly-* variables defined? I don't see these variables. -- Jonathan
Re: [O] Orgmode Latex Export with Babel/LilyPond
On 20 Apr 2019, Jakob Schöttl wrote: > Hi, > > I'm trying (second attempt), to setup orgmode to export PDFs with > images generated by Babel/LilyPond. > > I followed the setup instructions here: > > https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-lilypond.html > > I have > > a recent emacs (Arch Linux), > > ~/.emacs file with > > (org-babel-do-load-languages > 'org-babel-load-languages > '((lilypond t))) > > (although I saw many other snippets where there is a "." between the > (lilypond t)). I tried both variants. > > I tried also tried (require 'lilypond) instead > org-babel-do-load-languages which caused an error. > > I pressed C-c C-e l p -> "PDF file produced." > > But no images are generated and no images appear in the PDF. Only > plain source code. > > Any ideas? > Thank you! > > - Jakob I tried the first example with emacs -Q using Org versions 9.1.9 and 9.3.1, and there were a few things I had to change to generate the image correctly after C-c C-e l p: - Add `:results file :exports results` to the header, - change \relative c’ to \relative c', and - add the missing the #+end_src part. The configuration I used: (add-to-list 'load-path "/usr/share/emacs/site-lisp") (require 'lilypond-mode) (org-babel-do-load-languages 'org-babel-load-languages '((lilypond . t))) -- Jonathan
Re: [O] Orgmode Latex Export with Babel/LilyPond
Still no success in tangling the examples modal-cycle.org modal-cycle2.org shown here, https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-lilypond.html My current problem is Emacs rejecting the addition of either Lilypond or lilypond, in the org-babel-do-load-languages (org-babel-do-load-languages 'org-babel-load-languages '( (emacs-lisp . t) (shell . t) (org . t) (Lilypond . t) )) including either in the last line causes an error at Emacs startup, reported as, Warning (initialization): An error occurred while loading ‘/home/user/.emacs’: Symbol's value as variable is void: