1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-12-03 08:30:03 +00:00
Commit Graph

7970 Commits

Author SHA1 Message Date
Carsten Dominik
bfdc942050 Merge branch 'master' of orgmode.org:org-mode 2011-04-28 22:58:42 +02:00
Carsten Dominik
69811ff44c Fix multiple overlays bug in src blocks
* lisp/org.el (org-fontify-meta-lines-and-blocks): Fix bug which
resulted in the creation of multiple overlays in src blocks.
2011-04-28 22:08:15 +02:00
Eric Schulte
4a8640d0cf ob-clojure: more robust reading of results
* lisp/ob-clojure.el (org-babel-execute:clojure): If results are not
  readable by lisp, then return them as a string.
2011-04-28 12:21:17 -06:00
Eric Schulte
0846a121b0 org-bibtex: fixed most of the compiler warnings 2011-04-28 10:05:24 -06:00
Eric Schulte
d689755ca5 org-bibtex: prompts for file name when writing to .bib file
Thanks to Tom Dye for this suggestion

* lisp/org-bibtex.el (org-bibtex): Now prompts for a file name.
2011-04-28 10:02:33 -06:00
Eric Schulte
daef7d8631 org-bibtex: optionally fill in optional fields on bibtex headline creation
Thanks to Tom Dye for suggesting this functionality

* lisp/org-bibtex.el (org-bibtex-create): Adding prefix argument which
  will result in prompting for optional fields.
