From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tim Visher Subject: Automatic mtime and ctime on all or select group of trees? Date: Thu, 31 Aug 2017 07:55:48 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="f403043ece14b48c7805580b5551" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35675) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dnO5H-0003jO-AU for emacs-orgmode@gnu.org; Thu, 31 Aug 2017 07:56:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dnO5G-0001Hb-DB for emacs-orgmode@gnu.org; Thu, 31 Aug 2017 07:56:31 -0400 Received: from mail-ua0-x22b.google.com ([2607:f8b0:400c:c08::22b]:38146) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dnO5G-0001HN-8B for emacs-orgmode@gnu.org; Thu, 31 Aug 2017 07:56:30 -0400 Received: by mail-ua0-x22b.google.com with SMTP id j46so1186999uag.5 for ; Thu, 31 Aug 2017 04:56:30 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org --f403043ece14b48c7805580b5551 Content-Type: text/plain; charset="UTF-8" I would like to track the time I created a tree and the last time it was edited, like ctime and mtime on a filesystem. Is that possible to have happen automatically? Thanks in advance! -- In Christ, Timmy V. http://blog.twonegatives.com/ http://five.sentenc.es/ -- Spend less time on mail --f403043ece14b48c7805580b5551 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I would like to track the time I created a tree and the la= st time it was edited, like ctime and mtime on a filesystem. Is that possib= le to have happen automatically?

Thanks in advance!=

--

In Christ,
=
Timmy V.

