[O] bug#23917: Please consider making Bug #23917 a blocker for 25.1 (was Re: org-capture: Capture template ‘g’: Match data clobbered by buffer modification hooks)

2016-07-20 Thread Stefan Monnier
>> - maybe we can even adjust_match_data in every call to replace_range >> rather than just in the one from Freplace_match. > That would be simpler, though I wasn't sure if it would be correct. I think it's definitely not an option for emacs-25. But maybe we can try it on master.

[O] bug#23917: Please consider making Bug #23917 a blocker for 25.1 (was Re: org-capture: Capture template ‘g’: Match data clobbered by buffer modification hooks)

2016-07-20 Thread Eli Zaretskii
> From: npost...@users.sourceforge.net > Cc: Eli Zaretskii , 23...@debbugs.gnu.org, > nljlistb...@gmail.com, jwieg...@gmail.com, rpl...@gmail.com, > alex.ben...@linaro.org > Date: Wed, 20 Jul 2016 20:56:28 -0400 > > >> Maybe there's a misunderstanding. What Noam suggested

[O] bug#23917: Please consider making Bug #23917 a blocker for 25.1 (was Re: org-capture: Capture template ‘g’: Match data clobbered by buffer modification hooks)

2016-07-20 Thread Stefan Monnier
> Solution: adjust in between the before and after change functions. > Patch below. I think there shouldn't be performance problems, although > it does add yet another flag to replace_range (by the way, I noticed > that the MARKERS flags is never 0, so it's redundant). I tested with > the

[O] wishful thinking: using SQL to process tables. in the meantime, use R

2016-07-20 Thread dmg
Hi everybody, I was wondering if there was a way to join two tables given a common column. I searched but found nothing. it would be awesome to be able to process tables in SQLITE. something like this: #+BEGIN_SRC sqlite :var a=table1 b=table2 :colnames yes select * from $a join $b using

[O] bug#23917: Please consider making Bug #23917 a blocker for 25.1 (was Re: org-capture: Capture template ‘g’: Match data clobbered by buffer modification hooks)

2016-07-20 Thread Stefan Monnier
> Maybe there's a misunderstanding. What Noam suggested was just to > move the code which adjusts search_regs.start[i] and .end[i] to before > the call to replace_range. Oh, right, that's also an option. It might suffer from another problem, which is that the match-data will be broken while the

[O] Bug: org-add-note closes log book drawer

2016-07-20 Thread N. Jackson
When org-log-into-drawer is t and the log book drawer is open, using org-add-note closes the log book drawer. I think it would be better if org-add-note left the state (open or closed) of the log book drawer alone. In comparison org-clock-in and org-clock-out do leave the state of the log book

Re: [O] [BUG] External unicode links without a description in ox-html

2016-07-20 Thread Nicolas Goaziou
Hello, Arun Isaac writes: > For external links without a description, `org-html-link' resuses the > `path' as the inner text of the exported element. However, the > `path' variable contains the URL encoded version of the `raw-path'. It > would be more appropriate to

Re: [O] Support for 24.3? WAS: Re: Funcition definiion is void: with-eval-after-load

2016-07-20 Thread Nicolas Goaziou
Hello, "Charles C. Berry" writes: > I thought org-mode was committed to supporting 24.3. > > Did this recently change? No, I didn't change. I'll change `with-eval-after-load' into `eval-after-load' ASAP. Regards, -- Nicolas Goaziou

[O] bug#23917: Please consider making Bug #23917 a blocker for 25.1 (was Re: org-capture: Capture template ‘g’: Match data clobbered by buffer modification hooks)

2016-07-20 Thread Eli Zaretskii
> From: Stefan Monnier > Cc: rpl...@gmail.com, 23...@debbugs.gnu.org, alex.ben...@linaro.org, > jwieg...@gmail.com, nljlistb...@gmail.com, npost...@users.sourceforge.net > Date: Wed, 20 Jul 2016 14:19:59 -0400 > > > Is it OK to adjust the match data before

