From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dror Atariah Subject: Re: [Orgmode] Unable to capture the file name generated using matplotlib Date: Mon, 25 May 2015 20:22:34 +0200 Message-ID: References: <87wq0qsy4o.fsf@alphaville.usersys.redhat.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1136012e0365a20516ec18d3 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47058) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ywx1K-0003tn-Bg for emacs-orgmode@gnu.org; Mon, 25 May 2015 14:22:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ywx1H-0004f9-OR for emacs-orgmode@gnu.org; Mon, 25 May 2015 14:22:38 -0400 Received: from mail-wi0-x22f.google.com ([2a00:1450:400c:c05::22f]:37108) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ywx1H-0004f2-7D for emacs-orgmode@gnu.org; Mon, 25 May 2015 14:22:35 -0400 Received: by wifw1 with SMTP id w1so5222794wif.0 for ; Mon, 25 May 2015 11:22:34 -0700 (PDT) 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Ken Mankoff Cc: Nick Dokos , "emacs-orgmode@gnu.org" --001a1136012e0365a20516ec18d3 Content-Type: text/plain; charset=UTF-8 On Mon, May 25, 2015 at 7:29 PM, Ken Mankoff wrote: > > On 2015-05-25 at 13:25, Dror Atariah wrote: > > I am sorry for reposting, but I'm still in the dark. Am I the only one > who > > experience this kind of issue? > > Don't know. > > > Did someone managed to reproduce the problem? > > I could not reproduce it. > > > Does anyone see this message? :) > > Yes. > Thanks for your reply!!!! :) > > I'm on Mac too, which is where your problem is. Are you starting with > "emacs -Q"? I haven't seen you post a full MWE with both =init.el= and = > test.org=. You did provide a test Org file but it wasn't clear to me if > that was being used with emacs -Q. > > I tried to evaluate the problematic file using =emacs -Q= and the problem is the same. Following is the section of my =init.el= that deals with org-mode (if you need more, let me know): ------8<------8<------8<------8<------8<------8<------8<------8<------8<------8<------8<------8<------8<------8<------ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Org Mode related ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (setq org-directory "~/Dropbox/org") ;; Set a location for the list of agena files (setq org-agenda-files "~/.emacs.d/agenda_files") ;; Assigns org-mode to .org files (add-to-list 'auto-mode-alist '("\\.org$" . org-mode)) (define-key global-map "\C-cl" 'org-store-link) (define-key global-map "\C-ca" 'org-agenda) (setq org-log-done t) (when window-system (require 'org-mouse)) ;; Auto enable flyspell-mode (add-hook 'org-mode-hook 'turn-on-flyspell) ;; Auto fill minor mode in org files (add-hook 'org-mode-hook 'turn-on-auto-fill) ;; Enable org-indent-mode for org buffers (add-hook 'org-mode-hook (lambda ()(org-indent-mode t)) t) ;; Use text-mode abbrev table in org-mode (add-hook 'org-mode-hook '(lambda () (setq local-abbrev-table text-mode-abbrev-table))) ;; Enables selection using SHIFT, while maintaining useful actions ;; related to SHITF in org (setq org-support-shift-select 't) ;; Enable smart qoutes (http://stackoverflow.com/q/15097114/671013) (setq org-export-with-smart-quotes t) ;; Customize the TODO-like keywords (setq org-use-fast-todo-selection t) (setq org-todo-keywords '((sequence "TODO(t)" "PROCESS(p@/!)" "|" "DONE(d!)" "CANCELED(c@ /!)"))) (setq org-todo-keyword-faces (quote (("TODO" :foreground "red" :weight bold) ("PROCESS" :foreground "blue" :weight bold) ("DONE" :foreground "forest green" :weight bold) ("CANCELLED" :foreground "forest green" :weight bold)))) (setq org-log-into-drawer t) ;; Capture-org (setq org-default-notes-file (concat org-directory "/notes.org")) (define-key global-map "\C-cc" 'org-capture) (setq org-capture-templates (quote (("t" "todo" entry (file (concat org-directory "/gtd.org")) "* TODO %?\n%U\n%a\n" :clock-in t :clock-resume t) ("n" "note" entry (file (concat org-directory "/gtd.org")) "* %? :NOTE:\n%U\n%a\n" :clock-in t :clock-resume t) ("j" "Journal" entry (file+datetree (concat org-directory "/ diary.org")) "* %?\n%U\n" :clock-in t :clock-resume t) ("v" "Vocabulary" entry (file+headline (concat org-directory "/vocab.org") "Vocabulary") "* %^{The word} :drill:\n:PROPERTIES:\n:Part-of-speech: %^{Part of speech|verb|noun|adj|adv}\n:END:\n %t\n %^{Extended word (may be empty)} \n** Answer \n%^{The definition}") ))) ;; Make use of refTeX in org-mode (defun org-mode-reftex-setup () "Setups RefTeX to be used with a org file. Code is based on http://www.mfasold.net/blog/2009/02/using-emacs-org-mode-to-draft-papers/. Once you run this, you will be asked to set a master file of the org." (interactive) (load-library "reftex") (and (buffer-file-name) (file-exists-p (buffer-file-name)) (reftex-parse-all)) (define-key org-mode-map (kbd "C-c )") 'reftex-citation) ) ;; Open indirect buffer in new frame (setq org-indirect-buffer-display 'new-frame) ;; Set common TAGS ;; Check: http://sachachua.com/blog/2008/01/tagging-in-org-plus-bonus-code-for-timeclocks-and-tags/ (setq org-tag-alist '( ("PRIVATE" . ?p) (:startgroup . nil) ("WORK" .?w) (:grouptags . nil) ("WORK@mittagseminar" . ?m) ("WORK@open_questions" . ?i) ("WORK@diss" . ?d) ("WORK@CV" . nil) (:endgroup . nil) (:startgroup . nil) ("IT" . ?I) (:grouptags . nil) ("IT@emacs" . nil) ("IT@git" . nil) ("IT@TeX" . nil) (:endgroup . nil) (:startgroup . nil) ("PROG" . ?p) (:grouptags . nil) ("PROG@mathematica" . nil) ("PROG@cgal" . nil) (:endgroup . nil) (:endgroup . nil) ("4freeTime" . ?4) )) ;; Targets include this file and any file contributing to the agenda - up to 9 levels deep (setq org-refile-targets (quote ((nil :maxlevel . 9) (org-agenda-files :maxlevel . 9)))) ;; Add time stamp of refiling (setq org-log-refile 'time) ;; Use full outline paths for refile targets - we file directly with IDO (setq org-refile-use-outline-path t) ;; Targets complete directly with IDO (setq org-outline-path-complete-in-steps nil) ;; Allow refile to create parent tasks with confirmation (setq org-refile-allow-creating-parent-nodes (quote confirm)) ;; Use IDO for both buffer and file completion and ido-everywhere to t (setq org-completion-use-ido t) (setq ido-everywhere t) (setq ido-max-directory-size 100000) (ido-mode (quote both)) ;; set latexmk the default LaTeX compiler for org-mode and in general (setq org-latex-to-pdf-process (list "latexmk -f -pdf %f")) ;; Enable clocking across sessions (setq org-clock-persist 'history) (org-clock-persistence-insinuate) ;; Set the number of clock items before wrapping them in a LOGBOOK drawer (setq org-clock-into-drawer '2) ;; Set the number of clock items before wrapping them in a LOGBOOK drawer (setq org-clock-into-drawer '2) ;; MobileOrg (load "mobileorg-setup") ;; Org drill (require 'org-drill) (setq org-drill-save-buffers-after-drill-sessions-p nil) (setq org-drill-scope 'file-no-restriction) ;; org2blog (require 'metaweblog) (require 'org2blog-autoloads) ;; Babel (setq org-src-preserve-indentation t) ;; http://stackoverflow.com/a/20903001/671013 (setq org-src-fontify-natively t) (setq org-confirm-babel-evaluate nil) (org-babel-do-load-languages 'org-babel-load-languages '((elasticsearch . t) (emacs-lisp . t) (python . t) (R . t))) ------8<------8<------8<------8<------8<------8<------8<------8<------8<------8<------8<------8<------8<------8<------ Best, Dror --001a1136012e0365a20516ec18d3 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On M= on, May 25, 2015 at 7:29 PM, Ken Mankoff <mankoff@gmail.com>= wrote:

On 2015-05-25 at 13:25, Dror Atariah <drorata@gmail.com> wrote:
> I am sorry for reposting, but I'm still in the dark. Am I the only= one who
> experience this kind of issue?

Don't know.

> Did someone managed to reproduce the problem?

I could not reproduce it.

> Does anyone see this message? :)

