* [bug?] File contents of SETUPFILE's is read twice
@ 2014-02-05 14:34 Sebastien Vauban
2014-02-05 15:28 ` Bastien
0 siblings, 1 reply; 3+ messages in thread
From: Sebastien Vauban @ 2014-02-05 14:34 UTC (permalink / raw)
To: emacs-orgmode-mXXj517/zsQ
Hello,
It seems wrong to me that the SETUPFILE's are accessed twice.
Here is the proof...
Org file (containing a reference to a non-existing setup file):
--8<---------------cut here---------------start------------->8---
#+SETUPFILE: ~/missing-file.setup
* Test
Blah...
--8<---------------cut here---------------end--------------->8---
Minimal Emacs configuration file:
--8<---------------cut here---------------start------------->8---
;; Org mode
(add-to-list 'load-path "~/Public/Repositories/org-mode/lisp")
(find-file "~/test.org")
--8<---------------cut here---------------end--------------->8---
Resulting *Messages* buffer:
--8<---------------cut here---------------start------------->8---
For information about GNU Emacs and the GNU system, type C-h C-a.
Cannot read file "d:/Users/fni/missing-file.setup" [2 times]
--8<---------------cut here---------------end--------------->8---
WDYT? (this could have a performance impact, even if marginal?)
Best regards,
Seb
--
Sebastien Vauban
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [bug?] File contents of SETUPFILE's is read twice
2014-02-05 14:34 [bug?] File contents of SETUPFILE's is read twice Sebastien Vauban
@ 2014-02-05 15:28 ` Bastien
[not found] ` <87ppn1mvdg.fsf-E3UqQZAQFPqWIDz0JBNUog@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Bastien @ 2014-02-05 15:28 UTC (permalink / raw)
To: Sebastien Vauban; +Cc: public-emacs-orgmode-mXXj517/zsQ
Hi Sébastien,
"Sebastien Vauban" <sva-news-D0wtAvR13HarG/iDocfnWg@public.gmane.org>
writes:
> It seems wrong to me that the SETUPFILE's are accessed twice.
That's because setupfile is checked within
`org-macro-initialize-templates' and `org-set-regexps-and-options',
both called from org-mode.
--
Bastien
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [bug?] File contents of SETUPFILE's is read twice
[not found] ` <87ppn1mvdg.fsf-E3UqQZAQFPqWIDz0JBNUog@public.gmane.org>
@ 2014-02-05 20:53 ` Sebastien Vauban
0 siblings, 0 replies; 3+ messages in thread
From: Sebastien Vauban @ 2014-02-05 20:53 UTC (permalink / raw)
To: Bastien; +Cc: public-emacs-orgmode-mXXj517/zsQ-wOFGN7rlS/M9smdsby/KFg
Hi Bastien,
Bastien wrote:
> "Sebastien Vauban" writes:
>
>> It seems wrong to me that the SETUPFILE's are accessed twice.
>
> That's because setupfile is checked within
> `org-macro-initialize-templates' and `org-set-regexps-and-options',
> both called from org-mode.
So, you mean that SETUPFILE *must* be read twice, right?
I understand the first call. The second one (in
`org-set-regexps-and-options') stays a bit cryptic to me, right now.
Best regards,
Seb
--
Sebastien Vauban
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-02-05 20:53 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-05 14:34 [bug?] File contents of SETUPFILE's is read twice Sebastien Vauban
2014-02-05 15:28 ` Bastien
[not found] ` <87ppn1mvdg.fsf-E3UqQZAQFPqWIDz0JBNUog@public.gmane.org>
2014-02-05 20:53 ` Sebastien Vauban
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).