emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <dominik@science.uva.nl>
To: Kondo Kenji <t60500@mail.ecc.u-tokyo.ac.jp>
Cc: Org Mode Mailing List <emacs-orgmode@gnu.org>
Subject: Re: Bug: org-publish-current-project reverses the force	flag.
Date: Tue, 26 Feb 2008 15:19:09 +0100	[thread overview]
Message-ID: <A4C17DCD-7D93-40CA-9947-862C0542BAAC@science.uva.nl> (raw)
In-Reply-To: <87skzfoqob.wl%t60500@mail.ecc.u-tokyo.ac.jp>

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, t60500@mail.ecc.u-tokyo.ac.jp 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 <kondo@misojiro.t.u-tokyo.ac.jp>
>>>
>>>
>>> _______________________________________________
>>> Emacs-orgmode mailing list
>>> Remember: use `Reply All' to send replies to the list.
>>> Emacs-orgmode@gnu.org
>>> 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.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

  reply	other threads:[~2008-02-26 14:19 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-25 18:23 Bug: org-publish-current-project reverses the force flag t60500
2008-02-26  8:06 ` Carsten Dominik
2008-02-26 12:20   ` Kondo Kenji
2008-02-26 14:19     ` Carsten Dominik [this message]
2008-02-26 15:02 ` Carsten Dominik
2008-02-26 16:46   ` Kondo Kenji
2008-02-27 15:14     ` Carsten Dominik
2008-02-27 23:45       ` Kondo Kenji
2008-02-28  1:14         ` Bastien
2008-02-28  2:51           ` Kondo Kenji

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=A4C17DCD-7D93-40CA-9947-862C0542BAAC@science.uva.nl \
    --to=dominik@science.uva.nl \
    --cc=emacs-orgmode@gnu.org \
    --cc=t60500@mail.ecc.u-tokyo.ac.jp \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).