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

772 commits

Author SHA1 Message Date
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 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 31ceed47ff New minor mode org-indent-mode
This mode implements outline indentation similar to clean view, but in
a dynamic and virtual way, at display time.
2009-08-03 06:24:24 +02:00
Carsten Dominik 7cb52cfb7e Merge branch 'master' of git+ssh://repo.or.cz/srv/git/org-mode
Conflicts:
	lisp/ChangeLog
	lisp/org-exp.el
	lisp/org.el
2009-08-02 23:50:13 +02:00
Bastien Guerry 47994f66d2 Fix "Not on a heading" error when setting priority inside a task
Changing the priority of a task when the point is after the heading
(anywhere inside the task) worked but aligning the tags failed with
a "not on a heading" error due to the save-excursion not including
the tag alignment.  This change moves back to the heading and
includes that during tag alignment to remove the error text.

Patch by Bernt Hansen.
2009-08-03 03:03:43 +08:00
Bastien Guerry 052f6e334d (org-occur): Sends an error when the user inputs an empty string.
Patch by Bernt Hansen.
2009-08-03 02:58:41 +08:00
Bastien Guerry e05c4511af org.el (org-adapt-indentation): Slightly improve the docstring.
Make it clear that "a line starting a column 0" means a line starting
with some text at column 0.
2009-08-03 02:38:09 +08:00
Carsten Dominik a93815c686 Menu entry for `org-occur-link-in-agenda-files' 2009-08-02 15:56:58 +02:00
Carsten Dominik d8732b3938 Doc fixes 2009-08-02 15:51:59 +02:00
Carsten Dominik 9f9f2de7d2 Full headline matching cleanup
Write \n instead of \xa in the regexp, this is clearer.
And make the \n optional so that also lines at the end of
the buffers will still be matched as headlines.
2009-08-01 23:36:16 +02:00
Carsten Dominik 8d0acabf2d Modify Bastien's emphasis in verse fix
Instead of making the postmatch optional, we allow backslash in the
postmatch string, so that the match will work before an explicit line
break "\\".
2009-08-01 23:32:28 +02:00
Carsten Dominik 42a5312a57 Read date: Force calendar into current frame 2009-08-01 23:21:49 +02:00
Carsten Dominik 97aa3f5b3b Revert "Bugfix: don't exclude parentheses from org-plain-link-re."
This reverts commit c80e212d57.

Conflicts:

	lisp/ChangeLog
2009-08-01 20:05:40 +02:00
Carsten Dominik 4249cbf454 Merge branch 'master' of git+ssh://repo.or.cz/srv/git/org-mode
Conflicts:
	lisp/ChangeLog
2009-08-01 11:44:55 +02:00
Bastien Guerry 567331e169 Switch directly from CHILDREN to FOLDED if there is no subtree.
Also send a meaningful message FOLDED (NO SUBTREE) to avoid confusion.
2009-07-31 09:17:27 +08:00
Bastien Guerry c80e212d57 Bugfix: don't exclude parentheses from org-plain-link-re. 2009-07-31 08:25:04 +08:00
Bastien Guerry bfc9e1bcb5 Bugfix: save-excursion before reading the refile target.
Otherwise cursor moves might confuse `org-refile'.
2009-07-27 18:33:06 +08:00
Carsten Dominik 6677f745cc LaTeX export: Skip title command when there is no title
Using "#+TITLE:" without a value make the LaTeX export ignore the
value of org-export-latex-title-command.
2009-07-27 08:45:02 +02:00
Bastien Guerry 90d2a9c645 Autoload new org-timer functions when loading org.el 2009-07-27 12:20:39 +08:00
Bastien Guerry f2d92fa89a Bugfix: correctly convert list items before the first headline. 2009-07-27 11:53:53 +08:00
Bastien Guerry da7a640931 org-provide-todo-statistics now alloww a list of TODO keywords.
When such a list is set, only compute statistics against headlines
containing a keyword from this list.  This was requested by Samuel
Wales.
2009-07-27 11:08:51 +08:00
Bastien Guerry 03fffc1864 New function `org-occur-link-in-agenda-files'.
This function create a link and search for it in agenda files.
Note that it does not store the link in `org-stored-links'.
2009-07-27 04:14:04 +08:00
Bastien Guerry d8a0f2949d Use the correct keybinding for org-timer-set-timer.
Also use the new variable `org-timer-last-timer' to fix a bug
in `org-timer-show-remaining-time' about not pick up the right
timer.
2009-07-27 04:12:31 +08:00
Bastien Guerry 7cdff7b1eb New timer functionality to set a timer from a headline.
This commit defines three new functions in org-timer.el:

- org-timer-set-timer, bound to `C-c C-x ;' in Org buffers
  and to `;' in Org agenda buffers.   This function sets a
  timer for the headline the cursor is currently it.  Up to
  three timers can be set.

- org-timer-show-remaining-time: this shows the remaining
  time for the last set timer.

- org-timer-reset-timers: this reset all timers.

This functionality was requested by Samuel Wales and emulates
that of tea-time.el -- see the emacswiki doc about tea-time.el:

  http://www.emacswiki.org/emacs/tea-time
