From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id ADdNA8EVWl//DAAA0tVLHw (envelope-from ) for ; Thu, 10 Sep 2020 12:02:09 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id oEm4OsAVWl8oIAAAbx9fmQ (envelope-from ) for ; Thu, 10 Sep 2020 12:02:08 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 561CC940415 for ; Thu, 10 Sep 2020 12:02:08 +0000 (UTC) Received: from localhost ([::1]:37082 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kGLHC-00030g-E8 for larch@yhetil.org; Thu, 10 Sep 2020 08:02:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42314) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kGLGY-0002z3-6Z for emacs-orgmode@gnu.org; Thu, 10 Sep 2020 08:01:26 -0400 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]:50368) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kGLGW-0006AK-4s for emacs-orgmode@gnu.org; Thu, 10 Sep 2020 08:01:25 -0400 Received: by mail-wm1-x32a.google.com with SMTP id e17so5369989wme.0 for ; Thu, 10 Sep 2020 05:01:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=lwkTbegvmZGyxQFKAefhzFE/bn6NybTVpk3kDA0SmiU=; b=omt0EYSaTLGXs0rcpD0xvlnNovhwK5KKFcbxgFCOxF6Rfvd4ks/h6xCa1EGR1GxUWF lqrwMXRMRw5U0MbIOClVHPkMQ6UcJOc2mwUG148Bt7SnXWUbdjQsKBGCTyGq4BYa6RzK pgvri+OPvS5C5AWE2JzjhN4nXvCVPE+fDhC3ChzLUUrPIWR6sHxYW7ZNzWGcjt+9aw8Z 7K5c5ppuZ8RWOKfQh6B64XTzsbNzKExfSzu41edPplUC4zDWiRkGsmkecVSGn8mkGY8J N9akuct/DnvUGxLuZYd3RbSLjYcuNVkQDlGx8x47RKl1TOvu5DWIzqQTWByvqlJmrwF/ nTVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=lwkTbegvmZGyxQFKAefhzFE/bn6NybTVpk3kDA0SmiU=; b=FF6BMUptWxq4WRzVJg23PyV6O7GYkcayyApYX9jWm/LB/ASnuSeuAZ5IeNVdTbfjXE 4ce2Y/mV0nzaRnHUUtVsTRc7B+0KupvMrp3Pp4N06w/XCDF8em77ntepj52rJEwU4P8J KkruSQMVF+eMaKCuoCxxarhU6cI7gqZeHY0Lz1wTC3qW/z1tECZa3/auGjAV+vEOJkm6 0v88kH31uzFDBAlfNYVf2UePx1XD/YC82AjfkrAJJ8nwGMrFSHstdaUwFFtDyTfHpLJh bba0bZTwp18jL8BN2WbkWSjhAWlDYrWWkuDuVfowp5LVzO22iQtDpX4ewj6TiIAbbHTl MfUA== X-Gm-Message-State: AOAM530BGuLjfjfKb8EX5zSmns0/kMQZpOlIjid6xEtHJeT9NHnmEeff YowVFDtIijUsbc2xGVY99BEwohmme+Y= X-Google-Smtp-Source: ABdhPJwA07rbEubl45TaYCFRoKQXrcMLXNv7gWeigK7WYY9+sfzOaRnA3zJLo+fGccBAWEYpxNxehA== X-Received: by 2002:a1c:7e83:: with SMTP id z125mr8192097wmc.32.1599739281339; Thu, 10 Sep 2020 05:01:21 -0700 (PDT) Received: from freegnu (24.183.22.109.rev.sfr.net. [109.22.183.24]) by smtp.gmail.com with ESMTPSA id c10sm3337185wmk.30.2020.09.10.05.01.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2020 05:01:20 -0700 (PDT) From: Jeremie Juste To: Sharon Kimble Subject: Re: setting up 'imenu' References: <87v9gmdixl.fsf@skimble.plus.com> Date: Thu, 10 Sep 2020 14:01:19 +0200 In-Reply-To: <87v9gmdixl.fsf@skimble.plus.com> (Sharon Kimble's message of "Thu, 10 Sep 2020 11:28:54 +0100") Message-ID: <87o8mdsuwg.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::32a; envelope-from=jeremiejuste@gmail.com; helo=mail-wm1-x32a.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=omt0EYSa; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -1.71 X-TUID: 96JsDQz033kP Hello Sharon, Unfortunately I cannot reproduce your issue. I created a list of 56 sub heading and I can view the heading Still a sample 0 until Still a sample 56. ** TODO * etc and onwards ** TODO * and another one ** Still a sample 0 ** Still a sample 1 ** Still a sample 2 ** Still a sample 3 ** Still a sample 4 It might be because I am using [1] this modification from emacswiki https://www.emacswiki.org/emacs/ImenuMode. I another workflow comes to my mind when reading yours. Instead of using "TODO * ..." I would use the TODO keywords and tell org-mode to list all the todos. For instance with the command M-x org-show-todo-tree. A another way of working might be the following. --- file - writings.org #+TODO: TODO(t) TOWRITE(w) | DONE(d) * TOWRITE This is article 1 * TOWRITE This is article 2 * DONE This is article 2 #+begin_src elisp (org-agenda-file-to-front) #+end_src --- EOF Add the file to the agenda ( by default C-[ ), or execute the lisp chunk in the file writings.org. Then you can M-x org-todo-list. To view all your todo|towrite|done articles. Hope this help, Jeremie [1] ;; * imenu (defun ido-goto-symbol (&optional symbol-list) "Refresh imenu and jump to a place in the buffer using Ido." (interactive) (unless (featurep 'imenu) (require 'imenu nil t)) (cond ((not symbol-list) (let ((ido-mode ido-mode) (ido-enable-flex-matching (if (boundp 'ido-enable-flex-matching) ido-enable-flex-matching t)) name-and-pos symbol-names position) (unless ido-mode (ido-mode 1) (setq ido-enable-flex-matching t)) (while (progn (imenu--cleanup) (setq imenu--index-alist nil) (ido-goto-symbol (imenu--make-index-alist)) (setq selected-symbol (ido-completing-read "Symbol? " symbol-names)) (string= (car imenu--rescan-item) selected-symbol))) (unless (and (boundp 'mark-active) mark-active) (push-mark nil t nil)) (setq position (cdr (assoc selected-symbol name-and-pos))) (cond ((overlayp position) (goto-char (overlay-start position))) (t (goto-char position))))) ((listp symbol-list) (dolist (symbol symbol-list) (let (name position) (cond ((and (listp symbol) (imenu--subalist-p symbol)) (ido-goto-symbol symbol)) ((listp symbol) (setq name (car symbol)) (setq position (cdr symbol))) ((stringp symbol) (setq name symbol) (setq position (get-text-property 1 'org-imenu-marker symbol)))) (unless (or (null position) (null name) (string= (car imenu--rescan-item) name)) (add-to-list 'symbol-names name) (add-to-list 'name-and-pos (cons name position)))))))) (global-set-key (kbd "C-c i") 'ido-goto-symbol) ; or any key you see fit