Commit Graph

5022 Commits

Author SHA1 Message Date
Carsten Dominik 3f74a69f91 Fix minor bug 2010-05-14 09:07:46 +02:00
Carsten Dominik 256b0dc88a Fix whitespace problem with in-buffer settings 2010-05-14 07:53:03 +02:00
Carsten Dominik 650a416935 Define variable 2010-05-13 23:05:11 +02:00
Carsten Dominik b7793bd54a Docbook export: Improve formatting of xslt command
Patch by Dale Smith.
2010-05-13 20:17:28 +02:00
Carsten Dominik 797fa7ffee Add ChangeLog entries for previous commit 2010-05-13 20:07:41 +02:00
Sebastian Rose 339d6fe4bb Publishing, cashing and timestamps
Carsten Dominik <carsten.dominik@gmail.com> writes:
> Hi Sebastian,
>
> sorry for being slow.  Could you do me a favor and send me the cache patch one
> more time - if possible updated to the current master.
>
> I am just not sure I have the right patch in my hands.

Hi Carsten,

no problem. The patch is attached.

Here is a list of my ChangeLog entries, redated to today:

2010-05-13  Sebastian Rose  <sebastian_rose@gmx.de>

	* org-publish.el (org-publish-cache): Use one big hashmap for
	each project defined in `org-publish-project-alist'. The
	hashmap will hold pairs of our timestamp-filenames and
	timestamps, as well as pairs of source-paths and associated
	plists for arbitrary values. Currently only the files title is
	stored there.

	The caching feature writes the information gathered during
	publishing to disk and re-loads it from there the next time we
	publish the same project.  All those informations will hence
	survive a restart of emacs.

	One cache file per publishing project is used. The contents of
	that file is the elisp that fills the new variable
	`org-publish-cache'.  The cache file is named according to the
	project with `.cache' added and lives in
	`org-timestamp-directory'.

	* org-publish.el (initialize-files-alist): This function and
	the variable `org-publish-files-alist' are not used anymore in
	favour of the reloadable cache and the functions for handling
	it. Removed therefor.

	* org-publish.el (org-publish-validate-link) was not used
	anywhere. Removed.

	* org-publish.el (org-publish-get-base-files): Added the
	variable `sitemap-requested' to avoid sorting where possible.
	See also end of `org-publish-get-base-files-1'.

	* org-publish.el (org-publish-get-files): This function is
	not called anymore. Removed.

	* org-publish.el (org-publish-get-project-from-filename) does
	not depend on a list of files anymore. Instead of laoding all
	files of all, we walk `org-publish-project-alist' until we
	find a project, where the properties :base-directory, :recursive,
	:base-extension, :include and :exclude match.

	* org-publish.el (org-publish-file) takes an additional
	parameter to avoid superfloues loading and writing of the
	cache file when used to publish a part of a project.
2010-05-13 20:03:35 +02:00
Carsten Dominik d56d417bc2 Newest version is 6.36c 2010-05-13 19:56:02 +02:00
Carsten Dominik 7aa1a46359 Require cl in org-list.el 2010-05-13 18:02:05 +02:00
Carsten Dominik f3b5524a2e Make C-M-a and C-M-e do the right thing in Org-mode
The commands now move back to the heading, and to the end of the
subtree, respectively.

