From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Bug: org-publish-current-project reverses the force flag. Date: Tue, 26 Feb 2008 15:19:09 +0100 Message-ID: References: <87ejb0hp37.wl%t60500@mail.ecc.u-tokyo.ac.jp> <9E0E91DA-8855-4BF2-A396-0B924476D293@science.uva.nl> <87skzfoqob.wl%t60500@mail.ecc.u-tokyo.ac.jp> Mime-Version: 1.0 (Apple Message framework v919.2) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JU0eJ-0005NV-Hc for emacs-orgmode@gnu.org; Tue, 26 Feb 2008 09:19:15 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JU0eH-0005N0-HQ for emacs-orgmode@gnu.org; Tue, 26 Feb 2008 09:19:14 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JU0eH-0005Mx-Cy for emacs-orgmode@gnu.org; Tue, 26 Feb 2008 09:19:13 -0500 Received: from ug-out-1314.google.com ([66.249.92.173]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JU0eG-00034H-S2 for emacs-orgmode@gnu.org; Tue, 26 Feb 2008 09:19:13 -0500 Received: by ug-out-1314.google.com with SMTP id a2so1353822ugf.48 for ; Tue, 26 Feb 2008 06:19:11 -0800 (PST) In-Reply-To: <87skzfoqob.wl%t60500@mail.ecc.u-tokyo.ac.jp> 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: Kondo Kenji Cc: Org Mode Mailing List 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 ] >> [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