[O] [PATCH] org-capture: Adapt user-error for aborting by user

2016-04-30 Thread Chunyang Xu
Hi, Sometimes I turn on lisp debugger with M-x toggle-debug-on-error for some reason, then aborting org-capture with 'q' or 'C-g' enters the debugger, which is annoying. I think `user-error' is better than `error' in this case. >From 9d950e96c48b8e1a0dad779cdf34a4f8a76621db Mon Sep 17 00:00:00 2

Re: [O] PATCH: invoking RET on agenda clock log line ends up with point in closed clock drawer

2016-04-30 Thread Nicolas Goaziou
Hello, Derek Feichtinger writes: > A longer time ago, hitting RET on an agenda clock log line brought up the > respective org buffer with the cursor positioned on the clock line. At some > point this stopped to work cleanly, at least when using clock drawers. The > clock drawer would always be c

Re: [O] [PATCH] ob-core: check argument to goto-char

2016-04-30 Thread Eike
Nicolas Goaziou writes: > I suggest to use built-in `orgtbl-to-orgtbl' instead: > > (insert (orgtbl-to-orgtbl '(("id" "num") hline ("a" "1") ("b" "2")) nil)) > Ah, that's what I'm looking for. Thanks! Eike -- gpg: AD7AC35E finger print: 137F BB0B 1639 D25F DC5D E59C B412 C5F5 AD7A C35E

Re: [O] [patch] get modification-time from vc

2016-04-30 Thread Nicolas Goaziou
Hello, Rasmus writes: > The file system modification time as accessed by {{{modification-time}}} > is often wrong, e.g. when a project is newly cloned or if the file has > been copied in a sloppy manner. At least if modification time suggest the > time that the file was edited by an author. > >

Re: [O] [PATCH] ob-core: check argument to goto-char

2016-04-30 Thread Eike
Charles C. Berry writes: > The easiest way to borrow babel tools is to use babel to execute src > blocks directly. Here is a start. Run this src block to define a function > `insert-quoted-list-as-result': > > #+BEGIN_SRC emacs-lisp >(defun insert-quoted-list-as-result (my-list) >(save-

Re: [O] [PATCH] ob-core: check argument to goto-char

2016-04-30 Thread Nicolas Goaziou
Hello, "Charles C. Berry" writes: > The easiest way to borrow babel tools is to use babel to execute src > blocks directly. Here is a start. Run this src block to define a function > `insert-quoted-list-as-result': > > #+BEGIN_SRC emacs-lisp >(defun insert-quoted-list-as-result (my-list) >

Re: [O] [PATCH] ob-core: check argument to goto-char

2016-04-30 Thread Charles C. Berry
On Sat, 30 Apr 2016, Eike wrote: Charles C. Berry writes: On Sat, 30 Apr 2016, Eike wrote: Hi, [much deleted] What I want to do: I want to insert an org table somewhere in an org buffer. The data is not from an src block but retrieved from somewhere else. So I have a list like `(("

Re: [O] [PATCH] ob-core: check argument to goto-char

2016-04-30 Thread Eike
Charles C. Berry writes: > On Sat, 30 Apr 2016, Eike wrote: > >> >> Hi, >> >> I have some code that uses `org-babel-insert-result' and I've found that >> evaluating for example >> >> (org-babel-insert-result "a") >> >> results in an error. > > Although not explicitly marked as such, `org-babe

Re: [O] [PATCH] ob-core: check argument to goto-char

2016-04-30 Thread Charles C. Berry
On Sat, 30 Apr 2016, Eike wrote: Hi, I have some code that uses `org-babel-insert-result' and I've found that evaluating for example (org-babel-insert-result "a") results in an error. Although not explicitly marked as such, `org-babel-insert-result' seems intended as an internal functio

[O] [SOLVED] Re: problems with auto-capitalise

2016-04-30 Thread Sharon Kimble
Milan Zamazal writes: > Do you use desktop.el? I experienced similar problems with it. I don't > remember the details but I've got the following in my Emacs > configuration that probably serves as my workaround of the problem: > > (add-to-list 'desktop-minor-mode-handlers >'(a

[O] bug#23365: 25.0.93; org-mode fails on export with include

2016-04-30 Thread Phillip Lord
Rasmus writes: > The following message is a courtesy copy of an article > that has been posted to gmane.emacs.orgmode as well. > > Kaushal Modi writes: > >>> Is org-mode in core going to be updated before 25.1? >> >> >> Copying the org-mode ML for this. > > AFAIU, by the time we were ready to m

[O] [PATCH] ob-core: check argument to goto-char

2016-04-30 Thread Eike
Hi, I have some code that uses `org-babel-insert-result' and I've found that evaluating for example (org-babel-insert-result "a") results in an error. The reason is that `goto-char' is called with a nil argument. I simply put the snippet in a `when' clause, but since the function is quite la