Commit Graph

2497 Commits

Author SHA1 Message Date
Carsten Dominik ec11ff6f72 Fix agenda csv export to show full time
Max Mustermann writes:

> Org-mode version 6.21b in GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+
> Version 2.18.3) of 2009-11-10 on vernadsky, modified by Debian.
>
> The Org entry:
>
>   * Appointments 			       :work:
>   #+CATEGORY: Appt
>   ** Testing <2010-02-20 Sat 22:00-23:30>
>
> produces the following incomplete output with org-batch-agenda-csv :
>
>   emacs -batch -l ~/.emacs -eval '(org-batch-agenda-csv "a"
> org-agenda-ndays 1)'
>   Appt,Testing,timestamp,,work,2010-2-20,2200,,,1000,2010-2-20
>
> whereas the output of org-batch-agenda shows the correct time:
>
>   emacs -batch -l ~/.emacs -eval '(org-batch-agenda "a" org-agenda-ndays 1)'
>   Appt:       22:00-23:30 Testing                  :work::
2010-02-21 08:26:28 +01:00
Bernt Hansen c4a459aa7a Fix goto last refile location
Move the marker for the last refile location to the heading instead of at the
end of the entry.  This was causing C-u C-u C-c C-w to end up on the heading
following the newly refiled entry.
2010-02-20 20:36:38 +01:00
Carsten Dominik 91f5139273 One more hook in org-timer.el 2010-02-20 20:31:44 +01:00
Bernt Hansen 33740c5833 Fix clock-in with effort and percent complete cookie
Fixes Lisp error: (error "Not enough arguments for format string") when the
task to be clocked in has both a % in the heading due to the [%] cookie and an effort.
2010-02-20 18:06:19 +01:00
Carsten Dominik 65561fc344 Cleanup 2010-02-20 18:04:24 +01:00
Carsten Dominik 73f85e8b65 Add some hooks to org-timer.el
Patch by Austin Frank.
2010-02-20 16:14:32 +01:00
Carsten Dominik 829ed41161 Org-reveal: Double prefix arg show the entire subtree of the parent
This can help to get out of an inconsistent state produce for example
by viewing from the agenda.  Reported by Matt Lundin:

> I'd like to report a minor issue with org-agenda-goto and inline tasks.
> Let's say one has the following file:
>
> --8<---------------cut here---------------start------------->8---
> * Here is an entry.
> Blah blah blah blah.
> *************** Here is an inline task.
> *************** END
> Blah blah blah blah blah.
> *************** TODO Here is a second inline task.
> *************** END
> Blah blah blah blah blah.
> *************** Here is a third inline task
> *************** END
> Blah blah blah blah blah.
> --8<---------------cut here---------------end--------------->8---
>
> Let's say one also has the following settings:
>
> --8<---------------cut here---------------start------------->8---
> (setq org-show-hierarchy-above t)
> (setq org-show-siblings '((default . nil) (isearch . t) (agenda . t)))
> (setq org-show-entry-below '((default . nil) (isearch . t) (agenda . t)))
> --8<---------------cut here---------------end--------------->8---
>
> If 1) one tries to jump to the TODO from the agenda and 2) the entry is
> currently folded, org-show-context reveals only the headlines. E.g.,
>
> --8<---------------cut here---------------start------------->8---
> * Here is an entry.
> *************** Here is an inline task.
> *************** END...
> *************** TODO Here is a second inline task.
> *************** END...
> *************** Here is a third inline task
> *************** END...
> --8<---------------cut here---------------end--------------->8---
>
> Invoking org-cycle on the END headline does nothing, since all headlines
> deeper than org-inlinetask-min-level are exempted from cycling. As a
> result, the only way to reveal the text in the entry is to cycle the
> parent twice (first to close, then to reveal).
2010-02-19 09:43:53 +01:00
Carsten Dominik 8d6aa8f3df Agenda: Allow to suppress deadline warnings for entries also scheduled 2010-02-17 23:01:15 +01:00
Carsten Dominik f7ecc80702 Search View: Fix bug with searching full words in headlines
Patch by Peter Povinec
2010-02-17 08:27:03 +01:00
Carsten Dominik ca19fab380 Fix minor bug. 2010-02-16 17:59:57 +01:00
Carsten Dominik 8bb407117b Better detection if point is inside a latex macro
Ruud Brekelmans writes about problems with spurious footnotes:

> I still find similar behavior when exporting to LaTeX with:
>
> #+BEGIN_LaTeX
> \newcommand{\norm}[1]{\lVert#1\rVert}
> #+END_LaTeX
2010-02-16 05:41:12 +01:00
Carsten Dominik 449e6b4560 Fix bug when hiding archived subtrees
Emilio Arias writes:

> egallego@babel.ls.fi.upm.es (Emilio Jesús Gallego Arias) writes:
>
> To reproduce save this minimal org file:
>
> #+STARTUP: even
> * A
>  :PROPERTIES:
>  :ARCHIVE: a
>  :END:
> ** B 								:ARCHIVE:
>   Some text
>
> and hit TAB when in the * A headline; then the ** B headline contents
> will be incorrectly shown.
>
> I've found the culprit in org-hide-archived-subtrees:
>
> ,----
> | (defun org-hide-archived-subtrees (beg end)
> |   "Re-hide all archived subtrees after a visibility state change."
> |   (save-excursion
> |     (let* ((re (concat ":" org-archive-tag ":")))
> |       (goto-char beg)
> |       (while (re-search-forward re end t)
> | 	(and (org-on-heading-p) (org-flag-subtree t))
> | 	(org-end-of-subtree t)))))
> `----
>
> The problem is that the RE matches the first archive "property" and
> then does an org-end-of-subtree which skips all the subtrees of the
> parent tree where the ARCHIVE property is located.
>
> I've replaced this part
>
> | 	(and (org-on-heading-p) (org-flag-subtree t))
> | 	(org-end-of-subtree t)))))
>
> by
>
> |       (when (org-on-heading-p)
> |             (org-flag-subtree t)
> |             (org-end-of-subtree t)))))))
>
> so org-end-of-subtree is only called if we are really in a headline. I
> think that makes sense.
>
2010-02-16 05:30:49 +01:00
Carsten Dominik 203ad53b46 Avoid side effects on text properties 2010-02-15 20:23:05 +01:00
Carsten Dominik b856f57331 Fix some typos 2010-02-15 07:55:51 +01:00
Carsten Dominik f3e0f1e8b7 Slight cleanup of previous commit 2010-02-14 22:41:54 +01:00
Andy Lutomirski 36268491a0 org-agenda: Allow finer control of ignored todos.
Add new options to org-agenda-todo-ignore-{scheduled,deadlines}.
These will be convenient for users who want to see only todos
that need attention.
2010-02-14 22:33:40 +01:00
Carsten Dominik b3e92a8193 Make sure the org-goto buffer comes up in the current frame 2010-02-12 18:55:27 +01:00
Carsten Dominik 6e33c3fc3c ASCII export: Remove narrowing of columns for export 2010-02-12 18:48:16 +01:00
Carsten Dominik eefb8ef4f7 Fix deadline/scheduled updating if there is a repeater in *another* stamp
Patch by Paul Holocomb.
2010-02-12 18:29:22 +01:00
Carsten Dominik bb71f9f1b0 Agenda: Don't add a face to the space characters before tags
Reported by Tassilo Horn
2010-02-12 18:17:05 +01:00
Carsten Dominik 8628e6e8a8 Merge branch 'master' of git+ssh://repo.or.cz/srv/git/org-mode 2010-02-12 09:19:08 +01:00
Carsten Dominik d2f219fd41 LaTeX export: When exporting to a buffer only, do not require a file name 2010-02-12 08:34:00 +01:00
Eric Schulte 25f76ffa44 babel: now including source code block arguments w/source name on export
This change provides for better export of named source-code blocks,
  with specific support for more attractive html export.  The arguments
  are included with the source code name, and both the source code name
  and code body are wrapped in a div to support styling with css.  For
  example the following CSS can be used to associate a source-code block
  name with it's code body, and to slightly indent the body.

.org-src-container {
  border-left: 4px solid gray;
  padding: 0.5em 0.5em 0.5em 1em; }
  .org-src-container pre {
    margin-left: 1em; }
2010-02-10 13:34:00 -07:00
Carsten Dominik d731a52651 Clarify docstring 2010-02-10 13:17:23 +01:00
Eric Schulte db1fe2a619 babel: greatly simplified block exportation 2010-02-09 19:09:19 -07:00
Dan Davison 7c686465b5 Widen before exiting edit buffers 2010-02-09 16:10:06 -05:00
Carsten Dominik f5459505a3 Have quote and verse blocks be fontified again 2010-02-09 00:13:15 +01:00
Eric Schulte 19fec33d9d org-babel: on html export, removed newline after source-name which tricks up line numbering 2010-02-03 09:42:27 -07:00
Carsten Dominik 2d87c80bce Fix bug with opening a radio link in headlines 2010-02-03 16:58:44 +01:00
Carsten Dominik d16b7cd8a7 Extract times when storing new diary entries from the agenda 2010-02-03 16:23:41 +01:00
Carsten Dominik ac719d6853 Fix a typo/duplication in org-html-entities 2010-02-03 16:14:30 +01:00
Carsten Dominik 6a15c45544 Use \providecommand to make sure \alert is defined 2010-02-03 16:13:49 +01:00
Carsten Dominik a64058130f Throw an error when creating an image from a LaTeX snippet fails 2010-02-03 16:12:51 +01:00
Carsten Dominik 2cd16d4cd5 Make org-store-link point to directory in a dired buffer
When the cursor is not in a line listing a file, that is.
2010-02-02 07:22:27 +01:00
Carsten Dominik 05f7b57556 Fix export of long links in code examples 2010-02-02 06:32:26 +01:00
Carsten Dominik d7c63f6760 LaTeX export: Make inputenc coding system default to utf8 2010-02-02 06:31:21 +01:00
Carsten Dominik 16f73aff96 Let blocking be turned-off on a per-file basis using local variables
Wes Hardaker writes:

> Attached is a patch that lets local variables define whether or not todo
> dependency blocking should be used (both for TODOs and for checkboxes).
> I have one file in particular that I'm using checkboxes to quickly
> indicate multi-selections from a list but for most of my files I want
> TODOs blocked by uncompleted checkboxes.
>
> Normally org uses hook methods for checking for TODO blocks and this
> patch just inserts a check at the top to test and see if the variable
> turning on the blocking type is still set.
2010-02-01 17:34:50 +01:00
Carsten Dominik b66858acbb LaTeX export: Define the align macro 2010-02-01 17:15:54 +01:00
Carsten Dominik b8a4d004f2 Fix bug with insertion of date lines into a tree from the agenda
Reports by Stephen Eglen and Eric S Fraga.
2010-02-01 14:30:36 +01:00
Carsten Dominik e4029c5b36 Agenda: Improve prompt message for agenda view menu
Patch by Eric Fraga
2010-02-01 10:58:03 +01:00
Carsten Dominik e853e2d798 HTML export: Add class to outline containers using property
The HTML_CONTAINER_CLASS property can now be used to add a property to
the outline container of a node.
2010-02-01 09:37:35 +01:00
Carsten Dominik dbbf76a8e3 Mention level cycling in the docstring of org-cycle 2010-02-01 07:52:17 +01:00
Carsten Dominik b23f448431 When expanding remember templates, do file insertion first
zwz writes:

> I use org-remember for my contact records.
>
> This is a template in org-remember-templates
> ("Contact" ?c "* %^{Name} \n%[~/.contact]\n" "contact.org" "Contacts")
>
> the content of the file "~/.contact":
> :PROPERTIES:
> :Mobile: %^{mobile}
> :Email:
> :Added: %u
> :END:
>
> I found that the prompt "%^{mobile}" works, but *the inactive time stamp "%u"
> does not.* It is not replaced.
>
> I guess it is a bug.
2010-02-01 07:42:18 +01:00
Carsten Dominik cf88505b12 Merge branch 'master' of git+ssh://repo.or.cz/srv/git/org-mode 2010-01-31 17:51:59 +01:00
Carsten Dominik ad0079ca74 Fix habit alignment problems 2010-01-31 17:51:49 +01:00
Dan Davison 3693a47f85 org-src: Don't remove tabs when org-src-preserve-indentation is non-nil 2010-01-29 10:22:34 -05:00
Carsten Dominik 2038d61463 Improve automatic letter selection for TODO keywords
Path by Mikael Fornius
2010-01-28 19:26:41 +01:00
Carsten Dominik 6755141562 Improve some docstrings 2010-01-28 18:52:26 +01:00
Carsten Dominik 04057e2195 LaTeX export: Protect <...> arguments for BEAMER export
Bill Jackson writes:

> When exporting to LaTeX, curly brackets in a command will be escaped
> if that command also contains angle brackets.  This can be a problem
> when using beamer.  An example input file:
>
> ------------------------------------------------------------------------
>
> #+LaTeX_CLASS: beamer
>
> * The One and Only Frame
>  When LaTeX \alert<2>{commands} contain angle brackets, the curly
>  brackets are erroneously escaped in the output.  \alert{Commands}
>  that do not contain angle brackets work properly.
>
> ------------------------------------------------------------------------
>
> Typing C-c C-e l will generate the output file:
>
> ------------------------------------------------------------------------
>
> % Created 2010-01-15 Fri 13:57
> \documentclass{beamer}
> \usepackage[latin1]{inputenc}
> \usepackage[T1]{fontenc}
> \usepackage{graphicx}
> \usepackage{longtable}
> \usepackage{float}
> \usepackage{wrapfig}
> \usepackage{soul}
> \usepackage{amssymb}
> \usepackage{hyperref}
>
>
> \title{escCurly}
> \author{}
> \date{15 January 2010}
>
> \begin{document}
>
> \maketitle
>
> \begin{frame}
> \frametitle{Outline}
> \setcounter{tocdepth}{3}
> \tableofcontents
> \end{frame}
>
> \begin{frame}
> \frametitle{The One and Only Frame}
> \label{sec-1}
>
>  When \LaTeX{} \alert<2>\{commands\} contain angle brackets, the curly
>  brackets are erroneously escaped in the output.  \alert{Commands}
>  that do not contain angle brackets work properly.
> \end{frame}
>
> \end{document}
2010-01-28 15:50:20 +01:00
Carsten Dominik 4ba2cb0860 Improve LaTeX export of the words LaTeX and TeX
Bill Jackson writes:

> When exporting to LaTeX, the commands \LaTeX and \TeX are not
> processed consistently.  In particular, the backslash for \LaTeX is
> escaped.  This might not be a bug, but it is a bit confusing.  An
> example input file:
>
> ------------------------------------------------------------------------
>
> * The One and Only Header
>  The command \LaTeX generates an escaped backslash, while \TeX and
>  \alpha do not.  Note that LaTeX is converted to a command, while TeX
>  is not.
>
> ------------------------------------------------------------------------
>
> Typing C-c C-e l will generate the output file:
>
> ------------------------------------------------------------------------
>
> % Created 2010-01-15 Fri 13:47
> \documentclass[11pt]{article}
> \usepackage[latin1]{inputenc}
> \usepackage[T1]{fontenc}
> \usepackage{graphicx}
> \usepackage{longtable}
> \usepackage{float}
> \usepackage{wrapfig}
> \usepackage{soul}
> \usepackage{amssymb}
> \usepackage{hyperref}
>
>
> \title{escLaTeX}
> \author{}
> \date{15 January 2010}
>
> \begin{document}
>
> \maketitle
>
> \setcounter{tocdepth}{3}
> \tableofcontents
> \vspace*{1cm}
> \section{The One and Only Header}
> \label{sec-1}
>
>  The command \\LaTeX{} generates an escaped backslash, while \TeX and
>  $\alpha$ do not.  Note that \LaTeX{} is converted to a command, while TeX
>  is not.
>
> \end{document}
2010-01-28 15:29:35 +01:00