[O] Support for 24.3? WAS: Re: Funcition definiion is void: with-eval-after-load

2016-07-20 Thread Charles C. Berry
On Wed, 20 Jul 2016, Kaushal Modi wrote: Hi Claude, `with-eval-after-load` macro was introduced in emacs 24.4. Please make sure that you are running that or a newer emacs version. I thought org-mode was committed to supporting 24.3. Did this recently change? (I am just asking --- not

Re: [O] convert rmarkdown (rmd) files to orgmode?

2016-07-20 Thread Xebar Saram
ahh i see what you mean. thats a cool tip yet i find i have to find/replace also for images, find/replace to change example blocks to R code blocks etc which is quite tedious since i have about 50 of these converted Rmd to org files :) ill keep investigating this and report back thx so much for

[O] bug#23917: Please consider making Bug #23917 a blocker for 25.1 (was Re: org-capture: Capture template ‘g’: Match data clobbered by buffer modification hooks)

2016-07-20 Thread Stefan Monnier
> Is it OK to adjust the match data before actually making the > replacement? If so, I think it's a simpler solution. >> PS: I can think of one (theoretical) other/better way to fix this >> problem: move the match-data adjustment so it's done within >> replace_range before running the

Re: [O] convert rmarkdown (rmd) files to orgmode?

2016-07-20 Thread Charles C. Berry
On Wed, 20 Jul 2016, Xebar Saram wrote: thx for the tips! when i try to run the source block : #+BEGIN_SRC emacs-lisp :results silent (replace-regexp "^=[{]r \\([^}]*\\)[}]\\(.*\\)=$" "#+name: \\1 ,#+begin_src R \\2 ,#+end_src") #+END_SRC i just get a nil in the message

Re: [O] convert rmarkdown (rmd) files to orgmode?

2016-07-20 Thread Xebar Saram
thx for the tips! when i try to run the source block : #+BEGIN_SRC emacs-lisp :results silent (replace-regexp "^=[{]r \\([^}]*\\)[}]\\(.*\\)=$" "#+name: \\1 ,#+begin_src R \\2 ,#+end_src") #+END_SRC i just get a nil in the message area. what am i missing? thx Z On

Re: [O] convert rmarkdown (rmd) files to orgmode?

2016-07-20 Thread Charles C. Berry
On Wed, 20 Jul 2016, Xebar Saram wrote: thx phil the Rmd format is actually quite different than md so that conversion didnt go well I tried this pandoc -f markdown -t org input-file.Rmd -o output-file.org then I opened `output-file.org' and put this src block at the very top:

Re: [O] how to update and add info to babel documentation?

2016-07-20 Thread Thomas S. Dye
Aloha Daniel, Please feel free to push your changes directly to Worg. Thanks again for your help. All the best, Tom dmg writes: > Thanks Tom, > > Here is my patch. > > > On Tue, Jul 19, 2016 at 10:05 AM, Thomas S. Dye wrote: > > Aloha dmg, > > You can find

[O] bug#23917: bug#23917: bug#23917: Please consider making Bug #23917 a blocker for 25.1 (was Re: org-capture: Capture template ‘g’: Match data clobbered by buffer modification hooks)

2016-07-20 Thread Eli Zaretskii
> From: Alex Bennée > Cc: 23...@debbugs.gnu.org, rpl...@gmail.com, jwieg...@gmail.com, > monn...@iro.umontreal.ca, nljlistb...@gmail.com > Date: Wed, 20 Jul 2016 10:48:45 +0100 > > So is the match data already out of sync by the time the > save-match-data call is made?

[O] bug#23917: Please consider making Bug #23917 a blocker for 25.1 (was Re: org-capture: Capture template ‘g’: Match data clobbered by buffer modification hooks)

2016-07-20 Thread Eli Zaretskii
> From: Stefan Monnier > Cc: rpl...@gmail.com, 23...@debbugs.gnu.org, alex.ben...@linaro.org, > jwieg...@gmail.com, nljlistb...@gmail.com > Date: Tue, 19 Jul 2016 21:50:07 -0400 > > > Do we care that using save-match-data in every call to replace-match > > might

[O] [BUG] External unicode links without a description in ox-html

2016-07-20 Thread Arun Isaac
For external links without a description, `org-html-link' resuses the `path' as the inner text of the exported element. However, the `path' variable contains the URL encoded version of the `raw-path'. It would be more appropriate to put the actual unescaped unicode URL in the inner text of the

