* Bug: org-wikinodes: Failed to add wikinodes to `org-font-lock-extra-keywords'. [8.2.10 (8.2.10-30-gca21b7-elpa @ /home/scott/.emacs.d/elpa/org-20150202/)]
@ 2015-02-03 15:09 Scott Campbell
2015-02-05 19:17 ` PATCH Re: Bug: org-wikinodes: Failed to add wikinodes to `org-font-lock-extra-keywords'. [8.2.10 (8.2.10-30-gca21b7-elpa <at> /home/scott/.emacs.d/elpa/org-20150202/)] Scott Campbell
0 siblings, 1 reply; 5+ messages in thread
From: Scott Campbell @ 2015-02-03 15:09 UTC (permalink / raw)
To: emacs-orgmode
Hello.
I started testing org-wikinodes, and although the functionality seems to
work (C-c C-o links from CamelCase words to headlines, with new
headlines created as necessary), I can't get the face to change to match
plain links. When I load an org file with CamelCase words/headlines, I
get an error:
"Failed to add wikinodes to `org-font-lock-extra-keywords'"
I've done what I can to isolate what's going on, trying various
combinations of running without my init file, without site-lisp, and so
on. The only way I can get it to work is if I explicitly exclude
everything except the org-wikinodes library. So, if I start with:
$emacs -Q -l .emacs.d/elpa/org-plus-contrib-201401026/org-wikinodes.el ORGFILE
then it works. But the org version is 7.9.3f, which is presumably what
ships with ubuntu 14.10. I've tried starting with an empty .emacs file,
so that it only pulls in the site-lisp, and then it fails again. I
couldn't see a difference between org-set-font-lock-defaults in org.el
version 8.2.10 and 7.9.3f, so I don't know why or what might be going on
here. Other plain links work fine (ie: http://google.com, bib:testentry,
etc). Enclosing the CamelCase in brackets (ie: [[TestLink]]) is fine.
I've included my org setup below, excepting org-agenda-files, which I
removed for privacy reasons.
If anyone has as suggestions for getting to the bottom of this, I'd be
grateful. I used to use emacs-wiki.el, way back over a decade ago and
wanted to get back into something similar. The org-wikinodes package
seemed to fit the bill, but this is a bit of a stumbling block.
Are there packages known to cause problems with faces/font-locking in
org-wikinodes? Is there another way to get wikinodes added to
org-set-font-lock-defaults? Is there anything else I could do or provide
to make debugging easier?
Thanks!
Scott
------------------------------------------------------------------------
Emacs : GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.10.9)
of 2014-06-06 on brownie, modified by Debian
Package: Org-mode version 8.2.10 (8.2.10-30-gca21b7-elpa @ /home/scott/.emacs.d/elpa/org-20150202/)
current state:
==============
(setq
org-tab-first-hook '(org-hide-block-toggle-maybe org-src-native-tab-command-maybe
org-babel-hide-result-toggle-maybe org-babel-header-arg-expand)
org-icalendar-combined-agenda-file "/tmp/org-caldav-3722Nit"
org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook)
org-occur-hook '(org-first-headline-recenter)
org-metaup-hook '(org-babel-load-in-session-maybe)
org-html-format-drawer-function '(lambda (name contents) contents)
org-latex-format-inlinetask-function 'ignore
org-clock-mode-line-total 'today
org-confirm-shell-link-function 'yes-or-no-p
org-columns-default-format "%40ITEM(task) %3PRIORITY %6Effort{:} %CLOCKSUM_T{:} %CLOCKSUM{:}"
org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
org-clock-idle-time 10
org-startup-folded 'nofold
org-export-date-timestamp-format "%Y-%m-%d"
org-link-search-must-match-exact-headline nil
org-file-apps '((auto-mode . emacs) ("\\.mm\\'" . default) ("\\.x?html?\\'" . default)
("\\.pdf\\'" . "/usr/bin/evince %s"))
org-emphasis-alist '(("_" (:background "spring green")) ("*" bold) ("/" italic) ("_" underline)
("=" org-verbatim verbatim) ("~" org-code verbatim) ("+" (:strike-through t)))
org-agenda-skip-scheduled-if-done t
org-return-follows-link t
org-latex-format-headline-function 'org-latex-format-headline-default-function
org-default-notes-file "~/doc/org/notes.org"
org-export-define-heading-targets-headline-hook '(org-wikinodes-set-wiki-targets-during-export)
org-capture-templates '(("t" "Todo" entry (file+headline "~/doc/org/notes.org" "Tasks") "* TODO %?\n %i\n %a")
("c" "calfw2org" entry (file nil) "* %?\n %(cfw:org-capture-day)"))
org-icalendar-use-scheduled '(todo-start event-if-not-todo)
org-after-todo-state-change-hook '(org-clock-out-if-current)
org-latex-format-drawer-function '(lambda (name contents) contents)
org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer)
org-agenda-before-write-hook '(org-agenda-add-entry-text)
org-babel-pre-tangle-hook '(save-buffer)
org-font-lock-set-keywords-hook '(org-wikinodes-add-to-font-lock-keywords)
org-global-properties '(("Effort_ALL" . "0 0:05 0:15 0:30 1:00 2:00 3:00 4:00"))
org-export-copy-to-kill-ring t
org-mode-hook '(org-clock-load
#[nil "\300\301\302\303\304$\207"
[org-add-hook change-major-mode-hook org-show-block-all append local] 5]
#[nil "\300\301\302\303\304$\207"
[org-add-hook change-major-mode-hook org-babel-show-result-all append local] 5]
org-babel-result-hide-spec org-babel-hide-all-hashes)
org-refile-targets '((nil :maxlevel . 1) (org-agenda-files :maxlevel . 1))
org-export-with-tags 'not-in-toc
org-agenda-sorting-strategy '((agenda time-up priority-down effort-up) (todo priority-down category-up) (tags)
(search))
org-ascii-format-drawer-function '(lambda (name contents width) contents)
org-clock-persist 'history
org-ctrl-c-ctrl-c-hook '(org-wikinodes-clear-cache-when-on-target org-babel-hash-at-point
org-babel-execute-safely-maybe)
org-directory "~/doc/org"
org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-hide-inline-tasks
org-cycle-show-empty-lines org-optimize-window-after-visibility-change)
org-archive-location "~/doc/org/archive.org::* from %s"
org-agenda-use-time-grid nil
org-export-with-drawers nil
org-modules '(org-bibtex org-docview org-gnus org-w3m org-wikinodes)
org-catch-invisible-edits 'smart
org-deadline-warning-days 1
org-ctrl-k-protect-subtree t
org-confirm-elisp-link-function 'yes-or-no-p
org-metadown-hook '(org-babel-pop-to-session-maybe)
org-log-into-drawer t
org-agenda-skip-deadline-if-done t
org-html-format-headline-function 'ignore
org-export-preprocess-after-radio-targets-hook '(org-wikinodes-process-links-for-export)
org-completion-use-iswitchb t
org-html-format-inlinetask-function 'ignore
org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
org-agenda-skip-scheduled-if-deadline-is-shown 'repeated-after-deadline
)
^ permalink raw reply [flat|nested] 5+ messages in thread
* PATCH Re: Bug: org-wikinodes: Failed to add wikinodes to `org-font-lock-extra-keywords'. [8.2.10 (8.2.10-30-gca21b7-elpa <at> /home/scott/.emacs.d/elpa/org-20150202/)]
2015-02-03 15:09 Bug: org-wikinodes: Failed to add wikinodes to `org-font-lock-extra-keywords'. [8.2.10 (8.2.10-30-gca21b7-elpa @ /home/scott/.emacs.d/elpa/org-20150202/)] Scott Campbell
@ 2015-02-05 19:17 ` Scott Campbell
2015-02-07 21:04 ` Nicolas Goaziou
0 siblings, 1 reply; 5+ messages in thread
From: Scott Campbell @ 2015-02-05 19:17 UTC (permalink / raw)
To: emacs-orgmode
Solved it.
In org-wikinodes.el, change L328 from:
(let ((m (member '(org-activate-plain-links) org-font-lock-extra-
keywords)))
to:
(let ((m (member '(org-activate-plain-links (0 'org-link t)) org-font-
lock-extra-keywords)))
to account for a change in org.el to org-set-font-lock-defaults.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: PATCH Re: Bug: org-wikinodes: Failed to add wikinodes to `org-font-lock-extra-keywords'. [8.2.10 (8.2.10-30-gca21b7-elpa <at> /home/scott/.emacs.d/elpa/org-20150202/)]
2015-02-05 19:17 ` PATCH Re: Bug: org-wikinodes: Failed to add wikinodes to `org-font-lock-extra-keywords'. [8.2.10 (8.2.10-30-gca21b7-elpa <at> /home/scott/.emacs.d/elpa/org-20150202/)] Scott Campbell
@ 2015-02-07 21:04 ` Nicolas Goaziou
2015-07-01 2:05 ` Scott Campbell
0 siblings, 1 reply; 5+ messages in thread
From: Nicolas Goaziou @ 2015-02-07 21:04 UTC (permalink / raw)
To: Scott Campbell; +Cc: emacs-orgmode
Hello,
Scott Campbell <scott.campbell@uwaterloo.ca> writes:
> Solved it.
>
> In org-wikinodes.el, change L328 from:
>
> (let ((m (member '(org-activate-plain-links) org-font-lock-extra-
> keywords)))
>
> to:
>
> (let ((m (member '(org-activate-plain-links (0 'org-link t)) org-font-
> lock-extra-keywords)))
>
> to account for a change in org.el to org-set-font-lock-defaults.
Applied. Thank you.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: PATCH Re: Bug: org-wikinodes: Failed to add wikinodes to `org-font-lock-extra-keywords'. [8.2.10 (8.2.10-30-gca21b7-elpa <at> /home/scott/.emacs.d/elpa/org-20150202/)]
2015-02-07 21:04 ` Nicolas Goaziou
@ 2015-07-01 2:05 ` Scott Campbell
2015-07-01 12:45 ` Nicolas Goaziou
0 siblings, 1 reply; 5+ messages in thread
From: Scott Campbell @ 2015-07-01 2:05 UTC (permalink / raw)
To: Nicolas Goaziou; +Cc: emacs-orgmode
Hello Nicolas,
Thanks for patching this.
Unfortunately, everytime I update the org-plus-contrib package via
orgmode.org/elpa the org-wikinodes.el file reverts and I have to fix it
manually. Should the patch be propagating to the Org mode archive?
Thanks,
Scott
Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
> Hello,
>
> Scott Campbell <scott.campbell@uwaterloo.ca> writes:
>
>> Solved it.
>>
>> In org-wikinodes.el, change L328 from:
>>
>> (let ((m (member '(org-activate-plain-links) org-font-lock-extra-
>> keywords)))
>>
>> to:
>>
>> (let ((m (member '(org-activate-plain-links (0 'org-link t)) org-font-
>> lock-extra-keywords)))
>>
>> to account for a change in org.el to org-set-font-lock-defaults.
>
> Applied. Thank you.
>
>
> Regards,
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: PATCH Re: Bug: org-wikinodes: Failed to add wikinodes to `org-font-lock-extra-keywords'. [8.2.10 (8.2.10-30-gca21b7-elpa <at> /home/scott/.emacs.d/elpa/org-20150202/)]
2015-07-01 2:05 ` Scott Campbell
@ 2015-07-01 12:45 ` Nicolas Goaziou
0 siblings, 0 replies; 5+ messages in thread
From: Nicolas Goaziou @ 2015-07-01 12:45 UTC (permalink / raw)
To: Scott Campbell; +Cc: emacs-orgmode
Hello,
Scott Campbell <scott.campbell@uwaterloo.ca> writes:
> Unfortunately, everytime I update the org-plus-contrib package via
> orgmode.org/elpa the org-wikinodes.el file reverts and I have to fix it
> manually. Should the patch be propagating to the Org mode archive?
I cherry-picked it from maint. It should be available in Org ELPA
tomorrow.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-07-01 12:44 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-03 15:09 Bug: org-wikinodes: Failed to add wikinodes to `org-font-lock-extra-keywords'. [8.2.10 (8.2.10-30-gca21b7-elpa @ /home/scott/.emacs.d/elpa/org-20150202/)] Scott Campbell
2015-02-05 19:17 ` PATCH Re: Bug: org-wikinodes: Failed to add wikinodes to `org-font-lock-extra-keywords'. [8.2.10 (8.2.10-30-gca21b7-elpa <at> /home/scott/.emacs.d/elpa/org-20150202/)] Scott Campbell
2015-02-07 21:04 ` Nicolas Goaziou
2015-07-01 2:05 ` Scott Campbell
2015-07-01 12:45 ` Nicolas Goaziou
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.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).