From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tim Cross Subject: Re: Bug: Latest org and goto-addr problems [9.0.5 (9.0.5-elpaplus @ /home/tim/.emacs.d/elpa/org-plus-contrib-20170210/)] Date: Mon, 27 Feb 2017 08:49:02 +1100 Message-ID: References: <87efylux6f.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=94eb2c06f33466e235054975ee64 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39758) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ci6gj-0000gW-Lj for emacs-orgmode@gnu.org; Sun, 26 Feb 2017 16:49:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ci6gi-0005rp-3R for emacs-orgmode@gnu.org; Sun, 26 Feb 2017 16:49:05 -0500 Received: from mail-qk0-x235.google.com ([2607:f8b0:400d:c09::235]:35468) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ci6gh-0005rj-U8 for emacs-orgmode@gnu.org; Sun, 26 Feb 2017 16:49:04 -0500 Received: by mail-qk0-x235.google.com with SMTP id u188so72380759qkc.2 for ; Sun, 26 Feb 2017 13:49:03 -0800 (PST) In-Reply-To: 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" To: Nicolas Goaziou Cc: emacs-orgmode@gnu.org --94eb2c06f33466e235054975ee64 Content-Type: text/plain; charset=UTF-8 I need some help with this one as I'm running out of ideas. What I have done - 1. Completely removed all other org installs to eliminate possible 'mixed version' issues. This includes the org bundled with emacs 25.1. Made no difference. 2. Try opeing an org file which does not have any source blocks. All works fine. Then tried opening the test file with a single source block and got the same error. The source block was not 'fontified'. Tried opening an org file with no source block, did an org-reload and then opened the test file with source block. Same error. 3. This 'looks like' a require load error or timing issue. After opening the test file and getting the error message I then kill the buffer and then open the file again for a second time, no error and the source block is now fontified. Makes me think that perhaps org is trying to fontify the buffer before some required library is loaded, reports an error, continues processing and loads the missing items and from then is OK when you load the next org file with a source block. Question: How do you get this error to throw a backtrace? It seems toggle-on-debug has no effect. If I can get some additional information on when this error is being generated, I might be able to track this down further. Tim On 26 February 2017 at 21:59, Tim Cross wrote: > > thanks Nicolas - will go back and dig further. Not sure where to look next > though. > > Tim > > > On 26 February 2017 at 20:19, Nicolas Goaziou > wrote: > >> Hello, >> >> Tim Cross writes: >> >> > There appers to be a compatibility issue between latest org-mode and >> > goto-addr.el in emacs 25.1. Specifically, the 'goto-address-prog-mode >> > funciton. When this function is added to prog-mode-hook, opening an org >> > file with src blocks results in an org-mode fontification error. >> > >> > Minimal init.el used to reproduce this issue is >> > >> > ;; -------------- Start init.el --------------------------------------- >> > (require 'package) >> > >> > (setq package-enable-at-startup nil) >> > (add-to-list 'package-archives '("org" . "http://orgmode.org/elpa/")) >> > (package-initialize) >> > >> > (unless (package-installed-p 'org-plus-contrib) >> > (package-refresh-contents) >> > (package-install 'org-plus-contrib)) >> > >> > (require 'org) >> > >> > (require 'goto-addr) >> > >> > (add-hook 'prog-mode-hook 'goto-address-prog-mode) >> > >> > ;; ------------------------ End init.el ------------------------------ >> > >> > minimal test org file used to reporduce the problem >> > >> > ;; ----------------------- Start test.org ----------------------------- >> > * Test >> > This is a simple test org file >> > >> > #+BEGIN_SRC emacs-lisp >> > (message "A Test") >> > #+END_SRC >> > >> > ;; ------------------------ End test.org ----------------------------- >> >> FWIW, I cannot reproduce it. >> >> Regards, >> >> -- >> Nicolas Goaziou >> > > > > -- > regards, > > Tim > > -- > Tim Cross > > -- regards, Tim -- Tim Cross --94eb2c06f33466e235054975ee64 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I need some help with this one as I'm running out of i= deas.

What I have done -

1. Com= pletely removed all other org installs to eliminate possible 'mixed ver= sion' issues. This includes the org bundled with emacs 25.1. Made no di= fference.

2. Try opeing an org file which does not= have any source blocks. All works fine. Then tried opening the test file w= ith a single source block and got the same error. The source block was not = 'fontified'.=C2=A0 Tried opening an org file with no source block, = did an org-reload and then opened the test file with source block. Same err= or.=C2=A0

3. This 'looks like' a require l= oad error or timing issue. After opening the test file and getting the erro= r message I then kill the buffer and then open the file again for a second = time, no error and the source block is now fontified. Makes me think that p= erhaps org is trying to fontify the buffer before some required library is = loaded, reports an error, continues processing and loads the missing items = and from then is OK when you load the next org file with a source block.

Question: How do you get this error to throw a backt= race? It seems toggle-on-debug has no effect. If I can get some additional = information on when this error is being generated, I might be able to track= this down further.

Tim

=

On 26 February 20= 17 at 21:59, Tim Cross <theophilusx@gmail.com> wrote:

thanks Nicolas - = will go back and dig further. Not sure where to look next though.

Tim


On 26 February 2017 at 20:19, Nicola= s Goaziou <mail@nicolasgoaziou.fr> wrote:
Hello,

Tim Cross <th= eophilusx@gmail.com> writes:

> There appers to be a compatibility issue between latest org-mode and > goto-addr.el in emacs 25.1. Specifically, the 'goto-address-prog-m= ode
> funciton. When this function is added to prog-mode-hook, opening an or= g
> file with src blocks results in an org-mode fontification error.
>
> Minimal init.el used to reproduce this issue is
>
> ;; -------------- Start init.el ---------------------------------= ------
> (require 'package)
>
> (setq package-enable-at-startup nil)
> (add-to-list 'package-archives '("org" . "http:/= /orgmode.org/elpa/"))
> (package-initialize)
>
> (unless (package-installed-p 'org-plus-contrib)
>=C2=A0 =C2=A0(package-refresh-contents)
>=C2=A0 =C2=A0(package-install 'org-plus-contrib))
>
> (require 'org)
>
> (require 'goto-addr)
>
> (add-hook 'prog-mode-hook 'goto-address-prog-mode)
>
> ;; ------------------------ End init.el ------------------------------=
>
> minimal test org file used to reporduce the problem
>
> ;; ----------------------- Start test.org -----------------------------
> * Test
>=C2=A0 =C2=A0This is a simple test org file
>
>=C2=A0 =C2=A0#+BEGIN_SRC emacs-lisp
>=C2=A0 =C2=A0 =C2=A0(message "A Test")
>=C2=A0 =C2=A0#+END_SRC
>
> ;; ------------------------ End test.org -----------------------------

FWIW, I cannot reproduce it.

Regards,

--
Nicolas Goaziou



--
regards,<= /div>

Tim

--
Tim Cross
=




--
regards,

Tim

--
T= im Cross

--94eb2c06f33466e235054975ee64--