Re: [O] evil-mode and org
On Tue, Mar 28, 2017 at 8:23 AM, Peter Neilson wrote: > On Tue, 28 Mar 2017 08:57:40 -0400, Matt Price wrote: > >> I've never used Vim but I see a lot of people online raving about evil >> mode >> and how much they love it. I'm considering giving it a whirl after the >> semester ends & I get some free time. I just wondered whether any heavy >> org >> users here on the list use evil, and if so, whether you see pain points >> within org-mode -- my setup is pretty heavily customized, for instance, >> and >> I wonder whether that means it will be quite painful to use evil. > > > You will also find people asking why anyone would ever think of using vim. > One of those is Aaron Bieber. > https://blog.aaronbieber.com/2016/01/30/dig-into-org-mode.html I posted in response to John, but funny enough Aaron gives a talk on evil-mode as well. From the talk he was a heaaavvvy vim user, so I think it might be more accurate to say: "why would anyone use vim *given emacs* (he came from vim, after all)?" Equally strong in his talk (so I assume his philosophy in general) is: "why would anyone use emacs keybindings *given vim's*?" John > > I use vim only when unavoidable, and I simply pretend it is ed (of ancient > Unix days). Or maybe I just use ed. I would not bother trying to use ed to > access org, and thus would not be tempted to use vi, vim or evil mode for > org, either. One fine day, long, long ago, I had to use a Vax that did not > have emacs, vim, vi or ed. It did have whatever DEC was using for an editor, > but I didn't know how to use it instantly. What to do? What to do? I tried > running TECO. Yes, it had TECO! Saved! (Sort of.) > > Why use vim if emacs is already built into your fingertips? >
Re: [O] evil-mode and org
On Wed, Mar 29, 2017 at 10:12 AM, John Kitchin wrote: > Using evil-mode is not "using vim" IMHO. I think this is a question of > do you want modal editing or not (I suppose it could also be do you want > emacs-lisp or vimscript, but that is not the impression I get these days > ;). With emacs you can have either traditional emacs editing (one-mode: > edit) or modal editing like vim (for the most part). And you can still > use emacs-lisp to customize the environment so you can have things like > org-mode. Totally agreed. I possibly learned of evil-mode via Aaron as mentioned by Peter: - https://www.youtube.com/watch?v=JWD1Fpdd4Pc It's been on my todo list to try... I just haven't yet. I see evil-mode as using some of the better navigation aspects of vim inside the already awesome org-mode. Indeed, one of Aaron's main points (and he struck me as a power user of both emacs and vim, so I think he has the background to make the claim) is why anyone would try to replicate all the awesomeness of emacs/org in something like vim when it already exists. My takeaway is that evil-mode acknowledges that folks want to be in emacs for it's features, while also acknowledging that emacs keybindings can be horrible (and vim's are better). John > > I have seen a growing movement towards modal editing in emacs, e.g. > evil-mode, spacemacs, hydra, avy/ivy, etc... and even do some things > modally myself with those tools. > > Peter Neilson writes: > >> On Tue, 28 Mar 2017 08:57:40 -0400, Matt Price wrote: >> >>> I've never used Vim but I see a lot of people online raving about evil >>> mode >>> and how much they love it. I'm considering giving it a whirl after the >>> semester ends & I get some free time. I just wondered whether any heavy >>> org >>> users here on the list use evil, and if so, whether you see pain points >>> within org-mode -- my setup is pretty heavily customized, for instance, >>> and >>> I wonder whether that means it will be quite painful to use evil. >> >> You will also find people asking why anyone would ever think of using vim. >> One of those is Aaron Bieber. >> https://blog.aaronbieber.com/2016/01/30/dig-into-org-mode.html >> >> I use vim only when unavoidable, and I simply pretend it is ed (of ancient >> Unix days). Or maybe I just use ed. I would not bother trying to use ed to >> access org, and thus would not be tempted to use vi, vim or evil mode for >> org, either. One fine day, long, long ago, I had to use a Vax that did not >> have emacs, vim, vi or ed. It did have whatever DEC was using for an >> editor, but I didn't know how to use it instantly. What to do? What to do? >> I tried running TECO. Yes, it had TECO! Saved! (Sort of.) >> >> Why use vim if emacs is already built into your fingertips? > > > -- > 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] [PATCH] allow klipse export in html
On Wed, Mar 29, 2017 at 3:18 PM Yehonathan Sharvit wrote: > Good news. Where is the commit? It's in the master branch: http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=d5bbf365533ba45d72ebed8121c7612c860ea944 -- Kaushal Modi
[O] Logging evaluation of the source block
Is there a way to log actions that org undertakes in process of evaluation of the code block? Preferably in such a way that all commands executed will be visible. Reason: i am suspecting org is not trying to evaluate source block on remote machine, but i need data to substantiate that claim
[O] [PATCH] ob-sql: Add vertica engine
* lisp/ob-sql.el (org-babel-sql-dbstring-vertica): New function. (org-babel-execute:sql): Add `vertica' engine. Signed-off-by: Andreas Gerler --- lisp/ob-sql.el | 20 +++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/lisp/ob-sql.el b/lisp/ob-sql.el index 15c50ad..ec0427f 100644 --- a/lisp/ob-sql.el +++ b/lisp/ob-sql.el @@ -56,6 +56,7 @@ ;; - sqsh ;; - postgresql ;; - oracle +;; - vertica ;; ;; TODO: ;; @@ -136,6 +137,16 @@ SQL Server on Windows and Linux platform." (when database (format "-D \"%s\"" database " ")) +(defun org-babel-sql-dbstring-vertica (host port user password database) + "Make Vertica command line args for database connection. Pass nil to omit that arg." + (mapconcat #'identity + (delq nil + (list (when host (format "-h %s" host)) + (when port (format "-p %d" port)) + (when user (format "-U %s" user)) + (when password (format "-w %s" (shell-quote-argument password) )) + (when database (format "-d %s" database + " ")) (defun org-babel-sql-convert-standard-filename (file) "Convert the file name to OS standard. @@ -208,6 +219,12 @@ footer=off -F \"\t\" %s -f %s -o %s %s" (org-babel-process-file-name in-file)) (org-babel-sql-convert-standard-filename (org-babel-process-file-name out-file + (`vertica (format "vsql %s -f %s -o %s %s" + (org-babel-sql-dbstring-vertica +dbhost dbport dbuser dbpassword database) + (org-babel-process-file-name in-file) + (org-babel-process-file-name out-file) + (or cmdline ""))) (`oracle (format "sqlplus -s %s < %s > %s" (org-babel-sql-dbstring-oracle @@ -235,6 +252,7 @@ SET COLSEP '|' ((or `mssql `sqsh) "SET NOCOUNT ON ") +(`vertica "\\a\n") (_ "")) (org-babel-expand-body:sql body params) ;; "sqsh" requires "go" inserted at EOF. @@ -245,7 +263,7 @@ SET COLSEP '|' (progn (insert-file-contents-literally out-file) (buffer-string))) (with-temp-buffer (cond -((memq (intern engine) '(dbi mysql postgresql sqsh)) +((memq (intern engine) '(dbi mysql postgresql sqsh vertica)) ;; Add header row delimiter after column-names header in first line (cond (colnames-p -- 2.10.1 (Apple Git-78) signature.asc Description: Message signed with OpenPGP
[O] Evaluating C code block on remote host
I am working on windows machine. I have last org version (from february 2017). I have a remote host accessible by putty, where i have created org file of the following contents: #+TITLE C language things * Simple hello-world program #+NAME hello world on C #+BEGIN_SRC C :dir /pscp:tcl:/home/tc/development :main no #include int main() { printf("Hello, world!"); return 0; } #+END_SRC where tcl is name of saved putty configuration When i evaluate codefragment, overall result is a failure (however, it is not a crash, and toggling debug on yields no backtrace) Here is what is output to *Message* buffer: executing C code block... Copying c:/Users/Ivan/AppData/Local/Temp/tramp.4816iL0.c to /pscp:tcl:/tmp/C-src-4816VBu.c... Tramp: Waiting for prompts from remote shell... Tramp: Process has finished. Tramp: Waiting for prompts from remote shell...done Copying c:/Users/Ivan/AppData/Local/Temp/tramp.4816iL0.c to /pscp:tcl:/tmp/C-src-4816VBu.c...done Copying c:/Users/Ivan/AppData/Local/Temp/tramp.4816hfJ.exe to /pscp:tcl:/tmp/C-bin-4816UVD.exe... Tramp: Waiting for prompts from remote shell... Tramp: Process has finished. Tramp: Waiting for prompts from remote shell...done Copying c:/Users/Ivan/AppData/Local/Temp/tramp.4816hfJ.exe to /pscp:tcl:/tmp/C-bin-4816UVD.exe...done Copying c:/Users/Ivan/AppData/Local/Temp/tramp.4816upP.c to /pscp:tcl:/tmp/C-src-4816VBu.c... Tramp: Waiting for prompts from remote shell... Tramp: Process has finished. Tramp: Waiting for prompts from remote shell...done Copying c:/Users/Ivan/AppData/Local/Temp/tramp.4816upP.c to /pscp:tcl:/tmp/C-src-4816VBu.c...done Copying c:/Users/Ivan/AppData/Local/Temp/tramp.4816I-b to /pscp:tcl:/tmp/ob-input-48167zV... Tramp: Waiting for prompts from remote shell... Tramp: Process has finished. Tramp: Waiting for prompts from remote shell...done Copying c:/Users/Ivan/AppData/Local/Temp/tramp.4816I-b to /pscp:tcl:/tmp/ob-input-48167zV...done Copying c:/Users/Ivan/AppData/Local/Temp/tramp.4816iSo to /pscp:tcl:/tmp/ob-error-4816VIi... Tramp: Waiting for prompts from remote shell... Tramp: Process has finished. Tramp: Waiting for prompts from remote shell...done Copying c:/Users/Ivan/AppData/Local/Temp/tramp.4816iSo to /pscp:tcl:/tmp/ob-error-4816VIi...done Copying c:/Users/Ivan/AppData/Local/Temp/tramp.4816vcu to /pscp:tcl:/tmp/ob-input-48167zV...failed byte-code: Spawning child process: invalid argument What is going on there? What does error in the end mean? Most importantly, is code block being evaluated on remote host at all? Can output of org-babel commands be turned on to get that information?
Re: [O] [PATCH] allow klipse export in html
Good news. Where is the commit? On Fri, Mar 24, 2017, 14:15 Matt Price wrote: > Yay! Thank you! > > On Mar 23, 2017 6:25 PM, "Bastien Guerry" wrote: > > Hi Matt, > > I finally committed this. Sorry it took so long and thanks > again for the patch! > > Best, > > -- > Bastien > >
[O] Bug: org-goto not work with ido completion [9.0.5 (9.0.5-elpa @ /Users/lluvio/.emacs.d/elpa/org-20170210/)]
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 http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list. org-goto with ido work on 8.2.10 (ido-mode 1) (setq ido-enable-flex-matching t) (setq ido-everywhere t) (setq org-outline-path-complete-in-steps nil org-goto-interface 'outline-path-completion Emacs : GNU Emacs 25.1.1 (x86_64-apple-darwin16.4.0, NS appkit-1504.81 Version 10.12.3 (Build 16D32)) of 2017-03-01 Package: Org mode version 9.0.5 (9.0.5-elpa @ /Users/lluvio/.emacs.d/elpa/org-20170210/)
[O] Bug: startup latexpreview [9.0.5 (9.0.5-elpa @ /gnu/store/...-emacs-org-20170210/share/emacs/site-lisp/guix.d/org-20170210/)]
Hello, When opening an org-file in emacs which contains the in-buffer setting "#+STARTUP: latexpreview" the minibuffer displays "Creating images for section...done" instead of "Creating images for buffer...done" and the LaTeX fragments in the buffer are not converted to images. However, if I type "C-u C-u C-c C-x C-l" or "C-u C-u M-x org-toggle-latex-fragment RET" Org behaves as expected, by converting all LaTeX fragments to images. I believe this happens because in org.el on line 5682 the function org-toggle-latex-fragment is called with no argument, which does only create images for the current section. AFAICT org-toggle-latex-fragment should be called with '(16) as argument. The enclosed documents are a minimal setup for loading nothing but orgmode (emacs -Q -l /path/to/minimal-org.el) and a simple test file which produces the error I describe above. Emacs : GNU Emacs 25.1.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.22.6) of 2017-03-04 Package: Org mode version 9.0.5 (9.0.5-elpa @ /gnu/store/ky6z4kg7lq5g5w2ylyq692sc4ypx9vmr-emacs-org-20170210/share/emacs/site-lisp/guix.d/org-20170210/) I hope you'll find this bug-report helpful Diego N. Barbato P.S. I apologise for sending this report twice. The first time I forgot to write a meaningful address into the From: field. minimal-org.el Description: minimal setup #+STARTUP: latexpreview * Formula 1 ** a \[ \int\limits_a^b f(x) \, \mathrm{d}x \] ** b \[ \int_a^b f(x) \, \mathrm{d}x \]
[O] org-caldav issue (wrong-type-argument stringp nil)
I use the ELPA version of the package with emacs 25 and nextcloud. When I Launch the sync. I get the lisp message: `(wrong-type-argument stringp nil)` I have to mention that I have already modified the org-caldav.el file according to this message: (https://lists.gnu.org/archive/html/emacs-orgmode/2014-11/msg00423.html). The *org-caldav-debug* says: ` == Started sync. Syncing first calendar entry: (:calendar-id "MY-CALENDAR-ID" :files ("MY-PATH-TO-ORG-CALENDARFILE") :inbox ("MY-PATH-TO-ORG-CALENDARFILE")) Check connection for https://ncloud.zaclys.com/remote.php/dav/calendars/MY-USER-ID/MY-CALENDAR-ID/. Generating ICS file /tmp/org-caldav-438wKX.` and... that's all... any idea ? Thanks for your help. -- Bertrand Simon
[O] filtering agenda mode based on time of day ?
Hi, Anyone got a working setup of doing something like this: From 8-17 local time, show everything in agenda EXCEPT things with tag :home: From 17-8, show everything in agenda (and optimally make anything not tagged home show up last) ? This is so I don't bogged down with home task while working and evening evening still see my work but put home tasks up as priority ;) I tried various combinations of lisp and filters but I keep failing on getting it to work. Any tips/pointers appreciated. /max http://about.me/maxandersen
[O] Bug: startup latexpreview [9.0.5 (9.0.5-elpa @ /gnu/store/...-emacs-org-20170210/share/emacs/site-lisp/guix.d/org-20170210/)]
Hello, When opening an org-file in emacs which contains the in-buffer setting "#+STARTUP: latexpreview" the minibuffer displays "Creating images for section...done" instead of "Creating images for buffer...done" and the LaTeX fragments in the buffer are not converted to images. However, if I type "C-u C-u C-c C-x C-l" or "C-u C-u M-x org-toggle-latex-fragment RET" Org behaves as expected, by converting all LaTeX fragments to images. I believe this happens because in org.el on line 5682 the function org-toggle-latex-fragment is called with no argument, which does only create images for the current section. AFAICT org-toggle-latex-fragment should be called with '(16) as argument. The enclosed documents are a minimal setup for loading nothing but orgmode (emacs -Q -l /path/to/minimal-org.el) and a simple test file which produces the error I describe above. Emacs : GNU Emacs 25.1.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.22.6) of 2017-03-04 Package: Org mode version 9.0.5 (9.0.5-elpa @ /gnu/store/ky6z4kg7lq5g5w2ylyq692sc4ypx9vmr-emacs-org-20170210/share/emacs/site-lisp/guix.d/org-20170210/) I hope you'll find this bug-report helpful Diego N. Barbato minimal-org.el Description: minimal setup #+STARTUP: latexpreview * Formula 1 ** a \[ \int\limits_a^b f(x) \, \mathrm{d}x \] ** b \[ \int_a^b f(x) \, \mathrm{d}x \]
Re: [O] tsia-up sorting strategy sorts agenda by date and ignores time. How can I change that?
On Wed, Mar 22 2017, Arkady Grudzinsky wrote: > On Tue, Mar 21 2017, Matt Lundin wrote: > >> You could use something like this and then add user-defined-up or >> user-defined-down where desired in org-agenda-sorting-strategy: >> >> (defun my-sort-by-inactive-timestamp-incl-time (a b) >> (let* ((ma (get-text-property 1 'org-marker a)) >> (mb (get-text-property 1 'org-marker b)) >> (tsa (with-current-buffer (marker-buffer ma) >> (org-entry-get (marker-position ma) "TIMESTAMP_IA"))) >> (tsb (with-current-buffer (marker-buffer mb) >> (org-entry-get (marker-position mb) "TIMESTAMP_IA"))) >> (seca (if tsa (org-time-string-to-seconds tsa) 0)) >> (secb (if tsb (org-time-string-to-seconds tsb) 0))) >> (cond ((> seca secb) 1) >> ((> secb seca) -1) >> (t nil >> >> (setq org-agenda-cmp-user-defined 'my-sort-by-inactive-timestamp-incl-time) >> >> I imagine there are ways to do this more elegantly (e.g., by iterating >> over a and b), but this gets the job done for me. > > This works. Awesome! Thanks. When this user-defined-up is set in agenda view (C-c a a), the agenda view throws an error message. , | set-buffer: Wrong type argument: markerp, nil ` It works in the todo list views, though, which is good enough for me. Thanks again. Just wanted to mention this for the record. -- Arkady
[O] ox-man line break
Hi, When converting ORG to MAN pages (org-man-export-to-man), a new line should be added before the line break `.br' tag. Otherwise, for example, the following: ``` hello\\ word ``` is converted to: ``` hello.br word ``` Patch attached. Thanks, Francesco >From 54d46f6e364f589237cd519c39bb99fae7eb3520 Mon Sep 17 00:00:00 2001 From: Francesco Montanari Date: Sun, 26 Mar 2017 12:59:19 +0300 Subject: [PATCH] ox-man.el (org-man-line-break): Add new line before line break tag * lisp/ox-man.el (org-man-line-break): Transcode a LINE-BREAK object from Org to Man by adding the appropriate tag on a new line. TINYCHANGE --- lisp/ox-man.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ox-man.el b/lisp/ox-man.el index 2bb121fbe..71718ab77 100644 --- a/lisp/ox-man.el +++ b/lisp/ox-man.el @@ -590,7 +590,7 @@ CONTENTS is nil. INFO is a plist holding contextual information." (defun org-man-line-break (_line-break _contents _info) "Transcode a LINE-BREAK object from Org to Man. CONTENTS is nil. INFO is a plist holding contextual information." - ".br\n") + "\n.br\n") ;;; Link -- 2.11.0
Re: [O] evil-mode and org
On Wed, 29 Mar 2017 11:12:22 -0400, John Kitchin wrote: Using evil-mode is not "using vim" IMHO. I think this is a question of do you want modal editing or not (I suppose it could also be do you want emacs-lisp or vimscript, but that is not the impression I get these days ;). With emacs you can have either traditional emacs editing (one-mode: edit) or modal editing like vim (for the most part). And you can still use emacs-lisp to customize the environment so you can have things like org-mode. I have seen a growing movement towards modal editing in emacs, e.g. evil-mode, spacemacs, hydra, avy/ivy, etc... and even do some things modally myself with those tools. Thinking historically, I see modal editing in TECO, where everything between "i" and "$" (the ESC key) was insert mode, and everything else was a command. Woe unto the person who omitted the "i" or who inadvertently ended insert mode, because all other text was commands. For example, ihxhgh$ inserts "hxhgh" but just hxhgh$ duplicates the entire buffer. Here is a sample TECO session: *hkiHere is some text that I am inserting. Here is another line. $$ *ht$$ Here is some text that I am inserting. Here is another line. *zjiThis is a new bottom line. Next we try forgetting an "i" command. $$ *here is a forgotten i command $$ ?SYS No such file or directory ?UFI unable to open file e is a forgotten i command for input *
Re: [O] Have SRC_BLOCK :padline accept numbers
Dear Nicolas, Thanks for the constructive feedback. I've amended the commit including the changes you've mentioned. I did not change the following, though: (numberp (string-to-int padlines)) -> (string-match-p "\\`[0-9]+\\'" padlines) because that changed the behaviour of org-babel-tangle. Having a string-match-p as a match condition broke the default of adding no padlines in the first tangled SRC block (when passed with no arguments). I also noticed that adding this functionality to ob-tangle breaks eldoc for me. I guess all org babel header arguments have to be strings? Debugger entered--Lisp error: (wrong-type-argument stringp 2) ((:padline . 2)) ((:results . "replace output") (:exports . "both") (:padline . 2) (:eval . "never-export") (:tangle . "no") (:hlines . "no") (:noweb . "no") (:cache . "no") (:session . "none")) " ") org-eldoc-get-src-header() org-eldoc-documentation-function() eldoc-print-current-symbol-info() GNU Emacs 25.2.1 (x86_64-apple-darwin16.4.0, NS appkit-1504.81 Version 10.12.3 (Build 16D32)) of 2017-03-22 Copyright (C) 2017 Free Software Foundation, Inc. Yours, Daniel Nicolas Goaziou writes: > Hello, > > Daniel P Gomez writes: > >> I've written a small patch (attached here), following the contribution >> guidelines on the org-mode website. The "patched" repository can be found >> here: https://github.com/dangom/org-mode/tree/feature_padline > > Thank you. > >> Please let me know if there is anything else I should do. > > Some comments follow. > >> From f5e67856b6cefb7c5e9c1b6bd74321d3b47f1b05 Mon Sep 17 00:00:00 2001 >> From: Daniel Gomez >> Date: Tue, 28 Mar 2017 21:20:23 +0200 >> Subject: [PATCH] Add support for :padline with numbers in ob-tangle. >> > You need to add list modified functions here, with the actual > modifiaction, e.g., > > * lisp/ob-tangle.el (the-function-I-modified): Been there, done that. > > Also, if you haven't signed FSF papers yet, you need to add "TINYCHANGE" > at the end of the commit message. > >> -(unless (or (string= "no" (cdr (assq :padline (nth 4 spec >> - (= (point) (point-min))) >> - (insert "\n")) >> +(let ((padlines (format "%s" (cdr (assq :padline (nth 4 spec)) >> + (cond >> + ((and (string= "nil" padlines) (not (= (point) (point-min > > (not (= (point) (point-min))) -> (not (bobp)) > >> + (insert "\n")) >> + ((string= "no" padlines) >> + nil) >> + ((numberp (string-to-int padlines)) > > (numberp (string-to-int padlines)) -> (string-match-p "\\`[0-9]+\\'" padlines) > >> + (dotimes (i (string-to-int padlines)) (insert "\n"))) > > string-to-int -> string-to-number > > > Regards, -- Daniel P. Gomez
Re: [O] [BUG] org-link-search fails if search string contains new lines
Test test-org/fuzzy-links backtrace: (if (unwind-protect (setq value-10839 (let ((file (make-temp-file "o (let (form-description-10840) (if (unwind-protect (setq value-10839 (let ((value-10839 (cl-gensym "ert-form-evaluation-aborted-"))) (let (lambda nil (let ((value-10802 (cl-gensym "ert-form-evaluation-abort ert--run-test-internal([cl-struct-ert--test-execution-info [cl-struc ert-run-test([cl-struct-ert-test test-org/fuzzy-links "Test fuzzy li ert-run-or-rerun-test([cl-struct-ert--stats "\\(org\\|ob\\)" [[cl-st ert-run-tests("\\(org\\|ob\\)" #[385 "\306\307\"\203G\211\211G\310 ert-run-tests-batch("\\(org\\|ob\\)") ert-run-tests-batch-and-exit("\\(org\\|ob\\)") (let ((org-id-track-globally t) (org-test-selector (if org-test-sele org-test-run-batch-tests("\\(org\\|ob\\)") eval((org-test-run-batch-tests org-test-select-re)) command-line-1(("--eval" "(setq vc-handled-backends nil org-startup- command-line() normal-top-level() Test test-org/fuzzy-links condition: (ert-test-failed ((should (org-test-with-temp-text-in-file "Paragraph line1 line2 " (let ... ... ... ... ... ...))) :form (let ((file ...) (kill-buffer-query-functions nil) (inside-text ...) G10838) (with-temp-file file (insert inside-text)) (find-file file) (org-mode) (setq G10838 (progn ...)) (save-buffer) (kill-buffer (current-buffer)) (delete-file file) G10838) :value nil)) FAILED 656/718 test-org/fuzzy-links
Re: [O] How can footnotes be exported at the end of an artile in latex?
mgcyung writes: > Is it possible to export to latex with all footnotes at the end of an artile > but > not at the bottom of the page with the reference? > They are then called "endnotes". You might want to google for that. And it might be as simple as #+LATEX_HEADER: \usepackage{endnotes} but I have not tested it, so no guarantees. -- Nick
Re: [O] evil-mode and org
Using evil-mode is not "using vim" IMHO. I think this is a question of do you want modal editing or not (I suppose it could also be do you want emacs-lisp or vimscript, but that is not the impression I get these days ;). With emacs you can have either traditional emacs editing (one-mode: edit) or modal editing like vim (for the most part). And you can still use emacs-lisp to customize the environment so you can have things like org-mode. I have seen a growing movement towards modal editing in emacs, e.g. evil-mode, spacemacs, hydra, avy/ivy, etc... and even do some things modally myself with those tools. Peter Neilson writes: > On Tue, 28 Mar 2017 08:57:40 -0400, Matt Price wrote: > >> I've never used Vim but I see a lot of people online raving about evil >> mode >> and how much they love it. I'm considering giving it a whirl after the >> semester ends & I get some free time. I just wondered whether any heavy >> org >> users here on the list use evil, and if so, whether you see pain points >> within org-mode -- my setup is pretty heavily customized, for instance, >> and >> I wonder whether that means it will be quite painful to use evil. > > You will also find people asking why anyone would ever think of using vim. > One of those is Aaron Bieber. > https://blog.aaronbieber.com/2016/01/30/dig-into-org-mode.html > > I use vim only when unavoidable, and I simply pretend it is ed (of ancient > Unix days). Or maybe I just use ed. I would not bother trying to use ed to > access org, and thus would not be tempted to use vi, vim or evil mode for > org, either. One fine day, long, long ago, I had to use a Vax that did not > have emacs, vim, vi or ed. It did have whatever DEC was using for an > editor, but I didn't know how to use it instantly. What to do? What to do? > I tried running TECO. Yes, it had TECO! Saved! (Sort of.) > > Why use vim if emacs is already built into your fingertips? -- 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] Tangling with cross-references coming from included files
Hello, "s...@1042.ch" writes: > I am trying to achieve the tangling of an org-file which is composed by > multiple (included) org-files. > > I am using Emacs 25.1.1 and Org mode 9.0.5. > > Here an example of what I am trying to achieve. > > ——Example starts here—— > File A.org > > [Text here …] > > #+BEGIN_SRC python :tangle src/a.py :noweb tangle > class Foo(object): > <> > #+END > > [More text here ...] > > #+INCLUDE: ./b.org" > > File b.org > > [Text &] > > #+BEGIN_SRC python :exports none > def foo(self): > print(bar) > #+END > Example ends here > > My problem is, that the included parts are not being tangled. When > having all the parts in one file, there is no problem at all, but having only > file is not an option. > > An easy approach would be, as I thought at first, to use > "org-org-export-as-org", which does include all into one buffer. > Then one could simply tangle that buffer. The problem with that approach is > however, that all arguments > get stripped from #+BEGIN_SRC and therefore :tangle & too. Would calling (org-export-expand-include-keyword) in the master document solve your issue? Regards, -- Nicolas Goaziou
Re: [O] More clocktable breakage
Hello, Achim Gratz writes: > I've just noticed that in my the clocktables at work I can't adjust the > start and end ranges anymore with up/down. Apparently the timestamps > are not recognized anymore and the it falls through to some code that > tries to adjust the :block argument (which is not present in that table > since it's using :tstart / :tend) and fails with an error message. I've > bisected that behaviour to commit 2a59d2f76f. Unfortunately I can't > reproduce that here at home, maybe due to the fact that the language > settings are different. At home the timestamps are recognized and the > clocktable is re-calculated accordingly. However, I cannot refresh the > clocktable via C-c C-c, which tells me it cannot do anything useful at > that line. At the moment, I cannot reproduce it. I tried M-up in the following document: #+BEGIN: clocktable :tstart "<2006-08-10 Thu 10:00>" :tend "<2006-08-10 Thu 12:00>" #+END: clocktable I'm interested in an ECM, if you can provide one. Regards, -- Nicolas Goaziou
Re: [O] Bug: Updating clocktable hides other content [9.0.5 (9.0.5-elpa @ /home/christof/.emacs.d/elpa/org-20170210/)]
Hello, Christof Musik writes: > I have noticed some problems on updating a clocktable in a dynamic block. > If you update this table with org-dblock-update, then all content besides > that table > is hidden. I have not found a way to show it again without opening the file > again. > > Example: > > > * bar > * baz > * foo > > #+BEGIN: clocktable :maxlevel 2 :scope subtree > #+CAPTION: Clock summary at [2017-03-25 Sa 23:19] > > | Headline | Time | | > |--++--| > | *Total time* | *2:00* | | > |--++--| > | foo | 2:00 | | > | \_ TODO a | | 1:00 | > | \_ TODO b | | 1:00 | > #+END: > > > ** TODO a > CLOCK: [2017-03-25 Sa 21:32]--[2017-03-25 Sa 22:32] => 1:00 > ** TODO b > CLOCK: [2017-03-24 Fr 21:32]--[2017-03-24 Fr 22:32] => 1:00 > > > Steps to reproduce: > Go to the line with "BEGIN" and press C-c C-C (org-dblock-update). > Now only the header foo is shown and bar, baz are hidden. Saving the file does > not kill them, but without opening the file again they won't come > back. Thank you. I think I fixed this. Could you update Org and confirm it? Regards, -- Nicolas Goaziou
Re: [O] [PATCH] Allow insertion of links with multi-line search strings
Hello, Matt Lundin writes: > From 726eba76f31537747a26a7689ee632ec8e9bc01f Mon Sep 17 00:00:00 2001 > From: Matt Lundin > Date: Mon, 27 Mar 2017 09:55:33 -0500 > Subject: [PATCH] Allow insertion of links with multi-line search strings > > * lisp/org.el: (org-insert-link): Fix regexps to match across > newlines. > --- > lisp/org.el | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/lisp/org.el b/lisp/org.el > index e40db18f6..dcfa4fd6f 100644 > --- a/lisp/org.el > +++ b/lisp/org.el > @@ -10330,7 +10330,7 @@ Use TAB to complete link prefixes, then RET for > type-specific completion support > ;; option If yes, simplify the link by using only the search > ;; option. > (when (and buffer-file-name > -(string-match "^file:\\(.+?\\)::\\(.+\\)" link)) > +(string-match "^file:\\(.+?\\)::\\(\\(.\\|\n\\)+\\)" link)) >(let* ((path (match-string 1 link)) >(case-fold-search nil) >(search (match-string 2 link))) > @@ -10340,7 +10340,7 @@ Use TAB to complete link prefixes, then RET for > type-specific completion support > (setq link search) > > ;; Check if we can/should use a relative path. If yes, simplify the link > -(when (string-match "^\\(file:\\|docview:\\)\\(.*\\)" link) > +(when (string-match "^\\(file:\\|docview:\\)\\(\\(.\\|\n\\)*\\)" > link) Applied. Thank you. Regards, -- Nicolas Goaziou
Re: [O] can I export all PROPERTIES to my ascii output?
"Christopher W. Ryan" writes: > Thank Nicolas, but what exactly do you mean by "see" > org-export-properties? I use org-mode a little, but I have to admit I > have never really looked under the hood and played around with variables > much. I mean: please have a look at `org-export-with-properties' documentation. Use: C-h v org-export-with-properties RET Regards,
[O] How can footnotes be exported at the end of an artile in latex?
Is it possible to export to latex with all footnotes at the end of an artile but not at the bottom of the page with the reference? -- With best wishes, mgcyung
Re: [O] can I export all PROPERTIES to my ascii output?
Thank Nicolas, but what exactly do you mean by "see" org-export-properties? I use org-mode a little, but I have to admit I have never really looked under the hood and played around with variables much. --Chris Nicolas Goaziou wrote: > Hello, > > Christopher W Ryan writes: > >> I'd like to make all the PROPERTIES show up in ascii output when I export. >> How can I do that? >> >> #+OPTIONS: properties:t >> >> does not export properties. Neither does: >> >> #+OPTIONS: with-properties:t > > See `org-export-with-properties'. Also, you could try M-x org-lint on > your document. > > Regards, >
Re: [O] Have SRC_BLOCK :padline accept numbers
Hello, Daniel P Gomez writes: > I've written a small patch (attached here), following the contribution > guidelines on the org-mode website. The "patched" repository can be found > here: https://github.com/dangom/org-mode/tree/feature_padline Thank you. > Please let me know if there is anything else I should do. Some comments follow. > From f5e67856b6cefb7c5e9c1b6bd74321d3b47f1b05 Mon Sep 17 00:00:00 2001 > From: Daniel Gomez > Date: Tue, 28 Mar 2017 21:20:23 +0200 > Subject: [PATCH] Add support for :padline with numbers in ob-tangle. > You need to add list modified functions here, with the actual modifiaction, e.g., * lisp/ob-tangle.el (the-function-I-modified): Been there, done that. Also, if you haven't signed FSF papers yet, you need to add "TINYCHANGE" at the end of the commit message. > - (unless (or (string= "no" (cdr (assq :padline (nth > 4 spec > - (= (point) (point-min))) > - (insert "\n")) > + (let ((padlines (format "%s" (cdr (assq :padline > (nth 4 spec)) > + (cond > +((and (string= "nil" padlines) (not (= (point) > (point-min (not (= (point) (point-min))) -> (not (bobp)) > + (insert "\n")) > +((string= "no" padlines) > + nil) > +((numberp (string-to-int padlines)) (numberp (string-to-int padlines)) -> (string-match-p "\\`[0-9]+\\'" padlines) > + (dotimes (i (string-to-int padlines)) (insert > "\n"))) string-to-int -> string-to-number Regards, -- Nicolas Goaziou
Re: [O] can I export all PROPERTIES to my ascii output?
Hello, Christopher W Ryan writes: > I'd like to make all the PROPERTIES show up in ascii output when I export. > How can I do that? > > #+OPTIONS: properties:t > > does not export properties. Neither does: > > #+OPTIONS: with-properties:t See `org-export-with-properties'. Also, you could try M-x org-lint on your document. Regards, -- Nicolas Goaziou
Re: [O] [BUG] org-link-search fails if search string contains new lines
Hello, Matt Lundin writes: > Thanks Nicolas. Yes, it now works with multi-line searches that do not > contain blank lines. > > I think there are some instances in which one might want to search > across blank lines, such as when one captures a region that contains one > or more blank lines. E.g., let's say org-context-in-file-links is t (the > default). If one captures a section in org.el containing a blank line, > org-link-search will fail to locate the section. > > Here's a sample link to try it out. (It assumes an org-mode repository > at ~/org-mode). > > > [[file:~/org-mode/lisp/org.el::(defsubst%20org-uniquify%20(list)%0A%20"Non-destructively%20remove%20duplicate%20elements%20from%20LIST."%0A%20(let%20((res%20(copy-sequence%20list)))%20(delete-dups%20res)))%0A%0A(defsubst%20org-get-at-bol%20(property)%0A%20"Get%20text%20property%20PROPERTY%20at%20the%20beginning%20of%20line."%0A%20(get-text-property%20(point-at-bol)%20property))%0A]] Fixed. Thank you. Regards, -- Nicolas Goaziou0x80A93738
Re: [O] [BUG] org-link-search fails if search string contains new lines
Hello, Skip Collins writes: > 1 unexpected results: > >FAILED test-org/fuzzy-links This is not the case at http://www.randomsample.de:4457/waterfall The error report would help. Regards, -- Nicolas Goaziou0x80A93738