Commit Graph

1929 Commits

Author SHA1 Message Date
Carsten Dominik 79839719bf Clean up external dependencies of org-gnus.el
Thanks to Tassilo Horn
2009-09-03 09:11:07 +02:00
Carsten Dominik 146faeeb96 Export: Remove footnote references from TOC lines 2009-09-03 08:14:45 +02:00
Carsten Dominik c855e4cbcc Restore the window configuration after editing table formulas
Karl Stump writes:

> Table Editing Cycle With Multiple Windows On One Buffer Does Not
> Return to Start State
>
> When I have two windows open on two buffers, one to a table in a
> file that I'm editing, the other to some other file of interest,
> the editing cycle of C-` ... C-c C-c works great, meaning that
> when the cycle is finished, the windows are restored to the start
> state.
>
> But when I have two windows open on the same buffer, one window
> on the table, and the other window somewhere else, the editing
> cycle does not restore to the beginning state.
2009-09-03 08:10:36 +02:00
Carsten Dominik d48465bf1c Export: Allow macro definitions to contain other macros
Patch by Daniel Clemente
2009-09-03 08:10:36 +02:00
Carsten Dominik 0f9ad773c0 Fix bug with invisible agenda items
Peter Westlake writes:

> This is quite obscure, and an odd corner case, but here it is.
>
> If you have an item which is:
>
> - a TODO
> - scheduled
> - ordered
> - blocked by a child TODO
>
> then it leaves an empty line in the agenda.
>
> Here's a test case:
> ,----
> | * Press t r on this line in the agenda
> |   SCHEDULED: <2009-09-02 Wed>
> |   :PROPERTIES:
> |   :ORDERED:  t
> |   :END:
> | *** TODO Report invisible scheduled items
> `----
>
> C-a a a will show an agenda with "Scheduled: Press t r ...".
> Press "t" on that line to add a TODO.
> Press "r" to redisplay, and see the line go blank.
>
> Peter.
2009-09-03 08:10:36 +02:00
Carsten Dominik 19572f393a Remove autoloads from org-protocol again 2009-09-03 08:10:36 +02:00
Carsten Dominik adfa87282d Push version number to 6.30trans 2009-09-03 08:10:36 +02:00
Carsten Dominik 63e1714288 Release 6.30c 2009-09-02 14:40:56 +02:00
Carsten Dominik e34f7fc202 Add autoloads in org-protocol.el 2009-09-02 14:40:25 +02:00
Carsten Dominik 1152565013 Avoid using time-to-seconds 2009-09-02 14:37:47 +02:00
Carsten Dominik fc332703bf Release 6.30b 2009-09-02 11:33:10 +02:00
Carsten Dominik c54a49b7cc Keep compiler happy and fix some ChangeLog issues
This is in preparation for the next sync with Emacs.
2009-09-02 11:29:59 +02:00
Carsten Dominik fa2a21c313 Fix bug with line protection while including source code files
There was an issue that lines starting with a space followed by #
would be protected when importing the file, but not unprotected when
formatting the example.  The reason for this issue is that we recently
changed to protect indented #+ lines.
2009-09-02 10:42:46 +02:00
Carsten Dominik 2daabacc29 Require cl in org-html.el 2009-09-02 10:39:55 +02:00
Carsten Dominik dcd1255762 Avoid using the variable `default-major-mode'. 2009-09-02 09:30:22 +02:00
Carsten Dominik 1d04b205e6 Release 6.30a 2009-09-02 09:00:23 +02:00
Carsten Dominik 24e7c62b84 Some small fixes 2009-09-02 08:53:06 +02:00
Carsten Dominik db70cdb13b Release 6.30 2009-09-01 06:09:23 +02:00
Carsten Dominik cf67ad2bf7 Cleanup after buggy commit aedef8c804 2009-08-31 21:21:03 +02:00
Carsten Dominik 49d54ab90f Fix bug with editing fixed width region 2009-08-31 18:41:06 +02:00
Carsten Dominik aedef8c804 LaTeX export: Protect ampersands in tables 2009-08-31 14:27:28 +02:00
Carsten Dominik c46cd15045 Keep byte compiler happy 2009-08-31 12:19:56 +02:00
Carsten Dominik e20a6e44b8 Fix regexp match issue when exporting large source code snippets 2009-08-31 12:17:58 +02:00
Carsten Dominik 522ef218db Links: Improve offering entry links when there are many an duplicate ones 2009-08-31 09:31:43 +02:00
Carsten Dominik 7792fb837a Merge branch 'master' of git+ssh://repo.or.cz/srv/git/org-mode
Conflicts:
	lisp/ChangeLog
2009-08-31 08:53:35 +02:00
Carsten Dominik 4d7494d58b Agenda: Make `org-agenda-cycle-show' more consistent with normal cycling 2009-08-31 08:08:22 +02:00
Carsten Dominik d30e537868 Fix web linking in org-gnus.el
Reported by Matt Lundin, fixed by Leo.
2009-08-31 07:26:38 +02:00
Bastien Guerry 3bc997fe8f org-latex.el: bugfix about exporting first lines with no heading.
org-export-latex-first-lines was confused when there was no
heading after the first headlines.  This patch fixes this.
2009-08-30 19:10:06 +08:00
Carsten Dominik 6bddc14c20 New effort-setting commands
To set the effort property without going to column view.
2009-08-29 20:21:15 +02:00
Carsten Dominik 95d1e4e4f3 Agenda: Keep window setup when calling org-agenda from within agenda buffer 2009-08-29 20:16:28 +02:00
Carsten Dominik 99365e3961 Links: Improve following links in entry 2009-08-29 20:11:14 +02:00
Carsten Dominik 8a0ae0d3e5 LaTeX export: Fix bug with longtable export.
Karl Stump writes:

> When exporting a table with a horizontal line the column count is wrong.
>
> Output from pdflatex run:
>
> ! Extra alignment tab has been changed to \cr.
> <template> \endtemplate
>
> l.32 ....\multicolumn{4}{r}{Continued on next page}
>                                                   \
> ?
>
> Here's the table in the tex file:
>
> \begin{longtable}{||lll||}
> \caption{This is a long table with lines around and between cells}\\
>  Heading1  &  Heading2  &  Heading3 \\
> \hline
> \endhead
> \hline\multicolumn{4}{r}{Continued on next page}\
> \endfoot
> \endlastfoot
> \hline
>  alpha     &  beta      &  gamma     \\
>            &            &            \\
> \end{longtable}
>
> Here's the org file:
>
> ** table export test
>
> #+CAPTION: This is a long table with lines around and between cells
> #+LATEX_HEADER: \usepackage[landscape]{geometry}
> #+LATEX_HEADER: \geometry{left=0.12in,right=0.12in,top=0.25in,bottom=0.25in}
> #+ATTR_LaTeX: longtable align=||lll||
>
>     | / | <30>     | <10>     | <10>     |
>     |   | Heading1 | Heading2 | Heading3 |
>     |---+----------+----------+----------|
>     |   | alpha    | beta     | gamma    |
>     |   |          |          |          |

Nick Dokos replies:

> I believe it's because of the dummy "calculation-mark" column,
> which is not exported. However, the variable org-table-last-alignment
> (a list, whose length becomes the value of the \multicolumn argument)
> ends up having the value (nil nil nil nil), i.e. it counts the dummy
> column as well. What the proper place to adjust the value is, I don't
> know, but it should be easy for Carsten to fix it. For the time being,
> you can either get rid of the dummy row and column (e.g. if you don't
> need the widths) or fix it by hand in the LaTeX file.

Indeed, and this commit pops `org-table-last-alignment' if the first
column has been removed by `org-table-clean-before-export'.  The same
problem must have caused a one-off error when setting the alignment in
LaTeX tables, bu it seems nobody has noticed this so far.  Anyway,
also this is fixed now.
2009-08-29 07:22:33 +02:00
Carsten Dominik ff176db7a8 Add artist as an editing mode for ditaa. 2009-08-28 23:33:04 +02:00
Carsten Dominik 93ea7371bd Fix bug when removing scheduled/deadline times
Bernt Hansen writes:

> I ran into this a few weeks ago and it's been bugging me.
>
> I reorganized a project which had a deadline on the main task and moved
> it down to multiple subtasks in the project.
>
> ,----
> | * TODO Project task
> |   DEADLINE: <2009-08-28 Fri>
> | ** TODO Step 1
> | ** TODO Step 2
> | ...
> | ** TODO Step n
> `----
>
> I decided the DEADLINE really doesn't belong at the top -- since the
> deadline was for step 2 (and a few other tasks)... so I moved it the
> hard way.  Instead of cutting it out and pasting it back in the right
> tree I just used C-c C-d and entered the same date on step 2 (because I
> was moving the date a bit from the original date).
>
> ,----
> | * TODO Project task
> |   DEADLINE: <2009-08-28 Fri>
> | ** TODO Step 1
> | ** TODO Step 2
> |    DEADLINE: <2009-08-28 Fri>
> | ...
> | ** TODO Step n
> `----
>
> Now to remove the deadline from the Project task I just did C-u C-c C-d
> on the Project task but this removed all the deadlines in the subtree
> and my deadline in Step 2 (and others) is now gone.
>
> AFAICT SCHEDULED: works the same way.  This doesn't feel natural to me
> but I know it is documented this way.
>
> Does the way it works now really make sense or would just removing the
> deadline from the task you are working on be better.
>
> C-c C-d sets a deadline just for this task, so it felt natural to me
> that C-u C-c C-d would remove the deadline just for this task -- but
> that's what I get for not reading the manual (or forgetting since I read
> it ;)
2009-08-28 14:41:15 +02:00
Carsten Dominik 31b0deb4aa Add language abbreviation "elisp" for "emacs-lisp".
Patch by Eric Schulte.
2009-08-28 13:03:12 +02:00
Carsten Dominik 012eabc35f Links: Make C-c C-o on a headline offer all links in headline and entry text 2009-08-28 10:42:37 +02:00
Carsten Dominik 5f35facc1a Docstring fix, patch by Gregory J. Gubbs 2009-08-28 10:05:11 +02:00
Carsten Dominik 4b6988bf36 Make editing src snippets work better with killing buffers and exiting emacs
Patch by Dan Davison.  For more information, see

   http://thread.gmane.org/gmane.emacs.orgmode/14142/focus=16378
2009-08-28 09:58:20 +02:00
Carsten Dominik f88f4fc4fb Export: Remove table rows that only contain width and alignment markers
The width and alignment in table columns can be set with a cookie like
"<10>" or "<r>" or "<r10>".  In order to keep Org from exporting such
lines, the first column of a line can contain only "/".  However, for
convenience, this commit implements a special case:  If the entire row
contains only sch markers, the line will automatically be discarded
during export.
2009-08-28 09:18:41 +02:00
Carsten Dominik 10d59f78bb Squash yet another bug due to outline-functions skipping invisible headings.
Bernt Hansen writes:

> I think I have something that is reproducible.
>
> ,----[ /tmp/x.org ]
> |
> | * Refile Targets
> | ** TODO One
> | ** TODO Two
> | ** TODO Three
> | ** TODO Four
> | ** TODO Five
> | ** TODO Six
> | *** TODO Six.one
> | *** TODO Six.two
> | **** TODO Clock me
> | ** TODO Seven
> | ** TODO Eight
> | ** TODO Nine
> | ** TODO Ten
> | * Refile Tasks
> | ** TODO Refile Me
> `----
>
> ,----[ /tmp/minimal.emacs ]
> | (add-to-list 'load-path (expand-file-name "~/git/org-mode/lisp"))
> | (add-to-list 'auto-mode-alist '("\\.\\(org\\|org_archive\\|txt\\)$" . org-mode))
> | (require 'org-install)
> |
> | (global-set-key "\C-cl" 'org-store-link)
> | (global-set-key "\C-ca" 'org-agenda)
> | (global-set-key "\C-cb" 'org-iswitchb)
> |
> | (setq org-log-done (quote time))
> | (setq org-log-into-drawer t)
> | (setq org-agenda-files '("/tmp/x.org"))
> | (setq user-init-file "/tmp/custom.el")
> |
> | (setq org-refile-allow-creating-parent-nodes nil)
> | (setq org-refile-targets (quote ((nil :maxlevel . 2) (org-agenda-files :maxlevel . 2))))
> | (setq org-refile-use-outline-path nil)
> | (setq org-todo-keywords (quote ((sequence "TODO(t!)" "STARTED(s!)" "|" "DONE(d!/!)") (sequence "WAITING(w@/!)" "SOMEDAY(S!)" "OPEN(O@)" "|" "CANCELLED(c@/!)") (sequence "QUOTE(q!)" "QUOTED(Q!)" "|" "APPROVED(A@)" "EXPIRED(E@)" "REJECTED(R@)"))))
> `----
>
> Steps to reproduce:
>
>  1. Save the files /tmp/x.org and /tmp/minimal.emacs
>  2. emacs -q -l /tmp/minimal.emacs /tmp/x.org
>  3. Go to CONTENTS view with S-TAB twice
>  4. Put point on **** TODO Clock Me
>  5. Clock in the task with C-c C-x C-i
>
>     This adds a logbook drawer with the clock
>
>  6. Fold to OVERVIEW view with S-TAB
>
>     So it looks like this
>
>     ,----[ x.org folder ]
>     |
>     | * Refile Targets...
>     | * Refile Tasks...
>     `----
>
>  7. M-x org-clock-goto
>
>     This reveals the buffer like so:
>
>     ,----
>     |
>     | * Refile Targets...
>     | **** TODO Clock me
>     |      :LOGBOOK:...
>     | ...
>     | * Refile Tasks...
>     `----
>
>     I think this is the critical step.
>
>  8. Put point on Refile Tasks
>  9. Show task to refile with TAB
>  10. Put point on ** TODO Refile Me
>  11. Refile to Ten with C-c C-w Ten RET
>  12. Put point on Refile Me
>  13. Reveal with C-c C-r
>
>      Shows that we are under TODO Ten.  So far so good
>
>      ,----
>      |
>      | * Refile Targets...
>      | **** TODO Clock me
>      |      :LOGBOOK:...
>      | ...
>      | ** TODO Ten
>      | *** TODO Refile Me
>      | * Refile Tasks
>      `----
>
>  14. Now repeat steps 10-13 but refile to 'Two' instead of 'Ten'
>
>      This goes to the wrong place.  This files under Nine for me
>
>      ,----
>      |
>      | * Refile Targets...
>      | **** TODO Clock me
>      |      :LOGBOOK:...
>      | ...
>      | ** TODO Nine
>      | *** TODO Refile Me
>      | ** TODO Ten
>      | * Refile Tasks
>      `----
>
>  15. Repeat steps 10-13 with refiling to 'Two' each time
>
>      This moves Refile Me up one task at a time until it gets to Two
>      ie. it refiles to Eight, then Seven, then Six, then Five, then
>      Four then Three, then Two.
>
> If you show contents view with S-TAB and then refile it goes to the
> right place immediately.  So this definitely has something to do with
> the folded view of the org file.
>
2009-08-28 08:51:07 +02:00
Carsten Dominik bbc27c011a Agenda: When in separate frame, mark the frame dedicated.
Henry Atting writes:

> If org agenda is displayed in an other frame then windows aren*t
> restored when quitting, I have to kill the frame manually.  I
> really would like it to behave like e.g. gnus-other-frame which
> automatically kills his frame on quitting.
2009-08-27 18:18:28 +02:00
Carsten Dominik fa36f186b2 New keys for switching the agenda through time.
The new keys are b and f.  This used to be on the cursor keys, but
they do now again do cursor motion.

This is a significant change in the UI, I hope this will not cause too
many problems.
2009-08-27 16:08:55 +02:00
Carsten Dominik 99f507daf5 Keep byte compiler happy 2009-08-27 15:18:25 +02:00
Carsten Dominik 8160044f2e Avoid problems with table alignment an overlays.
We now first insert a new aligned table, and then remove to old one,
this helps to keep overlays after the table from covering table text
as well.
2009-08-27 12:50:36 +02:00
Carsten Dominik 210251347c Better error message for parsing a bogus time string 2009-08-27 12:02:21 +02:00
Carsten Dominik 44bb3134d0 Revert "LaTeX export: Fix problem with emphasis in quotes"
This reverts commit 0ba7d3d2f9.

Conflicts:

	lisp/ChangeLog
2009-08-27 10:29:04 +02:00
Carsten Dominik 350691164b Avoid calling `goto-line' from lisp programs 2009-08-27 10:24:09 +02:00
Carsten Dominik dc0f321e94 Merge branch 'master' of git+ssh://repo.or.cz/srv/git/org-mode
Conflicts:
	lisp/ChangeLog
2009-08-27 09:57:51 +02:00
Carsten Dominik 632d7813ec Agenda: New submode to show entry text inline with the agenda entries.
The key access it `E'.
2009-08-27 09:56:46 +02:00
Carsten Dominik d0bee84a32 Force visual line motion off in the agenda 2009-08-27 07:42:12 +02:00
Bernt Hansen 64d3186ff6 Fix agenda bulk refile bug
Fix bulk refiling in the agenda due to commit
9ec5529 (Fix jumping to last refile location in agenda, 2009-08-20)

This restores the original behaviour.
2009-08-26 10:29:24 -04:00
Carsten Dominik c2265b4145 Improve following links from the agenda
`C-c C-o' in the agenda will now offer links visible in the agenda
line and also links in the entry text of the original outline node.
2009-08-26 13:09:26 +02:00
Carsten Dominik 7284206c6a Merge branch 'for-carsten' of git://git.norang.ca/org-mode
Conflicts:
	lisp/org-agenda.el
2009-08-26 06:40:45 +02:00
Bastien Guerry c34ca53f2f org-notify: bugfix by Bernt Hansen. 2009-08-26 11:28:25 +08:00
Carsten Dominik 8a72889e39 Agenda: Improve of the command `org-agenda-open-link'
It can now handle multiple links in the entry, as well as entry text
pulled in via `E'.
2009-08-25 22:45:58 +02:00
Bernt Hansen 9ec5529af0 Fix jumping to last refile location in agenda
C-u C-u C-c C-w now goes to the last refile location in the agenda.
This is the same behaviour as org-refile (when used in an org file)
2009-08-25 10:05:14 -04:00
Carsten Dominik babb63a27f Simplify storing links from gnus
Patch by Leo, with Tassilo's and Bastien's blessing
2009-08-25 13:43:33 +02:00
Carsten Dominik c03d64ceb2 Merge branch 'fix-plain-links'
Conflicts:
	lisp/ChangeLog
2009-08-25 11:13:27 +02:00
Carsten Dominik 1c8b0c3b41 Do not add extra empty lines for display formulas
Longmin Wang writes:

> Hi,
>
> I am using org-mode integrated in emacs 23.1.1.  When I export
> the org file to html file, the enumerations will be interrupted
> by some displayed math formulae. For example, the codes
>
>  1. The first.
>
>  2. A displayed formula: \[ \int_0^{+\infty} \frac{c}{1+x^2}dx=1. \]
>
>  3. The third.
>
> will generate
>
>   1. The first.
>   2. A displayed formula:
>   <the formula>
>   1. The third.
>
> Is it a bug? Or I made some mistakes in the source file.
2009-08-25 11:05:36 +02:00
Carsten Dominik 0688613ca8 Test implementation for agenda showing some amount of entry text 2009-08-24 18:43:10 +02:00
Carsten Dominik 9eaab0b5cf Visibility Cycling: Allow to show all empty lines after a headline
`org-cycle-separator-lines' can now get a negative value, to indicate
that, if the number of empty lines before a visible entry is greater
than the specified number, then *all* empty lines should be shown.
2009-08-24 14:50:40 +02:00
Carsten Dominik 0f826c4e87 Fix the definition of org-src-language-modes
Patch by Eric Schulte
2009-08-24 12:25:17 +02:00
Carsten Dominik 0b0460703a Fix plain link export 2009-08-24 11:13:00 +02:00
Carsten Dominik 0db9bf496c Remember: Allow to escape % 2009-08-24 07:16:27 +02:00
Bastien Guerry 754694dd4b Use org-notify to show a notification and possibly play a sound. 2009-08-24 02:44:29 +08:00
Bastien Guerry 486e807b1b org-gnus.el: Handle `gnus-summary-mode' and `gnus-article-mode' separately.
Use `gnus-summary-article-header' function when in gnus-summary-mode.
This way the article doesn't get displayed unnecessarily.  We don't use
this function in the gnus-article-mode because it is not reliable.

Thanks to Leo for this suggestion.
2009-08-24 02:28:53 +08:00
Carsten Dominik 5e9fc20394 Allow language names where the major mode name seems unrelated to the language
Eric Schulte writes:

> Attached is a small patch for a small issue.
>
> Sometimes a language uses a major mode which can't be guessed
> from it's name.  This patch introduces the `org-src-lang-modes'
> variable which can be used to map language names to major modes
> when this is the case.  This is used when editing a source-code
> block, or when exporting fontified source-code with htmlize.
>
> So far the only instance of this that I know of is ocaml and
> tuareg-mode, so that's the only thing that `org-src-lang-modes'
> is pre-populated with.  Maybe there are other instances as well?
2009-08-23 19:31:47 +02:00
Carsten Dominik 23e30ef38e Remove forgotten (debug) form. 2009-08-23 19:12:16 +02:00
Carsten Dominik 0a7e8ab221 LaTeX export: Modify the structure of the listings name option.
The variable `org-export-latex-listings-langs' is now an alist.
2009-08-23 19:11:12 +02:00
Carsten Dominik a48fe32c4c LaTeX export: Avoid footnote processing in LATEX_HEADER lines
Nick Dokos writes:

> I define a LaTeX macro at the top of my document, like so:
>
> ,----
> | ...
> | #+LATEX_HEADER: \newcommand{\rowstyle}[1]{\gdef\currentrowstyle{#1}%
> | #+LATEX_HEADER:   #1\ignorespaces
> | #+LATEX_HEADER: }
> | ...
> `----
>
> and export - I get the following inserted:
>
> ,----
> | ...
> | \begin{document}
> |
> |
> |
> |
> |
> | \$\^{}{1}\$ FOOTNOTE DEFINITION NOT FOUND: 1
> | ...
> `----
>
> Obviously, the macro argument spec is mistaken for a footnote.
2009-08-21 06:44:29 +01:00
Bernt Hansen 38f3009927 Skip git-version determination if git command fails
This removes errors generated on a windows system where msysGit is
installed in git bash only and not available from cmd.exe in the
user's PATH.
2009-08-20 15:00:05 -04:00
Bernt Hansen ffaa4ff134 Use lisp cd function to change directories to avoid shell dependencies
This fixes git version determination on windows for cygwin and for msysGit
where git is installed in the user's PATH for the windows command shell.
2009-08-20 15:00:04 -04:00
Carsten Dominik eece1706ff Merge branch 'master' of git+ssh://repo.or.cz/srv/git/org-mode
Conflicts:
	lisp/ChangeLog
2009-08-20 10:19:36 +01:00
Carsten Dominik 62b932c8d5 Make folded blocks searchable
Patch by Eric Schulte
2009-08-20 08:59:34 +01:00
Bastien Guerry c7b7213bed org-flag-drawer: display the position where the error occurs.
Patch by Friedrich Delgado Friedrichs <friedel@nomaden.org>.
2009-08-19 17:05:27 +08:00
Carsten Dominik c2712137be Clean up after John's iswitchb patch 2009-08-19 09:33:17 +01:00
Carsten Dominik c7c1a9ea75 Minor change in wording of privacy prompt 2009-08-19 07:10:41 +01:00
Carsten Dominik 473f1843d9 Minor fix 2009-08-19 00:07:33 +01:00
Carsten Dominik 464210a0d1 New command to submit a bug report 2009-08-18 22:08:42 +01:00
Bernt Hansen a32e8e8fec Add .dirty to git org-version info if files are modified
Shows files as modified by appending .dirty to indicate that
you are running org-mode from a dirty working tree (some tracked
files are modified)
2009-08-18 20:05:56 +01:00
Bernt Hansen a5e87a4723 Add git version number to org-version information
Adds the output of 'git describe' to the org-version string if we are running
from a git repository.  This identifies exactly what commit is checked out in
the org-mode git repository when reporting the org-mode version number.

org-version returns something like:

    Org-mode version 6.29trans (release_6.29c.42.g5996)

which shows 6.29trans (somewhere after the last release tag) which
is 42 commits after release_6.29c at git commit 5996.

The git describe information is not included if org mode is not
running from a git repository.
2009-08-18 20:05:45 +01:00
Carsten Dominik 8c33812854 Improve documentation about hierarchical versus recursive statistics 2009-08-18 15:43:55 +01:00
Carsten Dominik d52aaaf51c Minor fix 2009-08-18 07:55:13 +01:00
Carsten Dominik 0ba7d3d2f9 LaTeX export: Fix problem with emphasis in quotes 2009-08-18 07:45:35 +01:00
Carsten Dominik dec80f2451 LaTeX export: Add support for +strike-through+ emphasis 2009-08-18 07:28:03 +01:00
Carsten Dominik 158a5d8fe6 Improve documentation on inclusion if inactive timestamps. 2009-08-18 07:17:15 +01:00
Carsten Dominik e9cdfce08c Fix indentation in code export
Patch by Eric Schulte.
2009-08-18 06:35:50 +01:00
Carsten Dominik ca699a970d Agenda: Fix problem with block entries.
This bug was caused by commit
8c177dc832, and reported by Matt
Lundin.  The problem was that this commit tried to remove the text
propertes of the MATCH part of an agenda command.  However, in block
commands, the MATCH part is not a string.
2009-08-18 06:31:33 +01:00
Carsten Dominik dbc99e6550 Add MACRO to completion works 2009-08-16 09:48:58 +02:00
Carsten Dominik f7e208da37 Make latex preview also use the packages in `org-export-latex-packages-alist'. 2009-08-16 09:38:03 +02:00
Carsten Dominik 94d91eaf03 HTML export: Fix bugs with footnotes. 2009-08-16 06:41:30 +02:00
Carsten Dominik 05f25b3de4 Remove (debug) form 2009-08-16 05:36:05 +02:00
Carsten Dominik 15227843ab Fix some issues related to the recent iswitchb patch 2009-08-16 00:31:39 +02:00
Carsten Dominik 09acabcfb3 Fix some typos, add a new variable 2009-08-15 08:16:45 +02:00
John Wiegley 5acac25dc1 All completing-read behavior for iswitchb users
This is enabled using org-completion-use-iswitchb, and follows the same
model of usage as for ido users.
2009-08-15 01:14:04 +02:00
Carsten Dominik 7d5fe030e3 Get rid of unnecessary prompt in agenda view
Patch by Bernt Hansen

