From 23deda16fceaf3e29c3da574c4920a5a16c5b075 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Acc=C3=A1cio=20Nogueira?= Date: Tue, 26 Oct 2021 12:37:57 +0200 Subject: [PATCH] =?UTF-8?q?use=20structure-field=20to=20get=20page=20numbe?= =?UTF-8?q?r=20using=20car=20gives=20=C2=ABWrong=20type=20argument:=20list?= =?UTF-8?q?p,=20#s(org-noter-pdftools--location=C2=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- org-noter.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org-noter.el b/org-noter.el index 129d61c..617f5c9 100644 --- a/org-noter.el +++ b/org-noter.el @@ -1846,7 +1846,7 @@ defines if the text should be inserted inside the note." (let ((reference-element-cons (org-noter--view-info-reference-for-insertion view-info)) level) (when (zerop (length title)) - (setq title (replace-regexp-in-string (regexp-quote "$p$") (number-to-string (car location)) + (setq title (replace-regexp-in-string (regexp-quote "$p$") (number-to-string (org-noter-pdftools--location-page location)) org-noter-default-heading-title))) (if reference-element-cons