[O] Bug: %?%i in org-capture-templates
Hello. I have an template entry in org-capture-templates like this: (s Software usage notes entry (file ~/workspace/notes/software.org) * %^{Title} %^g\n\n %?%i) When the active region is more than one line, the %i is indented on every line by literal %?, which is not desired, I'm afraid. Only the %? on the first line gets snipped and cursor is placed there. My environment: emacs-version 24.0.91.2 org-version 7.7 -- Carl Lei (XeCycle) Department of Physics, Shanghai Jiao Tong University OpenPGP public key: 7795E591 Fingerprint: 1FB6 7F1F D45D F681 C845 27F7 8D71 8EC4 7795 E591 pgpPHYwcbsmVT.pgp Description: PGP signature
Re: [O] [PATCH] Create visibility overlays properly
Any chance to get this patch applied? Or is there anything wrong with it? * org.el (org-set-outline-overlay-data): Use outline-flag-region to make a region invisible. This ensures all necessary actions, especially adding isearch-open-invisible property, are applied. --- lisp/org.el |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index a75f96e..c4196e8 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -6599,8 +6599,7 @@ DATA should have been made by `org-outline-overlay-data'. (widen) (show-all) (mapc (lambda (c) - (setq o (make-overlay (car c) (cdr c))) - (overlay-put o 'invisible 'outline)) + (outline-flag-region (car c) (cdr c) t)) data) ;;; Folding of blocks -- 1.7.2.5
Re: [O] [PATCH] Create visibility overlays properly
Hi Milan, Milan Zamazal p...@zamazal.org writes: Any chance to get this patch applied? Or is there anything wrong with it? I looked at it and it looks good. I just wanted to take the time to carefully test the consequences of using `outline-flag-region'. The code behind is okay, but interactions with code from outline must be thought carefully. I will look at this again. Thanks for the reminder, -- Bastien
[O] Bug in latex export
Dear list, I found a problem with the latex exporter when exporting bold font: *this is a text* is exported as \textbf{this is a text\} with an extra \ which disables the }after it and causes a latex error. I use org-mode 7.7 from githhub updated on tuesday or wednesday using org-tracks. Please find the tex and the org file attached. Best, Markus % Created 2011-11-12 Sa 12:09 \documentclass{book} \usepackage{graphicx} \usepackage{longtable} \usepackage{float}\input{Templates/book_header.tex} \input{Templates/grebi-settings-macros.tex} \usepackage[style=authoryear-comp,backend=biber]{biblatex} \bibliography{Diss-zotero} \title{A title} \author{The Author} \date{12 November 2011} \begin{document} \maketitle \setcounter{tocdepth}{4} \tableofcontents \vspace*{1cm} \part{Introduction :First Draft:} \label{sec-1} \chapter{Preface} \label{sec-1.1} \section{I. INTRODUCTION} \label{sec-1.2} Here is a text: \textbf{Here is some bold text\} \end{document} #+STARTUP: hidestars #+STARTUP: indent #+STARTUP: oddeven #+TODO: TODO | DONE #+TODO: Missing FirstDraft RevisedDraft | final (only to two levels in TOC) #+OPTIONS: toc:4 *:t tags:nil H:6 ##+OPTIONS: toc:nil(no TOC at all) #+LaTeX_CMD: xelatex #+LaTeX_CLASS: book #+LaTeX_CLASS_OPTIONS: [a4paper,10pt] #+LaTeX_HEADER: \input{Templates/book_header.tex} #+LATEX_HEADER: \input{Templates/grebi-settings-macros.tex} #+LATEX_HEADER: \usepackage[style=authoryear-comp,backend=biber]{biblatex} #+LaTeX_HEADER: \bibliography{Diss-zotero} #+DRAWERS: HIDDEN PROPERTIES NOTES SYNOPSIS #+AUTHOR: The Author ## General Shortcuts # End ACRONYM Shortcuts #+TITLE: A title * Introduction :First Draft: ** Preface *** I. INTRODUCTION :aTag: Here is a text: *Here is some bold text*
[O] Mouse clicking on headings
Hi there, I occasionally use mouse on org mode files; I have the module org-mouse loaded. However only recently I noticed mouse clicking on the heading stars no longer toggles the visibility of the heading. I am annoyed by this change. Could someone enlighten me on this? Leo
Re: [O] Mouse clicking on headings
Hello, Leo sdl@gmail.com writes: However only recently I noticed mouse clicking on the heading stars no longer toggles the visibility of the heading. I cannot reproduce this on the latest version. Could you upgrade Org and tell me if the bug is still there? Thanks, -- Nicolas Goaziou
Re: [O] Mouse clicking on headings
On 2011-11-12 21:18 +0800, Nicolas Goaziou wrote: I cannot reproduce this on the latest version. Could you upgrade Org and tell me if the bug is still there? Seems to be fine in the latest version. I thought my org-mode version was fairly recent. Leo
Re: [O] Bug: cdlatex-tab in math-env isn't considered when inside of a list item. [7.7 (release_7.7.513.g2a5877)]
Hello, Maik Beckmann beckmann.m...@googlemail.com writes: The attached patch what works for me. Your patch prevents cdlatex expansion for LaTeX environments, since point must be in a LaTeX fragment to trigger `cdlatex-tab'. I've slightly modified your patch to repair that. Could you test it and report back the result? Thanks, -- Nicolas Goaziou From fed598af22ac0ecb29285c02d0a10a5af7d91fef Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou n.goaz...@gmail.com Date: Sat, 12 Nov 2011 15:04:19 +0100 Subject: [PATCH] Allow cdlatex expansions at a list item * lisp/org.el (org-try-cdlatex-tab): Don't try to expand a LaTeX environment when at an item. (org-cycle): Try to call `cdlatex-tab' before cycling item's visibility, in order to catch LaTeX fragments at an item. This patch is a slightly modified version of Maik Beckmann's work. --- lisp/org.el |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index 9f5754d..0eb458f 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -6144,6 +6144,8 @@ in special contexts. (or (bolp) (not (eq org-cycle-emulate-tab 'exc-hl-bol (org-inlinetask-toggle-visibility)) + ((org-try-cdlatex-tab)) + ;; At an item/headline: delegate to `org-cycle-internal-local'. ((and (or (and org-cycle-include-plain-lists (org-at-item-p)) (save-excursion (beginning-of-line 1) @@ -6159,8 +6161,6 @@ in special contexts. ((org-try-structure-completion)) - ((org-try-cdlatex-tab)) - ((run-hook-with-args-until-success 'org-tab-before-tab-emulation-hook)) @@ -16566,7 +16566,8 @@ It makes sense to do so if `org-cdlatex-mode' is active and if the cursor is ((save-excursion (skip-chars-backward a-zA-Z0-9*) (skip-chars-backward \t) - (bolp)) + ;; An environment cannot be started at an item bullet. + (and (bolp) (not (org-at-item-p (cdlatex-tab) t) ((org-inside-LaTeX-fragment-p) (cdlatex-tab) t) -- 1.7.7.3
Re: [O] zotero plain, org-odt, and citations in general
On Sat, Nov 12, 2011 at 2:21 AM, Christian Moe m...@christianmoe.comwrote: On 11/11/11 10:13 PM, Jambunathan K wrote: I wonder whether the issue is related to we - Matt(?), Christian(?) and I - using Windows. not me either -- ubuntu for me.
Re: [O] [bug] regression tests broken
Hi Eric Eric Schulte schulte.e...@gmail.com writes: Hi Martyn, I have all tests passing in a branch in the Org-mode git repo (which I plan to merge into master soon). Could you try a run of this on the standard-code-block-syntax branch? I've added the standard-code-block-syntax branch to my test server, and have configured notification so that you will be informed via email on failure. Unfortunately, the branch is currently failing, as are all other builds including my test-branch. I will try to take a look tomorrow on why three tests are failing. As a side note, how automated is your crusecontrol.rb setup? Would you recommend this as a way to run automated tests on the Org-mode server after every git commit? It is completely autonomous, git-pulling, cleaning, building, building docs, and running tests within 10 minutes or so of a fresh commit to the Org repository. Builds are serialized. I would certainly recommend it as an easy way of setting up a test server, since everything you need is built-in, such as email notification (notifying the list is of course a possibility), RSS, and rapid backtrace investigation etc. I have come across other gnu projects that use cruisecontrolrb. Your server would need Ruby installed (I use v1.9.2), but installation should be straight-forward since I have already written the scripts, which is fairly simple anyway. Hope that helps Best Martyn Thanks -- Eric Martyn Jago martyn.j...@btinternet.com writes: Hi All automated regression tests broken since 7720786 commit http://martynjago.com: Best, Martyn
[O] [ODT] [BUG?] Custom links are formatted as for html
Hi, Jambunathan, When I try to define a custom link type with special formatting for ODT export, the exporter behaves as if the backend is html. I'll exemplify with a tweaked version of org-bbdb-export, since that's the textbook example of a custom link. I've rewritten it below so that if the export FORMAT is 'odt, BBDB links should be in bold. (defun org-bbdb-export (path desc format) Create the export version of a BBDB link specified by PATH or DESC. If exporting to either HTML or LaTeX FORMAT the link will be italicized, in ODT it's bold, in all other cases it is left unchanged. (when (string= desc (format bbdb:%s path)) (setq desc path)) (cond ((eq format 'html) (format i%s/i desc)) ((eq format 'latex) (format \\textit{%s} desc)) ((eq format 'odt) (format text:span text:style-name=\Bold\%s/text:span desc)) (t desc))) Now, when I export this: Here's my own address (bbdb:Moe). ...the ODT document does not contain the expected: Here's my own address (text:span text:style-name=\Bold\Moe/text:span). ...instead, it contains the formatting intended for HTML: Here's my own address (iMoe/i). ...which, of course, displays as: Here's my own address (). Yours, Christian
[O] funny problem for table of contents when publishing org-latex with #+INCLUDE other.org
Hi, All I got a funny (or strange) problem when I published to latex with #+INCLUDE other org file problem: if there is no any * first line in the index.org file before the #+INCLUDE otherfile.org, there will be no table of contents. Other wise it works. For example, there are one index file and other files (all are org files), like index.org and chapter1.org a, No table of contents in latex file, IF index.org is below, #+LaTeX_CLASS: book #+TITLE: some title #+BEGIN_abstract This note describes measurement of something. #+end_abstract #+LATEX: \tableofcontents #+LATEX: \listoftables #+LATEX: \listoffigures #+INCLUDE: chapter1.org b, there is a table of content, IF I simply change #+INCLUDE: chapter1.org to * first line , anything #+INCLUDE: chapter1.org Please help to correct if it is a bug. Thanks a lot. PS, I have org 7.7 on windows 7. in .emacs file, there is (defun org-export-latex-no-toc (depth) (when depth (format %% Org-mode is exporting headings to %s levels.\n depth))) (setq org-export-latex-format-toc-function 'org-export-latex-no-toc)
Re: [O] [ODT] [BUG?] Custom links are formatted as for html
Hello Christian Christian Moe m...@christianmoe.com writes: Hi, Jambunathan, When I try to define a custom link type with special formatting for ODT export, the exporter behaves as if the backend is html. I have pushed a fix for this. Note that I haven't modified org-bbdb yet. ps: If I extrapolate this issue further, it looks like I have to audit contrib modules and see what changes I need to bring over to ODT. Jambunathan K. --
Re: [O] [ODT] [BUG?] Custom links are formatted as for html
On 11/12/11 10:24 PM, Jambunathan K wrote: When I try to define a custom link type with special formatting for ODT export, the exporter behaves as if the backend is html. I have pushed a fix for this. Note that I haven't modified org-bbdb yet. Hi, I confirm that it's fixed. Thanks! Just to be clear, I only used org-bbdb as an example, I wasn't planning to change it (but what I *was* trying to do with custom links and ODT was a bit too involved for a minimal example). (And I did not mean to imply that changing it is your job.) Yours, Christian
Re: [O] enhancements for org-agenda-to-appt
On Tue, Nov 08 2011, Daniel Clemente wrote: 1.) Warning period should be taken from timestamp That means, that the warntime must be passed to appt-add. 2.) Warning period in hours and minutes -3h for 3 hours or -10M for 10 minutes should be possible. Do you really need to extend the org-mode timestamp format? No, but the concept already exists, so why not using it? Adding something for minutes and hours should be easy, I hope. There may be other ways to do that without extending the org-mode timestamp format. Yes, properties come to my mind. Like deciding acording to priority, for instance.: [#A] are to be notified 1 hour before, [#B] 30 minutes before and [#C] 10 minutes Quite limited. Others would need then #D, #E, ... #Z too ;) 4.) Easy modification of timestamps Often I get notified, that a task has to be done now, but the most obvious and easiest solution for me is: just do it tomorrow! Thus, when point is on a deadline line, M-right should advance the time by 1d, C-right by 1h, or similar. Decrementing with M-left and C-left should be possible too, but will surely be used less often... ;) I think you can already do that with „bulk scheduling“ from the agenda. Key: m m m B s Yes, but it's not as easy as M-right. How often would you need to synchronize org and appt in order to be so precise? Today, I do it once per 5 minutes, but once per minute would be ok too. Should it be automatic? Yes, of course. 7.) Switch from todo to done by clicking on the notification window When using `notifications-notify' this should be possible with the `:on-action' parameter. I would prefer the window to open an emacsclient window pointing to the task in order to close it myself and write a conclusion, all inside Emacs. Why emacsclient? 8.) Configurable notification types For example: - email - notifications-notify - emacs-window (like the default in appt.el) - custom function Suggestion: a variable which maps some_tags_combination → action Then you „configure“ your tasks with tags, and then decide on how to notify each type of task. Why not, but personally I would prefer a property for this. 9.) Configurable notification period How often the notification function must be called (once per day, once per minute, etc...) Or even: each time that a task is scheduled or a timestamp is changed in org. Maybe this slows things down, but it would almoust guarantee real-time synchronization between org and appt It's not about synchronization, it's about how often I want to be notified. Imagine the notification is a bell, then I want to specify, how often the bell will ring. 10.) Configurable notification duration This applies only for emacs-window and notifications-notify: how long must the notification be visible. And ask for acknowledgment! It's also interesting to foresee what will happen when an unacknowledged notification waits for too long and another one comes up. IMO, it would be sufficient, to switch from TODO to DONE or to STARTED. No need for an extra acknowledgment. Best of luck, Thanks! -- Peter
Re: [O] zotero plain, org-odt, and citations in general
On 11/11/11 5:12 PM, Erik Hetzner wrote: At Fri, 11 Nov 2011 10:51:22 -0500, Matt Price wrote: Wouldn't the rigt target be, not the sqlite db, but the Zoteor*service* that runs on port 50001 when Zotero is running? Aren't there some higher-level tools for working through that interface -- e.g., erik, your rst tool uses a python library, does it talk to Zotero that way? the server that runs on port 50001 is undocumented, last I checked. And there are no tools to connect to it. Frank Bennett put together a hack of the jsbridge Firefox extension which works quite well. [1] But that is python only, as far as I can tell. A good while back -- before zotero-plain -- I spent some late nights eavesdropping on SOAP talk between OpenOffice and Zotero, and writing a Perl script to emulate some of it. It wasn't fun, and though I had some basic functionality going for a while,
Re: [O] zotero plain, org-odt, and citations in general
On 11/13/11 12:45 AM, Christian Moe wrote: A good while back -- before zotero-plain -- I spent some late nights Sorry about the noise: I didn't mean to send this fragment. Please ignore. Christian
Re: [O] Getting rid of split frame with org-capture
Hi Thomas, org-mode community, * Thomas Lockney tho...@lockney.net [10. Nov. 2011]: I'm attempting to get some code working that should create a new frame with *just* org-capture, this is something I also tried hard to achive. but when I run it, I keep getting a split despite various attempts at running delete-other-windows. I'm running on GNU Emacs 24.0.90.1 (i386-apple-darwin10.8.0, NS apple-appkit-1038.36) so perhaps this is a 24 specific issue. Here's the code I've currently got: (defadvice org-capture-finalize (after delete-capture-frame activate) Advise capture-finalize to close the frame if it is the capture frame (if (equal capture (frame-parameter nil 'name)) (delete-frame))) (defadvice org-capture-destroy (after delete-capture-frame activate) Advise capture-destroy to close the frame if it is the capture frame (if (equal capture (frame-parameter nil 'name)) (delete-frame))) (defun make-capture-frame () Create a new frame and run org-capture. (interactive) (make-frame '((name . Capture) (width . 100) (height . 15))) (select-frame-by-name Capture) (delete-other-windows) (org-capture)) I played a bit with your code. I also use emacs24. I also get a split frame. I think it's org-capture which splits the frame. I want to run this with emacsclient. But when there is no graphical (X11) frame then emacsclient -e '(make-capture-frame)' does nothing, no frame pops up. I've also tried this using the org-capture-mode-hook to call delete-other-windows and I've tried placing delete-other-windows after the call to org-capture (both of those based on solutions I've seen posted to this list at various times). Anyone have any clues on this? I'm stumped, but I'm also fairly inexperienced at programming emacs. me too. For my capture needs I would like to automatically open a frame for org-capture and also automatically close it when finishing the capture. This should happen regardless of other frames or the lack of other frames. Ciao, Gregor -- -... --- .-. . -.. ..--.. ...-.-
Re: [O] Getting rid of split frame with org-capture
Gregor Zattler telegr...@gmx.net wrote: Hi Thomas, org-mode community, * Thomas Lockney tho...@lockney.net [10. Nov. 2011]: I'm attempting to get some code working that should create a new frame with *just* org-capture, this is something I also tried hard to achive. but when I run it, I keep getting a split despite various attempts at running delete-other-windows. I'm running on GNU Emacs 24.0.90.1 (i386-apple-darwin10.8.0, NS apple-appkit-1038.36) so perhaps this is a 24 specific issue. Here's the code I've currently got: (defadvice org-capture-finalize (after delete-capture-frame activate) Advise capture-finalize to close the frame if it is the capture frame (if (equal capture (frame-parameter nil 'name)) (delete-frame))) (defadvice org-capture-destroy (after delete-capture-frame activate) Advise capture-destroy to close the frame if it is the capture frame (if (equal capture (frame-parameter nil 'name)) (delete-frame))) (defun make-capture-frame () Create a new frame and run org-capture. (interactive) (make-frame '((name . Capture) (width . 100) (height . 15))) (select-frame-by-name Capture) (delete-other-windows) (org-capture)) I played a bit with your code. I also use emacs24. I also get a split frame. I think it's org-capture which splits the frame. I want to run this with emacsclient. But when there is no graphical (X11) frame then emacsclient -e '(make-capture-frame)' does nothing, no frame pops up. I've also tried this using the org-capture-mode-hook to call delete-other-windows and I've tried placing delete-other-windows after the call to org-capture (both of those based on solutions I've seen posted to this list at various times). Anyone have any clues on this? I'm stumped, but I'm also fairly inexperienced at programming emacs. me too. For my capture needs I would like to automatically open a frame for org-capture and also automatically close it when finishing the capture. This should happen regardless of other frames or the lack of other frames. AFAICT, this is not possible with the current code. The above is attacking the problem at the wrong level: you can't change that behavior from the outside; you need to change the existing code in order to implement it. If you wish to hack, the relevant function is org-capture-place-template: changing the org-switch-to-buffer-other-window to org-switch-to-buffer-other-frame (and adding a definition for the latter function in analogy to the former) would indeed pop up a frame and you can enter your capture and finalize it - that's the easy part. But note that org-capture-finalize would need a tweak too in order to delete the now useless frame. And of course all of this would need to be done conditionally based on a new user option, perhaps org-capture-in-new-frame (nil by default). And don't forget to make it customizable. Not worth the bother IMO[fn:1], but if you wish to implement it and submit a patch, I'd be happy to review it. Nick Footnotes: [fn:1] Remember, capture is supposed to be as unobtrusive as possible: you just want to squirrel away something for future reference. Bells and whistles (which, IMO, this change would be) are not the point: you want to get in, record the data and get out and back to work as fast as possible. Popping up frames slows things down but more importantly jolts you away from what you were doing. At least, it would me (I think): that's why I don't think it's worth it, but you may very well disagree.
Re: [O] Bug: cdlatex-tab in math-env isn't considered when inside of a list item. [7.7 (release_7.7.513.g2a5877)]
2011/11/12 Nicolas Goaziou n.goaz...@gmail.com: Your patch prevents cdlatex expansion for LaTeX environments, since point must be in a LaTeX fragment to trigger `cdlatex-tab'. That actually bit me yesterday :P I've slightly modified your patch to repair that. Could you test it and report back the result? From what i can tell it works flawlessly. Thank you very much, Maik