From mboxrd@z Thu Jan 1 00:00:00 1970 From: torys.anderson@gmail.com (Tory S. Anderson) Subject: completing-read for org-clock-select-task: It works! Date: Tue, 24 Mar 2015 17:48:25 -0400 Message-ID: <87a8z2dq3a.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55754) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YaWgj-0002Qx-Dl for emacs-orgmode@gnu.org; Tue, 24 Mar 2015 17:48:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YaWgi-0006Pu-Gt for emacs-orgmode@gnu.org; Tue, 24 Mar 2015 17:48:41 -0400 Received: from mail-qg0-x22d.google.com ([2607:f8b0:400d:c04::22d]:36260) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YaWgi-0006Pk-D5 for emacs-orgmode@gnu.org; Tue, 24 Mar 2015 17:48:40 -0400 Received: by qgf60 with SMTP id 60so149245qgf.3 for ; Tue, 24 Mar 2015 14:48:39 -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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: orgmode list In my first attempt at actually adding functionality to an existing emacs library, I've written some code to make `org-clock-select-task' use completing-read instead of the built-in org menu if you set `org-select-task-completing', for those who would find this useful (it now works with Helm). It seems like my functions, which are backed by a hash table, ought to be more capable of removing (non-adjacent) duplicates from the list since the table keys are the strings themselves, but I still see them appearing. Why doesn't the hash table merge the entries (they seem to have identical keys)? Should this adjustment be useful to anyone else, what would I do next to contribute? As this is a first forray into more public-use elisp, I'm also open to any other suggestions or tips. Code at: http://www.toryanderson.com/files/helm-org-clock.el