From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kondo Kenji Subject: Re: Bug: org-publish-current-project reverses the force flag. Date: Tue, 26 Feb 2008 21:20:04 +0900 Message-ID: <87skzfoqob.wl%t60500@mail.ecc.u-tokyo.ac.jp> References: <87ejb0hp37.wl%t60500@mail.ecc.u-tokyo.ac.jp> <9E0E91DA-8855-4BF2-A396-0B924476D293@science.uva.nl> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JTynA-0006u6-Gl for emacs-orgmode@gnu.org; Tue, 26 Feb 2008 07:20:16 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JTyn7-0006to-Q5 for emacs-orgmode@gnu.org; Tue, 26 Feb 2008 07:20:16 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JTyn7-0006tl-Kt for emacs-orgmode@gnu.org; Tue, 26 Feb 2008 07:20:13 -0500 Received: from mail5.ecc.u-tokyo.ac.jp ([133.11.205.101]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JTyn7-0003Hk-Kw for emacs-orgmode@gnu.org; Tue, 26 Feb 2008 07:20:13 -0500 Received: from ms004.ecc.u-tokyo.ac.jp (ms004.ecc.u-tokyo.ac.jp [133.11.70.174]) by mail5.ecc.u-tokyo.ac.jp (Postfix) with ESMTP id 818FF1DBBF1 for ; Tue, 26 Feb 2008 21:20:11 +0900 (JST) Received: from acubens.mail.ecc.u-tokyo.ac.jp (122.219.22.94 [122.219.22.94]) by ms004.ecc.u-tokyo.ac.jp (deepsmtpd.stn.b 3.5.75) with ESMTP id <87skzfoqob.wl%t60500@mail.ecc.u-tokyo.ac.jp> for ; Tue, 26 Feb 2008 21:20:05 +0900 In-Reply-To: <9E0E91DA-8855-4BF2-A396-0B924476D293@science.uva.nl> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: t60500@mail.ecc.u-tokyo.ac.jp, Org Mode Mailing List 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 ] > [1.1 ] > 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 > > > > > > _______________________________________________ > > 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 ] > > [2 ] > _______________________________________________ > 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