2009-07-27 02:54:17 +08:00
Bastien Guerry 6ebb5f2304 New value 'all-headlines for `org-provide-todo-statistics'.
When org-provide-todo-statistics is set to 'all-headlines, the
statistics are performed against all headlines, including those
with no TODO keyword.

This was requested by David A. Gershman.
2009-07-27 00:35:48 +08:00
Bastien Guerry c39f5d632f `org-emph-re' now matches emphasized strings at the end of lines.
We do this by making the last element of org-emph-re optional.
2009-07-26 05:23:56 +08:00
Bastien Guerry 8b840fe73c New function `org-list-make-subtree' bound to C-c C-*
This function convert the plain list at point into a subtree, preserving
the list structure.  Thanks to Ilya Shlyakhter for this suggestion.
2009-07-26 04:48:32 +08:00
Bastien Guerry 157329bb45 Fix the frame selection problem without using a macro.
Do this by restauring the frame focus correctly in
`org-eval-in-calendar'.
2009-07-25 19:32:59 +08:00
Bastien Guerry 68ec49e101 New option: org-fontify-whole-heading-line
Non-nil means modify the regexp in org-set-font-lock-defaults so
that headlines are fontified till the end of the line.  This is
useful when setting a background color for the org-level-* faces.
This defaults to nil so that the old behavior is preserved.
2009-07-23 18:46:35 +02:00
Carsten Dominik 0eaf3cce4d Speed-up cycling in buffers with *many* siblings, and *many* drawers
For this we took another look at when drawers actually have to be
hidden again and found that CONTENTS view does not need it, and that
CHILDREN view only needs it before the first child.

The second speed-up comes from advising outline-end-of-subtree to use
the Org version when in org-mode.

The third speed-up comes from using a better way to find the next
visible line, using `next-single-char-property-change'.

Finally, `org-forward-same-level' and `org-backward-same-level' are
faster versions of their outline equivalents and are now bound to
`C-c C-f' and `C-c C-b'.
2009-07-23 11:27:34 +02:00
Carsten Dominik 75a26e1c8d Moving subtrees: Speedup when many siblings exist. 2009-07-22 10:24:24 +02:00
Bastien Guerry 898049066a Bugfix about using the calendar on a separate frame.
`org-read-date' was loosing the focus when the calendar was displayed on
a separate frame.  This patch by Robert Goldman solves it by introducing
a new macro `org-save-frame-excursion' which preserve the frame focus.

See this thread: http://article.gmane.org/gmane.emacs.orgmode/15528

(This fixes the issue I was trying to fix in a previous commit.)
2009-07-22 09:42:11 +02:00
Bastien Guerry 3c031462f5 Bugfix about using a separate frame for the Calendar.
When the Calendar is displayed in a separate frame, Org was
confused and could not find it; this tiny change fixes this.
2009-07-21 09:29:55 +02:00
Carsten Dominik 4183124c4b Keep compiler happy 2009-07-20 09:16:28 +02:00
Carsten Dominik 809fcf9d78 Improve refile history to contain exact matches only
This was a proposal by Samuel Wales.  After the user selected a
refiles target, we make sure that the fully qualified target is in the
history, so that next time, UP will bring back exactly this target.
2009-07-20 09:01:33 +02:00
Bastien Guerry e17368ca76 Also use TAB for completion with org-insert-link.
Before this patch the completion mechanism was this: TAB let's you
complete through link prefixes (gnus: file: bbdb: ...) then RET allows
completion if a completion mechanism is available for the chosen prefix.
Navigating through the history of stored links was a separate process,
available through the up/down M-n/M-p keys.

Now TAB not only completes through link prefixes but also through stored
links.  This behavior matches other Emacs completion mechanisms a bit
more closely.
2009-07-19 19:45:06 +02:00
Bastien Guerry ffa046d38b Fix typo in orgstruct++-mode docstring. 2009-07-19 14:37:59 +02:00
Carsten Dominik 8530298b45 Inline tasks: Play along with archiving, refiling, and footnotes, store link. 2009-07-19 09:47:13 +02:00
Bastien Guerry 57b43866e5 Bugfix: don't ignore case when building the list of targets.
If you have a TODO keyword like "DELEGATED" and an entry like
"* Delegated this stuff to X", then you want this entry to be
in the list of possible targets.  For that we need to distinguish
between DELEGATED as a keyword and "Delegated" as a simple word,
so (case-fold-search nil) seems relevant.
2009-07-18 10:35:59 +02:00
Bastien Guerry 8a15fe867b New option: org-remember-delete-empty-lines-at-end
This default to t, so the default behavior of org-mode doesn't
change.  But the user might want to keep at least one blank line
at the end of the remembered subtree, this option lets her do it.
2009-07-18 10:09:40 +02:00
Carsten Dominik 6596d005ef Minor improvements 2009-07-18 09:30:20 +02:00
Bastien Guerry 57838f8286 Fixed premature deletion of data when scripting org-plot.
This patch was sent by James TD Smith.
2009-07-17 19:02:01 +02:00
Bastien Guerry 69e14025f4 New option org-tags-sort-function.
This allows tags to be sorted by string<, string> or a custom function.
Patch submitted by James TD Smith.
2009-07-17 18:43:22 +02:00
Bastien Guerry 1821a9126d Document indented for org-tags-match-list-sublevels
Thanks to Samuel Wales.
2009-07-16 22:25:09 +02:00