Commit Graph

2678 Commits

Author SHA1 Message Date
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 dcbeddd50d Merge branch 'master' of git+ssh://repo.or.cz/srv/git/org-mode 2009-08-23 19:32:01 +02: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
Bastien Guerry 3d34a923a2 Get rid of unrelevant comment.
We don't need to require org-export-latex.el for using radio
lists, the code is in org-list.el.
2009-08-23 13:26:37 +08:00
Bastien Guerry c4e67c30e5 Minor fix. 2009-08-23 13:22:11 +08: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
Carsten Dominik 38bdf41d1e Minor doc improvements 2009-08-19 12:11:13 +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