emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jose Robins <jose.robins@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Patch for fixing a missing autoload for the function org-clock-sum-today
Date: Thu, 1 Feb 2018 15:07:58 -0800	[thread overview]
Message-ID: <CAFAFExP+VGkaTa4NTbycHAjfaREXbchpD8gmxH9iJGpfbzTfRw@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 282 bytes --]

    org-clock.el: Add an autoload entry for the function org-clock-sum-today

    * lisp/org-clock.el: When the org-mode is called for the very first time
    any functionality that requires the org-clock-sum-today used to fail.
    (e.g. a column that calculates CLOCKSUM_T)

Jose

[-- Attachment #1.2: Type: text/html, Size: 394 bytes --]

[-- Attachment #2: 0001-org-clock.el-Add-an-autoload-entry-for-the-function-.patch --]
[-- Type: application/octet-stream, Size: 1033 bytes --]

From 12f4dd3d01b5521f5e35d855ae5f12600104d509 Mon Sep 17 00:00:00 2001
From: Jose Robins <jose.robins@gmail.com>
Date: Thu, 1 Feb 2018 15:02:10 -0800
Subject: [PATCH] org-clock.el: Add an autoload entry for the function
 org-clock-sum-today

* lisp/org-clock.el: When the org-mode is called for the very first time
any functionality that requires the org-clock-sum-today used to fail.
(e.g. a column that calculates CLOCKSUM_T)
---
 lisp/org-clock.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lisp/org-clock.el b/lisp/org-clock.el
index aa59d821e..8b5e8b1aa 100644
--- a/lisp/org-clock.el
+++ b/lisp/org-clock.el
@@ -1755,6 +1755,7 @@ With prefix arg SELECT, offer recently clocked tasks for selection."
 (defvar-local org-clock-file-total-minutes nil
   "Holds the file total time in minutes, after a call to `org-clock-sum'.")
 
+;;;###autoload
 (defun org-clock-sum-today (&optional headline-filter)
   "Sum the times for each subtree for today."
   (let ((range (org-clock-special-range 'today)))
-- 
2.14.2.windows.3


             reply	other threads:[~2018-02-01 23:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-01 23:07 Jose Robins [this message]
2018-02-04 22:37 ` Patch for fixing a missing autoload for the function org-clock-sum-today Nicolas Goaziou
2018-02-05 16:56   ` Jose Robins

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=CAFAFExP+VGkaTa4NTbycHAjfaREXbchpD8gmxH9iJGpfbzTfRw@mail.gmail.com \
    --to=jose.robins@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).