From mboxrd@z Thu Jan 1 00:00:00 1970 From: "numbchild@gmail.com" Subject: [Feature Request] Provide a way to jump to noweb reference definition under point Date: Sun, 13 Aug 2017 16:37:13 +0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a1148f0e4c5a2f705569e7553" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51186) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dgoP6-0006mL-KM for emacs-orgmode@gnu.org; Sun, 13 Aug 2017 04:37:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dgoP5-0001zI-Gw for emacs-orgmode@gnu.org; Sun, 13 Aug 2017 04:37:48 -0400 Received: from mail-wm0-x22f.google.com ([2a00:1450:400c:c09::22f]:38825) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dgoP5-0001w0-8A for emacs-orgmode@gnu.org; Sun, 13 Aug 2017 04:37:47 -0400 Received: by mail-wm0-x22f.google.com with SMTP id f15so21850651wmg.1 for ; Sun, 13 Aug 2017 01:37:45 -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" To: Org-mode --001a1148f0e4c5a2f705569e7553 Content-Type: text/plain; charset="UTF-8" For example I have an Org buffer like this: ```org #+NAME: define food-journal #+BEGIN_SRC clojure (def food-journal [{:month 1 :day 1 :human 5.3 :critter 2.3} {:month 1 :day 2 :human 5.1 :critter 2.0} {:month 2 :day 1 :human 4.9 :critter 2.1} {:month 2 :day 2 :human 5.0 :critter 2.5} {:month 3 :day 1 :human 4.2 :critter 3.3} {:month 3 :day 2 :human 4.0 :critter 3.8} {:month 4 :day 1 :human 3.7 :critter 3.9} {:month 4 :day 2 :human 3.7 :critter 3.6}]) #+END_SRC #+BEGIN_SRC clojure <> (take-while #(< (:month %) 3) food-journal) #+END_SRC ``` The point is at `<>`. Hope org-mode can provide and shortcut to jump to noweb reference definition `#+NAME: define food-journal`. [stardiviner] GPG key ID: 47C32433 IRC(freeenode): stardiviner Twitter: @numbchild Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 Blog: http://stardiviner.github.io/ --001a1148f0e4c5a2f705569e7553 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
For example I have an Org buffer like this:

```org
#+N= AME: define food-journal
#+BEGIN_SRC clojure
(def food-journa= l
=C2=A0 [{:month 1 :day 1 :human 5.3 :critter 2.3}
=C2=A0 =C2= =A0{:month 1 :day 2 :human 5.1 :critter 2.0}
=C2=A0 =C2=A0{:month 2 := day 1 :human 4.9 :critter 2.1}
=C2=A0 =C2=A0{:month 2 :day 2 :human 5= .0 :critter 2.5}
=C2=A0 =C2=A0{:month 3 :day 1 :human 4.2 :critter 3.= 3}
=C2=A0 =C2=A0{:month 3 :day 2 :human 4.0 :critter 3.8}
=C2= =A0 =C2=A0{:month 4 :day 1 :human 3.7 :critter 3.9}
=C2=A0 =C2=A0{:m= onth 4 :day 2 :human 3.7 :critter 3.6}])
#+END_SRC

<= /div>
#= +BEGIN_SRC clojure
<<define food-journal>>

(take-while #(< (:month %) 3) food-journal)
#+END_SRC
```
=

The point is a= t `<<define food-journal>>`. Hope org-mode can provide and shor= tcut to jump to noweb reference definition `#+NAME: define food-journal`.

[stardiviner]=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <Hack this world!>=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 GPG key ID: 47C32433
IRC(freeenode): stardiviner =C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Twitter:=C2=A0 @numbchild
Key fingerprint= =3D 9BAA 92BC CDDD B9EF 3B36=C2=A0 CB99 B8C4 B8E5 47C3 2433
Blog: http://stardiviner.g= ithub.io/
--001a1148f0e4c5a2f705569e7553--