* Bug: LaTeX export produces no output; clobbering keybindings [8.2.7c (8.2.7c-64-g01f736-elpa @/home/tbg/.emacs.d/elpa/org-20140915/)]
@ 2014-09-17 8:27 Tobias Getzner
2014-09-17 9:29 ` Bug: LaTeX export produces no output; clobbering keybindings [8.2.7c (8.2.7c-64-g01f736-elpa@/home/tbg/.emacs.d/elpa/org-20140915/)] Tobias Getzner
2014-09-28 21:50 ` Bug: LaTeX export produces no output; clobbering keybindings [8.2.7c (8.2.7c-64-g01f736-elpa @/home/tbg/.emacs.d/elpa/org-20140915/)] Nicolas Goaziou
0 siblings, 2 replies; 5+ messages in thread
From: Tobias Getzner @ 2014-09-17 8:27 UTC (permalink / raw)
To: emacs-orgmode
Hello,
When using LaTeX-based export targets that produce a .tex file as output
(export to LaTeX file, PDF, PDF and open), I receive the message «Buffer
foo.tex modified; kill anyway?». Irrespective of whether I answer y/n,
no .tex file is produced, and «latexmk» fails with «no such file».
Exporting to a LaTeX buffers seems to work.
Both after issuing the file-producing exports, and when issuing
exports to buffer only (export to LaTeX buffer), the keybindings in the
original org-mode buffer become garbled; e. g., issuing another «C-c
C-e» after attempting a LaTeX export no longer invokes the export menu,
but is now bound to the command «LaTeX-enviroment». Actions such as
«fill-paragraph» also no longer work the way they usually work in
org-mode. The mode-line still reports «Org» as the major mode, though.
To get the expected commands back, I have to invoke «M-x org-mode».
I’ve also tested exporting to HTML, and this seems to work as usual. I
haven’t been using the LaTeX exporter in a while, so I’m not sure since
when this issue has been present.
I’d welcome any suggestions as to what might be the problem.
Best regards,
Tobias
Emacs : GNU Emacs 24.3.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.12.2)
of 2014-06-11 on var-lib-archbuild-staging-x86_64-jgc
Package: Org-mode version 8.2.7c (8.2.7c-64-g01f736-elpa @ /home/tbg/.emacs.d/elpa/org-20140915/)
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-latex-classes '(("sr-article"
"\\documentclass[11pt]{article}\n [DEFAULT-PACKAGES]\n [PACKAGES]\n [EXTRA]"
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\paragraph{%s}" . "\\paragraph*{%s}")
("\\subparagraph{%s}" . "\\subparagraph*{%s}"))
("article" "\\documentclass[11pt]{article}"
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
("\\paragraph{%s}" . "\\paragraph*{%s}")
("\\subparagraph{%s}" . "\\subparagraph*{%s}"))
("report" "\\documentclass[11pt]{report}"
("\\part{%s}" . "\\part*{%s}") ("\\chapter{%s}" . "\\chapter*{%s}")
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}"))
("book" "\\documentclass[11pt]{book}" ("\\part{%s}" . "\\part*{%s}")
("\\chapter{%s}" . "\\chapter*{%s}")
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}"))
)
org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook)
org-ellipsis " ▼"
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-log-done t
org-latex-format-inlinetask-function 'ignore
org-confirm-shell-link-function 'yes-or-no-p
org-image-actual-width '(500)
org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
org-startup-folded nil
org-latex-pdf-process '("latexmk -pdf %f" "latexmk -c %f")
org-file-apps '((auto-mode . emacs) (".*" . "xdg-open %s"))
org-special-ctrl-a/e t
org-shiftleft-hook '((lambda nil (org-ref-swap-citation-link -1)))
org-latex-format-headline-function 'org-latex-format-headline-default-function
org-startup-indented t
org-after-todo-state-change-hook '(org-clock-out-if-current)
org-latex-format-drawer-function '(lambda (name contents) contents)
org-from-is-user-regexp nil
org-src-mode-hook '(org-src-babel-configure-edit-buffer
org-src-mode-configure-edit-buffer)
org-tags-column 0
org-agenda-before-write-hook '(org-agenda-add-entry-text)
org-babel-pre-tangle-hook '(save-buffer)
org-mode-hook '(org-mode-reftex-setup my-org-mode-hook (lambda nil (org-bullets-mode 1))
#[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-ac/setup-current-buffer)
org-outline-path-complete-in-steps nil
org-ascii-format-drawer-function '(lambda (name contents width) contents)
org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe)
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-bullets-bullet-list '("✳")
org-confirm-elisp-link-function 'yes-or-no-p
org-metadown-hook '(org-babel-pop-to-session-maybe)
org-shiftright-hook '((lambda nil (org-ref-swap-citation-link 1)))
org-html-format-headline-function 'ignore
org-completion-use-ido t
org-html-format-inlinetask-function 'ignore
org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
org-entities-user '(("sp" "\\ " nil " " " " " " " "))
)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Bug: LaTeX export produces no output; clobbering keybindings [8.2.7c (8.2.7c-64-g01f736-elpa@/home/tbg/.emacs.d/elpa/org-20140915/)]
2014-09-17 8:27 Bug: LaTeX export produces no output; clobbering keybindings [8.2.7c (8.2.7c-64-g01f736-elpa @/home/tbg/.emacs.d/elpa/org-20140915/)] Tobias Getzner
@ 2014-09-17 9:29 ` Tobias Getzner
2014-09-23 8:41 ` Bug: LaTeX export produces no output; clobbering keybindings [8.2.7c(8.2.7c-64-g01f736-elpa@/home/tbg/.emacs.d/elpa/org-20140915/)] Tobias Getzner
2014-09-28 21:50 ` Bug: LaTeX export produces no output; clobbering keybindings [8.2.7c (8.2.7c-64-g01f736-elpa @/home/tbg/.emacs.d/elpa/org-20140915/)] Nicolas Goaziou
1 sibling, 1 reply; 5+ messages in thread
From: Tobias Getzner @ 2014-09-17 9:29 UTC (permalink / raw)
To: emacs-orgmode
On Wed, 17 Sep 2014 08:27:21 +0000, Tobias Getzner wrote:
> When using LaTeX-based export targets that produce a .tex file as output
> (export to LaTeX file, PDF, PDF and open), I receive the message «Buffer
> foo.tex modified; kill anyway?». Irrespective of whether I answer y/n,
> no .tex file is produced, and «latexmk» fails with «no such file».
>
> Both after issuing the file-producing exports, and when issuing
> exports to buffer only (export to LaTeX buffer), the keybindings in the
> original org-mode buffer become garbled; e. g., issuing another «C-c
> C-e» after attempting a LaTeX export no longer invokes the export menu,
> but is now bound to the command «LaTeX-enviroment».
I seem to have located the trigger. Inter alia, my TeX-mode-hook invokes
«(TeX-source-correlate-mode)» which sets a variable so that synctex files
are generated when running AucTeX commands. When this command is removed,
exporting to .tex files appears to work again and the keybindings remain
unchanged after export. Is this a bug, or is some configuration required
to make org-mode not trip over the TeX-mode hook?
Best regards,
T.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Bug: LaTeX export produces no output; clobbering keybindings [8.2.7c(8.2.7c-64-g01f736-elpa@/home/tbg/.emacs.d/elpa/org-20140915/)]
2014-09-17 9:29 ` Bug: LaTeX export produces no output; clobbering keybindings [8.2.7c (8.2.7c-64-g01f736-elpa@/home/tbg/.emacs.d/elpa/org-20140915/)] Tobias Getzner
@ 2014-09-23 8:41 ` Tobias Getzner
0 siblings, 0 replies; 5+ messages in thread
From: Tobias Getzner @ 2014-09-23 8:41 UTC (permalink / raw)
To: emacs-orgmode
On Wed, 17 Sep 2014 09:29:48 +0000, Tobias Getzner wrote:
> On Wed, 17 Sep 2014 08:27:21 +0000, Tobias Getzner wrote:
>
>> When using LaTeX-based export targets that produce a .tex file as output
>> (export to LaTeX file, PDF, PDF and open), I receive the message «Buffer
>> foo.tex modified; kill anyway?». Irrespective of whether I answer y/n,
>> no .tex file is produced, and «latexmk» fails with «no such file».
>>
>> Both after issuing the file-producing exports, and when issuing
>> exports to buffer only (export to LaTeX buffer), the keybindings in the
>> original org-mode buffer become garbled; e. g., issuing another «C-c
>> C-e» after attempting a LaTeX export no longer invokes the export menu,
>> but is now bound to the command «LaTeX-enviroment».
>
> I seem to have located the trigger. Inter alia, my TeX-mode-hook invokes
> «(TeX-source-correlate-mode)» which sets a variable so that synctex files
> are generated when running AucTeX commands. When this command is removed,
> exporting to .tex files appears to work again and the keybindings remain
> unchanged after export. Is this a bug, or is some configuration required
> to make org-mode not trip over the TeX-mode hook?
This behavior seems to be related to [1] in that it only triggers when
follow-mode is used. I’ve noticed I can keep my TeX-mode-hook unchanged if
I disable follow-mode. I contrast to [1], no interaction with aliasing
yes-or-no-p to y-or-n-p seemed to be present, though.
[1] http://article.gmane.org/gmane.emacs.orgmode/91006
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Bug: LaTeX export produces no output; clobbering keybindings [8.2.7c (8.2.7c-64-g01f736-elpa @/home/tbg/.emacs.d/elpa/org-20140915/)]
2014-09-17 8:27 Bug: LaTeX export produces no output; clobbering keybindings [8.2.7c (8.2.7c-64-g01f736-elpa @/home/tbg/.emacs.d/elpa/org-20140915/)] Tobias Getzner
2014-09-17 9:29 ` Bug: LaTeX export produces no output; clobbering keybindings [8.2.7c (8.2.7c-64-g01f736-elpa@/home/tbg/.emacs.d/elpa/org-20140915/)] Tobias Getzner
@ 2014-09-28 21:50 ` Nicolas Goaziou
2014-10-02 10:37 ` Tobias Getzner
1 sibling, 1 reply; 5+ messages in thread
From: Nicolas Goaziou @ 2014-09-28 21:50 UTC (permalink / raw)
To: Tobias Getzner; +Cc: emacs-orgmode
Hello,
Tobias Getzner <tobias.getzner@gmx.de> writes:
> When using LaTeX-based export targets that produce a .tex file as output
> (export to LaTeX file, PDF, PDF and open), I receive the message «Buffer
> foo.tex modified; kill anyway?». Irrespective of whether I answer y/n,
> no .tex file is produced, and «latexmk» fails with «no such file».
Try killing "foo.tex" beforehand.
> Both after issuing the file-producing exports, and when issuing
> exports to buffer only (export to LaTeX buffer), the keybindings in the
> original org-mode buffer become garbled; e. g., issuing another «C-c
> C-e» after attempting a LaTeX export no longer invokes the export menu,
> but is now bound to the command «LaTeX-enviroment». Actions such as
> «fill-paragraph» also no longer work the way they usually work in
> org-mode. The mode-line still reports «Org» as the major mode, though.
> To get the expected commands back, I have to invoke «M-x org-mode».
I cannot reproduce it. Did you find anything new?
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Bug: LaTeX export produces no output; clobbering keybindings [8.2.7c (8.2.7c-64-g01f736-elpa @/home/tbg/.emacs.d/elpa/org-20140915/)]
2014-09-28 21:50 ` Bug: LaTeX export produces no output; clobbering keybindings [8.2.7c (8.2.7c-64-g01f736-elpa @/home/tbg/.emacs.d/elpa/org-20140915/)] Nicolas Goaziou
@ 2014-10-02 10:37 ` Tobias Getzner
0 siblings, 0 replies; 5+ messages in thread
From: Tobias Getzner @ 2014-10-02 10:37 UTC (permalink / raw)
To: Nicolas Goaziou; +Cc: emacs-orgmode
Hello Nicolas,
On So, 2014-09-28 at 23:50 +0200, Nicolas Goaziou wrote:
> Hello,
>
> Tobias Getzner <tobias.getzner@gmx.de> writes:
>
> > When using LaTeX-based export targets that produce a .tex file as output
> > (export to LaTeX file, PDF, PDF and open), I receive the message «Buffer
> > foo.tex modified; kill anyway?». Irrespective of whether I answer y/n,
> > no .tex file is produced, and «latexmk» fails with «no such file».
>
> Try killing "foo.tex" beforehand.
The foo.tex buffer was produced during the export (even when no «export
to buffer» is done), so I cannot kill it beforehand.
> > Both after issuing the file-producing exports, and when issuing
> > exports to buffer only (export to LaTeX buffer), the keybindings in the
> > original org-mode buffer become garbled; e. g., issuing another «C-c
> > C-e» after attempting a LaTeX export no longer invokes the export menu,
> > but is now bound to the command «LaTeX-enviroment». Actions such as
> > «fill-paragraph» also no longer work the way they usually work in
> > org-mode. The mode-line still reports «Org» as the major mode, though.
> > To get the expected commands back, I have to invoke «M-x org-mode».
>
> I cannot reproduce it. Did you find anything new?
>
>
> Regards,
>
Cf. my follow up at [1]. The issue seems to be related to the issue
(reported at [2]) when using org-mode together with follow-mode. It
should be reproducible when follow-mode is used and
«(TeX-source-correlate-mode)» is hooked into TeX-mode-hook. In contrast
to [2], aliasing «yes-or-no-p» to «y-or-n-p» does not seem to make a
difference, though. For the time being I had to disable follow-mode to
be able to do exports and eval code blocks.
Best regards,
T.
[1] http://article.gmane.org/gmane.emacs.orgmode/91009
[2] http://article.gmane.org/gmane.emacs.orgmode/90981
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-10-02 10:38 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-17 8:27 Bug: LaTeX export produces no output; clobbering keybindings [8.2.7c (8.2.7c-64-g01f736-elpa @/home/tbg/.emacs.d/elpa/org-20140915/)] Tobias Getzner
2014-09-17 9:29 ` Bug: LaTeX export produces no output; clobbering keybindings [8.2.7c (8.2.7c-64-g01f736-elpa@/home/tbg/.emacs.d/elpa/org-20140915/)] Tobias Getzner
2014-09-23 8:41 ` Bug: LaTeX export produces no output; clobbering keybindings [8.2.7c(8.2.7c-64-g01f736-elpa@/home/tbg/.emacs.d/elpa/org-20140915/)] Tobias Getzner
2014-09-28 21:50 ` Bug: LaTeX export produces no output; clobbering keybindings [8.2.7c (8.2.7c-64-g01f736-elpa @/home/tbg/.emacs.d/elpa/org-20140915/)] Nicolas Goaziou
2014-10-02 10:37 ` Tobias Getzner
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).