unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Possible compatibility issue with emacs 25.1 and latest org-mode
@ 2017-02-26  2:20 Tim Cross
  2017-02-27 21:52 ` Tim Cross
  0 siblings, 1 reply; 2+ messages in thread
From: Tim Cross @ 2017-02-26  2:20 UTC (permalink / raw)
  To: Emacs developers

[-- Attachment #1: Type: text/plain, Size: 1656 bytes --]

This is really just an FYI as I've reported this issue to the org
developers.

Most recent org-plus-contrib package from org generates an org-mode
fontification error when you also use goto-address-prog-mode in a
prog-mode-hook.  Details, with minimal init.el file to reproduce follows

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 -----------------------------

used emacs -Q -l .emacs.d/init.el to load the init after ensuring
.emacs.d/elpa is empty.  After startup and download/install of
org-plus-contrib, open test.org and get the org-mode fontificaiton error
message


-- 
regards,

Tim

--
Tim Cross

[-- Attachment #2: Type: text/html, Size: 2552 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Possible compatibility issue with emacs 25.1 and latest org-mode
  2017-02-26  2:20 Possible compatibility issue with emacs 25.1 and latest org-mode Tim Cross
@ 2017-02-27 21:52 ` Tim Cross
  0 siblings, 0 replies; 2+ messages in thread
From: Tim Cross @ 2017-02-27 21:52 UTC (permalink / raw)
  To: Emacs developers

[-- Attachment #1: Type: text/plain, Size: 2738 bytes --]

Note that I have since confirmed this issue is also occurring with the
normal org package as well as the org-plus-contrib package including the
org package in the GNU repository and with org built from sources. Have
also reproduced the same error with emacs 25.2-rc2.

Note that the issue only occurs on the first load of an org file with
source blocks. If you then kill the buffer and open the same org file for a
second time, it loads fine, no errors and the source blocks are fontified.
Opening other org files with source blocks also works fine once the first
one has been loaded.

This is not an issue caused by mixed org versions. I have done C-u M-x
org-reload and then re-installed the org package as well as manually
deleted org from the emacs install to ensure only 9.0.5 is available with
no change.

At least 1 other person has been able to reproduce this issue.

On 26 February 2017 at 13:20, Tim Cross <theophilusx@gmail.com> wrote:

> This is really just an FYI as I've reported this issue to the org
> developers.
>
> Most recent org-plus-contrib package from org generates an org-mode
> fontification error when you also use goto-address-prog-mode in a
> prog-mode-hook.  Details, with minimal init.el file to reproduce follows
>
> 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 -----------------------------
>
> used emacs -Q -l .emacs.d/init.el to load the init after ensuring
> .emacs.d/elpa is empty.  After startup and download/install of
> org-plus-contrib, open test.org and get the org-mode fontificaiton error
> message
>
>
> --
> regards,
>
> Tim
>
> --
> Tim Cross
>
>


-- 
regards,

Tim

--
Tim Cross

[-- Attachment #2: Type: text/html, Size: 4252 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-02-27 21:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-26  2:20 Possible compatibility issue with emacs 25.1 and latest org-mode Tim Cross
2017-02-27 21:52 ` Tim Cross

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).