From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id qOHWOv9RoV4sLQAA0tVLHw (envelope-from ) for ; Thu, 23 Apr 2020 08:29:51 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id +BI3NgVSoV7sIQAAB5/wlQ (envelope-from ) for ; Thu, 23 Apr 2020 08:29:57 +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 549379426AF for ; Thu, 23 Apr 2020 08:29:57 +0000 (UTC) Received: from localhost ([::1]:38874 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jRXF6-0004Rt-Pt for larch@yhetil.org; Thu, 23 Apr 2020 04:29:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57916) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jRXEY-0004Re-0x for emacs-orgmode@gnu.org; Thu, 23 Apr 2020 04:29:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jRXEX-0005FZ-31 for emacs-orgmode@gnu.org; Thu, 23 Apr 2020 04:29:21 -0400 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:47677) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jRXEW-0005FC-Dt for emacs-orgmode@gnu.org; Thu, 23 Apr 2020 04:29:20 -0400 X-Originating-IP: 185.131.40.67 Received: from localhost (40-67.ipv4.commingeshautdebit.fr [185.131.40.67]) (Authenticated sender: admin@nicolasgoaziou.fr) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 588F720004; Thu, 23 Apr 2020 08:29:16 +0000 (UTC) From: Nicolas Goaziou To: =?utf-8?Q?Adriane_W=C3=BCrfl?= Subject: Re: Bug: Linking to plain text [9.3.6 (release_9.3.6-471-g9e385d @ c:/Users/awu/.emacs.d/straight/build/org-plus-contrib/)] References: Mail-Followup-To: =?utf-8?Q?Adriane_W=C3=BCrfl?= , emacs-orgmode@gnu.org Date: Thu, 23 Apr 2020 10:29:15 +0200 In-Reply-To: ("Adriane =?utf-8?Q?W=C3=BCrfl=22's?= message of "Thu, 23 Apr 2020 09:26:20 +0200") Message-ID: <87sgguk3l0.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=217.70.183.200; envelope-from=mail@nicolasgoaziou.fr; helo=relay7-d.mail.gandi.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/04/23 04:29:17 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Received-From: 217.70.183.200 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: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 X-Spam-Score: -1.11 Authentication-Results: aspmx1.migadu.com; dkim=none; 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-Scan-Result: default: False [-1.11 / 13.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; GENERIC_REPUTATION(0.00)[-0.5638630350388]; HAS_XOIP(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.51.188.0/24:c]; IP_REPUTATION_HAM(0.00)[asn: 22989(0.22), country: US(-0.00), ip: 209.51.188.17(-0.56)]; MX_GOOD(-0.50)[cached: eggs.gnu.org]; RCPT_COUNT_TWO(0.00)[2]; MAILLIST(-0.20)[mailman]; FREEMAIL_TO(0.00)[gmx.at]; RCVD_IN_DNSWL_LOW(-0.10)[209.51.188.17:from]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:22989, ipnet:209.51.188.0/24, country:US]; MID_RHS_MATCH_FROM(0.00)[]; TAGGED_FROM(0.00)[larch=yhetil.org]; ARC_NA(0.00)[]; RCVD_COUNT_FIVE(0.00)[6]; FROM_NEQ_ENVFROM(0.00)[mail@nicolasgoaziou.fr,emacs-orgmode-bounces@gnu.org]; FROM_HAS_DN(0.00)[]; URIBL_BLOCKED(0.00)[gmx.at:email]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; DMARC_NA(0.00)[nicolasgoaziou.fr]; HAS_LIST_UNSUB(-0.01)[]; FORGED_SENDER_MAILLIST(0.00)[] X-TUID: Ni6P/XFe4hU4 Hello, "Adriane W=C3=BCrfl" writes: > Detailed description: > I link with M-l to store the link and with C-l to insert it (see below fo= r implementation). > Normally I press M-l at the top of the .org file and it stores the follow= ing link: file:~/Documents/.../filename.org > If the first line is a empty line it works just like mentioned above and = how it's supposed to. > But now if the first line in the file is plain text (eg jsdlj) it links t= o file:~/Documents/.../filename.org::jsdlj; a behavior not wanted. > I thought this is only possible with headings (* Heading); (that's why I = avoid using them in the first line of an .org file). > Is this a bug or a newly added feature? Neither :) I partly rewrote this part of links recently, but I didn't add any feature. However, I probably uncovered some previous bugs.=20 In this case, it seems to be the correct behaviour: see variable `org-link-context-for-files' for an explanation and a solution. WDYT? --=20 Nicolas Goaziou