From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Oleh Krehel Newsgroups: gmane.emacs.bugs Subject: bug#14910: org-mode `org-open-at-point' doesn't follow id links Date: Mon, 22 Jul 2013 11:27:50 +0200 Message-ID: References: <871u6uv901.fsf@gmail.com> <8738r9qkf2.fsf@bzg.ath.cx> <871u6rht0h.fsf@bzg.ath.cx> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1374512378 7681 80.91.229.3 (22 Jul 2013 16:59:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Jul 2013 16:59:38 +0000 (UTC) Cc: 14910@debbugs.gnu.org To: Bastien Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 22 18:59:38 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1V1JSS-0003JM-8h for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Jul 2013 18:59:36 +0200 Original-Received: from localhost ([::1]:37368 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1JSR-0000cp-W8 for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Jul 2013 12:59:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35539) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1JSL-0000VM-V4 for bug-gnu-emacs@gnu.org; Mon, 22 Jul 2013 12:59:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V1IQk-0008G9-LM for bug-gnu-emacs@gnu.org; Mon, 22 Jul 2013 11:53:54 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48624) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1IQa-0008Cq-4a; Mon, 22 Jul 2013 11:53:36 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1V1IHL-00021P-HX; Mon, 22 Jul 2013 11:44:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Oleh Krehel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, emacs-orgmode@gnu.org Resent-Date: Mon, 22 Jul 2013 15:44:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14910 X-GNU-PR-Package: emacs,org-mode X-GNU-PR-Keywords: Original-Received: via spool by 14910-submit@debbugs.gnu.org id=B14910.13745078247670 (code B ref 14910); Mon, 22 Jul 2013 15:44:03 +0000 Original-Received: (at 14910) by debbugs.gnu.org; 22 Jul 2013 15:43:44 +0000 Original-Received: from localhost ([127.0.0.1]:42896 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V1IH0-0001zW-BV for submit@debbugs.gnu.org; Mon, 22 Jul 2013 11:43:43 -0400 Original-Received: from mail-vc0-f177.google.com ([209.85.220.177]:49618) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V1CPM-0004DX-1f for 14910@debbugs.gnu.org; Mon, 22 Jul 2013 05:27:56 -0400 Original-Received: by mail-vc0-f177.google.com with SMTP id ia10so2439209vcb.22 for <14910@debbugs.gnu.org>; Mon, 22 Jul 2013 02:27:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=cFPMfSk5w+AgL2gIqYoPop1MUcyweYwLyqVDWfpEpiA=; b=J6OSUOxZpOnTM9mN8cMD+Kw3K/Nkv4LW48m+SpasiHT4RCpp4v0JJP9uHHRC5wNDXP kjBvNRWLCduaR/5F2Fxy047OPkBWFPd3QRsq22rPtH+/U5dUIlubJenphyWadHfu5DCt hRHnhIWlDu5qca3u2tIoy+tu7Rj1kpyRhnNSDFhCxpa2g5X89nSoVJmRLza3XJ5FCeuw 3VvuQVcv5QMIUpV6JbhCUm7w++UzoK8Xfp2fQGDklnUbgGo/boAftEFwgBBZpNfunnEC lWGUOXVy5bUudQMHzROnKWNBV30FRQke3w3Gloyblz00DMfkLpjt2kpEmPAXTsAOCHjP Jn7Q== X-Received: by 10.52.163.46 with SMTP id yf14mr7498236vdb.58.1374485270143; Mon, 22 Jul 2013 02:27:50 -0700 (PDT) Original-Received: by 10.59.1.33 with HTTP; Mon, 22 Jul 2013 02:27:50 -0700 (PDT) In-Reply-To: <871u6rht0h.fsf@bzg.ath.cx> X-Google-Sender-Auth: GMDtISTq5YcsBhzeh3GO7-G2ELU X-Mailman-Approved-At: Mon, 22 Jul 2013 11:43:40 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:76572 Archived-At: Hi Bastien, > please make sure to send your replies on the list, you'll get a > quicker answer. Thanks for reminding, I keep forgetting. > As for requiring org-id for `org-open-at-point', I'm not sure this > is the right thing to do since it will require it for all users, even > those who don't use org-id at all. I understand that you don't want to bloat the loaded code, but the current behavior isn't optimal: * I open a file with a link [[id:58cc1851-c36a-452a-82e1-0b9ecde1c472][foo]] * I click the link and get the message "No match. Create this as a new heading?" And on "y" it proceeds to create it. In the same file that I asked it to find it. Just a few lines above the actual reference. That's not very smart. If there's a link in the file, it points somewhere in 99% cases. And currently the program assumes implicitly that stupid user clicked on a dangling link and rushes to correct him before even looking in the same file if the requested sequence of 36 chars (pretty unique) is actually there. The issue is that the current solution isn't portable. I've sent last week an org file to a new org-mode user with id links. And he says that they don't work. He's not experienced in elisp, so it's hard for me to explain to him that he has to include (require 'org-id) in his ~/.emacs to make links work. In my opinion it would be best to require 'org-id implicitly so that the links work the same for all users. Imagine that I've sent him a pdf with links that don't work and then I told him that he needs to install some specific software from who knows where just to make the pdf links work. regards, Oleh