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: Tue, 28 Feb 2017 09:05:27 +1100 Message-ID: References: <87efylux6f.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=94eb2c076276e6cb6d05498a4673 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58495) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ciTQA-0005JZ-Ap for emacs-orgmode@gnu.org; Mon, 27 Feb 2017 17:05:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ciTQ8-000257-DG for emacs-orgmode@gnu.org; Mon, 27 Feb 2017 17:05:30 -0500 Received: from mail-qk0-x235.google.com ([2607:f8b0:400d:c09::235]:33417) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ciTQ8-000252-8u for emacs-orgmode@gnu.org; Mon, 27 Feb 2017 17:05:28 -0500 Received: by mail-qk0-x235.google.com with SMTP id n127so120343144qkf.0 for ; Mon, 27 Feb 2017 14:05:28 -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 --94eb2c076276e6cb6d05498a4673 Content-Type: text/plain; charset=UTF-8 Hi Nicolas, now have at least one other report from someone able to reproduce this error using the minimal config I provided. Note that you only get the error on the first load of an org file containing source blocks. After the first one has loaded, all others load file (including re-loading of the first one). Have now reproduced the issue just using the base org package instead of org-plus-contrib and have got the same error using emacs 25.2-rc2 All works fine as soon as you remove the goto-address-prog-mode from the init. On 27 February 2017 at 08:49, Tim Cross wrote: > 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 > > -- regards, Tim -- Tim Cross --94eb2c076276e6cb6d05498a4673 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Nicolas,

now have at least one other= report from someone able to reproduce this error using the minimal config = I provided. Note that you only get the error on the first load of an org fi= le containing source blocks. After the first one has loaded, all others loa= d file (including re-loading of the first one).=C2=A0

<= div>Have now reproduced the issue just using the base org package instead o= f org-plus-contrib and have got the same error using emacs 25.2-rc2

All works fine as soon as you remove the goto-address-pro= g-mode from the init.

=
On 27 February 2017 at 08:49, Tim Cross <theophilusx@gmail.com> wrote:
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 'mixe= d version' issues. This includes the org bundled with emacs 25.1. Made = no difference.

2. Try opeing an org file which doe= s not have any source blocks. All works fine. Then tried opening the test f= ile with 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 bl= ock, did an org-reload and then opened the test file with source block. Sam= e error.=C2=A0

3. This 'looks like' a requ= ire 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 se= cond time, no error and the source block is now fontified. Makes me think t= hat perhaps org is trying to fontify the buffer before some required librar= y is loaded, reports an error, continues processing and loads the missing i= tems and from then is OK when you load the next org file with a source bloc= k.

Question: How do you get this error to throw a = backtrace? It seems toggle-on-debug has no effect. If I can get some additi= onal 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 <= ;theophilusx@gma= il.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, Nicolas G= oaziou <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,

Tim

--
Tim= Cross




--
regards,

Tim
--
Tim Cross




--
=
regards,

Tim

--
Tim Cross

--94eb2c076276e6cb6d05498a4673--