From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gregor Kappler Subject: Re: org-git-link does not support locational information within file Date: Tue, 15 Feb 2011 21:15:23 +0100 Message-ID: <877hd19hr8.fsf@univie.ac.at> References: <877hdh2m7a.fsf@univie.ac.at> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=60286 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PpRIR-0005xR-Ue for emacs-orgmode@gnu.org; Tue, 15 Feb 2011 15:14:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PpRIQ-0005NY-LU for emacs-orgmode@gnu.org; Tue, 15 Feb 2011 15:14:51 -0500 Received: from grace.univie.ac.at ([131.130.3.115]:52546) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PpRIQ-0005NJ-A4 for emacs-orgmode@gnu.org; Tue, 15 Feb 2011 15:14:50 -0500 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Leo Alekseyev Cc: emacs-orgmode@gnu.org Hi Leo, > However, I think the bigger problem with org-git-link in its current > incarnation is that it forces me to use git:// links for all files > under version control, which is NOT what I want to do 90% of the time. > I have a quick hack to deal with this -- namely, commenting out >=20 > ;; (add-hook 'org-store-link-functions 'org-git-store-link t) >=20 > and using a separate keybinding for storing git links using the > following function: >=20 > (defun org-git-store-link-interactively (arg) > "Store git link to current file." > (interactive "P") > (let ((org-store-link-functions (cons 'org-git-store-link > org-store-link-functions))) > (call-interactively 'org-store-link arg) > )) Thanks a lot for this! >=20 >=20 > In addition, I'm not crazy about using the "branch@{date}" format for > storing links by default, so I hacked something that uses SHA1 > instead... I could post a patch if anyone is curious. I would be interested, and I think SHA1 should be supported as it is so common with git. Cheers, Gregor --=20 -- Dr. Gregor Kappler Fakult=C3=A4t f=C3=BCr Psychologie=20 Institut f=C3=BCr Entwicklungspsychologie und=20 Psychologische Diagnostik http://www.univie.ac.at/Psychologie Universit=C3=A4t Wien Liebiggasse 5 A-1010 Wien mail: gregor.kappler@univie.ac.at tel: +43 1 4277 47866