From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Problem opening links that span more than one line Date: Tue, 08 Mar 2011 13:53:17 -0500 Message-ID: <878vwpfnqa.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=60053 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Px226-0004Aq-1b for emacs-orgmode@gnu.org; Tue, 08 Mar 2011 13:53:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Px224-0005P9-Sg for emacs-orgmode@gnu.org; Tue, 08 Mar 2011 13:53:21 -0500 Received: from out5.smtp.messagingengine.com ([66.111.4.29]:48219) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Px224-0005Oj-QC for emacs-orgmode@gnu.org; Tue, 08 Mar 2011 13:53:20 -0500 Received: from compute3.internal (compute3.nyi.mail.srv.osa [10.202.2.43]) by gateway1.messagingengine.com (Postfix) with ESMTP id 0493320B19 for ; Tue, 8 Mar 2011 13:53:19 -0500 (EST) Received: from archdesk (67-197-63-212.rh2.dyn.cm.comporium.net [67.197.63.212]) by mail.messagingengine.com (Postfix) with ESMTPSA id B6D3844054E for ; Tue, 8 Mar 2011 13:53:18 -0500 (EST) 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: Org Mode I find that I cannot open or edit bracket links that span more than one line. For example, org-capture often generates link with a long description. If the link is part of a filled paragraph, the link will often span 5 to 10 lines. Even though it properly fontifies and exports such links, org-insert-link and org-open-at-point cannot handle them. The problematic lines are in org.el: In org-insert-link: 8808: ((org-in-regexp org-bracket-link-regexp 1) In org-open-at-point: 9215: (when (org-in-regexp org-bracket-link-regexp 1) Would it be possible to set a saner default value than 1 here? As it stands org-mode only looks for the link across a total of 3 lines. A parameter of 5, for instance, would allow links to span 10 lines. Best, Matt