Proposed by Lennard Borgmann.
2010-05-13 08:59:39 +02:00
Carsten Dominik be232c4c21 LaTeX export: Fix TODO keyword export 2010-05-13 08:47:26 +02:00
Eric Schulte 83d10a541d Merge branch 'master' of git+ssh://repo.or.cz/srv/git/org-mode 2010-05-12 23:59:23 -06:00
Eric Schulte d0fcc199c7 babel: adding org-babel key bindings to the org reference card orgcard 2010-05-12 23:53:04 -06:00
Eric Schulte b7555ae433 babel: new keymap `org-babel-map' and new prefix keys "C-c C-v" 2010-05-12 23:51:41 -06:00
Carsten Dominik a95427de18 New %T escape for note headings
Patch by Richard Riley.
2010-05-13 07:49:42 +02:00
Carsten Dominik c1cc420149 Add help-echo to habit graph
Patch by Michael Fornius.
2010-05-13 07:45:26 +02:00
Carsten Dominik e21d08ae35 Improve org-file-apps docstring
Patch by Jan Bker.
2010-05-13 07:19:24 +02:00
Carsten Dominik 09f583170b Merge branch 'org-wl' of git://github.com/dmj/dmj-org-mode
Conflicts:
	lisp/ChangeLog
2010-05-12 16:27:09 +02:00
Carsten Dominik c069b7c5c6 Make update of ascii refcard auomatic 2010-05-12 16:22:06 +02:00
Carsten Dominik 90c37b3f4a Fix empty line display after property visibility 2010-05-12 15:56:46 +02:00
Carsten Dominik 8a671f8d4d LaTeX export: Use special formatting by link type interface
Patch by Christian Moe, who writes:

> It looks like support for formatting custom link types in LaTeX export
> is broken?
>
> I was trying to implement a custom link type with its own formatting
> function for HTML and LaTeX export, following the steps in
> org-bbdb.el.
>
> I've found that org-bbdb-export does not italicize bbdb links in
> LaTeX, nor does my own org-cite-export turn my custom =cite:= links
> into LaTeX =\cite{}= citations. Everything works fine in HTML export,
> but in LaTeX all custom link types get formatted as =\texttt{descr}=.
>
> I see that org-export-as-html and org-export-as-docbook look up
> org-link-protocols to get the function for formatting the link, but it
> seems that org-export-as-latex doesn't.
>
>
2010-05-12 15:14:17 +02:00
Carsten Dominik 336456d0c3 Make sure remote references will not switch the selected buffer
Karl Eichwalder writes:

> Consider the following two files:
>
> * 2009
> #+TBLNAME: 2009
>  :PROPERTIES:
>  :ID:       ea32e5b5-31ba-468e-8e31-3e0d09696bb0
>  :END:
> |-----+-------|
> |  mm |    km |
> |-----+-------|
> | all | 946.8 |
> |-----+-------|
>
> * 2010
> #+TBLNAME: 2010
>  :PROPERTIES:
>  :ID:       e0df84c4-8abc-458f-a1ee-eb53eb71b4f0
>  :END:
> |-----+-------+-------+-------|
> |  mm |    km |  B km |  G km |
> |-----+-------+-------+-------|
> | all | 249.4 | 429.2 | 678.6 |
> |-----+-------+-------+-------|
>
> * all
>  :PROPERTIES:
>  :ID:       44751a7f-73a4-4c07-b3c2-e3edb9042acd
>  :END:
> #+TBLNAME: all
> |------+--------|
> | yyyy |     km |
> |------+--------|
> | 2009 |        |
> | 2010 |  678.6 |
> |------+--------|
> |  all | 1625.4 |
> |------+--------|
> #+TBLFM: @2$2=remote(ea32e5b5-31ba-468e-8e31-3e0d09696bb0,$LR2);%.1f::@3$2=remote(2010,$LR4);%.1f::$LR2=vsum(@2$2..@-1);%.1f
>
> Then, in the 2010 file, eval the formula of the "all" table by pressing
> C-c C-c.
> ==>
>
> It takes the km value from the 2009 file, but also puts the cursor
> (point) into the 2009 file in front of the ID:
>
> * 2009
> #+TBLNAME: 2009
>  :PROPERTIES:
>  :ID:       -!-ea32e5b5-31ba-468e-8e31-3e0d09696bb0
>  :END:
> |-----+-------|
> |  mm |    km |
> |-----+-------|
> | all | 946.8 |
> |-----+-------|
>
> -=-=-=-=-=-=-=-=-=-=-=-=-=- cut here -=-=-=-=-=-=-=-=-=-=-=-=-=-
>
> I'd prefer if the point would stay in the 2010 file.
2010-05-12 15:06:27 +02:00
Carsten Dominik 33fba09ddb Match also image paths relative to home
Baoqui Cui writes:

> "robut@iinet.net.au" <robut@iinet.net.au> writes:
>
> I very much like the idea of native inline image display in Org-mode but  can't
> seem to make it work.
>
> Given a 6.36 snapshot or 6.36 release and these org file contents
>
> * Test image
> Test image
> [[Screenshot.png]]
>
>
> I hoped org would display that image after C-c C-x C-v. Rather Org-mode returns
> "No images to display inline".
>
> I've tried different ways of linking that image, different image formats,
> relative vs complete paths, and my regular .emacs vs  a near empty one and
> always the same result. If I toggle iimage-mode the image displays fine per se
> but does not affect how Org-mode works.
>
> Seems clear I am missing something simple. What?
>
> I like the idea of inline image display too, but hit the similar
> problems.  After reading the code in org.el, I found that the inline
> image file link has to start with either "file:" or "./".
>
> For example, the following two links are OK:
>
>   [[file:~/images/myImage.png]]
>   [[./figures/org-mode-unicorn.svg]]
>
> but the following two are not:
>
>   [[Screenshot.png]]
>   [[~/images/myImage.png]]
>
> Here is a small patch that seems to work well for me, but I'd like
> Carsten to check whether it may break anything
2010-05-12 14:51:42 +02:00
Carsten Dominik 1444920253 Improve inline image display 2010-05-12 14:38:30 +02:00
David Maus 4d5cad6d88 Adjust indentation to meet coding style. 2010-05-12 10:02:43 +02:00
David Maus 032b53ed13 Don't throw error when `org-store-link' called on WL folder group. 2010-05-12 10:01:05 +02:00
Carsten Dominik 70354f0898 Minor doc fixes 2010-05-12 08:12:01 +02:00
Carsten Dominik 3d8b6de2ad Free up the `C-c C-v' key for Org Babel
TODO sparse trees are also accessible with `C-c / t'.
2010-05-12 08:04:27 +02:00
Carsten Dominik 4b1ee671b8 Merge branch 'master' of git+ssh://repo.or.cz/srv/git/org-mode 2010-05-11 23:31:38 +02:00
Carsten Dominik 7a0619cbe8 Fix bug in org-git-link.el 2010-05-11 23:31:30 +02:00
Eric Schulte 855d15e314 Merge branch 'master' of git+ssh://repo.or.cz/srv/git/org-mode 2010-05-10 17:13:32 -06:00
Carsten Dominik fdb446fa2e Revert comment syntax changes 2010-05-11 00:44:50 +02:00
Carsten Dominik ae1ebe59ba Make space in refcard for Org-babel 2010-05-10 10:42:37 +02:00
Carsten Dominik 3352fc0c62 Make C-v and M-v work when entering date with popup calendar
Requested by Leo.
2010-05-10 08:57:20 +02:00
Carsten Dominik 19aec9ed9a Fix minor bug
Patch by Gregory J. Grubbs
2010-05-10 08:46:03 +02:00
Carsten Dominik 95c725ae38 Fix typo 2010-05-09 23:01:56 +02:00
Eric Schulte 74667673c6 Merge branch 'master' of git+ssh://repo.or.cz/srv/git/org-mode 2010-05-09 09:20:20 -06:00
Carsten Dominik d087351f37 Make `C-c / t' search for all TODO keywords, `C-c / T' for a specific one 2010-05-09 07:21:51 +02:00
Carsten Dominik c86a3fc4aa Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
Carsten Dominik 7da2f43aef List of changes, minor fixes 2010-05-09 06:22:11 +02:00
Carsten Dominik 88100d1580 Release 6.36a 2010-05-09 06:13:54 +02:00
Carsten Dominik a14af124ba User-visible changes for 6.36 2010-05-09 06:12:41 +02:00
Carsten Dominik 9e9f083aa9 Fix comment syntax in org-mode
Patch by Leo.

