Commit graph

46 commits

Author SHA1 Message Date
Bastien Guerry 103af6eddd Don't require dired-aux in org-publish.el.
Requiring dired-aux broke compatibility with XEmacs.
Also cleaned the code in `org-publish-get-base-files'
to truly check files recursively.
2008-03-14 12:39:24 +00:00
Bastien Guerry 4adfc68e86 Applied Glenn Morris patches.
* org-publish.el (declare-function): Add compatibility stub.
(org-publish-delete-dups): Declare as function.

* org-mac-message.el Fix commentary.

* org-irc.el (top-level): CL not required when compiling.
(org-irc-visit-erc): Replace runtime CL functions.

See Glenn's messages on emacs-diffs:
<E1JZzkn-0002a9-BB@cvs.savannah.gnu.org>
<E1JZzlJ-0002bN-Ir@cvs.savannah.gnu.org>
<E1JZzmU-0002cw-1x@cvs.savannah.gnu.org>
2008-03-14 10:41:54 +00:00
Bastien Guerry e14cb99936 Bugfixes: really kill org and export buffers.
Also add a new variable `org-publish-initial-buffer' to prevent the
initial buffer from being deleted when it is exporter.
2008-03-11 11:48:17 +00:00
Carsten Dominik d357e9d3ac Update version numbers. 2008-03-10 22:53:59 +01:00
Bastien Guerry 1e1cc09504 Several bugfixes in org-publish.el
(org-publish-expand-components): Remove null projects from the list of
components.

(org-publish-attachment): Bugfix: handle the mandatory argument pub-dir.
Removed unused retrieval of the :publishing-directory property.

(org-publish-file): Bugfix: when using a relative directory as the
publishing directory, convert it to a directory filename.

(org-publish-project): New alias for `org-publish'
2008-03-10 21:46:41 +00:00
Carsten Dominik dd68f4a445 Fixed bug with nil project. 2008-03-10 21:30:33 +01:00
Carsten Dominik adf548f2ab Synchronize version number across files.
I am ignoring org-mac-message.el and org-irc.el for
the time being because they are still young.
2008-03-10 19:43:39 +01:00
Bastien Guerry 4d79c0d507 Offer to re-initialize the list of projects/files in org-publish-file.
To save time, we don't re-initialize the list of projects/files each
time a file is published.  But if people want to publish a file that
they just created, this file is not part of any project until the
list of project/files has been re-initialized.

If the file is not part of a project and should be, then the user
can tell so.
2008-03-10 18:04:07 +00:00
Bastien Guerry 9df93e8698 Bugfix in org-publish.el.
Throw an error when `org-publish-current-file' is called on a file that
is not part of any project.  Publishing a single file that is not part
of a project is already done by simply exporting it, so the user should
be warned about this.
2008-03-10 11:39:01 +00:00
Bastien Guerry 2c6dce973b Added hooks in org-publish.el.
There are now two hooks:
`org-publish-before-export-hook'
`org-publish-after-export-hook'.

`org-publish-org-to' deal with killing buffers (instead of
`org-publish-file')
2008-03-10 09:34:06 +00:00
Bastien Guerry d9e7b39a7f Kill buffers after publication.
Whether a buffer is created or not depends on publishing functions such
as `org-export-as-html' and the like.  But not all such functions create
a new buffer (e.g. `org-publish-attachment'), so we need to delete the
buffer if it differs from the last buffer we we're in before export.
2008-03-07 11:57:14 +00:00
Bastien Guerry 8b527d4a6d Fixing typo. 2008-03-04 01:19:03 +00:00
Bastien Guerry 1336cd8999 Use expand-file-name' instead of file-true-name'.
Also remove unused alias for `dired-files-attributes'.
2008-03-04 01:12:05 +00:00
Bastien Guerry 184e4e1fa3 Deleted trailing blank spaces. 2008-03-04 00:54:40 +00:00
Bastien Guerry 9a2741f9ad Bugfix for `org-publish-get-files'.
`plist-get' was called with the wrong argument, thus causing an
error in old Emacsen where `plist-get' was not safe.
2008-03-04 00:46:38 +00:00
Bastien Guerry cd52b4e457 Rename org-publish-delete-duplicates' to org-publish-delete-dups'.
`org-publish-delete-duplicates' was misleading because of the
distinction between `delete-dups' and `delete-duplicates'.

