Mercurial > emacs
comparison lisp/textmodes/org-publish.el @ 91239:2fcaae6177a5
Merge from emacs--devo--0
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-300
author | Miles Bader <miles@gnu.org> |
---|---|
date | Sun, 16 Dec 2007 05:08:49 +0000 |
parents | 880960b70474 1d87492bc6e0 |
children | c70e45a7acfd |
comparison
equal
deleted
inserted
replaced
91238:5cf14a2107b5 | 91239:2fcaae6177a5 |
---|---|
479 "Publish file FILENAME." | 479 "Publish file FILENAME." |
480 (let* ((project-name (org-publish-get-project-from-filename filename)) | 480 (let* ((project-name (org-publish-get-project-from-filename filename)) |
481 (plist (org-publish-get-plist-from-filename filename)) | 481 (plist (org-publish-get-plist-from-filename filename)) |
482 (publishing-function (or (plist-get plist :publishing-function) 'org-publish-org-to-html))) | 482 (publishing-function (or (plist-get plist :publishing-function) 'org-publish-org-to-html))) |
483 (if (not project-name) | 483 (if (not project-name) |
484 (error (format "File %s is not part of any known project." filename))) | 484 (error "File %s is not part of any known project." filename)) |
485 (when (org-publish-needed-p filename) | 485 (when (org-publish-needed-p filename) |
486 (if (listp publishing-function) | 486 (if (listp publishing-function) |
487 ;; allow chain of publishing functions | 487 ;; allow chain of publishing functions |
488 (mapc (lambda (f) | 488 (mapc (lambda (f) |
489 (funcall f plist filename)) | 489 (funcall f plist filename)) |
573 (interactive "P") | 573 (interactive "P") |
574 (save-window-excursion | 574 (save-window-excursion |
575 (let* ((project-name (org-publish-get-project-from-filename (buffer-file-name))) | 575 (let* ((project-name (org-publish-get-project-from-filename (buffer-file-name))) |
576 (org-publish-use-timestamps-flag (if force nil t))) | 576 (org-publish-use-timestamps-flag (if force nil t))) |
577 (if (not project-name) | 577 (if (not project-name) |
578 (error (format "File %s is not part of any known project." (buffer-file-name)))) | 578 (error "File %s is not part of any known project." (buffer-file-name))) |
579 (org-publish project-name)))) | 579 (org-publish project-name)))) |
580 | 580 |
581 | 581 |
582 ;;;###autoload | 582 ;;;###autoload |
583 (defun org-publish-current-file (&optional force) | 583 (defun org-publish-current-file (&optional force) |