http://five.sentenc.es/ -- Spend less time on mail=
--f403043ece14b48c7805580b5551-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Automatic mtime and ctime on all or select group of trees? Date: Thu, 31 Aug 2017 14:44:15 +0100 Message-ID: <87r2vrvols.fsf@pinto.chemeng.ucl.ac.uk> References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33136) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dnPlg-0007T4-Pw for emacs-orgmode@gnu.org; Thu, 31 Aug 2017 09:44:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dnPlb-0002Gr-Rk for emacs-orgmode@gnu.org; Thu, 31 Aug 2017 09:44:24 -0400 Received: from mail-wr0-x22d.google.com ([2a00:1450:400c:c0c::22d]:35614) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dnPlb-0002Gb-Kr for emacs-orgmode@gnu.org; Thu, 31 Aug 2017 09:44:19 -0400 Received: by mail-wr0-x22d.google.com with SMTP id y15so2106752wrc.2 for ; Thu, 31 Aug 2017 06:44:18 -0700 (PDT) In-Reply-To: (Tim Visher's message of "Thu, 31 Aug 2017 07:55:48 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Tim Visher Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Thursday, 31 Aug 2017 at 07:55, Tim Visher wrote: > I would like to track the time I created a tree and the last time it was > edited, like ctime and mtime on a filesystem. Is that possible to have > happen automatically? I don't know of any org mechanism for handling this, especially the modified time element. However, I would suggest you consider using a revision control system (mercurial, git) which would allow even finer tracking than this... =2D-=20 : Eric S Fraga via Emacs 26.0.50, Org release_9.0.10-723-g23eba9 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQSPXCedOQfhSlwpVw3IkZPY//z2fQUCWagSrwAKCRDIkZPY//z2 fS0XAJ0VoTOV0uVAhijtWUR0/Ow82jrp1ACfYZYfFRm5C5sqkZMZer0QPCWQlTM= =Ub9g -----END PGP SIGNATURE----- --=-=-=-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tim Visher Subject: Re: Automatic mtime and ctime on all or select group of trees? Date: Thu, 31 Aug 2017 10:20:35 -0400 Message-ID: References: <87r2vrvols.fsf@pinto.chemeng.ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a11495ae0749a4805580d5bbe" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42447) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dnQLR-0005UI-6H for emacs-orgmode@gnu.org; Thu, 31 Aug 2017 10:21:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dnQLM-0006Wl-FG for emacs-orgmode@gnu.org; Thu, 31 Aug 2017 10:21:21 -0400 Received: from mail-ua0-x234.google.com ([2607:f8b0:400c:c08::234]:34142) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dnQLM-0006Wf-A0 for emacs-orgmode@gnu.org; Thu, 31 Aug 2017 10:21:16 -0400 Received: by mail-ua0-x234.google.com with SMTP id l11so2445312uaf.1 for ; Thu, 31 Aug 2017 07:21:16 -0700 (PDT) In-Reply-To: <87r2vrvols.fsf@pinto.chemeng.ucl.ac.uk> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Tim Visher , emacs-orgmode@gnu.org --001a11495ae0749a4805580d5bbe Content-Type: text/plain; charset="UTF-8" On Thu, Aug 31, 2017 at 9:44 AM, Eric S Fraga wrote: > On Thursday, 31 Aug 2017 at 07:55, Tim Visher wrote: > > I would like to track the time I created a tree and the last time it was > > edited, like ctime and mtime on a filesystem. Is that possible to have > > happen automatically? > > I don't know of any org mechanism for handling this, especially the > modified time element. However, I would suggest you consider using a > revision control system (mercurial, git) which would allow even finer > tracking than this... > Thanks for the suggestion. It doesn't really meet my needs here in that I'm really looking for org to behave more like a filesystem, not something that I have to manually commit changes to. If this doesn't already exist, does org already provide hooks or something that I can plug in to? I would assume a heading-created and heading-modified hook of some kind would allow me to implement my own solution fairly cleanly. --001a11495ae0749a4805580d5bbe Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On T= hu, Aug 31, 2017 at 9:44 AM, Eric S Fraga <esflists@gmail.com> wrote:
On Thursday, = 31 Aug 2017 at 07:55, Tim Visher wrote:
> I would like to track the time I created a tree and the last time it w= as
> edited, like ctime and mtime on a filesystem. Is that possible to have=
> happen automatically?

I don't know of any org mechanism for handling this, especially = the
modified time element.=C2=A0 However, I would suggest you consider using a<= br> revision control system (mercurial, git) which would allow even finer
tracking than this...

Thanks for the su= ggestion. It doesn't really meet my needs here in that I'm really l= ooking for org to behave more like a filesystem, not something that I have = to manually commit changes to.

If this doesn't= already exist, does org already provide hooks or something that I can plug= in to? I would assume a heading-created and heading-modified hook of some = kind would allow me to implement my own solution fairly cleanly.=C2=A0
--001a11495ae0749a4805580d5bbe-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Automatic mtime and ctime on all or select group of trees? Date: Fri, 01 Sep 2017 10:57:33 +0100 Message-ID: <87inh24u7m.fsf@pinto.chemeng.ucl.ac.uk> References: <87r2vrvols.fsf@pinto.chemeng.ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37533) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dniho-0000kY-67 for emacs-orgmode@gnu.org; Fri, 01 Sep 2017 05:57:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dnihl-0005tt-59 for emacs-orgmode@gnu.org; Fri, 01 Sep 2017 05:57:40 -0400 Received: from mail-wm0-x22d.google.com ([2a00:1450:400c:c09::22d]:35069) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dnihk-0005tg-Ti for emacs-orgmode@gnu.org; Fri, 01 Sep 2017 05:57:37 -0400 Received: by mail-wm0-x22d.google.com with SMTP id v2so737852wmf.0 for ; Fri, 01 Sep 2017 02:57:36 -0700 (PDT) In-Reply-To: (Tim Visher's message of "Thu, 31 Aug 2017 10:20:35 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Tim Visher Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Thursday, 31 Aug 2017 at 10:20, Tim Visher wrote: > Thanks for the suggestion. It doesn't really meet my needs here in that I= 'm > really looking for org to behave more like a filesystem, not something th= at > I have to manually commit changes to. I understand but I think you may be expecting more from org than it really is designed to do. It is primarily about text markup as the basis. > If this doesn't already exist, does org already provide hooks or something > that I can plug in to? I would assume a heading-created and > heading-modified hook of some kind would allow me to implement my own > solution fairly cleanly. The problem is that you can create a heading by simply typing "* blah" at the start of a line. There are some methods that create new headings (see org-meta-return and or-insert-heading-respect-content, e.g.) but you don't need to use them at all. However, if you are very disciplined, you could probably use org-capture to do what you want. Look at the capture-refile-archive section (section 9) of the info manual. Many of us use capturing for logs and journals, for instance, which do some of what you want (not all). You may wish to combine capturing with special TODO states and there are indeed hooks invoked when changing such states. HTH, eric =2D-=20 : Eric S Fraga via Emacs 26.0.50, Org release_9.0.10-723-g23eba9 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQSPXCedOQfhSlwpVw3IkZPY//z2fQUCWakvDQAKCRDIkZPY//z2 fY6WAJ9mPnhHqiCjTavpH8q5z5lq2X4AugCfflBJxARxBH2KdLNh6NV5EqJCRgg= =fG1M -----END PGP SIGNATURE----- --=-=-=-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adam Porter Subject: Re: Automatic mtime and ctime on all or select group of trees? Date: Fri, 01 Sep 2017 20:09:40 -0500 Message-ID: <8760d1j48b.fsf@alphapapa.net> References: <87r2vrvols.fsf@pinto.chemeng.ucl.ac.uk> <87inh24u7m.fsf@pinto.chemeng.ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40481) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dnwwd-0000CN-1F for emacs-orgmode@gnu.org; Fri, 01 Sep 2017 21:09:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dnwwY-0004jx-G0 for emacs-orgmode@gnu.org; Fri, 01 Sep 2017 21:09:55 -0400 Received: from [195.159.176.226] (port=41457 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dnwwY-0004je-8b for emacs-orgmode@gnu.org; Fri, 01 Sep 2017 21:09:50 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1dnwwP-0004Ue-6e for emacs-orgmode@gnu.org; Sat, 02 Sep 2017 03:09:41 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org As Eric mentioned, a heading can be created by simply typing, so making that detect whether a new heading is created is possible, but I guess it would require some ugly hacks. Maybe if you could hook into the font-lock code, but like I said...ugly hacks. :) However, it would be easy to add advice to the heading-creating commands, so if you always use those to create headings, that would do it for you. For modification time, that would be more challenging. I guess you could use post-command-hook and update an mtime property in the current node with every keystroke. Another way might be to add a function to the before-save-hook that would diff the buffer with the file and update the mtime in each node that has been changed. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jorge Morais Neto Subject: Re: Automatic mtime and ctime on all or select group of trees? Date: Sat, 2 Sep 2017 20:18:02 -0300 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38945) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1doHg4-0002Eo-0w for emacs-orgmode@gnu.org; Sat, 02 Sep 2017 19:18:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1doHfz-0002Hh-4S for emacs-orgmode@gnu.org; Sat, 02 Sep 2017 19:18:11 -0400 Received: from mail-pf0-x22e.google.com ([2607:f8b0:400e:c00::22e]:33351) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1doHfy-0002G7-UZ for emacs-orgmode@gnu.org; Sat, 02 Sep 2017 19:18:07 -0400 Received: by mail-pf0-x22e.google.com with SMTP id n73so9224152pfj.0 for ; Sat, 02 Sep 2017 16:18:05 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Tim Visher Cc: org mode On 31 August 2017 at 08:55, Tim Visher wrote: > I would like to track the time I created a tree and the last time it was > edited, like ctime and mtime on a filesystem. Is that possible to have > happen automatically? To insert a creation timestamp I use org-expiry. I have added ~(require 'org-expiry)~ to my Org Mode setup file. I could then have enabled automatic CREATED property insertion by adding ~(org-expiry-insinuate)~. However, that would make Org insert CREATED not only on heading creation, but also whenever I performed certain actions =E2=80=93 such as scheduling or deadlining =E2=80=93 on headings that lacked CREATED. I do n= ot want that. I want CREATED to reflect the actual creation time. Old headlines (from before I enabled org-expiry) are better off without CREATED than with an inaccurate CREATED timestamp. Also, I want to be able to disable on certain files the automatic CREATED insertion. So instead of ~(org-expiry-insinuate)~, I added this: ;; HACK? (defcustom J-insert-created t "Whether to automatically add CREATED property (org-expiry) on heading creation" :type 'boolean :safe #'booleanp) (defun J-insert-created () (when J-insert-created (org-expiry-insert-created))) (add-hook 'org-insert-heading-hook #'J-insert-created) (add-hook 'org-capture-prepare-finalize-hook (lambda () (org-map-entries #'org-expiry-insert-created))) So the CREATED timestamp is always added on capture, and also added on headline creation except for manually typed headings and buffers where option ~J-insert-created~ is nil. I created that option as an option (instead of a simple variable) so it could be file-local. This works, but I'm not sure it's correct and elegant. I know little Elisp and very little about defining Emacs options. Suggestions welcome. It currently gives compile warnings, which I ignore for now: J-org.el:18:1:Warning: defcustom for =E2=80=98J-insert-created=E2=80=99= fails to specify containing group Org-expiry can also add an EXPIRY property, so it can expire entries after they become irrelevant with time. And for entries without EXPIRY, it can use a (customizable) default time span. It is documented via comments on ~org-expiry.el~. That file comes with org-plus-contrib. I also customized the following options: - org-expiry-handler-function - org-expiry-inactive-timestamps - org-expiry-wait Beware that org-expiry interacts badly with the ~org-clone-subtree-with-time-shift~ command. It messes with org-expiry timestamps on the clones. For example, if the original entry is: * Meeting :PROPERTIES: :CREATED: [2017-09-02 S=C3=A1b 20:10] :EXPIRY: [2017-12-31] :END: <2017-09-04 Seg 10:00-11:00> and one invokes ~org-clone-subtree-with-time-shift~, asking for one clone and a ~+1w~ shift, the clone will be: * Meeting :PROPERTIES: :CREATED: [2017-09-09 S=C3=A1b 20:10] :EXPIRY: [2018-01-07 Dom] :END: <2017-09-11 Seg 10:00-11:00> which is clearly wrong. Regards --=20 - I am Brazilian. I hope my English is correct and I welcome feedback - Please adopt free formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z - Free (as in free speech) software for Android: https://f-droid.org/ From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Wales Subject: Re: Automatic mtime and ctime on all or select group of trees? Date: Sat, 2 Sep 2017 16:34:19 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40493) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1doHvn-00078H-Ub for emacs-orgmode@gnu.org; Sat, 02 Sep 2017 19:34:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1doHvj-000554-J8 for emacs-orgmode@gnu.org; Sat, 02 Sep 2017 19:34:27 -0400 Received: from mail-vk0-x242.google.com ([2607:f8b0:400c:c05::242]:37519) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1doHvj-00053t-EO for emacs-orgmode@gnu.org; Sat, 02 Sep 2017 19:34:23 -0400 Received: by mail-vk0-x242.google.com with SMTP id z187so1195224vkd.4 for ; Sat, 02 Sep 2017 16:34:20 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Tim Visher Cc: emacs-orgmode@gnu.org pedantry: birth time, sometimes called btime, is a new kernel feature, present in some filesystems but not traditionally available to stat. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adam Porter Subject: Re: Automatic mtime and ctime on all or select group of trees? Date: Sat, 02 Sep 2017 20:06:51 -0500 Message-ID: <8760d0fv4k.fsf@alphapapa.net> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49418) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1doJNm-0000BW-Fp for emacs-orgmode@gnu.org; Sat, 02 Sep 2017 21:07:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1doJNh-0002NH-EV for emacs-orgmode@gnu.org; Sat, 02 Sep 2017 21:07:26 -0400 Received: from [195.159.176.226] (port=53098 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1doJNh-0002Lq-6m for emacs-orgmode@gnu.org; Sat, 02 Sep 2017 21:07:21 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1doJNO-0000IB-4q for emacs-orgmode@gnu.org; Sun, 03 Sep 2017 03:07:02 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Samuel Wales writes: > pedantry: > > birth time, sometimes called btime, is a new kernel feature, present > in some filesystems but not traditionally available to stat. Actually that's a very good reminder, especially for people who work on both Windows and *nix. In Windows, the "C" time is "Creation", but in Linux it's "change." Just found this article which looks interesting: https://lwn.net/Articles/397442/ From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adam Porter Subject: Re: Automatic mtime and ctime on all or select group of trees? Date: Sat, 02 Sep 2017 20:10:26 -0500 Message-ID: <871snofuyl.fsf@alphapapa.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51485) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1doJVV-0004rM-0Q for emacs-orgmode@gnu.org; Sat, 02 Sep 2017 21:15:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1doJVQ-0007nX-19 for emacs-orgmode@gnu.org; Sat, 02 Sep 2017 21:15:24 -0400 Received: from [195.159.176.226] (port=42160 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1doJVP-0007mt-Px for emacs-orgmode@gnu.org; Sat, 02 Sep 2017 21:15:19 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1doJV9-0005Oc-2V for emacs-orgmode@gnu.org; Sun, 03 Sep 2017 03:15:03 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Jorge Morais Neto writes: Hi Jorge, Thanks for sharing that, I didn't even remember org-expiry. Very clever use of it! You seem to know more about elisp than you give yourself credit for. :) > Suggestions welcome. It currently > gives compile warnings, which I ignore for now: > > J-org.el:18:1:Warning: defcustom for ‘J-insert-created’ fails to specify > containing group You can fix that by adding e.g. ":group 'org" to the defcustom. Normally the defcustom would pick up whatever group was last defined in the same file. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jorge Morais Neto Subject: Re: Automatic mtime and ctime on all or select group of trees? Date: Tue, 5 Sep 2017 13:47:07 -0300 Message-ID: References: <871snofuyl.fsf@alphapapa.net> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58951) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dpH0N-0003XT-FJ for emacs-orgmode@gnu.org; Tue, 05 Sep 2017 12:47:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dpH0I-0003bl-Ou for emacs-orgmode@gnu.org; Tue, 05 Sep 2017 12:47:15 -0400 Received: from mail-pg0-x22e.google.com ([2607:f8b0:400e:c05::22e]:33062) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dpH0I-0003av-Iy for emacs-orgmode@gnu.org; Tue, 05 Sep 2017 12:47:10 -0400 Received: by mail-pg0-x22e.google.com with SMTP id t3so10490218pgt.0 for ; Tue, 05 Sep 2017 09:47:09 -0700 (PDT) In-Reply-To: <871snofuyl.fsf@alphapapa.net> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Adam Porter Cc: org mode [unfortunately the first email went only to Adam Porter; now I address the = list] On 2 September 2017 at 22:10, Adam Porter wrote: > Thanks for sharing that, I didn't even remember org-expiry. Very clever > use of it! You seem to know more about elisp than you give yourself > credit for. :) Thank you for the encouragement! >> Suggestions welcome. It currently >> gives compile warnings, which I ignore for now: >> >> J-org.el:18:1:Warning: defcustom for =E2=80=98J-insert-created=E2=80= =99 fails to specify >> containing group > > You can fix that by adding e.g. ":group 'org" to the defcustom. > Normally the defcustom would pick up whatever group was last defined in > the same file. Thank you for the tip. But instead of adding precisely what you suggested, I have added =E2=80=9C:group 'org-expiry=E2=80=9D. The warning = is gone and the option does show up when I invoke customize-group and type =E2=80=9Corg-expiry=E2=80=9D. I have run some other minimal tests and it s= eems to be working. Regards -- - I am Brazilian. I hope my English is correct and I welcome feedback - Please adopt free formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z - Free (as in free speech) software for Android: https://f-droid.org/ From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adam Porter Subject: Re: Automatic mtime and ctime on all or select group of trees? Date: Wed, 06 Sep 2017 20:38:58 -0500 Message-ID: <87a827cmod.fsf@alphapapa.net> References: <871snofuyl.fsf@alphapapa.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34697) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dplnK-0007uD-0t for emacs-orgmode@gnu.org; Wed, 06 Sep 2017 21:39:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dplnG-0002u3-W2 for emacs-orgmode@gnu.org; Wed, 06 Sep 2017 21:39:50 -0400 Received: from [195.159.176.226] (port=59969 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dplnG-0002tm-Of for emacs-orgmode@gnu.org; Wed, 06 Sep 2017 21:39:46 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1dplmq-0001F0-7H for emacs-orgmode@gnu.org; Thu, 07 Sep 2017 03:39:20 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Jorge Morais Neto writes: > Thank you for the tip. But instead of adding precisely what you > suggested, I have added “:group 'org-expiry”. The warning is gone and > the option does show up when I invoke customize-group and type > “org-expiry”. I have run some other minimal tests and it seems to be > working. Muito bem feito! :)