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 uN+OGnTRxV8ABQAA0tVLHw (envelope-from ) for ; Tue, 01 Dec 2020 05:15:32 +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 iPI8FnTRxV9/FQAAbx9fmQ (envelope-from ) for ; Tue, 01 Dec 2020 05:15:32 +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 D84389403A8 for ; Tue, 1 Dec 2020 05:15:31 +0000 (UTC) Received: from localhost ([::1]:47736 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kjy0g-0000wP-4u for larch@yhetil.org; Tue, 01 Dec 2020 00:15:30 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:34696) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjy07-0000wI-HH for emacs-orgmode@gnu.org; Tue, 01 Dec 2020 00:14:55 -0500 Received: from out1.migadu.com ([2001:41d0:2:863f::]:60106) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjy05-0001b9-4v for emacs-orgmode@gnu.org; Tue, 01 Dec 2020 00:14:55 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kyleam.com; s=key1; t=1606799728; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=D3VFGpnuLRGUrtucP0hFiecxC+dN4H/UAPjTT8AEd7Q=; b=jx4pwk1iZnGsYqB+aDNQ2SyuY+HgYMmaUDrSfeBge5AlQBJ0qIN6kbGZOpXYsgRMUUTaaW s6vawqDFcPAsiLJuRs9kQrs6JjFwz4IFfl6dyNdW13XJbdQYUoXvfMrtIiY04zQGX1gIVM KEZGdI0vFClta0BW80VC6AZyRVJLhsAoY6h8XWGyNDPBqqLpy6emdw6x8B6bEP1s1L59+I uv/dIbZstPKbmT1vIr0hViWecQK4XUAmKOjCaRXhReu0Me17a4j3z5EtXGg1ZNPDYuRCRq 2Dq+iWla0go2e5WQeEbeWLAX+DJHwYVclIq/IuF6t7E/yheCh8MzI/JobX85PQ== From: Kyle Meyer To: Dima Kogan 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/)] In-Reply-To: <875z5xf7f7.fsf@secretsauce.net> References: <875z5xf7f7.fsf@secretsauce.net> Date: Tue, 01 Dec 2020 00:14:42 -0500 Message-ID: <87mtyyt8e5.fsf@kyleam.com> MIME-Version: 1.0 Content-Type: text/plain X-Migadu-Auth-User: kyle@kyleam.com Received-SPF: pass client-ip=2001:41d0:2:863f::; envelope-from=kyle@kyleam.com; helo=out1.migadu.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_NONE=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: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -0.99 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=kyleam.com header.s=key1 header.b=jx4pwk1i; 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-Migadu-Queue-Id: D84389403A8 X-Spam-Score: -0.99 X-Migadu-Scanner: ns3122888.ip-94-23-21.eu X-TUID: PMaSXWe3ZFiL Dima Kogan writes: > 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) [...] > Apparently org doesn't like the empty line right after the #+NAME tag. > Removing that empty line makes it work. Thanks for the report. As suggested in Dante's reply, the blank line following #+name is invalid syntax. https://orgmode.org/worg/dev/org-syntax.html#Affiliated_keywords On maint (3bb073b63), the type error is now avoided for invalid name keywords. No attempt is made to match these keywords, though, so your example won't lead to a match aside from through a fuzzy text search when org-link-search-must-match-exact-headline is nil.