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 4Ao5NkE//l7yYQAA0tVLHw (envelope-from ) for ; Thu, 02 Jul 2020 20:10:41 +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 iPgQMkE//l5/GgAA1q6Kng (envelope-from ) for ; Thu, 02 Jul 2020 20:10:41 +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 2CD549401CB for ; Thu, 2 Jul 2020 20:10:41 +0000 (UTC) Received: from localhost ([::1]:59536 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jr5Xa-000180-VM for larch@yhetil.org; Thu, 02 Jul 2020 16:10:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58538) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jr5X4-00015r-27 for emacs-orgmode@gnu.org; Thu, 02 Jul 2020 16:10:06 -0400 Received: from grinta.net ([109.74.203.128]:36038) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jr5X2-00088U-41 for emacs-orgmode@gnu.org; Thu, 02 Jul 2020 16:10:05 -0400 Received: from black.local (c-73-229-170-236.hsd1.co.comcast.net [73.229.170.236]) (Authenticated sender: daniele) by grinta.net (Postfix) with ESMTPSA id A900BE0D4A for ; Thu, 2 Jul 2020 20:10:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=grinta.net; s=2020; t=1593720600; bh=2j/yv9I85dZ08Sot4REgnmCU05X9DQ1ILBY+HK6Qgy4=; h=To:From:Subject:Date:From; b=PD5M6jPznEMlhzZ5qwLtVAfefHIBpKtYi3kLPsaPYme2/S9jjKKEB2u10KY5ernWt YTUxczQbJqUldI04+lBUkV5V92YaCtCgWft/Qn/Mv3wsFiW7aIJnLEhutGdla954ll cjrgw+2nymxYDlW/ANCEdh5niZ8pkLiXqkcTEIhBPwmb2yJnyexWxTem95FwSwfeGR rSX1aUTych8XIzNDgCy18HvSan16ZPYo4YFFBYHMpfmuRLLGF/+1D+MgFAxHqw3ZEH Na12mWPnMe8KgjxsnllPKsRCsdL5JoJzzJ+J3nhvbLk35fJEJkFFpsHXmrKLNGGq9R GJVxjiSeTkbAQ== To: emacs-orgmode@gnu.org From: Daniele Nicolodi Subject: Link to source file location with content preview Message-ID: <8d7d36e4-86c0-06d0-d7e0-e33ff509f7e7@grinta.net> Date: Thu, 2 Jul 2020 14:09:51 -0600 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=109.74.203.128; envelope-from=daniele@grinta.net; helo=grinta.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/02 16:10:01 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] 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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN 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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=grinta.net header.s=2020 header.b=PD5M6jPz; dmarc=none; 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: -0.01 X-TUID: DERQPoKtagVk Hello, I would like to create links from an org-mode file to source file locations that display a preview of the link destination in the form of a source code block or similar with a few lines of the file content. Is this doable with org-store-link and org-insert-link? A related question: does anyone have some elisp code that turns a Grep buffer (the results of running "M-x grep") into org-mode links to the locations? Thank you! Cheers, Dan