diff options
| author | Carsten Dominik | 2008-01-18 15:11:17 +0000 |
|---|---|---|
| committer | Carsten Dominik | 2008-01-18 15:11:17 +0000 |
| commit | 514a6ce6e40719e1a86f8d7698c4a5e55ff14707 (patch) | |
| tree | 927b6147ed2821f13eb6e7968540ddb850952a59 | |
| parent | 8c6fb58bdf92f9396b744b72f14a902ae135c771 (diff) | |
| download | emacs-514a6ce6e40719e1a86f8d7698c4a5e55ff14707.tar.gz emacs-514a6ce6e40719e1a86f8d7698c4a5e55ff14707.zip | |
(org-publish-current-project): Fix bug
with forcing publication.
| -rw-r--r-- | lisp/textmodes/org-publish.el | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/lisp/textmodes/org-publish.el b/lisp/textmodes/org-publish.el index 66e0dd5d6fb..0a8e9019827 100644 --- a/lisp/textmodes/org-publish.el +++ b/lisp/textmodes/org-publish.el | |||
| @@ -4,25 +4,25 @@ | |||
| 4 | 4 | ||
| 5 | ;; Author: David O'Toole <dto@gnu.org> | 5 | ;; Author: David O'Toole <dto@gnu.org> |
| 6 | ;; Keywords: hypermedia, outlines | 6 | ;; Keywords: hypermedia, outlines |
| 7 | ;; Version: 1.80a | 7 | ;; Version: 1.80b |
| 8 | 8 | ||
| 9 | ;; This file is free software; you can redistribute it and/or modify | 9 | ;; This file is part of GNU Emacs. |
| 10 | ;; | ||
| 11 | ;; GNU Emacs is free software; you can redistribute it and/or modify | ||
| 10 | ;; it under the terms of the GNU General Public License as published by | 12 | ;; it under the terms of the GNU General Public License as published by |
| 11 | ;; the Free Software Foundation; either version 3, or (at your option) | 13 | ;; the Free Software Foundation; either version 3, or (at your option) |
| 12 | ;; any later version. | 14 | ;; any later version. |
| 13 | 15 | ||
| 14 | ;; This file is distributed in the hope that it will be useful, | 16 | ;; GNU Emacs is distributed in the hope that it will be useful, |
| 15 | ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | 17 | ;; but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 | ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 18 | ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 17 | ;; GNU General Public License for more details. | 19 | ;; GNU General Public License for more details. |
| 18 | 20 | ||
| 19 | ;; You should have received a copy of the GNU General Public License | 21 | ;; You should have received a copy of the GNU General Public License |
| 20 | ;; along with GNU Emacs; see the file COPYING. If not, write to | 22 | ;; along with GNU Emacs; see the file COPYING. If not, write to the |
| 21 | ;; the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 23 | ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 22 | ;; Boston, MA 02110-1301, USA. | 24 | ;; Boston, MA 02110-1301, USA. |
| 23 | 25 | ||
| 24 | ;; This file is part of GNU Emacs. | ||
| 25 | |||
| 26 | ;;; Commentary: | 26 | ;;; Commentary: |
| 27 | 27 | ||
| 28 | ;; Requires at least version 4.27 of org.el | 28 | ;; Requires at least version 4.27 of org.el |
| @@ -572,11 +572,10 @@ default is 'index.org'." | |||
| 572 | With prefix argument, force publishing all files in project." | 572 | With prefix argument, force publishing all files in project." |
| 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))) | ||
| 577 | (if (not project-name) | 576 | (if (not project-name) |
| 578 | (error "File %s is not part of any known project." (buffer-file-name))) | 577 | (error "File %s is not part of any known project." (buffer-file-name))) |
| 579 | (org-publish project-name)))) | 578 | (org-publish project-name (if force nil t))))) |
| 580 | 579 | ||
| 581 | 580 | ||
| 582 | ;;;###autoload | 581 | ;;;###autoload |