emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Bug: org-publish-current-project reverses the force flag.


From: Carsten Dominik
Subject: Re: [Orgmode] Bug: org-publish-current-project reverses the force flag.
Date: Tue, 26 Feb 2008 15:19:09 +0100

Ah, this is about the default value.  Very wel, I'll look into it.

Thanks!

- Carsten

On Feb 26, 2008, at 1:20 PM, Kondo Kenji wrote:


Hi Carsten,

Thank you for your reply.
I explain why.


I tried org-publish.el to export local org files to html,
and realized timestamps didn't work.

In fact, `M-x org-publish-current-project' published all the files,
including unchanged org files.

In contrast, `C-u M-x org-publish-current-project' published only
changed files.

`org-publish-use-timestamp-flag' was not set, whose default value is t.


In org-publish.el of verson 1.80b,
the definition of org-publish-current-project is like below:

: (defun org-publish-current-project (&optional force)
:   "Publish the project associated with the current file.
: With prefix argument, force publishing all files in project."
:  (interactive "P")
:  (save-window-excursion
: (let* ((project-name (org-publish-get-project-from-filename (buffer-file-name))))
:      (if (not project-name)
: (error "File %s is not part of any known project." (buffer-file- name)))
:      (org-publish project-name (if force nil t)))))

I guess the last line is wrong.
It reverses the force flag, and `org-publish' reverses the flag again.

Is it correct?

--
Kondo Konji

At Tue, 26 Feb 2008 09:06:18 +0100,
Carsten Dominik wrote:

[1  <multipart/alternative (7bit)>]
[1.1  <text/plain; US-ASCII (7bit)>]
Hi Kondo,

Why do you think so?
Force is used in the org-bublish function to temporarily turn off
org-publish-use-timestamp-flag.

- Carsten

On Feb 25, 2008, at 7:23 PM, address@hidden wrote:


Hi.

I've found (maybe) a bug.

With org 5.22a (org-publish.el version 1.80 b),
org-publish-current-project reverses the force flag
when passing the flag to org-publish.

Thanks.

--
Kondo Kenji <address@hidden>


_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

[1.2  <text/html; US-ASCII (quoted-printable)>]

[2  <text/plain; us-ascii (7bit)>]
_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-orgmode





reply via email to

[Prev in Thread] Current Thread [Next in Thread]