How to avoid "Listing 1" on all code examples in org2blog export to wordpress?
Platform: GNU Emacs 26.3 (build 1, i686-w64-mingw32) of 2019-08-29 Org mode version 9.1.9 (release_9.1.9-65-g5e4542 @ c:/ProgramFiles/emacs-26.3-i686/share/emacs/26.3/lisp/org/) Org2Blog 1.1.1 When I export to wordpress I get "Listing 1" on all text or code examples in the wordpress blog, se e.g. https://steinar.bang.priv.no/2019/11/30/rewriting-applications-to-use-pax-jdbc-config-and-liquibase/ Is there a way to lose the "Listing 1" text completely? Or failing that: is there a way to increment the number so that they aren't all "1"? Thanks!
Re: Bug: wsl org-open-at-point [9.1.14 (9.1.14-9-g131531-elpa @ /home/boss5/.emacs.d/elpa/org-20181112/)]
Sent the message too quickly. Obviously, you will have to adapt the paths in w32-shell-execute with your own setup and the location of files you want to open. WSL allows different options to mount your NTFS drive or to create links between directories. Regards, Fabrice Le ven. 27 déc. 2019 à 18:25, Fabrice Popineau < fabrice.popin...@centralesupelec.fr> a écrit : > Hi, > > I had to solve this problem too. > > I used these functions: > > (defun w32-shell-execute (operation document parameters > show-flag) > (if (and operation (not (string= "open" operation))) > (error "Don't know how to %s %s" operation document) > (call-process "/mnt/c/Windows/System32/cmd.exe" nil nil t "/c" > "start" "\"\"" > (concat "" > (replace-regexp-in-string "^/mnt/c/" "c:/" > > (replace-regexp-in-string "^\\(/mnt/c\\)?/home/Fabrice/" "c:/home/" > document)) > "" > (defun wsl-open-url (url args) > (w32-shell-execute "open" url)) > > (setq browse-url-browser-function #'wsl-open-url) > (setq browse-url-mailto-function #'wsl-open-url) > > Regards, > > Fabrice > > Le ven. 27 déc. 2019 à 18:10, Steve Miano a > écrit : > >> On WSL, using emacs 25.1, in org-mode there is a bug/design issue. >> >> It the issue is: >> When opening a link in org-mode using C-c C-o, org-open-at-point doesn't >> work. It does find the browser, if you have set >> >> (setq browse-url-firefox-program "/mnt/c/PROGRA~1/MOZILL~1/firefox.exe") >> >> and does run the process, but it doesn't bring up a browser. You can >> see the process in list-processes and if you run that command in the >> console it works, but in org-mode the console never show and the >> process remains. >> >> The function browse-url-default-browse finds and runs the correct >> browser. However, it runs the browser using the wrong command >> depending on the case. If you are on WSL, without the graphical >> interface, you need to run the shell-command to use the windows >> browser. This is how it is done when it detects cygwin using >> system-type. However, System-type cannot be used to detect WSL because >> it doesn't find that you are on windows. The uname command detects it. >> >> Obviously this isn't straight forward as in different situations you >> want to do different things, graphical vs non-graphical. Perhaps >> modify the function which sets system-type to return wsl then detect >> graphical environment and use the non shell-command approach? >> >> I humbly bring this to your attention. Thanks in advance. >> >> >> Emacs : GNU Emacs 25.1.1 (x86_64-pc-linux-gnu, GTK+ Version 3.22.11) >> of 2017-09-15, modified by Debian >> Package: Org mode version 9.1.14 (9.1.14-9-g131531-elpa @ >> /home//.emacs.d/elpa/org-20181112/) >> >> current state: >> == >> (setq >> org-src-lang-modes '(("python" . python) ("plantuml" . fundamental) >> ("ocaml" . tuareg) ("elisp" . emacs-lisp) ("ditaa" . artist) >> ("asymptote" . asy) >>("dot" . fundamental) ("sqlite" . sql) ("calc" . >> fundamental) ("C" . c) ("cpp" . c++) ("C++" . c++) ("screen" . >> shell-script) >>("shell" . sh) ("bash" . sh)) >> org-tab-first-hook '(org-babel-hide-result-toggle-maybe >> org-babel-header-arg-expand) >> org-babel-results-keyword "results" >> org-speed-command-hook '(org-speed-command-activate >> org-babel-speed-command-activate) >> org-occur-hook '(org-first-headline-recenter) >> org-metaup-hook '(org-babel-load-in-session-maybe) >> org-log-done t >> org-confirm-shell-link-function 'yes-or-no-p >> org-link-search-must-match-exact-headline nil >> org-default-notes-file "~/org/notes.org" >> org-after-todo-state-change-hook '(org-clock-out-if-current) >> org-from-is-user-regexp "\\" >> 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-table-use-standard-references t >> org-font-lock-set-keywor >> >> >> > > -- > Fabrice Popineau > - > CentraleSupelec > Département Informatique > 3, rue Joliot Curie > 91192 Gif/Yvette Cedex > Tel direct : +33 (0) 169851950 > Standard : +33 (0) 169851212 > -- > > -- Fabrice Popineau - CentraleSupelec Département Informatique 3, rue Joliot Curie 91192 Gif/Yvette Cedex Tel direct : +33 (0) 169851950 Standard : +33 (0) 169851212 --
Re: Bug: wsl org-open-at-point [9.1.14 (9.1.14-9-g131531-elpa @ /home/boss5/.emacs.d/elpa/org-20181112/)]
Hi, I had to solve this problem too. I used these functions: (defun w32-shell-execute (operation document parameters show-flag) (if (and operation (not (string= "open" operation))) (error "Don't know how to %s %s" operation document) (call-process "/mnt/c/Windows/System32/cmd.exe" nil nil t "/c" "start" "\"\"" (concat "" (replace-regexp-in-string "^/mnt/c/" "c:/" (replace-regexp-in-string "^\\(/mnt/c\\)?/home/Fabrice/" "c:/home/" document)) "" (defun wsl-open-url (url args) (w32-shell-execute "open" url)) (setq browse-url-browser-function #'wsl-open-url) (setq browse-url-mailto-function #'wsl-open-url) Regards, Fabrice Le ven. 27 déc. 2019 à 18:10, Steve Miano a écrit : > On WSL, using emacs 25.1, in org-mode there is a bug/design issue. > > It the issue is: > When opening a link in org-mode using C-c C-o, org-open-at-point doesn't > work. It does find the browser, if you have set > > (setq browse-url-firefox-program "/mnt/c/PROGRA~1/MOZILL~1/firefox.exe") > > and does run the process, but it doesn't bring up a browser. You can > see the process in list-processes and if you run that command in the > console it works, but in org-mode the console never show and the > process remains. > > The function browse-url-default-browse finds and runs the correct > browser. However, it runs the browser using the wrong command > depending on the case. If you are on WSL, without the graphical > interface, you need to run the shell-command to use the windows > browser. This is how it is done when it detects cygwin using > system-type. However, System-type cannot be used to detect WSL because > it doesn't find that you are on windows. The uname command detects it. > > Obviously this isn't straight forward as in different situations you > want to do different things, graphical vs non-graphical. Perhaps > modify the function which sets system-type to return wsl then detect > graphical environment and use the non shell-command approach? > > I humbly bring this to your attention. Thanks in advance. > > > Emacs : GNU Emacs 25.1.1 (x86_64-pc-linux-gnu, GTK+ Version 3.22.11) > of 2017-09-15, modified by Debian > Package: Org mode version 9.1.14 (9.1.14-9-g131531-elpa @ > /home//.emacs.d/elpa/org-20181112/) > > current state: > == > (setq > org-src-lang-modes '(("python" . python) ("plantuml" . fundamental) > ("ocaml" . tuareg) ("elisp" . emacs-lisp) ("ditaa" . artist) > ("asymptote" . asy) >("dot" . fundamental) ("sqlite" . sql) ("calc" . > fundamental) ("C" . c) ("cpp" . c++) ("C++" . c++) ("screen" . > shell-script) >("shell" . sh) ("bash" . sh)) > org-tab-first-hook '(org-babel-hide-result-toggle-maybe > org-babel-header-arg-expand) > org-babel-results-keyword "results" > org-speed-command-hook '(org-speed-command-activate > org-babel-speed-command-activate) > org-occur-hook '(org-first-headline-recenter) > org-metaup-hook '(org-babel-load-in-session-maybe) > org-log-done t > org-confirm-shell-link-function 'yes-or-no-p > org-link-search-must-match-exact-headline nil > org-default-notes-file "~/org/notes.org" > org-after-todo-state-change-hook '(org-clock-out-if-current) > org-from-is-user-regexp "\\" > 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-table-use-standard-references t > org-font-lock-set-keywor > > > -- Fabrice Popineau - CentraleSupelec Département Informatique 3, rue Joliot Curie 91192 Gif/Yvette Cedex Tel direct : +33 (0) 169851950 Standard : +33 (0) 169851212 --
Bug: wsl org-open-at-point [9.1.14 (9.1.14-9-g131531-elpa @ /home/boss5/.emacs.d/elpa/org-20181112/)]
On WSL, using emacs 25.1, in org-mode there is a bug/design issue. It the issue is: When opening a link in org-mode using C-c C-o, org-open-at-point doesn't work. It does find the browser, if you have set (setq browse-url-firefox-program "/mnt/c/PROGRA~1/MOZILL~1/firefox.exe") and does run the process, but it doesn't bring up a browser. You can see the process in list-processes and if you run that command in the console it works, but in org-mode the console never show and the process remains. The function browse-url-default-browse finds and runs the correct browser. However, it runs the browser using the wrong command depending on the case. If you are on WSL, without the graphical interface, you need to run the shell-command to use the windows browser. This is how it is done when it detects cygwin using system-type. However, System-type cannot be used to detect WSL because it doesn't find that you are on windows. The uname command detects it. Obviously this isn't straight forward as in different situations you want to do different things, graphical vs non-graphical. Perhaps modify the function which sets system-type to return wsl then detect graphical environment and use the non shell-command approach? I humbly bring this to your attention. Thanks in advance. Emacs : GNU Emacs 25.1.1 (x86_64-pc-linux-gnu, GTK+ Version 3.22.11) of 2017-09-15, modified by Debian Package: Org mode version 9.1.14 (9.1.14-9-g131531-elpa @ /home//.emacs.d/elpa/org-20181112/) current state: == (setq org-src-lang-modes '(("python" . python) ("plantuml" . fundamental) ("ocaml" . tuareg) ("elisp" . emacs-lisp) ("ditaa" . artist) ("asymptote" . asy) ("dot" . fundamental) ("sqlite" . sql) ("calc" . fundamental) ("C" . c) ("cpp" . c++) ("C++" . c++) ("screen" . shell-script) ("shell" . sh) ("bash" . sh)) org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-babel-results-keyword "results" org-speed-command-hook '(org-speed-command-activate org-babel-speed-command-activate) org-occur-hook '(org-first-headline-recenter) org-metaup-hook '(org-babel-load-in-session-maybe) org-log-done t org-confirm-shell-link-function 'yes-or-no-p org-link-search-must-match-exact-headline nil org-default-notes-file "~/org/notes.org" org-after-todo-state-change-hook '(org-clock-out-if-current) org-from-is-user-regexp "\\" 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-table-use-standard-references t org-font-lock-set-keywor
Re: refile captured to all opened Org buffer files as targets
Adam Porter writes: > org-buffer-list is a compiled Lisp function in ‘org.el’. > > (org-buffer-list PREDICATE EXCLUDE-TMP) > > Return a list of Org buffers. > PREDICATE can be ‘export’, ‘files’ or ‘agenda’. > > export restrict the list to Export buffers. > filesrestrict the list to buffers visiting Org files. > agenda restrict the list to buffers visiting agenda files. > > If EXCLUDE-TMP is non-nil, ignore temporary buffers. This is very awesome, thanks! :) -- [ stardiviner ] I try to make every word tell the meaning what I want to express. Blog: https://stardiviner.github.io/ IRC(freenode): stardiviner, Matrix: stardiviner GPG: F09F650D7D674819892591401B5DF1C95AE89AC3
Re: Table results doesn't work for dotted lists
Hello, Lawrence Bottorff writes: > #+begin_src emacs-lisp :results table > '(hline (hi) (there) hline) > #+end_src > > > #+RESULTS: > |---| > | hi| > | there | > |---| > > but then :results table has no effect on this > > #+begin_src emacs-lisp :results table > '(hline (hi . bye) (here . there) hline) > #+end_src > > #+RESULTS: > : (hline (hi . bye) (here . there) hline) [...] > Just wondering why it would distinguish between a trad list and > a dotted list. It's probably because no one bothered implementing support for tabulating dotted lists. Regards, -- Nicolas Goaziou
Re: [PATCH] ob-java.el: Add header argument to pass command line args
Hello, Jarmo Hurri writes: > I posted an updated version of the patch here on December 1st, but I > have not yet seen it in the master branch so far. Was the patch ok, or > do I still need to do something else than wait? It probably felt off the cracks, sorry about that. I just applied it. Thank you! Regards, -- Nicolas Goaziou
Visual index for Org based presentation slide sets
Hello, Christmas time is also the time when the heating in the office is shut off. Time to think about not so essential things ;). On [0] you will find an index of reveal based presentations. Is there something similar for Org based presentations? Maybe even a visual index? Something where you can learn and stea^Wborrow ideas? If not, should there be something like that? Regards hmw [0] https://github.com/hakimel/reveal.js/wiki/Example-Presentations
Re: [PATCH] ob-java.el: Add header argument to pass command line args
Greetings. I posted an updated version of the patch here on December 1st, but I have not yet seen it in the master branch so far. Was the patch ok, or do I still need to do something else than wait? As a new year approaches, I too want to thank everyone involved in Org for creating such a great tool. I use it for all my work currently. All the best, Jarmo