From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id EEIgLpOFwF9LIwAA0tVLHw (envelope-from ) for ; Fri, 27 Nov 2020 04:50:27 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id UDzWKZOFwF9daQAAbx9fmQ (envelope-from ) for ; Fri, 27 Nov 2020 04:50:27 +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 0CA629404E7 for ; Fri, 27 Nov 2020 04:50:26 +0000 (UTC) Received: from localhost ([::1]:53758 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kiViB-0006oR-PX for larch@yhetil.org; Thu, 26 Nov 2020 23:50:23 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:48080) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kiVhZ-0006oL-BA for emacs-orgmode@gnu.org; Thu, 26 Nov 2020 23:49:45 -0500 Received: from wnew2-smtp.messagingengine.com ([64.147.123.27]:38289) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kiVhX-00045R-9D for emacs-orgmode@gnu.org; Thu, 26 Nov 2020 23:49:45 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailnew.west.internal (Postfix) with ESMTP id 9F4123F0 for ; Thu, 26 Nov 2020 23:49:41 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Thu, 26 Nov 2020 23:49:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lambda.cx; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=R L/wQ/+GSt/zpF3wuAkQgbxPMyDyLoTIUlPbuBw3o+A=; b=eKmK/3UXSsz/BBS/A ++Bx9A8t5FjwZtFAextzlSxyoccPE7a0RnDnnRMKMM0CDR8W4bvaKv7Q+6/h51mj LHVRVJnE/E+9Ez7V1C/fzIXYLnR/LNQpL76v0fddfQ8rVM++ivAerJMUATOYyBjf 7cgPr4gy9SJ8nkYCs3wX2poAtkbqw7lOMSeFVW/tm1QfbSH+8ZMfh2PILvdjLOj9 mpWSD3OfzlH8p/ilG2C+enJiy/AXFhBvTuySYS8h92DZp6GQt4v8Mv8tT87xTr2J q63XNtvmgd/I69rRHak2+yN26Slr8UGbUsN3sVQ5zTsHWtjezo9I6eF9/aRqNeIL Zg2GA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=RL/wQ/+GSt/zpF3wuAkQgbxPMyDyLoTIUlPbuBw3o +A=; b=oQjtt0L3SmYtnXmcO8ML5jpWxl8b6n7tuT0IuknZ0/N0SitwOjxHrD2n3 ZQmWzB4PYc5AlVX0Nnt1gq/WPYYjxVBBBnZNuIdAS02AZOnn8MP59GiR+z4zqBWb F77++fVVTISMi4jEw1LqjqFDimqPHqweQkUdneD5SnqJCgWuPjuk3egGVEmGJX1c teqZfFZGnsORzF71VSb7Rn0bA40hkqHdZAEXqCclq5osaZn/w9CV2N5PQAihnhKY 815UzwrinhLJz0DxbXmJ+qs1lSR0Zz5pMy7erMtffs7un6llg0jCGGwPNjEJtKLX m8t/+uJ0NyDCSO1+v8alxYaVLCNmA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrudehfedgjeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtje ertddtfeejnecuhfhrohhmpeffrghnthgvucevrghtrghlfhgrmhhouceouggrnhhtvges lhgrmhgsuggrrdgtgieqnecuggftrfgrthhtvghrnhepvdetteeggfeileekhedvteejhe evgfduledtkeeujeduiedufeevheejgedvheeunecuffhomhgrihhnpehtshhtrdhorhhg pdhsvggtrhgvthhsrghutggvrdhnvghtnecukfhppedujeegrdduudegrddvudefrdehud enucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegurghn thgvsehlrghmsggurgdrtgig X-ME-Proxy: Received: from [192.168.0.105] (cpe688f2e087823-cm688f2e087820.cpe.net.cable.rogers.com [174.114.213.51]) by mail.messagingengine.com (Postfix) with ESMTPA id A7305328005A for ; Thu, 26 Nov 2020 23:49:40 -0500 (EST) Subject: Re: Bug: Following a link to a #+NAME causes '(wrong-type-argument stringp nil)' [9.3 (release_9.3 @ /usr/share/emacs/28.0.50/lisp/org/)] To: emacs-orgmode@gnu.org References: <875z5xf7f7.fsf@secretsauce.net> From: Dante Catalfamo Message-ID: <041b8c3f-7966-5d5b-6ac3-4b5792e8c800@lambda.cx> Date: Thu, 26 Nov 2020 23:49:40 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: <875z5xf7f7.fsf@secretsauce.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-CA Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=64.147.123.27; envelope-from=dante@lambda.cx; helo=wnew2-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no 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-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.46 X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=lambda.cx header.s=fm1 header.b=eKmK/3UX; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=oQjtt0L3; 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-TUID: UZDCvPmvm1n8 Isn't the #+NAME tag used to label things below it? I think that would explain why it doesn't work when there's nothing directly below it. If you want to link to the heading, perhaps you should try something like [[* heading][link]]? On 11/22/20 3:44 PM, Dima Kogan wrote: > Hi. I'm using the org included with a recent build from emacs git. I > have this tst.org: > > > > > [[name][link]] > > * heading > #+NAME: name > > text > > > > > I open it with 'emacs -Q'. I move the point to the link at the top, and > C-c C-o to follow the link. This doesn't work: > > Debugger entered--Lisp error: (wrong-type-argument stringp nil) > string-match("[ \f\11\n\15\13]+" nil 0) > split-string(nil) > org-link-search("name" 3) > org-link-open((link (:type "fuzzy" :path "name" :format bracket :raw-link "name" :application nil :search-option nil :begin 1 :end 15 :contents-begin 9 :contents-end 13 :post-blank 0 :parent (paragraph (:begin 1 :end 17 :contents-begin 1 :contents-end 16 :post-blank 1 :post-affiliated 1 :parent nil)))) nil) > org-open-at-point(nil) > funcall-interactively(org-open-at-point nil) > > Apparently org doesn't like the empty line right after the #+NAME tag. > Removing that empty line makes it work. > > Thanks! > > > Emacs : GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.23, cairo version 1.16.0) > of 2020-09-29, unofficial emacs-snapshot build: http://emacs.secretsauce.net > Package: Org mode version 9.3 (release_9.3 @ /usr/share/emacs/28.0.50/lisp/org/) >