Re: [O] Funcition definiion is void: with-eval-after-load

2016-07-20 Thread Kaushal Modi
On Wed, Jul 20, 2016 at 6:48 AM claude fuhrer wrote: > Thank you for your advice. My emacs version is 24.3.1 (the standard > version packaged with Linux Mint 17.2). > The latest stable version right now is 24.5. See if you can install it directly from the release tarball. I

Re: [O] convert rmarkdown (rmd) files to orgmode?

2016-07-20 Thread Xebar Saram
thx phil the Rmd format is actually quite different than md so that conversion didnt go well i ended up doing a 2 step conversion: in R (via the GUI or through R -e command line), first convert the Rmd files to md files: require(knitr) # required for knitting from rmd to md require(markdown) #

Re: [O] Funcition definiion is void: with-eval-after-load

2016-07-20 Thread claude fuhrer
Hi Kaushal On 20/07/16 12:30, Kaushal Modi wrote: Hi Claude, `with-eval-after-load` macro was introduced in emacs 24.4. Please make sure that you are running that or a newer emacs version. Thank you for your advice. My emacs version is 24.3.1 (the standard version packaged with Linux Mint

Re: [O] Funcition definiion is void: with-eval-after-load

2016-07-20 Thread Kaushal Modi
Hi Claude, `with-eval-after-load` macro was introduced in emacs 24.4. Please make sure that you are running that or a newer emacs version. On Wed, Jul 20, 2016, 5:29 AM claude fuhrer wrote: > Symbol's function definition is void: with-eval-after-load > -- Kaushal Modi

[O] bug#23917: bug#23917: bug#23917: Please consider making Bug #23917 a blocker for 25.1 (was Re: org-capture: Capture template ‘g’: Match data clobbered by buffer modification hooks)

2016-07-20 Thread Alex Bennée
Eli Zaretskii writes: >> From: Alex Bennée >> Cc: monn...@iro.umontreal.ca, 23...@debbugs.gnu.org, rpl...@gmail.com, >> jwieg...@gmail.com, nljlistb...@gmail.com, m...@lunaryorn.com >> Date: Tue, 19 Jul 2016 18:45:44 +0100 >> >> ;; Save and restore the

[O] Funcition definiion is void: with-eval-after-load

2016-07-20 Thread claude fuhrer
Hi all I've just updated my org-mode config (git pull) and now the "make all" process returns an error. org-version: 8.3.5 (release_8.3.5-970-g41c0f5) Loading /home/azubi/bin/local-lisp/org-mode/lisp/org-compat.el (source)... Symbol's function definition is void: with-eval-after-load

Re: [O] MobileOrg: index.org links files to the wrong folder

2016-07-20 Thread Nicolas Goaziou
Hello, Martin Leduc writes: > The generated index.org file in MobileOrg/ looks like: > > #+READONLY > #+TODO: TODO > #+TODO: NEXT WAITING SOMEDAY | > #+TAGS: @HOME WORK EMAIL CALL READ ERRAND AGENDAS > #+ALLPRIORITIES: A B C > * [[file:agendas.org][Agenda Views]] > *

Re: [O] [ox-publish, patch] More flexible sitemaps

2016-07-20 Thread Nicolas Goaziou
Hello, Rasmus writes: > Sorry about the slow reply. Sometimes there's not enough time. So true. > I obviously agree with your criticism. It’s not obvious how to do this > properly. > > If we provide a backend we’d have to move the index preparation to > beginning of each