2011-04-28 09:46:35 -06:00
Eric Schulte
1024da4e35 ob-bibtex: fixed flet variable causing compile problems
* lisp/org-bibtex.el (org-bibtex-headline): Renamed flet function
  `get' which was causing compile problems.
  (org-bibtex-fleshout): Renamed flet function `get' which was causing
  compile problems.
  (org-bibtex-write): Renamed flet function `get' which was causing
  compile problems.
2011-04-28 09:17:59 -06:00
Christian Egli
2a8ce137f4 Merge branch 'master' of orgmode.org:org-mode 2011-04-28 12:12:53 +02:00
Christian Egli
2e21cd424a Taskjuggler: Make sure an id never starts with a number
* org-taskjuggler.el (org-taskjuggler-clean-id): Make sure an
id never starts with a number.

Taskjuggler IDs may not start with a number
2011-04-28 12:11:46 +02:00
Eric Schulte
aa903a749d org-bibtex: two defcustoms; org-bibtex-export-arbitrary-fields and org-bibtex-key-property
Patch by Matt Lundin adding two new customization options

* lisp/org-bibtex.el (org-bibtex-export-arbitrary-fields): New option.
  (org-bibtex-key-property): New option.
  (org-bibtex-put): Make use of new `org-bibtex-key-property' variable.
  (org-bibtex-headline):  Make use of new
  `org-bibtex-export-arbitrary-fields' and `org-bibtex-key-property'
  variables.
  (org-bibtex-autokey):  Make use of new `org-bibtex-key-property'
  variable.
  (org-bibtex-fleshout):  Make use of new `org-bibtex-key-property'
  variable.
  (org-bibtex-write):  Make use of new `org-bibtex-key-property'
  variable.
2011-04-27 16:00:16 -06:00
Eric Schulte
a1b9878623 org-bibtex: org-bibtex-yank, and misc robustifying 2011-04-27 14:53:07 -06:00
Eric Schulte
5a07ae6f11 org-bibtex: added trailing space after "Type:" thanks to Matt Lundin 2011-04-27 14:53:07 -06:00
Eric Schulte
93e000923f org-bibtex: field prompt removes ":", and shrinks prompt window 2011-04-27 14:53:06 -06:00
Eric Schulte
8a41d54c1a org-bibtex: translating between Org-mode headings and Bibtex entries
* lisp/org-bibtex.el: Updating Copyright dates, author information,
  commentary and history notes.
  (org-bibtex-types): List of bibtex types with descriptions and
  required and optional fields.
  (org-bibtex-fields): List of bibtex fields with descriptions.
  (*org-bibtex-entries*): Special variable to hold parsed bibtex
  entries.
  (org-bibtex-autogen-keys): Custom variable controlling whether
  bibtex keys are automatically generated
  (org-bibtex-prefix): Custom variable allowing use of optional prefix
  for bibtex properties in Org-mode headlines.
  (org-bibtex-get): Helper function for accessing bibtex elements of a
  property list.
  (org-bibtex-put): Helper function for inserting bibtex element into
  a property list.
  (org-bibtex-headline): Return a bibtex entry of the given headline
  as a string.
  (org-bibtex-ask): Prompt the user to fill in the value of a bibtex
  field.
  (org-bibtex-autokey): Generate a bibtex key for the current
  headline.
  (org-bibtex-fleshout): Fill in missing bibtex properties of the
  current headline.
  (org-bibtex): Export the current Org-mode buffer to a bibtex buffer.
  (org-bibtex-check): Check that all bibtex properties are present in
  the current headline.
  (org-bibtex-check-all): Check all headlines in the current buffer.
  (org-bibtex-create): Create a new bibtex headline at the current
  level.
  (org-bibtex-read): Read the current bibtex entry from a bibtex file.
  (org-bibtex-write): Write the most recently read bibtex entry into
  an Org-mode file.
2011-04-27 14:53:05 -06:00
Carsten Dominik
b00948328d Merge branch 'clock-check-faces' 2011-04-27 13:50:23 +02:00
Carsten Dominik
ad4970a32e Configurable faces for clock problems
* lisp/org-agenda.el (org-agenda-clock-consistency-checks): Allow to
set properties.
(org-agenda-show-clocking-issues): Handle faces.
2011-04-27 13:49:11 +02:00
Eric Schulte
1a68794fdc ob-ditaa: specify utf8 data by default (default :java header argument)
* lisp/ob-ditaa.el (org-babel-default-header-args:ditaa): Specify utf8
  content by default with "-Dfile.encoding=UTF-8".
2011-04-25 18:57:59 -06:00
Eric Schulte
f0d83a355e ob-ditaa: adding :java header arg for passing flags to the java command
Thanks to Juan Pechiar for raising the need for this header argument.

* lisp/ob-ditaa.el (org-babel-execute:ditaa): New ":java" header argument.
2011-04-25 13:12:12 -06:00
Nicolas Goaziou
ae60048a81 org-exp: make lists more robust wrt macros expansion
* lisp/org-exp.el (org-export-preprocess-string): mark list end before
  expanding macros. Thus, a macro inside a list and containing blank
  lines cannot break the list structure.
  (org-export-preprocess-apply-macros): multi-lines macros get
  indented with the same indentation as the first line. Thus, we are
  sure that every line belongs to the same list as the first line, if
  such list exists. Also add comments in code.
2011-04-24 19:34:09 +02:00
Carsten Dominik
acda0ee212 Fix typos 2011-04-24 17:21:47 +02:00
Carsten Dominik
02441ed433 Implement clock consistency check functionality for agenda
* lisp/org-agenda.el (org-agenda-clock-consistency-checks): New option.
(org-agenda-list): Handle display change to clock check.
(org-agenda-get-progress): Show only clock entries if we are doing the
consistency check.
(org-agenda-show-clocking-issues): New function.
(org-agenda-check-clock-gap): New function.
(org-agenda-view-mode-dispatch): Offer consistency check.
(org-agenda-log-mode): Handle switch to clock only display.
(org-agenda-set-mode-name): Show lighter for Clockcheck.
* lisp/org.el (org-hh:mm-string-to-minutes): Accept an integer argument
and return it unchanged.
* doc/org.texi (Agenda commands): Document clock consistency checks.
* doc/orgcard.tex: Document key for clock consistency check.
2011-04-24 17:17:25 +02:00
Nicolas Goaziou
7327b483f1 org-list: small docstring fix 2011-04-24 11:25:40 +02:00
Nicolas Goaziou
fc91845fa5 org-list: fix bug with structure and blocks/drawers indentation
* lisp/org-list.el (org-list-struct): when walking down the list, the
  function would not pay attention to drawers or blocks indentation.
  Thus, such constructs couldn't consistently end an item or a list.
  This patch ensures line indentation is stored (if applicable) before
  skipping them. Also fixed doc-string and comments.
2011-04-24 11:23:01 +02:00
Robert P. Goldman
a285debf5c Fixed shell script example in "Emacs Lisp evaluation of variables."
The variable names in the header arguments and in the sh code didn't line
up.  Made them agree.
2011-04-22 08:06:26 -06:00
Carsten Dominik
e7217a74e9 Export: Add EXPORT_FILE_NAME to the enclosing tree properties
* lisp/org-exp.el (org-export): Add EXPORT_FILE_NAME to the enclosing
tree properties
2011-04-22 11:23:18 +02:00
Carsten Dominik
a20eebd73f Another fix for exporting enclosing class/title piece in buffer
* lisp/org-exp.el (org-export): Define a bound for finding enclosing
tree with class/title definition.
2011-04-21 18:03:05 +02:00
Carsten Dominik
b7e3d7d90b Make exporting the enclosing entry with CLASS/TITLE property work better
* lisp/org-exp.el (org-export): Go to next heading before searching
backward, so make this also work if we are on the headline of the
entry with the property...
2011-04-21 17:55:18 +02:00
Carsten Dominik
2985816e25 Postfix to the previous patch, changing after-change-functions for demotion
* lisp/org.el (org-promote):
(org-demote): Soften the previous change, by only removing the
flyspell function from after-change functions, because that was the
one causing the slowdown - at least much of it.
2011-04-21 17:01:39 +02:00
Carsten Dominik
d9426915c0 Merge branch 'master' of orgmode.org:org-mode 2011-04-21 16:50:13 +02:00
Eric Schulte
6660a51e07 Speed up promotion and demotion by turning off after-change-functions
* lisp/org.el (org-promote):
(org-demote): Turn off after-change-functions to speed up the
reindentation of text.

This is mainly toob-oz: brought up to date with the rest of Babel
2011-04-21 16:49:41 +02:00
Eric Schulte
8fe51894a3 ob-oz: brought up to date with the rest of Babel 2011-04-19 17:47:41 -06:00
Eric Schulte
9a863dda84 Merge branch 'master' of orgmode.org:org-mode 2011-04-19 09:44:32 -06:00
Eric Schulte
892b66f062 ob-ocaml: updated to use the new script-escape function
* lisp/ob-ocaml.el (org-babel-ocaml-read-list): Using
  `org-babel-script-escape'.
  (org-babel-ocaml-read-array): Using `org-babel-script-escape'.
2011-04-19 09:43:34 -06:00
Bastien Guerry
6f2113b85c doc/org.texi: Fix typo.
Thanks to Xiao-Yong Jin for pointing this out.
2011-04-19 11:23:55 +02:00
Manuel Giraud
2f50b1380b * org-html.el (org-html-handle-links): add an alternate for inline images 2011-04-19 11:22:20 +02:00
Carsten Dominik
89de03cb8e Document the use of \vert in table fields
* doc/org.texi (Built-in table editor): Document that \vert represents
a vertical bar in a table field.
2011-04-17 16:41:40 +02:00
Carsten Dominik
c9958a3999 Fix agenda bulk commands
* lisp/org-agenda.el (org-agenda-bulk-action): Do not use the entries
variable before it is defined
2011-04-16 18:05:51 +02:00
Carsten Dominik
c2c28fc942 Merge branch 'master' of orgmode.org:org-mode 2011-04-15 22:31:11 +02:00
Eric Schulte
1997e19bd5 org-src-lang-modes: added alias "C" to "c"
* lisp/org-src.el (org-src-lang-modes): Added a language alias of "C"
  to "c".
2011-04-15 10:16:52 -06:00
Shaun Johnson
de63411264 Babel: Stop tangling failing in an indirect buffer
* ob-tangle.el (org-babel-tangle): Make it work in an indirect buffer.

The problem was that the message generated after tangling included the
file name of the current buffer which was nil in an indirect buffer.

TINYCHANGE
2011-04-15 09:55:22 -06:00
Manuel Giraud
c56bf33812 HTML export: correct a bug in coderef link.
* org-html.el (org-html-make-link): correct a bug in coderef link.
2011-04-15 13:58:29 +02:00
Bernt Hansen
4262dc1cbc Fix typo in agenda local variable
* lisp/org-agenda.el (org-agenda-filter-by-tag): Fix variable name typo

maybe-reftresh -> maybe-refresh
2011-04-15 13:56:12 +02:00
Bernt Hansen
383cb5dcaa Fix agenda display when headlines are missing
* lisp/org-agenda.el (org-agenda-get-timestamps): Fix agenda display when headlines are missing

The following entry breaks the agenda display.

,----
| ****
|         :PROPERTIES:
|         :DateCreated: <2011-04-13 Mi 10:00>
|         :END:
|
| [[gnus:nntp%2BGwene:gwene.org.emacsen.planet][gnus:nntp+Gwene:gwene.org.emacsen.planet]]
`----

