From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: args-out-of-range # Date: Wed, 16 Mar 2016 14:54:08 -0700 Message-ID: References: <877fhjxq8a.fsf@brittoffice.uwaterloo.ca> <87bn6ew15x.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e012284a6b13d30052e318d99 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53488) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1agJOO-00086X-BS for emacs-orgmode@gnu.org; Wed, 16 Mar 2016 17:54:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1agJOM-00064M-NE for emacs-orgmode@gnu.org; Wed, 16 Mar 2016 17:54:12 -0400 Received: from mail-wm0-x234.google.com ([2a00:1450:400c:c09::234]:37470) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1agJOM-00063c-DO for emacs-orgmode@gnu.org; Wed, 16 Mar 2016 17:54:10 -0400 Received: by mail-wm0-x234.google.com with SMTP id p65so91701083wmp.0 for ; Wed, 16 Mar 2016 14:54:09 -0700 (PDT) In-Reply-To: <87bn6ew15x.fsf@nicolasgoaziou.fr> 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: "britt@uwaterloo.ca" , "emacs-orgmode@gnu.org" , John Kitchin --089e012284a6b13d30052e318d99 Content-Type: text/plain; charset=UTF-8 I pushed a fix for this last night. I don't totally understand why it happens and the fix is to not run the advice in the agenda buffer. On Wednesday, March 16, 2016, Nicolas Goaziou wrote: > Hello, > > britt@uwaterloo.ca writes: > > > This message just started appearing today when I open an agenda view > > "C-c a a". It is not obvious to me what I am doing or have done > > differently, and I would appreciate some advice how to diagnose the > > problem: > > Emacs: 24.5.1 > > Orgmode: 8.3.4-5 (20160229 elpa) > > > > Thank you, -- Britt > > > > The error trace follows: > > > > Debugger entered--Lisp error: (args-out-of-range # > 1372 1409) > > match-string(1) > > (let ((s (match-string 1)) (s-begin (match-beginning 1)) (s-end > > (match-end 1)) (beg (match-beginning 0)) (end (match-end 0)) (cite-re > > (format "^\\(%s:\\)" (regexp-opt (-sort (function (lambda ... ...)) > > org-ref-cite-types)))) cite-type) (if (and s (string-match cite-re s)) > > (progn (setq cite-type (match-string 1 s)) (remove-text-properties beg > > end (quote (invisible))) (add-text-properties beg end (list (quote > > face) (list (quote :foreground) org-ref-cite-color)))))) > > (progn (let ((s (match-string 1)) (s-begin (match-beginning 1)) > > (s-end (match-end 1)) (beg (match-beginning 0)) (end (match-end 0)) > > (cite-re (format "^\\(%s:\\)" (regexp-opt (-sort (function ...) > > org-ref-cite-types)))) cite-type) (if (and s (string-match cite-re s)) > > (progn (setq cite-type (match-string 1 s)) (remove-text-properties beg > > end (quote (invisible))) (add-text-properties beg end (list (quote > > face) (list (quote :foreground) org-ref-cite-color))))))) > > (unwind-protect (progn (let ((s (match-string 1)) (s-begin > > (match-beginning 1)) (s-end (match-end 1)) (beg (match-beginning 0)) > > (end (match-end 0)) (cite-re (format "^\\(%s:\\)" (regexp-opt (-sort > > ... org-ref-cite-types)))) cite-type) (if (and s (string-match cite-re > > s)) (progn (setq cite-type (match-string 1 s)) (remove-text-properties > > beg end (quote (invisible))) (add-text-properties beg end (list (quote > > face) (list ... org-ref-cite-color))))))) (set-match-data > > save-match-data-internal (quote evaporate))) > > (let ((save-match-data-internal (match-data))) (unwind-protect > > (progn (let ((s (match-string 1)) (s-begin (match-beginning 1)) (s-end > > (match-end 1)) (beg (match-beginning 0)) (end (match-end 0)) (cite-re > > (format "^\\(%s:\\)" (regexp-opt ...))) cite-type) (if (and > > s (string-match cite-re s)) (progn (setq cite-type (match-string 1 s)) > > (remove-text-properties beg end (quote ...)) (add-text-properties beg > > end (list ... ...)))))) (set-match-data save-match-data-internal > > (quote evaporate)))) > > org-ref-make-org-link-cite-key-visible(416) > > This looks like an org-ref issue. I'm Cc'ing John Kitchin. > > Regards, > > -- > Nicolas Goaziou > -- John ----------------------------------- John Kitchin Professor Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 http://kitchingroup.cheme.cmu.edu --089e012284a6b13d30052e318d99 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I pushed a fix for this last night. I don't totally understand why it h= appens and the fix is to not run the advice in the agenda buffer.=C2=A0