Also fix a bug in the interaction of `org-publish' and
`org-publish-current-project'.
2008-03-04 00:22:46 +00:00
Bastien Guerry 6bbe3c549a Added alias `org-publish-dired-files-attributes.'
As far as I can tell `dired-files-attributes' is not part of Emacs 21.4.
2008-03-03 23:55:39 +00:00
Bastien Guerry bc59617af7 Added the alias `org-publish-delete-duplicates'.
In (< emacs-major-version 2), there is no `delete-dups'.
So we use this alias, either calling `delete-dups' or
using a routine copyied from subr.el in Emacs 22+.
2008-03-03 23:17:05 +00:00
Bastien Guerry 571b8c0be2 Silence the byte-compiler for org-publish.el. 2008-03-03 10:12:51 +00:00
Bastien Guerry 8ea076e2de Updated org-publish.el (now version 1.81)
Updated the ChangeLog and the manual accordingly.
2008-03-03 10:01:36 +00:00
Bastien Guerry 4dcecb97bf More cleaning. 2008-03-02 22:49:28 +00:00
Bastien Guerry eda5a993ca *** empty log message *** 2008-03-02 19:16:21 +00:00
Bastien Guerry b05bc10e67 Cleaned up code. 2008-03-02 14:14:52 +00:00
Bastien Guerry 837c81ce51 Use alist instead of a hashtable. 2008-03-02 01:02:41 +00:00
Bastien Guerry 960449c9e9 Cleaned up the buffer. 2008-03-02 00:52:52 +00:00
Bastien Guerry bd172412fa Added support for recursive publication of files. 2008-03-01 02:42:28 +00:00
Bastien Guerry 7a75a4d91e Cleaned up error messages: don't use a period at the end.
Cleaned up some unfinish comment.
Replaced `let*' by `let' in `org-publish-current-project'.
2008-02-28 00:23:06 +00:00
Carsten Dominik c7b8cc8cb1 Another bug fix in org-publish, related to the FORCE argument. 2008-02-27 16:14:09 +01:00
Carsten Dominik 24282ebf74 Fixed bug in org-publish.el, relating to org-publish-use-timestamp-flag. 2008-02-26 15:59:20 +01:00
Carsten Dominik f6dc99bd9b Fix org-publish file timestamps for Windows.
This was a patch by Tokuya Kameshima.
2008-02-05 17:21:34 +01:00
Carsten Dominik 1fb725c45d Release 5.19 2008-01-31 11:38:46 +01:00
Carsten Dominik 218feee70e Release 5.18 2008-01-31 11:38:36 +01:00
Carsten Dominik 1bf1a4d4b2 Release 5.13g 2008-01-31 11:37:28 +01:00
Carsten Dominik 4019309baf Release 5.11 2008-01-31 11:36:29 +01:00
Carsten Dominik 70b6cc5da4 Release 5.10a 2008-01-31 11:36:18 +01:00
Carsten Dominik d922cfd878 Release 5.05 2008-01-31 11:35:40 +01:00
Carsten Dominik 56afdc7081 Release 4.78 2008-01-31 11:34:50 +01:00
Carsten Dominik 388f9e690a Release 4.76 2008-01-31 11:34:42 +01:00
Carsten Dominik 41887136c1 Release 4.71 2008-01-31 11:34:26 +01:00
Carsten Dominik d45806cc97 Release 4.50 2008-01-31 11:32:41 +01:00
Carsten Dominik af0cd37b63 Release 4.48 2008-01-31 11:32:35 +01:00
Carsten Dominik 8fd900c684 Release 4.40 2008-01-31 11:32:08 +01:00
Carsten Dominik 2ff8fc1133 Release 4.37 2008-01-31 11:32:03 +01:00
Carsten Dominik 9cf9c9f451 Release 4.36 2008-01-31 11:31:59 +01:00
Carsten Dominik 7cde0aa391 Release 4.33 2008-01-31 11:31:51 +01:00
Carsten Dominik 9b9f2f6070 Release 4.30 2008-01-31 11:31:37 +01:00