From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 27 20:12:35 2021 Received: (at submit) by debbugs.gnu.org; 28 Sep 2021 00:12:35 +0000 Received: from localhost ([127.0.0.1]:43179 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mV0ja-000586-MV for submit@debbugs.gnu.org; Mon, 27 Sep 2021 20:12:35 -0400 Received: from lists.gnu.org ([209.51.188.17]:51020) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUzvS-0003rg-P7 for submit@debbugs.gnu.org; Mon, 27 Sep 2021 19:20:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37848) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mUzvS-0002It-Jl for bug-hyperbole@gnu.org; Mon, 27 Sep 2021 19:20:46 -0400 Received: from aibo.runbox.com ([91.220.196.211]:33660) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mUzvQ-0000EA-9Y for bug-hyperbole@gnu.org; Mon, 27 Sep 2021 19:20:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=hugot.nl; s=selector1; h=Content-Transfer-Encoding:Content-Type:MIME-Version: Message-ID:Date:Subject:To:From; bh=aXozWIiTOPqIgW7fl2DfnT0Tx4mVNh5jUCipYJ38DCM=; b=OQdw3ecS5WM0tOT1iMedN4AT8D qtCivjjIUaNWJY7IIZHfn3UOtA2quKknqO97vnmb5e0Qu7BBGq+9Seu/8mLhNVUPZ5CyZ7ZEnA2ji 9jA8cBKI3iGJUFbBKqYYcgq+gPocvSSeCwzMVf15O0ECMDlKeMTKzLhuFrxrM6L4WyKdUSjyiOkvH 2nJNXhAv8kCnWyeeZofUrdA4dg9rajjI4Dt2+4NNrcj/uxePTLCcJhU3lyA8PbmWZHSpYRYhzL4U5 TA4KPBAK9NMCdlsAPdDSHImS9uLGUkDtZjgHIDp7zKkqcFnUDaNBzN8jjDuvf07YmxlP/eHCP7e+v /xrNoFjQ==; Received: from [10.9.9.73] (helo=submission02.runbox) by mailtransmit03.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1mUzvL-0001iJ-Qn for bug-hyperbole@gnu.org; Tue, 28 Sep 2021 01:20:39 +0200 Received: by submission02.runbox with esmtpsa [Authenticated ID (1060096)] (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) id 1mUzv9-0003eo-Cj for bug-hyperbole@gnu.org; Tue, 28 Sep 2021 01:20:27 +0200 From: Hugo Thunnissen To: bug-hyperbole@gnu.org Subject: Bug in kexport:html Date: Tue, 28 Sep 2021 01:20:25 +0200 Message-ID: <87czotr4g6.fsf@hugot.nl> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=91.220.196.211; envelope-from=devel@hugot.nl; helo=aibo.runbox.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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 27 Sep 2021 20:12:32 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) Hi there, I am using hyperbole version 7.1.3. On GNU Emacs 27.2 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.25) When exporting a kotl-mode file using `kexport:html' I encountered a problem with the regex that is used to replace klinks with a HTML anchor tag. The problem seemed to stem from the use of the \\0 back reference.=20 Relevant part of the backtrace: Debugger entered--Lisp error: (error "Invalid use of =E2=80=98\\=E2=80= =99 in replacement text") replace-match("\\0" nil nil "<@ 5a>" nil) I was able to fix the problem with the following code: =20=20=20=20 (eval-after-load 'kotl-mode (let ((klink-replacement (cons (format "<\\s-*@\\s-*\\(%s\\)[^=3D&>]*>" kexport:kcell-partial-reference-regexp) "\\1"))) (setf (alist-get (car klink-replacement) kexport:html-replacement-a= list nil nil 'string=3D) (cdr klink-replacement)))) =20=20=20=20 which essentially just replaces the \0 reference in the replacement text with a \1 reference. I can't find documentation of a \0 back-reference in the elisp regexp manual, as the \N references are 1-based according to it (https://www.gnu.org/software/emacs/manual/html_node/elisp/Regexp-Backslash= .html). Is there something I'm missing? If there is something I can do to help or give you more information, let me know. -Hugo From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 29 08:41:23 2021 Received: (at 50861) by debbugs.gnu.org; 29 Sep 2021 12:41:23 +0000 Received: from localhost ([127.0.0.1]:48038 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mVYtm-0000yw-PQ for submit@debbugs.gnu.org; Wed, 29 Sep 2021 08:41:23 -0400 Received: from mail-qv1-f52.google.com ([209.85.219.52]:33303) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mVYtj-0000yj-8Q for 50861@debbugs.gnu.org; Wed, 29 Sep 2021 08:41:21 -0400 Received: by mail-qv1-f52.google.com with SMTP id a9so1385392qvf.0 for <50861@debbugs.gnu.org>; Wed, 29 Sep 2021 05:41:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=8Kk6YXSQ0m4smCv/32jN01jg2uubSNqv9ThaM+MRPhU=; b=p+yk8iMmb/Hln3/Ga4sV1XHhKbRiPvFV1AUN8ZB2Itp0QTatKAD5qJYeNBu3YXXg82 9dcTdUQazM1vt9f9uD/9hfWohfqD7o5+ByRsE0nwo6ztCBkfI3LwT5/ITpZfL+ZsSqc8 mFVHEUL03Lm7SexgT9z3MkcwITzsunel28bxEvBdhVZ4uAGFgBmpjfAYUKbABF6slsLf C2HcNN8YLbteGYS5Zud6I4xhcmOz97X8+9DDyNBGspGTkElisI81TEYPJCisCE9OhgEA oeFW+Pi38wdPBTooUfLxYZ9KMxBeqqgjcOegK7bgSZ0smGDkIr7hwpMyVmft2gl7U3fb Cjog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=8Kk6YXSQ0m4smCv/32jN01jg2uubSNqv9ThaM+MRPhU=; b=7KWNUhgu96zrZEcgvOn2PO6NCIeMnCPiBRgIU1k36txlq3Nog12GQlUDEzpe6bq+h+ f6CYL7BqWr5xAiA0ssmDF8WZS5ODTtuuORn5WjprNGG/+giPF/Q0YQuY7ol/Yg5Oehvd cbii+Dtkl52h0n8OcuD9zLcx0lz53VTJ68TqxJPLbxHZzJ+aTB9iI/rBiewcgaoYXjAA 0Sf7i1SK7RKFwYt0udew6dbMj4j8j/Ci+9X96NYTpsXaidJzi0b78WeYEttkrtBt0tzR ECNJu8/Aw0hDDinFtp/NlgBtZIQpUKCURdrpVpyUYIroEj7D/rpa83NrCMxQ8FH2JJ5Z evOw== X-Gm-Message-State: AOAM531qfmG+s4gaOIThiWl8qJbLjo5HLMT7RlIZyaeyqAJL69GQabKp 5RsZDm/VvECsRA+cbMfufTVfVfuygaM= X-Google-Smtp-Source: ABdhPJy/mpn3xMMwgIspcRmBNfUkgdqDRRrlf11f0NXST6boW00HjgsaLen1wd5wBxn6HYwpp+BzPg== X-Received: by 2002:a05:6214:7a8:: with SMTP id v8mr1611069qvz.17.1632919273635; Wed, 29 Sep 2021 05:41:13 -0700 (PDT) Received: from smtpclient.apple (ool-2f148454.dyn.optonline.net. [47.20.132.84]) by smtp.gmail.com with ESMTPSA id s20sm593720qkj.116.2021.09.29.05.41.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 29 Sep 2021 05:41:13 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Robert Weiner Mime-Version: 1.0 (1.0) Subject: Re: bug#50861: Bug in kexport:html Date: Wed, 29 Sep 2021 08:41:12 -0400 Message-Id: <705E0C2B-91B9-4DA8-A1C3-DC9334D9FB68@gmail.com> References: <87czotr4g6.fsf@hugot.nl> In-Reply-To: <87czotr4g6.fsf@hugot.nl> To: Hugo Thunnissen X-Mailer: iPhone Mail (18H17) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 50861 Cc: 50861@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Yes, this has been fixed in the pre-releases available from the Hyperbole gi= t repo, master branch. Please close the issue when you have a chance. =E2=80= =94 Bob -- Bob > On Sep 27, 2021, at 9:11 PM, Hugo Thunnissen wrote: >=20 > =EF=BB=BF > Hi there, >=20 > I am using hyperbole version 7.1.3. > On GNU Emacs 27.2 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.25) >=20 > When exporting a kotl-mode file using `kexport:html' I encountered a > problem with the regex that is used to replace klinks with a HTML anchor > tag. The problem seemed to stem from the use of the \\0 back > reference.=20 >=20 > Relevant part of the backtrace: >=20 > Debugger entered--Lisp error: (error "Invalid use of =E2=80=98\\=E2=80=99= in replacement text") > replace-match("\\0" nil nil "<@ 5a>" nil)= >=20 >=20 > I was able to fix the problem with the following code: >=20 > (eval-after-load 'kotl-mode > (let ((klink-replacement > (cons (format "<\\s-*@\\s-*\\(%s\\)[^=3D&>]*>" > kexport:kcell-partial-reference-regexp) > "\\1"))) > (setf (alist-get (car klink-replacement) kexport:html-replacement-a= list nil nil 'string=3D) > (cdr klink-replacement)))) >=20 > which essentially just replaces the \0 reference in the replacement > text with a \1 reference. I can't find documentation of a \0 > back-reference in the elisp regexp manual, as the \N references are > 1-based according to it > (https://www.gnu.org/software/emacs/manual/html_node/elisp/Regexp-Backslas= h.html). Is > there something I'm missing? >=20 > If there is something I can do to help or give you more information, let > me know. >=20 > -Hugo >=20 >=20 >=20 > _______________________________________________ > Bug-hyperbole mailing list > Bug-hyperbole@gnu.org > https://lists.gnu.org/mailman/listinfo/bug-hyperbole From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 29 15:10:40 2021 Received: (at 50861-done) by debbugs.gnu.org; 29 Sep 2021 19:10:40 +0000 Received: from localhost ([127.0.0.1]:50267 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mVeyW-0001vN-Ed for submit@debbugs.gnu.org; Wed, 29 Sep 2021 15:10:40 -0400 Received: from aibo.runbox.com ([91.220.196.211]:60908) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mVeyS-0001vC-KR for 50861-done@debbugs.gnu.org; Wed, 29 Sep 2021 15:10:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=hugot.nl; s=selector1; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:To:From; bh=TahMtyl+fq6HXPdF3wc9bysohdMSXqPcSqBB07bz/gE=; b=PK8nTPCVzt7Tbs8OUxDjCTmE2q9+cb3aXgYrukhQvL0KZZXGfyAmREtSfKVfGED2h7IehRGxDw JvksqzB4yqRDDi7Y6vZEpoVV+SRBZUWEImwZEXEs4FmXfi+CBX3OZlhc4uU93thfJmrjIj60lVxuV SRwcMLsKZvrp3HxDVEraq3qzrmikbXJnXcLYarLvFv7WIy861bHebEzSqhRkklroJDD08bQh/W7xT BHAzTYwFJXu4g++gmH+CFv1xpM8Fl8gppY6hZ0N7OHC3r8BfZS+bkWXX3mas4wenUUbCqoI8t9KqY CJiwVktuVNKnXUnYusj0y1kjurbPjQzpQKk/g==; Received: from [10.9.9.74] (helo=submission03.runbox) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1mVeyQ-0006sb-Gj for 50861-done@debbugs.gnu.org; Wed, 29 Sep 2021 21:10:35 +0200 Received: by submission03.runbox with esmtpsa [Authenticated ID (1060096)] (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) id 1mVey8-0003WZ-QE for 50861-done@debbugs.gnu.org; Wed, 29 Sep 2021 21:10:16 +0200 From: Hugo Thunnissen To: 50861-done@debbugs.gnu.org Subject: Re: bug#50861: Bug in kexport:html References: <87czotr4g6.fsf@hugot.nl> <705E0C2B-91B9-4DA8-A1C3-DC9334D9FB68@gmail.com> Date: Wed, 29 Sep 2021 21:10:15 +0200 In-Reply-To: <705E0C2B-91B9-4DA8-A1C3-DC9334D9FB68@gmail.com> (Robert Weiner's message of "Wed, 29 Sep 2021 08:41:12 -0400") Message-ID: <877dez6vvs.fsf@hugot.nl> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 50861-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Closed. From unknown Fri Aug 15 04:07:28 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 28 Oct 2021 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator