0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-09-22 08:10:43 +00:00
Commit graph

1329 commits

Author SHA1 Message Date
Bernt Hansen a30955b050 Call org-reveal after refiling
Sometimes refiling a task displays the next task heading after ... at the
end of a folded task.  This keeps the next task the cursor is on starting
in column 1 which feels more natural.
2009-04-16 06:01:50 +02:00
Carsten Dominik cf52dd44bc Minor fix. 2009-04-15 18:25:28 +02:00
Carsten Dominik cb302b1715 Remember: Allow filing to non org-mode files.
If the heading field in the remember template entry is either `top' or
`bottom', it is now OK to file to a file that is not in org mode, and
the content of the remember buffer is inserted without forcing an
Org-style header.
2009-04-15 18:22:53 +02:00
Carsten Dominik 5ecf87cf00 Don't make org-feed-alist and autoload variable. 2009-04-15 17:23:58 +02:00
Carsten Dominik f701ba332d Feeds: Support for parsing atom feeds.
Patch by Magnus Henoch.
2009-04-15 16:37:13 +02:00
Carsten Dominik c0f97f14e2 Tables: Allow standard references in remote references.
Rares Vernica writes:

>  I think the standard references do not work correctly in the
>  "remote" function. Moreover, the "edit all formulas" (C-c ')
>  window replaces the internal references with standard
>  references. Even if I toggle the references back to internal
>  ones, the references in the "remote" function do not get
>  updated.
>
>  Here is an example:
>
>  #+TBLNAME: TableA
>  | 101 |
>  #+TBLFM: @1$1=remote(TableC,@1$1)
>
>  #+TBLNAME: TableB
>  | A1 |
>  #+TBLFM: @1$1=remote(TableC,A1)
>
>  #+TBLNAME: TableC
>  | 101 |
>
>  If I do C-c * in TableA, it works correctly. In TableB it
>  doesn't. If I do C-c ' in TableA and then (with or without
>  C-c C-r) C-c C-c and C-c *, then the contents of TableA will
>  be equivalent to the ones of TableB and the reference will
>  be broken.

Standard references like A1 are now allowed in call to
remote().
2009-04-15 15:16:05 +02:00
Carsten Dominik 06ddc5e9d2 Tables: Don't modify remote references when changing a table
Rares Vernica writes:

>  I think I found another bug related to remote
>  references. When I insert/remove a row/column using the
>  table commands, the remote references to other tables are
>  also updated. I think org treats "remote" as a regular
>  function and updates the references inside it.
>
>  Here is an example:
>
>  #+TBLNAME: TableA
>  | 101 |
>  #+TBLFM: @1$1=remote(TableB,@1$1)
>
>  #+TBLNAME: TableB
>  | 101 |
>
>  If I go in the cell of TableA and do M-S-down arrow, I get
>  the following:
>
>  #+TBLNAME: TableA
>  |     |
>  | 101 |
>  #+TBLFM: @2$1=remote(TableB,@2$1)
>                             ^^^^
>
>  As you can see the remote reference has been updated. I
>  similar update happens when I remove a row or insert/remove
>  a column.

This commit makes sure that references inside calls to
remote() are not touched.
2009-04-15 15:15:17 +02:00
Carsten Dominik 790ab8cfe4 Export: Fix bug with time stamps missing a space. 2009-04-15 14:42:56 +02:00
Carsten Dominik 1bc9b1e302 LaTeX export: Fix regexp bug.
Report and patch by Baoqiu Cui
2009-04-15 08:34:31 +02:00
Carsten Dominik 281a116938 Feeds: Avoid problems with sha1.el in Emacs 22
sha1-string is not autoloaded in sha1.el as in the version distributed
with Emacs 22.  Instead of relying on autoloads, the sha1 library is
now required by org-feed.el.
2009-04-14 18:02:41 +02:00
Carsten Dominik e2bdc488ee Refiling: Allow to create new nodes.
When refiling, you can now create new parent nodes on the fly.  To do
this, set the variable `org-refile-allow-creating-parent-nodes' to
`confirm'.  Then, at a refiling prompt, proceed with completion until
you have an existing heading, and then add "/new heading", i.e. a
slash followed by the new heading.  That heading will be created as a
child of the existing heading, and the entry to be refiled will end up
under that new heading.
2009-04-14 17:58:32 +02:00
Carsten Dominik e06b3e5d25 HTML export: New span element around time stamps
New wrapper span around keyword plus time stamp, with class
timestamp-wrapper.

    .timestamp-wrapper {float: right;}

could be a nice entry in a CSS style file.
2009-04-14 13:17:20 +02:00
Carsten Dominik 08b81dbb1d Minor fix 2009-04-14 12:40:25 +02:00
Carsten Dominik 5e41fee577 Reverse the adding of the intangible property - this seems to be an
Emacs bug
2009-04-14 12:35:32 +02:00
Carsten Dominik 633e8cdd90 Clock: Fix bugs when resuming the clock.
Adam Elliot writes:

>  Automatically resuming the clock after an Emacs restart
>  fails under the following cases:
>
>  1. If org-log-states-order-reversed set to t (default), and
>     a state change line precedes the clock line to resume.
>     Error message is "Cannot restart clock because task does
>     not contain unfinished clock".
>
[...]
>  2. If org-log-states-order-reversed set to nil.  Error
>     message is the same.  Reason: point is placed *after*
>     last clock line and so fails looking-at test.
>

This commit fixes the problem, in a slightly different way
than Adam proposed.  Instead of trying to fix the old way to
find the position of the clock, we now simple search the
entry if there is an unfinished clock and go there.  Since
new clocks are added before older ones, this should be a
safe bet.
2009-04-14 09:50:05 +02:00
Carsten Dominik a26f9b5502 LaTeX export: Format time stamps
Time stamps in LaTeX export now also honor custom time stamp formats.
Furthermore, the new option `org-export-latex-timestamp-markup' can
specify special markup for time stamps.
2009-04-13 08:53:58 +02:00
Carsten Dominik 008969cd6f Add intangible property for emacs 23
It seems that Emacs 23 does again need the intangible text property.
2009-04-13 08:48:12 +02:00
Carsten Dominik a6e027f768 Fix the previous fix. 2009-04-12 20:00:39 +02:00
Carsten Dominik 933137aa02 Export: Handle undefined variables.
Some of the standard export options are now defined in backend
specific files.  This commit makes sure that building the options
property list will not cause an error because of unneeded (for the
backend) undefined variables.
2009-04-12 08:22:39 +02:00
Carsten Dominik 6e9fb4550f TODO keywords: Should be case sensitive
Samuel Wales writes:

>  A lower case version of a todo kw at the beginning of a
>  headline, when in lower case, causes sort to ignore the
>  word.
>
>  Also, setting priority with shift down causes the cookie to
>  be inserted in the wrong place.

Both problems are address in this commit.
2009-04-11 08:16:41 +02:00
Bernt Hansen e0cb365561 org-remember: Skip creation of the default '* Notes' task
Remember and refile processing does not require a task.  This change
removes the unneeded default task.

This supports a workflow where new remember tasks and notes go into a
mostly empty file which just has #+FILETAGS: at the top and nothing
else.

This workflow has a minimal number of remember templates
  - one for new tasks and (filed in tasks.org)
  - one for new notes (filed in notes.org)
  - one for phone calls (filed in phone.org)

New tasks are added as top-level tasks to the end of these files and
the #+FILETAGS: REFILE header causes each task to be easy to find.
All tasks in these files are refiled to a more appropriate org file at
a later time.
2009-04-10 10:26:57 +02:00
Bernt Hansen d0b9701549 Document more org-refile related variables in the docstring
Make it easier to find variables related to refiling by just reading
the docstring.
2009-04-10 10:26:44 +02:00
Bernt Hansen 7be5320866 Report org-version after reloading 2009-04-10 10:24:29 +02:00
Carsten Dominik 325164a1d2 org-feed.el: Fix an undefined-variable bug 2009-04-09 17:26:49 +02:00
Carsten Dominik 7887f9d5e5 Rename org-export-latex.el to org-latex.el
For consistency, this file gets a new name.
2009-04-09 17:25:44 +02:00
Carsten Dominik b077f71076 Support using url-hexlify 2009-04-09 15:28:06 +02:00
Carsten Dominik adcf87073c Export: Make sure all preprocessor functions see the whole buffer 2009-04-09 09:32:11 +02:00
Carsten Dominik f48c35a8e6 Export: Start paragraphs after the end of literal examples.
Patch by Baoqiu Cui.
2009-04-09 09:09:34 +02:00
Carsten Dominik 99c7dacd66 Dependencies: New property NOBLOCKING
A NOBLOCKING property makes sure that an entry is never blocked by
whatever function in org-blocker-hook.
2009-04-08 17:01:54 +02:00
Carsten Dominik 978ac28e9f org-mac-message: More fixes, and growl integration 2009-04-08 15:05:48 +02:00
Carsten Dominik 6e1ffcfe72 Minor fix. 2009-04-08 08:55:21 +02:00
Carsten Dominik e083a14086 Compatibility: define sha1-string for Emacs 22. 2009-04-08 08:54:31 +02:00
Carsten Dominik 627eaa32e6 Tags scanner: Fix bad bad bug
The Tags scanner was totally broken, because of a wrong setting of point.
2009-04-08 07:32:04 +02:00
Carsten Dominik 2b96f05551 Mark obsolete packages
The following contributed packages are (partially) obsolete.

org-browser-url.el
org-annotation-helper.el
  The functionality of both these packages is a subset of
  org-protocol.el, which is now part of the Emacs core
  and is recommended.

org-depend.el
  A significant fraction of the org-depend functionality
  dependence on siblings, children, and parents) is now
  built-in into the Org core.  Org-depend remains
  in the distribution as a proof-of-concept fro complex
  and remote dependencies.

org-interactive-query.el
  I believe that much of what this package was build for
  is now available with tag filtering.

These packages are now marked in org-modules as such.
2009-04-07 21:06:43 +02:00
Carsten Dominik bc6f83e966 HTML export: moved functions to separate file. 2009-04-07 20:00:31 +02:00
Carsten Dominik b6c7e8054e iCalendar and XOXO export: Functions moved to new files. 2009-04-07 19:08:24 +02:00
Carsten Dominik 9682e038ff ASCII export: moved functions to new file, org-ascii.el 2009-04-07 18:43:43 +02:00
Carsten Dominik ef2ee3df5d Version number pushed to 6.25trans 2009-04-07 18:43:42 +02:00
Carsten Dominik 61530a1db1 Reload: Only load files that were loaded before
The command org-reload did not only reload any loaded files, but all
lisp files in the Org distribution.  Also, it actually never reloaded
any files from the contrib directory.  Both of these problems are now
fixed.
2009-04-07 18:43:35 +02:00
Carsten Dominik 9b594be48e Visibility cycling: New hook called before the change of visibility.
This new hook `org-pre-cycle-hook' is the companion to
`org-cycle-hook'.

Patch by Andreas Butzlaff.
2009-04-06 07:15:27 +02:00
Carsten Dominik 11c8e84037 org-mac-message: Documentation fixes 2009-04-06 06:43:51 +02:00
Carsten Dominik eef47f820f Release 6.25d 2009-04-05 15:29:45 +02:00
Carsten Dominik 6719985765 org-protocol.el: Bug fix and more 2009-04-05 15:28:31 +02:00
Carsten Dominik 56a8ae9414 Compatibility: Make `org-reload' work on XEmacs.
This uses ideas by Tony E. Bennett.
2009-04-05 15:24:40 +02:00
Carsten Dominik c9675ebc96 Mapping: More user control over the location from where mapping continues.
Mapping call a function for each matching entry.  So far this has
always assumed that the entry stays in the buffer and search can
continue from there.  However, when the mapper function removes the
tree, more control is needed to specify from where the search should
continue.

The action function handed to the mapping function can now set the
variable `org-map-continue-from' to the position from where mapping
should continue.
2009-04-05 13:41:59 +02:00
Carsten Dominik b811ec9cb0 Release 6.25c 2009-04-05 08:48:08 +02:00
Carsten Dominik e2eebc83a1 Release 6.25c 2009-04-05 08:45:39 +02:00
Carsten Dominik b5c9ebef58 TODO states: Case-sensitive matching during TODO changes 2009-04-05 08:42:08 +02:00
Carsten Dominik d6b91c514b org-protocol: Better treatment of greedy processing 2009-04-04 23:33:24 +02:00
Carsten Dominik 1c55e9b407 org-mac-message.el: Cleanup 2009-04-04 12:29:00 +02:00
Carsten Dominik 9936b09ec3 Links: Fix opening links to current file from a string.
Patch by Andreas Burtzlaff.
2009-04-04 04:57:08 +02:00
Carsten Dominik 979e7c8573 Refile: Allow to refile to top-level entries.
By completing only the file name, you can now refile as a top-level
entry.
2009-04-03 22:27:18 +02:00
Carsten Dominik 8cc49120fa Tags scan: Also find the first line in a buffer. 2nd attempt. 2009-04-03 20:41:36 +02:00
Carsten Dominik 5624263d97 Release 6.25b 2009-04-03 19:18:41 +02:00
Carsten Dominik b1c6a40772 Revert "Tags scan: Also find the first line in a buffer"
This reverts commit 1fbe1f7f50.
2009-04-03 19:17:36 +02:00
Carsten Dominik f2cbe79383 Agenda: Fix regexp bug that leads to incorrect time display 2009-04-03 17:43:30 +02:00
Carsten Dominik 981cefb034 org-protocol: Simplifactions 2009-04-03 17:36:44 +02:00
Carsten Dominik c27fe63388 Dependencies: Improve TODO dependency checking
Daniel Hochheimer writes:

> It seems there is a bug in the handling of simple dependencies.
> I think an example tree is the best solution, to show you the bug:
>
> * Projects
> #+CATEGORY: Projects
> *** TODO foo bar project
>   :PROPERTIES:
>   :ORDERED:  t
>   :END:
> ***** TODO foo subproject        :FooSubproject:
> ******* TODO Task 1
> ***** TODO bar subproject        :BarSubproject:
> ******* TODO Task 1
>
> This is in my .emacs file:
> (setq org-enforce-todo-dependencies t)
> (setq org-agenda-dim-blocked-tasks 'invisible)
> (setq org-odd-levels-only t)
>
> the expected global todo agenda view imho is:
>
> Projects:    Task 1       :FooSubproject:
>
> but actual it is unfortunately:
>
> Projects:    Task 1       :FooSubproject:
> Projects:    Task 1       :BarSubproject:
>
>
> Imho "Task 1" from "bar subproject" should not be visible,
> because "bar subproject " is blocked because of the
> ORDERED property (therefore it's childs should be blocked, too)
>
>
> Is it easy / possible to fix this bug? My whole GTD system is
> heavily based on such project / subproject-Constructs. But with
> this bug my global todo agenda view is unfortunately "polluted"
> a little bit with tasks from projects that shouldn't be active.

After some back and forth, Daniel convinced me, and this is now done
correctly.
2009-04-03 17:24:48 +02:00
Carsten Dominik 20bc495a63 Agenda: Add notes to log book entries
If the trigger for a log mode entry in the agenda has notes, for
example a note associated with a state change or with a clock entry,
the first line of the notes will now be added to the logbook entry.
You can turn this off the with new variable
`org-agenda-log-mode-add-notes'.
2009-04-03 10:25:02 +02:00
Carsten Dominik 1426f8bcfd Release 6.25a 2009-04-02 18:24:52 +02:00
Carsten Dominik db2d759979 Agenda: New hook for cleaning up the fancy diary buffer 2009-04-02 18:20:47 +02:00
Carsten Dominik 1fbe1f7f50 Tags scan: Also find the first line in a buffer 2009-04-02 18:16:35 +02:00
Carsten Dominik 8235075514 Remember: Take annotation and initial from plist, if defined.
The annotation and initial contents for a remember template are
normally taken from the variables `annotation' and `initial', which
are bound by remember.  We now also check the property list for such
values, so that the link generating routine can force the right values
in there.
2009-04-02 17:27:52 +02:00
Carsten Dominik 8cac636b76 Feeds: Documentation fixes. 2009-04-02 16:43:24 +02:00
Carsten Dominik f64510b023 Remember: fix bugs with new mac-message code. 2009-04-02 12:58:01 +02:00
Carsten Dominik aeb5cb98d6 Release 6.25 2009-04-01 16:00:39 +02:00
Carsten Dominik a36ebd79c8 Bugfix: Add file name only once to refile targets
With the setting

   (setq org-refile-use-outline-path 'file)

the file names ended up twice, like

    "xxx.org/level 1/level 2 (xxx.org)"

Now the second occurrence is omitted.
2009-04-01 15:49:35 +02:00
Carsten Dominik ef738cf38a Fix customization types: integer instead of number, where appropriate 2009-04-01 13:58:27 +02:00
Carsten Dominik 3d9a05b81f Minor change 2009-04-01 13:30:49 +02:00
Carsten Dominik 726211491b Inline tasks: Better docs 2009-04-01 08:56:28 +02:00
Carsten Dominik 9c2743e35b org-protocol.el: Make the compiler happy 2009-03-31 20:39:54 +02:00
Carsten Dominik 4fe6d54c30 Inline Tasks: Fix bugs and installation problems 2009-03-31 20:12:37 +02:00
Carsten Dominik b16747b21c Agenda filter: Filter for entries with no effort defined
During secondary agenda filtering, pressing "?" now will install a
filter that selects entries which do not have an effort defined.

This new model was necessary because we needed to stop interpreting
entries with no effort defines as 0 effort.  This was inconsistent,
because for normal agenda sorting, the treatment of these entries
depends on the variable `org-sort-agenda-noeffort-is-high'.  Now this
variable is also respected during filtering.
2009-03-31 18:22:31 +02:00
Carsten Dominik d9a03c553a HTML export: Allow modification of table attributes.
The #+ATTR_HTML line can now be used to set attributes for the
following table.
2009-03-31 13:00:34 +02:00
Carsten Dominik 167a7bfdfe Adding new file org-protocol.el 2009-03-31 07:55:08 +02:00
Carsten Dominik 3ab4f4b618 Fix key bindings in org-mouse for XEmacs 2009-03-30 23:45:40 +02:00
Carsten Dominik 2409f4bb89 Bugfix 2009-03-30 22:53:27 +02:00
Carsten Dominik bd66c1ff41 Docbook export: Process footnotes like normal text.
Patch by Baoqiu Cui.
2009-03-30 20:32:21 +02:00
Carsten Dominik c442366e23 Minor fix. 2009-03-30 20:02:07 +02:00
Carsten Dominik 95f4088990 Bugfix: Swapping the last two subtrees in a file.
Rustom Mody writes:

>  The last two lines of my org file are
>
>  *** Vishnu Sahasranam
>  *** Ram Navami
>
>  without a newline at the end
>
>  Trying to reorder these two lines I do a M-S-down on second last
>  line I get
>
>  *** Ram Navami*** Vishnu Sahasranam
2009-03-30 17:36:55 +02:00
Carsten Dominik cd6907beb9 Inline tasks: New module org-inlinetask.el
This module implements inline tasks in Org-mode.  Inline tasks are
tasks that have all the properties of normal outline nodes, including
the ability to store meta data like scheduling dates, TODO state, tags
and properties.  However, these nodes are treated specially by the
visibility cycling and export commands.
2009-03-30 13:15:36 +02:00
Carsten Dominik e341a34297 intermediate 2009-03-30 11:58:43 +02:00
Carsten Dominik 49878b0387 Emphasis: Allow braces in pre and post match, important for LaTeX footnotes. 2009-03-30 11:49:10 +02:00
Carsten Dominik 961a3e6298 Footnotes: Fix bug with sorting inline footnotes. 2009-03-30 11:25:03 +02:00
Carsten Dominik 13b2f06ba4 DocBook export: Installed the new DocBook exporter by Baoqiu Cui 2009-03-30 07:20:06 +02:00
Carsten Dominik daafaf09d8 org-feed.el: Make drawer name configurable
The name of the feed status drawer can now be configured, and each
feed can use a different name.  This will allow to point several feeds
at the same inbox heading.
2009-03-29 17:27:12 +02:00
Carsten Dominik a7ed5b9b76 Citations: Use RefTeX to insert citations
RefTeX can now be used to create a citation in Org-mode buffers.
Setup the buffer with #+BIBLIOGRAPHY: bibbase style

and create citations with `C-c C-x ['.
2009-03-28 14:57:10 +01:00
Carsten Dominik 68e6c08c17 Agenda: Introduce user-defined sorting operators.
The new variable `org-agenda-cmp-user-defined' can contain a function
to test how two entries should be compared during sorting.
user-defined-up and user-defined-down can then be part of any sorting
strategy.
2009-03-27 17:50:21 +01:00
Carsten Dominik a26aa3777e Dependencies: Fix bug in blocker hook
The blocker hook did block entries if an older sibling had TODO children.
2009-03-27 15:02:41 +01:00
Carsten Dominik 2bab9d8a67 Fix typos 2009-03-27 15:00:52 +01:00
Carsten Dominik 9baf5cabe6 org-mac-message.el: Better links to multiple selected messages 2009-03-27 10:54:43 +01:00
Carsten Dominik 9b80872aa6 Org-feed.el: improve documentation 2009-03-27 10:50:59 +01:00
Carsten Dominik 6ccda9d79c org-feed.el: More improvements.
This now keep a memory of what the items in the feed looked like using
a sha1 hash.  Therefore we now have the capability to trigger on item
*change* rather than addition.
2009-03-26 18:21:57 +01:00
Carsten Dominik f8ae635ba3 Better backup files for remember. 2009-03-26 18:04:11 +01:00
Carsten Dominik bf1a21ce81 Bugfix: org-ido-switchb
Chris Leyon writes:

>  For some semi-short time, org-ido-switchb has been broken, complaining
>  about wrong type arguments.  The attached one-line patch corrects
>  this.

Patch by Chris fixes this problem.
2009-03-26 17:15:36 +01:00
Carsten Dominik c7e078eeaa Links: Use buffer name as link description in w3-mode buffers 2009-03-26 05:05:42 +01:00
Carsten Dominik ac9d73bb13 Remember: Keep changes to `auto-save-visited-file-name' buffer-local 2009-03-26 04:37:42 +01:00
Carsten Dominik 72908042c3 org-feed.el: re-written 2009-03-25 22:45:57 +01:00
Carsten Dominik b4c6dab208 Agenda: Make sure diary items are searched for a time.
The new variable `org-agenda-search-headline-for-time' also turned off
time searching for diary items as an unwanted side-effect.  This
commit makes sure that diary entries are always parsed for a time.
2009-03-25 12:01:30 +01:00
Carsten Dominik 70b975f89c Agenda: Fix bugs with FILETAGS
Harri Kiiskinen writes:

>  It seems that org-use-tag-inheritance set to regexp, the use of
>  #+FILETAGS: and org-todo-list do not work together. It seems, that a
>  regexp in org-use-tag-inheritance matching a tag set in #+FILETAGS
>  causes this error:
>
>  Debugger entered--Lisp error: (wrong-type-argument stringp nil)
>   string-match("^ +" nil)
>  [...]
>  when org-use-tag-inheritance is set to regexp "te"
>  with this file:
>
>  --------
>  #+STARTUP:
>  #+FILETAGS: tea
>  * TODO testing 		       :test:
>  ** TODO too			       :data:
>  -----
>
>  When the regexp is "tes", so that the FILETAG does not match,
>  org-todo-list produces a correct list.

This is indeed a bug.  The all to `org-get-tags-at' does change the
match data if there is a match for the inheritance regexp.  This
problem is now avoided by first extracting (match-string 1), and then
getting the tags.

Studying this bug also exposed another one, namely that file tags are
not marked as inherited tags.  This is now fixed, immediately when
the #+FILETAGS line is parsed.
2009-03-25 09:20:12 +01:00