Provide the empty string as the headline if the search for the
headline returns nil.  org-format-agenda-items requires a string for
the headline parameter.
2011-04-15 13:55:01 +02:00
Bastien Guerry
1bc0623be2 org mobile - call pre hooks earlier
* lisp/org-mobile.el (org-mobile-push): Move call to hook, make it the
first thing of the push operation.
2011-04-15 13:53:10 +02:00
Eric Schulte
60864e851b ob: now looking for header arguments in #+Properties: as well as #+Babel:
* lisp/ob.el (org-babel-params-from-buffer): Now looking for header
  arguments in #+Properties: as well as #+Babel:.  Also, we're no
  longer caching these results into a file local variable.
2011-04-14 20:37:21 -06:00
Eric Schulte
28b325fa1e ob-python: in the case of ":results output table" results can be parsed as a table
* lisp/ob-python.el (org-babel-python-evaluate-external-process):
  Allow parsing as a table in the case of ":results output table".
  (org-babel-python-evaluate-session):   Allow parsing as a table in
  the case of ":results output table".
2011-04-14 20:24:10 -06:00
Carsten Dominik
b99ab9250b Fix typo 2011-04-14 05:50:55 +02:00
Carsten Dominik
b58db4e438 Add missing brace 2011-04-14 04:50:25 +02:00
Carsten Dominik
e20166eb29 Fix the bulk scatter command to always schedule
* lisp/org-agenda.el (org-agenda-bulk-action): Allow bulk scatter
in all possible agenda views.  Use `org-agenda-schedule' instead of
`org-agenda-date-later'.

The bulk scatter command so far shifted the date that was causing an
entry to appear in the agenda.  However, the true intend was to
reschedule onto dates in the near future.  This patch fixes this
issue.  A side effect is that you can now bulk scatter tasks that to
not yet have a date, for example also tasks picked from the TODO
list.
2011-04-14 00:10:56 +02:00
Eric Schulte
2c8e964b70 ob-emacs-lisp: now supports :results output
* lisp/ob-emacs-lisp.el (org-babel-execute:emacs-lisp): Now supports
  ":results output".
2011-04-10 16:29:14 -06:00