On Wednesday, March 16, 2016, Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:
Hello,

britt@uwaterloo.ca=C2=A0writes:

> This message just started appearing today when I open an agenda view > "C-c a a". It is not obvious to me what I am doing or have d= one
> differently, and I would appreciate some advice how to diagnose the > problem:
> Emacs: 24.5.1
> Orgmode: 8.3.4-5 (20160229 elpa)
>
> Thank you, -- Britt
>
> The error trace follows:
>
> Debugger entered--Lisp error: (args-out-of-range #<buffer *Org Agen= da*> 1372 1409)
>=C2=A0 =C2=A0match-string(1)
>=C2=A0 =C2=A0(let ((s (match-string 1)) (s-begin (match-beginning 1)) (= s-end
> (match-end 1)) (beg (match-beginning 0)) (end (match-end 0)) (cite-re<= br> > (format "^\\(%s:\\)" (regexp-opt (-sort (function (lambda ..= . ...))
> org-ref-cite-types)))) cite-type) (if (and s (string-match cite-re s))=
> (progn (setq cite-type (match-string 1 s)) (remove-text-properties beg=
> end (quote (invisible))) (add-text-properties beg end (list (quote
> face) (list (quote :foreground) org-ref-cite-color))))))
>=C2=A0 =C2=A0(progn (let ((s (match-string 1)) (s-begin (match-beginnin= g 1))
> (s-end (match-end 1)) (beg (match-beginning 0)) (end (match-end 0)) > (cite-re (format "^\\(%s:\\)" (regexp-opt (-sort (function .= ..)
> org-ref-cite-types)))) cite-type) (if (and s (string-match cite-re s))=
> (progn (setq cite-type (match-string 1 s)) (remove-text-properties beg=
> end (quote (invisible))) (add-text-properties beg end (list (quote
> face) (list (quote :foreground) org-ref-cite-color)))))))
>=C2=A0 =C2=A0(unwind-protect (progn (let ((s (match-string 1)) (s-begin=
> (match-beginning 1)) (s-end (match-end 1)) (beg (match-beginning 0)) > (end (match-end 0)) (cite-re (format "^\\(%s:\\)" (regexp-op= t (-sort
> ... org-ref-cite-types)))) cite-type) (if (and s (string-match cite-re=
> s)) (progn (setq cite-type (match-string 1 s)) (remove-text-properties=
> beg end (quote (invisible))) (add-text-properties beg end (list (quote=
> face) (list ... org-ref-cite-color))))))) (set-match-data
> save-match-data-internal (quote evaporate)))
>=C2=A0 =C2=A0(let ((save-match-data-internal (match-data))) (unwind-pro= tect
> (progn (let ((s (match-string 1)) (s-begin (match-beginning 1)) (s-end=
> (match-end 1)) (beg (match-beginning 0)) (end (match-end 0)) (cite-re<= br> > (format "^\\(%s:\\)" (regexp-opt ...))) cite-type) (if (and<= br> > s (string-match cite-re s)) (progn (setq cite-type (match-string 1 s))=
> (remove-text-properties beg end (quote ...)) (add-text-properties beg<= br> > end (list ... ...)))))) (set-match-data save-match-data-internal
> (quote evaporate))))
>=C2=A0 =C2=A0org-ref-make-org-link-cite-key-visible(416)

This looks like an org-ref issue. I'm Cc'ing John Kitchin.

Regards,

--
Nicolas Goaziou


--
John

------------------= -----------------
John Kitchin
Professor
Doherty Hall A207F
Dep= artment of Chemical Engineering
Carnegie Mellon University
Pittsburgh= , PA 15213
412-268-7803
http://kitchingroup.cheme.cmu.edu


--089e012284a6b13d30052e318d99--