http://thread.gmane.org/gmane.emacs.orgmode/16485
2009-08-14 20:47:39 +02:00
Carsten Dominik 8c177dc832 Avoid text properties on elements in custom variables 2009-08-14 17:18:14 +02:00
Carsten Dominik 8d59e10a06 Bugfix: Keep todo keyword list valid
An entry `#+TODO:' without content make `M-x org-mode' fail.
While it may cause problems to have no TODO keywords defined, this
should not make entering the mode fail.
2009-08-12 18:38:07 +02:00
Carsten Dominik b069091873 Newlines in macros can de defined using \n 2009-08-12 11:10:30 +02:00
Carsten Dominik 5b7ea02286 Fix typos
Thanks to Nick Dokos.
2009-08-12 10:19:57 +02:00
Carsten Dominik 5834ad01b6 LaTeX snippets: Avoid Overlap
It is possible that the regular expressions for LaTeX snippets match
at nested locations.  For example, Nick Dokos submitted this:

,----
| #+LaTeX_HEADER: \usepackage{amsmath}
|
| * foo
|
| \[
| \begin{matrix}
| 1&d\\
| d&d\\
| \end{matrix}
| \]
|
`----

where the snippet regexps match at \[ ... \] and also at
\\begin{matrix}.

This would lead to two nested overlays being placed.  With this
commit, only the outer one will remain.
2009-08-11 16:32:05 +02:00
Carsten Dominik 1d18043506 LaTeX export: Add more languages for source code publishing 2009-08-11 15:45:10 +02:00
Carsten Dominik 5ad80265af Macros: Fix bugs with macro arguments distributed over lines 2009-08-11 15:29:53 +02:00
Carsten Dominik 59370b6a83 LaTeX export: Remove bug in table export.
A `save-excursion' around a call to org-table-align make point end up
*before* the table.  The reason is that a table align replaces the
entire table, including the newline before it.  When the table is
removed in order to be replaced, the marker created by
`save-excursion' slips.  `org-table-align' has it's own, built-in
`save-excursion' by remembering the line and column where the cursor
was before the align.
2009-08-11 07:51:12 +02:00
Carsten Dominik bd8e4e248a Fix problem with completing #+STARTUP 2009-08-10 14:45:57 +02:00
Carsten Dominik bd8e816ea0 Move constant definition so that org-html does not have to be loaded just for font-locking 2009-08-10 14:02:24 +02:00
Carsten Dominik 05ef736ac0 Allow Macros to span several lines.
However, if you are using arguments, it is required that the opening
parenthesis is attached to the macro name, and that the closing
parenthesis is attached to the three closing braces.
2009-08-10 10:08:34 +02:00
Carsten Dominik b70a5e0357 Merge branch 'master' of git+ssh://repo.or.cz/srv/git/org-mode
Conflicts:
	lisp/ChangeLog
2009-08-09 14:52:25 +02:00
Carsten Dominik c5783bd8bd LaTeX export: Allow export using the listings package
Patch by Eric Schulte, see

http://thread.gmane.org/gmane.emacs.orgmode/16269
2009-08-09 14:51:09 +02:00
Andrew Stribblehill b2743b9e37 Remove some blank leading blank lines from ASCII export.
With the following org file:
------
Foo

In which foos are described.
#+OPTIONS: num:nil author:nil creator:nil timestamp:nil d:nil toc:nil skip:t
#+TITLE:
* The construction of a foo
** Armaments
------
I found exporting to ASCII gave five leading blank lines. The
following patch reduces that to one. (I'd love some help in tracking
down that final one.)
2009-08-09 14:34:05 +02:00
Bastien Guerry 46b89a6030 Bugfix: aborting `org-iswitchb' should not activate iswitchb-mode. 2009-08-08 14:38:28 +08:00
Carsten Dominik 6bd7ffef36 Incorporate Glen Morris' changes in downstream Emacs 2009-08-08 06:34:24 +02:00
Carsten Dominik dfd3749a27 Fix bug with including files without markup
File contents that are included with "#+include: file"
should be processed as normal Org stuff.  This used to be so,
and it is so now again.
2009-08-08 06:10:59 +02:00
Carsten Dominik ab2ed6adb8 Agenda: avoid some duplicate entries
New variable `org-agenda-skip-scheduled-if-deadline-is-shown' to avoid
that a entry shows up in the agenda for today for both a scheduling
and a deadline entry.  See the docstring of the variables for more
details.
2009-08-07 23:59:22 +02:00
Carsten Dominik 76d970b761 Fix bug with C-RET
Leo writes:

> Hi there,
>
> ,----[ (info "(org)Structure editing") ]
> | `C-<RET>'
> |      Just like `M-<RET>', except when adding a new heading below the
> |      current heading, the new heading is placed after the body instead
> |      of before it.  This command works from anywhere in the entry.
> `----
>
> Inside a substree and with the point at the beginning of a line, C-RET
> turns the current line into a heading. In the following example, ><
> indicates where the point is.
>
> ----------------
> * Sample
> <  This is not a heading
> ----------------
>
> After C-RET, it changes to
> ----------------
> * Sample
> * This is not a heading
> ----------------
>
> I can reproduce this with org 6.29c as included in Emacs. Can someone
> else reproduce this bug?
2009-08-07 16:29:43 +02:00
Carsten Dominik 0af5133334 Mark running clock in the agenda.
If the entry currently being clocked is present in the agenda, mark it.
2009-08-07 11:00:16 +02:00
Carsten Dominik 295491a5e8 Add org-track.el. 2009-08-07 07:29:42 +02:00
Carsten Dominik 0622debb55 Agenda: Add a command to toggle the bulk mark. 2009-08-07 07:22:22 +02:00
Carsten Dominik bfdd3d3fd3 Push version number to 6.29trans 2009-08-06 12:07:20 +02:00
Carsten Dominik 0864163024 Release 6.29c 2009-08-06 06:26:23 +02:00
Carsten Dominik c069ebe327 Minor fixes
Patch by Samuel Wales.
2009-08-06 06:23:49 +02:00
Carsten Dominik 8eba33958f LaTeX export: Fix export problems when exporting a region
Dan Griswold writes:

