emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: org-babel-tangle fails when buffer and file name differ [6.36trans (release_6.36.122.g5349.dirty)]
@ 2010-05-29  4:52 w t
  2010-06-02 13:17 ` Eric Schulte
  0 siblings, 1 reply; 2+ messages in thread
From: w t @ 2010-05-29  4:52 UTC (permalink / raw)
  To: emacs-orgmode

Open two different files with the same name, say "example.org". The
first buffer is named "example.org" and the second is named
"example.org<2>". Suppose this second file is
===========begin=example.org===========
#+begin_src sh :tangle example.sh
echo "hello!"
#+end_src
===========end===example.org===========
If we do "M-x org-babel-tangle" within the buffer "example.org<2>",
the expected file is generated. But if the buffer "example.org" is
first closed, then "M-x org-babel-tangle" will report the message "if:
No buffer named example.org" and the file "example.sh" is not
generated.



Emacs  : GNU Emacs 23.1.1 (i686-pc-linux-gnu, GTK+ Version 2.12.9)
 of 2010-04-05 on XXXXXXXX
Package: Org-mode version 6.36trans (release_6.36.122.g5349.dirty)

current state:
==============
(setq
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-babel-interpreters '("emacs-lisp" "sh")
 org-export-latex-format-toc-function 'org-export-latex-format-toc-default
 org-export-preprocess-hook '(org-export-blocks-preprocess)
 org-tab-first-hook '(org-babel-hide-result-toggle-maybe
org-hide-block-toggle-maybe)
 org-src-mode-hook '(org-src-mode-configure-edit-buffer)
 org-confirm-shell-link-function 'yes-or-no-p
 org-export-first-hook '(org-beamer-initialize-open-trackers)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
		  org-cycle-show-empty-lines org-optimize-window-after-visibility-change)
 org-export-preprocess-before-normalizing-links-hook
'(org-remove-file-link-modifiers)
 org-mode-hook '((lambda nil
		  (org-add-hook (quote change-major-mode-hook) (quote
org-babel-show-result-all)
		   (quote append) (quote local))
		  )
		 org-babel-result-hide-spec org-babel-hide-all-hashes
		 (lambda nil
		  (org-add-hook (quote change-major-mode-hook) (quote org-show-block-all)
		   (quote append) (quote local))
		  )
		 )
 org-ctrl-c-ctrl-c-hook '(org-babel-lob-execute-maybe org-babel-hash-at-point
			  org-babel-execute-src-block-maybe)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-export-interblocks '((lob org-babel-exp-lob-one-liners)
			  (src org-babel-exp-inline-src-blocks))
 org-occur-hook '(org-first-headline-recenter)
 org-from-is-user-regexp "XXXXXXXXXXXXX"
 org-export-preprocess-before-selecting-backend-code-hook
'(org-beamer-select-beamer-code)
 org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc
			       org-beamer-auto-fragile-frames
			       org-beamer-place-default-actions-for-lists)
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-export-blocks '((src org-babel-exp-src-blocks nil)
		     (comment org-export-blocks-format-comment t)
		     (ditaa org-export-blocks-format-ditaa nil)
		     (dot org-export-blocks-format-dot nil))
 )

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

* Re: Bug: org-babel-tangle fails when buffer and file name differ [6.36trans (release_6.36.122.g5349.dirty)]
  2010-05-29  4:52 Bug: org-babel-tangle fails when buffer and file name differ [6.36trans (release_6.36.122.g5349.dirty)] w t
@ 2010-06-02 13:17 ` Eric Schulte
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Schulte @ 2010-06-02 13:17 UTC (permalink / raw)
  To: w t; +Cc: emacs-orgmode

Thanks for the explicit bug report.  This issue should now be fixed.

Best -- Eric

w t <1218121@gmail.com> writes:

> Open two different files with the same name, say "example.org". The
> first buffer is named "example.org" and the second is named
> "example.org<2>". Suppose this second file is
> ===========begin=example.org===========
> #+begin_src sh :tangle example.sh
> echo "hello!"
> #+end_src
> ===========end===example.org===========
> If we do "M-x org-babel-tangle" within the buffer "example.org<2>",
> the expected file is generated. But if the buffer "example.org" is
> first closed, then "M-x org-babel-tangle" will report the message "if:
> No buffer named example.org" and the file "example.sh" is not
> generated.
>
>
>
> Emacs  : GNU Emacs 23.1.1 (i686-pc-linux-gnu, GTK+ Version 2.12.9)
>  of 2010-04-05 on XXXXXXXX
> Package: Org-mode version 6.36trans (release_6.36.122.g5349.dirty)
>
> current state:
> ==============
> (setq
>  org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
>  org-metaup-hook '(org-babel-load-in-session-maybe)
>  org-after-todo-state-change-hook '(org-clock-out-if-current)
>  org-babel-interpreters '("emacs-lisp" "sh")
>  org-export-latex-format-toc-function 'org-export-latex-format-toc-default
>  org-export-preprocess-hook '(org-export-blocks-preprocess)
>  org-tab-first-hook '(org-babel-hide-result-toggle-maybe
> org-hide-block-toggle-maybe)
>  org-src-mode-hook '(org-src-mode-configure-edit-buffer)
>  org-confirm-shell-link-function 'yes-or-no-p
>  org-export-first-hook '(org-beamer-initialize-open-trackers)
>  org-agenda-before-write-hook '(org-agenda-add-entry-text)
>  org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
> 		  org-cycle-show-empty-lines org-optimize-window-after-visibility-change)
>  org-export-preprocess-before-normalizing-links-hook
> '(org-remove-file-link-modifiers)
>  org-mode-hook '((lambda nil
> 		  (org-add-hook (quote change-major-mode-hook) (quote
> org-babel-show-result-all)
> 		   (quote append) (quote local))
> 		  )
> 		 org-babel-result-hide-spec org-babel-hide-all-hashes
> 		 (lambda nil
> 		  (org-add-hook (quote change-major-mode-hook) (quote org-show-block-all)
> 		   (quote append) (quote local))
> 		  )
> 		 )
>  org-ctrl-c-ctrl-c-hook '(org-babel-lob-execute-maybe org-babel-hash-at-point
> 			  org-babel-execute-src-block-maybe)
>  org-confirm-elisp-link-function 'yes-or-no-p
>  org-export-interblocks '((lob org-babel-exp-lob-one-liners)
> 			  (src org-babel-exp-inline-src-blocks))
>  org-occur-hook '(org-first-headline-recenter)
>  org-from-is-user-regexp "XXXXXXXXXXXXX"
>  org-export-preprocess-before-selecting-backend-code-hook
> '(org-beamer-select-beamer-code)
>  org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc
> 			       org-beamer-auto-fragile-frames
> 			       org-beamer-place-default-actions-for-lists)
>  org-metadown-hook '(org-babel-pop-to-session-maybe)
>  org-export-blocks '((src org-babel-exp-src-blocks nil)
> 		     (comment org-export-blocks-format-comment t)
> 		     (ditaa org-export-blocks-format-ditaa nil)
> 		     (dot org-export-blocks-format-dot nil))
>  )
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

end of thread, other threads:[~2010-06-02 15:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-29  4:52 Bug: org-babel-tangle fails when buffer and file name differ [6.36trans (release_6.36.122.g5349.dirty)] w t
2010-06-02 13:17 ` Eric Schulte

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