Yes.

Thanks for= your reply!!!! :)
=C2=A0

I'm on Mac too, which is where your problem is. Are you starting with &= quot;emacs -Q"? I haven't seen you post a full MWE with both =3Din= it.el=3D and =3Dtest.org= =3D. You did provide a test Org file but it wasn't clear to me if that = was being used with emacs -Q.

I tried to evaluate the problematic file using =3Demacs -Q=3D and the pro= blem is the same.

Following is the section of my = =3Dinit.el=3D that deals with org-mode (if you need more, let me know):

------8<------8<------8<------8<------8&l= t;------8<------8<------8<------8<------8<------8<------8= <------8<------8<------
;;;;;;;;;;;;;;;;;;;;;;;= ;;;;;;;;;;;;;;;;;;;;
;; Org Mode related
;;;;;;;;;;;;;;= ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

(setq org-directory = "~/Dropbox/org")

;; Set a location for t= he list of agena files
(setq org-agenda-files "~/.emacs.d/ag= enda_files")

;; Assigns org-mode to .org file= s
(add-to-list 'auto-mode-alist '("\\.org$" . o= rg-mode))
(define-key global-map "\C-cl" 'org-store= -link)
(define-key global-map "\C-ca" 'org-agenda)<= /div>
(setq org-log-done t)
(when window-system (require '= ;org-mouse))

;; Auto enable flyspell-mode
(add-hook 'org-mode-hook 'turn-on-flyspell)

<= div>;; Auto fill minor mode in org files
(add-hook 'org-mode-= hook 'turn-on-auto-fill)

;; Enable org-indent-= mode for org buffers
(add-hook 'org-mode-hook
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (lambda ()(org-indent-mode t)) t)

;; Use text-mode abbrev table in org-mode
(add-ho= ok 'org-mode-hook '(lambda () (setq local-abbrev-table text-mode-ab= brev-table)))

;; Enables selection using SHIFT, wh= ile maintaining useful actions
;; related to SHITF in org
(setq org-support-shift-select 't)

(setq org-export-with= -smart-quotes t)

;; Customize the TODO-like keywor= ds
(setq org-use-fast-todo-selection t)
(setq org-todo-= keywords
=C2=A0 =C2=A0 =C2=A0 '((sequence "TODO(t)"= "PROCESS(p@/!)" "|" "DONE(d!)" "CANCELE= D(c@/!)")))
(setq org-todo-keyword-faces
=C2=A0 = =C2=A0 =C2=A0 (quote (("TODO" :foreground "red" :weight= bold)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ("PR= OCESS" :foreground "blue" :weight bold)
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ("DONE" :foreground "= forest green" :weight bold)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 ("CANCELLED" :foreground "forest green&quo= t; :weight bold))))
(setq org-log-into-drawer t)

;; Capture-org
(setq org-default-notes-file (concat org-= directory "/notes.org"))
(define-key global-map "\C-cc" 'org-capture)
(setq org-capture-templates
=C2=A0 =C2=A0 =C2=A0 (quo= te (("t" "todo" entry (file (concat org-directory "= ;/gtd.org"))
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"* TODO %?\n%U\n%a\n" :c= lock-in t :clock-resume t)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 ("n" "note" entry (file (concat org-director= y "/gtd.org"))
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"* %? :NOTE:\n%U\n%a\n= " :clock-in t :clock-resume t)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 ("j" "Journal" entry (file+datetre= e (concat org-directory "/diary.org&q= uot;))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0&qu= ot;* %?\n%U\n" :clock-in t :clock-resume t)
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ("v" "Vocabulary" en= try
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(file+= headline (concat org-directory "/vocab.or= g")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "Vocabulary"= )
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"* = %^{The word} :drill:\n:PROPERTIES:\n:Part-of-speech: %^{Part of speech|verb= |noun|adj|adv}\n:END:\n %t\n %^{Extended word (may be empty)} \n** Answer \= n%^{The definition}")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 )))

;; Make use of refTeX in org-mode
(defun org-mode-reftex-setup ()
=C2=A0 "Setups RefT= eX to be used with a org file. Code is based on http://www.mfaso= ld.net/blog/2009/02/using-emacs-org-mode-to-draft-papers/.
Once you run this, you will be asked to set a master file of t= he org."
=C2=A0 (interactive)
=C2=A0 (load-library= "reftex")
=C2=A0 (and (buffer-file-name)
=C2= =A0 =C2=A0 =C2=A0 =C2=A0(file-exists-p (buffer-file-name))
=C2=A0= =C2=A0 =C2=A0 =C2=A0(reftex-parse-all))
=C2=A0 (define-key org-m= ode-map (kbd "C-c )") 'reftex-citation)
=C2=A0 )

;; Open indirect buffer in new frame
(setq= org-indirect-buffer-display 'new-frame)

;; Se= t common TAGS
(setq org-tag-alist '(
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ("PRIVATE"= ; . ?p)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 (:startgroup . nil)
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ("WORK" .?w)=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 (:grouptags . nil)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ("WORK@mittagseminar&quo= t; . ?m)
=C2=A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2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (:startg= roup . nil)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 ("PROG" . ?p)
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (:grouptags = . nil)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 ("PROG@mathematica" . nil)
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (&quo= t;PROG@cgal" . nil)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (:endgroup . nil)
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (:end= group . nil)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 ("4freeTime" . ?4)
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ))
=

;; Targets include this file and any file contributing = to the agenda - up to 9 levels deep
(setq org-refile-targets (quo= te ((nil :maxlevel . 9)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0(org-agenda-files :maxlevel . 9))))

;; Add time= stamp of refiling
(setq org-log-refile 'time)

=
;; Use full outline paths for refile targets - we file directly = with IDO
(setq org-refile-use-outline-path t)

;; Targets complete directly with IDO
(setq org-outline-pat= h-complete-in-steps nil)

;; Allow refile to create= parent tasks with confirmation
(setq org-refile-allow-creating-p= arent-nodes (quote confirm))

;; Use IDO for both b= uffer and file completion and ido-everywhere to t
(setq org-compl= etion-use-ido t)
(setq ido-everywhere t)
(setq ido-max-= directory-size 100000)
(ido-mode (quote both))

;; set latexmk the default LaTeX compiler for org-mode and in genera= l
(setq org-latex-to-pdf-process (list "latexmk -f -pdf %f&q= uot;))

;; Enable clocking across sessions
(setq org-clock-persist 'history)
(org-clock-persistence-in= sinuate)

;; Set the number of clock items before w= rapping them in a LOGBOOK drawer
(setq org-clock-into-drawer '= ;2)

;; Set the number of clock items before wrappi= ng them in a LOGBOOK drawer
(setq org-clock-into-drawer '2)

;; MobileOrg
(load "mobileorg-setup&= quot;)

;; Org drill
(require 'org-dr= ill)
(setq org-drill-save-buffers-after-drill-sessions-p nil)
(setq org-drill-scope 'file-no-restriction)

=
;; org2blog
(require 'metaweblog)
(require = 9;org2blog-autoloads)

;; Babel
(setq= org-src-preserve-indentation t) ;; http://stackoverflow.com/a/20903001/671013
(setq org-src-fontify-natively t)

(se= tq org-confirm-babel-evaluate nil)

(org-babel-do-l= oad-languages
=C2=A0'org-babel-load-languages
=C2= =A0'((elasticsearch . t)
=C2=A0 =C2=A0(emacs-lisp . t)
<= div>=C2=A0 =C2=A0(python . t)
=C2=A0 =C2=A0(R . t)))
<= div>------8<------8<------8<------8<------8<------8<-----= -8<------8<------8<------8<------8<------8<------8<---= ---8<------

Best,
Dror
--001a1136012e0365a20516ec18d3--