From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id EG9xAJ1EW19wAQAA0tVLHw (envelope-from ) for ; Fri, 11 Sep 2020 09:34:21 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id iNZRNpxEW18KTQAA1q6Kng (envelope-from ) for ; Fri, 11 Sep 2020 09:34:20 +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 3095494050F for ; Fri, 11 Sep 2020 09:34:20 +0000 (UTC) Received: from localhost ([::1]:41904 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kGfRi-0004mL-JS for larch@yhetil.org; Fri, 11 Sep 2020 05:34:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46672) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kGfRJ-0004mB-Mj for emacs-orgmode@gnu.org; Fri, 11 Sep 2020 05:33:53 -0400 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]:35125) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kGfRI-0000xm-3n for emacs-orgmode@gnu.org; Fri, 11 Sep 2020 05:33:53 -0400 Received: by mail-wr1-x42c.google.com with SMTP id e16so10821309wrm.2 for ; Fri, 11 Sep 2020 02:33:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:message-id:mime-version; bh=YI9S2UfUx0CGHDUyJ5XJXaxiXKR4B0uMmTQsczChRPg=; b=R7fkqHavUAIKBaDQiwySAdGsPtxDMrZssigq2MsO0AMobDQssKMbEGZoE0LE2fH++n wTRYsG9mdpXZ3CyIOHUbic4lmpTISLBwMCIu0o9+kDbgtOkjmkwBAuVT4/jx4KVvbt3B DmxCu0qSjxFC19flggXyQEYgNmGFy7Ym1SVMLrJ80ft1VV3lYEiSmPSIUGLAOILp/X5Z UTTyXbaHD0f76ojTWk/PKxIX+tV4CLlBbHeqPpBf+uQ6Fals19XldCV731t7jCfI8cL2 Nl1DviTAeQmKPYkXkRZBb11SxeYt+TEHg9vZxZ6dQO8vNRPqDwuCpWunmSuPWi0/hzlY vl4w== 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:message-id :mime-version; bh=YI9S2UfUx0CGHDUyJ5XJXaxiXKR4B0uMmTQsczChRPg=; b=PE3OohhDkj/hE2H8HmdjJORN0CloAofW/VjJo5H86i+MFMk3OhfOl5Lupfrxipsyff Kg/rrVBpZhl5qlnEndgNd834hn/kOYA5QI5KGszJlndspuzoeunJQwnHFUvScQzmR4Ky +9JRz9emWFg7WYLiILQwYJEfNgrRb3wjetWZxwGQTdeepzUdTcmpntKjQV+yvgN7nu7I jXdWWrvAA9fJwDis+SdUNNWcuOFb1vXYgJiEZbfUPiQHNTXPZ6E/DFOFZ9mh9XlpUFs3 GJU8WjzsNap1YzMAnu+df7/qmXwUkWo/kfbE/9YJs9//fOLwgo5weynTt2IUm0GyhPg4 Pl5Q== X-Gm-Message-State: AOAM531FtLcJd8hO+2qqBPhWZyL4GWB0S5Nv2qrWUezbYRh7S7XB0p27 bVxCmVtvqV9P5yM6eDd5LajaSLv3AV8= X-Google-Smtp-Source: ABdhPJw7SQfOw/lO3D3Z+y5uJBAygNAzcobPMwh5OYSl4FMjCf7judjCGGdpVBG/jyfmARcJUGJ7zA== X-Received: by 2002:adf:e8ce:: with SMTP id k14mr1227954wrn.394.1599816830359; Fri, 11 Sep 2020 02:33:50 -0700 (PDT) Received: from freegnu (24.183.22.109.rev.sfr.net. [109.22.183.24]) by smtp.gmail.com with ESMTPSA id f6sm4016204wme.32.2020.09.11.02.33.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Sep 2020 02:33:49 -0700 (PDT) From: Jeremie Juste To: Sharon Kimble Subject: Re: setting up 'imenu' References: <87v9gmdixl.fsf@skimble.plus.com> <87o8mdsuwg.fsf@gmail.com> <87wo104rfi.fsf@skimble.plus.com> Date: Fri, 11 Sep 2020 11:33:48 +0200 Message-ID: <87imckhd37.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::42c; envelope-from=jeremiejuste@gmail.com; helo=mail-wr1-x42c.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=R7fkqHav; 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: wsH0LQWYyR9i Hello Sharon, I must have failed to grasp the subtleties of your workflow. And my explanation was surely not very friendly. I apologize for that. If your workflow works for you this is what matters. > Sorry, but I just feel that your system is over-complicated as compared > to my simplistic way! I cannot reproduce your error right now. But I would suggest a test. If you start emacs without any configuration, on the command line > emacs -Q Then execute the code below. Does ido-goto-symbol work as you expect? #+begin_src emacs-lisp (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 #+end_src Best regards, Jeremie