> Hi there,
>
> Well, I think this a bug.
>
> Given this org input file:
>
> ,----
> | * Things
> | ** A Heading
> |    - some
> |    - stuff
> |    - in
> |    - a
> |    - list
> | ** Another heading
> |    - another
> |    - list
> `----
>
> then if I select the level one heading (titled "Things")
> with C-c @, and export to LaTeX using C-c C-e l, I get this
> output:
>
> ,----
> | % Created 2009-07-29 Wed 20:24
> | \documentclass[12pt]{article}
> | \usepackage[utf8]{inputenc}
> | \usepackage[T1]{fontenc}
> | \usepackage{graphicx}
> | \usepackage{longtable}
> | \usepackage{hyperref}
> |
> |
> | \title{Things}
> | \author{Daniel M. Griswold}
> | \date{July 29, 2009}
> |
> | \begin{document}
> |
> | \maketitle
> |
> | ** A Heading
> | \begin{itemize}
> | \item some
> | \item stuff
> | \item in
> | \item a
> | \item list
> | \end{itemize}
> | ** Another heading
> | \begin{itemize}
> | \item another
> | \item list
> | \end{itemize}
> |
> | \end{document}
> `----
>
> Note that the top level headings ("A Heading" and "Another
> Heading") are not exported as \section, but with the
> asterisks they have in the org file:
>
> ,----
> | ** A Heading
> | \begin{itemize}
> |
> |   ... snip ...
> |
> | \end{itemize}
> | ** Another heading
> `----
>
> Exporting the whole file does what it's supposed to do:
> export the headlines as \section and \subsection.

This commit fixes the issue.
2009-08-05 18:18:35 +02:00
Carsten Dominik 00658851ec Remove invalid -E option from dvipng call 2009-08-05 17:53:39 +02:00
Carsten Dominik b3e7b992f8 Minor changes 2009-08-05 17:02:42 +02:00
Carsten Dominik e40370e810 Make #+BIND work correctly, and ask the user to confirm using BIND. 2009-08-05 16:30:02 +02:00
Carsten Dominik 8cd94ce203 Export: Fix bug with #+BIND 2009-08-05 14:43:55 +02:00
Carsten Dominik d6b37ddbea Release 6.29b 2009-08-05 12:34:30 +02:00
Carsten Dominik e5158d35e4 Fix more refile bugs 2009-08-05 12:32:56 +02:00
Carsten Dominik 0728025585 Refile: Fix horrible bug
This bug would make refiling complain about the tree not being a tree
unless the *previous* content of the tree was a tree.  Pretty bad....
2009-08-05 12:08:42 +02:00
Carsten Dominik 386e0dcef6 Fix copyright assignment in org-protocol.el 2009-08-05 00:59:09 +02:00
Carsten Dominik 1c25048e48 Release 6.29a 2009-08-04 23:54:22 +02:00
Carsten Dominik f22be634d2 Fix table mapping 2009-08-04 23:53:41 +02:00
Carsten Dominik d67a9be8a2 Release 6.29 2009-08-04 23:06:39 +02:00
Carsten Dominik babd053bd6 Fix bulk agenda processing with parents and children in the loop
Bernt Hansen writes:

> Every so often I run into a situation where bulk refiling
> doesn't work anymore.
>
> I currently have 15 items in my refile.org file that I want
> to refile to other locations.  I marked a few of them and
> bulk refiled them just fine.  Then I marked a few more and B
> r fails with "Cannot find entry for marker #<marker at
> 297156 in norang.org>"
>
> I think this happens when I mark multiple tasks in the same
> subtree (i.e. the parent and a sibling) and refile both to
> the same location.  After that it gets confused.
>
> If I have a task like this in refile.org
>
> #+FILETAGS: REFILE
> * Test
> ** Test 2
>
> and run a tags match on REFILE I see both tasks.  Mark both
> with m in the agenda and B r to some other location.  It
> refiles the first (and this moves the sibling too) and then
> it's broken after that.
>
> I get the following backtrace
>
> Debugger entered--Lisp error: (error "Cannot find entry for
> marker #<marker at 297156 in norang.org>")

Indeed the happens because, when a parent gets refiled or
achieved, any entries corresponding to its children are
removed from the agenda.

We address this issue by

- sorting the markers, to make sure parents will be handled
  before children

- No longer throwing an error when a bulk action entry no
  longer is present in the agenda - most likely it was taken
  care of together with its parent.
2009-08-04 22:46:08 +02:00
Carsten Dominik 064c7976cf Minor refile fixes 2009-08-04 18:38:14 +02:00
Carsten Dominik 22cb84f74d Allow normal lists completion also when using ido.el
Gregory Grubbs writes:

> When exporting a table with ido-mode active, an error is
> raised in org-ido-completing-read.  I think
> ido-completing-read is being called with incorrect
> arguments, but the fix is beyond me.
>
> Steps to reproduce the error:
> Org-mode version: 6.28trans
> Emacs version: GNU Emacs 23.0.91.1 (i486-pc-linux-gnu, GTK+ Version
> 2.16.0) of 2009-04-05 on palmer, modified by Debian
>
>
> Turn on ido-mode: M-x ido-mode RET
> visit a file using C-x C-f /tmp/test.org RET
> Create a simple table:
> |column a|column b|
> |-
> |one|two|
> |three|four|
>
> Org-magic-tabelize it by hitting TAB somewhere in a column
>
> M-x org-table-export RET /tmp/test.csv
>
> Here's the backtrace I get:
>
> Debugger entered--Lisp error: (wrong-type-argument listp "orgtbl-to-tsv")

This error is due to the fact that org-ido-completing-read does
convert alists to flat lists for completion.  Now we check if the list
really is an alist before converting it.
2009-08-04 17:15:40 +02:00
Carsten Dominik f322206708 Fix parenthesis error in footnote export code 2009-08-04 16:46:34 +02:00
Carsten Dominik 73b6d73aef Minor fix 2009-08-04 13:10:36 +02:00
Carsten Dominik 0d9f114f3b Fix a bug in the advice on outline-end-of-subtree 2009-08-04 10:38:40 +02:00
Carsten Dominik 2ec01a800f Fix cycling bug. 2009-08-04 10:22:08 +02:00
Carsten Dominik a4a8bd2d07 Cycling: Fix bug
The first cycle command on a line did not work correctly, to always
switched to FOLD.  This was due to an error in new, faster code to
find the next visible line.
2009-08-04 08:27:41 +02:00
James TD Smith cd70915e26 Add an option to sort tags automatically. 2009-08-04 07:54:46 +02:00
Carsten Dominik 2eecb4c43c Fix white-space errors 2009-08-03 17:30:30 +02:00
James TD Smith c65fb88796 Bugfixes, documentation and custom options for org-checklist.
* contrib/lisp/org-checklist.el
  - Fix some problems with the print/export feature in org-checklist.
  - Add custom options for this module
  - Fix some interaction with a2ps
  - Only reset checkboxes if TODO state is done.

* lisp/org.el
  - Add org-checklist to org-modules
2009-08-03 16:45:47 +02:00
Carsten Dominik 5dbc23baed Keep compiler happy 2009-08-03 13:28:24 +02:00
Carsten Dominik ee7d1c76fd Fix parenthesis bug in org-exp.el 2009-08-03 12:18:14 +02:00
Carsten Dominik 6a722e5d2e Do not record undo information when adding/remove text properties
When this is done inside org-unmodified, undo information is not recorded.
2009-08-03 11:03:37 +02:00
Carsten Dominik 487f187c19 More minor fixes to org-indent-mode 2009-08-03 10:25:11 +02:00
Carsten Dominik 65cb546662 Minor fixes to `org-indent-mode'. 2009-08-03 10:11:38 +02:00
Carsten Dominik f3345d280e Minor fix 2009-08-03 07:51:01 +02:00