From mboxrd@z Thu Jan 1 00:00:00 1970 From: steckerhalter Subject: Re: Issue with commit 6062f9e in ox-publish Date: Tue, 25 Mar 2014 15:56:18 +0100 Message-ID: References: <87lhvyk5lx.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7bb70988f31dc104f56f8dd4 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48016) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSSmA-0005wl-H8 for emacs-orgmode@gnu.org; Tue, 25 Mar 2014 10:56:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WSSm3-00016e-VA for emacs-orgmode@gnu.org; Tue, 25 Mar 2014 10:56:26 -0400 Received: from mail-we0-f169.google.com ([74.125.82.169]:60004) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSSm3-00015q-Ot for emacs-orgmode@gnu.org; Tue, 25 Mar 2014 10:56:19 -0400 Received: by mail-we0-f169.google.com with SMTP id w62so409510wes.0 for ; Tue, 25 Mar 2014 07:56:18 -0700 (PDT) In-Reply-To: <87lhvyk5lx.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nicolas Goaziou Cc: emacs-orgmode@gnu.org --047d7bb70988f31dc104f56f8dd4 Content-Type: text/plain; charset=ISO-8859-1 Hi Nicolas On Tue, Mar 25, 2014 at 10:08 AM, Nicolas Goaziou wrote: > Good catch. This should be fixed. Thank you for reporting it. > > I still get an error: Debugger entered--Lisp error: (args-out-of-range # 0 33) match-string(1) I think you need to provide the original string to match-string, so either "let" it or like so: @@ -1171,7 +1171,7 @@ the file including them will be republished as well." (and (eq (org-element-type element) 'keyword) (string-match "^\\(\".+?\"\\|\\S-+\\)" (org-element-property :value element)) - (org-remove-double-quotes (match-string 1))))) + (org-remove-double-quotes (match-string 1 (org-element-property :value element)))))) (when included-file (add-to-list 'included-files-ctime (org-publish-cache-ctime-of-src with this change it works for me cheers --047d7bb70988f31dc104f56f8dd4 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi Nicolas

On Tue, Mar 25, 2014 at 10:08 AM, Nicolas Goaziou <n.goa= ziou@gmail.com> wrote:
=A0
Good catch. This should be fixed. Thank you = for reporting it.


I still get an error:

Debugger entered--Lisp error: (args-out-of-range #<buffer org-m= ode-blog/posts/blogging-with-= org-mode.org> 0 33)
=A0 match-string(1)

I think you need to provi= de the original string to match-string, so either "let" it or lik= e so:

@@ -1171,7 +1171,7 @@ the file including the= m will be republished as well."
=A0 =A0(and (eq (o= rg-element-type element) 'keyword)
=A0 =A0 =A0 =A0 (string-match "^\\(\".= +?\"\\|\\S-+\\)"
=A0 =A0 =A0 (org= -element-property :value element))
- =A0 =A0 =A0 (org-remove-double-quotes (match-string= 1)))))
+ =A0 =A0 =A0 (org-remo= ve-double-quotes (match-string 1 (org-element-property :value element))))))=
=A0 =A0 =A0(w= hen included-file
=A0 =A0 =A0 =A0(add= -to-list 'included-files-ctime
=A0 =A0 (org-publish-cache-ctime-of-src
with this change it works for me

cheers=A0
--047d7bb70988f31dc104f56f8dd4--