If this works, we have fixed an issue that has bugged me for several
years.
2010-05-08 17:10:14 +02:00
Carsten Dominik f5cffa89ef Minor fixes 2010-05-08 09:25:47 +02:00
Carsten Dominik 7147508d81 Implement inline display of linked images 2010-05-08 09:20:32 +02:00
Carsten Dominik ac40bde6c6 Code cleanup and two enhancements for org-wl.el
Patch by David Maus:

>  1. Store and open link to Wanderlust folders.
>
>  2. Store link to Wanderlust message while visiting the message
>     buffer.
>
>     Up to now it was only possible to store a link to a message when
>     point was in the message summary.
2010-05-08 07:30:40 +02:00
Carsten Dominik 0448121f00 Avoid infinite loop when replacing escapes
Patch by David Maus, who writes:

> Org enters an infinite loop when `org-replace-escapes' is called with
> a table containing a replace string that contains the escape sequence
> it should be replaced with.
>
> Example:
> ,----
> | (org-replace-escapes "%m" '(("%m" . "87zl0qq1f3.wl%maus.david@gmail.com")))
> `----
>
> I stumpled upon when I tried to store a link to a internet message
> whose message id contained the sequence "%m" (perfectly valid for a
> message id) while using "%m" as message description.
>
> Attached patch fixes this by
>
>  1. detecting such 'self reference' and replacing the offending
>     sequence in the replace string by a string with a text property
>     that contains the original sequence
>
>  2. replacing occurences of substrings with this text property by the
>     original sequence.
2010-05-08 07:20:54 +02:00
Carsten Dominik 1132722418 Use symmetric encryption when no key is set.
Patch by Rick Moynihan.
2010-05-08 07:09:16 +02:00
Eric Schulte 98af57cdbd babel: ob-sh.el now respects the :results "scalar" option 2010-05-07 17:18:38 -06:00
Carsten Dominik 1db26a94fe Remove a line break in the refcard source 2010-05-07 16:49:50 +02:00
Carsten Dominik e27bc453de Add commands to recalculate and iterate all tables in a buffer
This was a request by Johna Ekh.
2010-05-07 09:45:34 +02:00