diff options
author | Marcin Borkowski <mbork@mbork.pl> | 2018-08-31 07:53:42 +0200 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2018-10-03 12:50:05 +0200 |
commit | d229dd966207cb25bc21aa69e5c50219a6bede9b (patch) | |
tree | 155c0f6b5130e34418577ed354cf530ea231276a | |
parent | 77aadd569c8f6320647e661e47d50833e6c5ff9a (diff) | |
download | org-mode-d229dd966207cb25bc21aa69e5c50219a6bede9b.tar.gz |
Lift the artificial limit on the clock history length.
The default limit of 35 was hard-coded, and was especially annoying
when using an alternative way of selecting from history,
e.g. https://github.com/unhammer/org-mru-clock.
-rw-r--r-- | lisp/org-clock.el | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/org-clock.el b/lisp/org-clock.el index 9819fcf..71ed99f 100644 --- a/lisp/org-clock.el +++ b/lisp/org-clock.el @@ -156,7 +156,10 @@ state to switch it to." (symbol :tag "Function"))) (defcustom org-clock-history-length 5 - "Number of clock tasks to remember in history." + "Number of clock tasks to remember in history. +Clocking in using history works best if this is at most 35, in +which case all digits and capital letters are used up by the +*Clock Task Select* buffer." :group 'org-clock :type 'integer) @@ -534,7 +537,7 @@ cannot be translated." (defun org-clock-history-push (&optional pos buffer) "Push a marker to the clock history." - (setq org-clock-history-length (max 1 (min 35 org-clock-history-length))) + (setq org-clock-history-length (max 1 org-clock-history-length)) (let ((m (move-marker (make-marker) (or pos (point)) (org-base-buffer (or buffer (current-buffer))))) |