GNU bug report logs - #44488
Koutline: export to HTML, replace-regexp-in-string: Invalid use of ‘\’ in replacement text

Previous Next

Package: hyperbole;

Reported by: Jean Louis <bugs <at> gnu.support>

Date: Fri, 6 Nov 2020 18:54:02 UTC

Severity: normal

Done: Mats Lidell <matsl <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 44488 in the body.
You can then email your comments to 44488 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-hyperbole <at> gnu.org:
bug#44488; Package hyperbole. (Fri, 06 Nov 2020 18:54:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jean Louis <bugs <at> gnu.support>:
New bug report received and forwarded. Copy sent to bug-hyperbole <at> gnu.org. (Fri, 06 Nov 2020 18:54:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jean Louis <bugs <at> gnu.support>
To: bug-hyperbole <at> gnu.org
Subject: Koutline: export to HTML, replace-regexp-in-string: Invalid use of
 ‘\’ in replacement text
Date: Fri, 06 Nov 2020 19:26:39 +0300
Before I could export, now I cannot with emacs -Q:

After asking me for the Koutline file, and export file name and title,
after pressing RET I get:

replace-regexp-in-string: Invalid use of ‘\’ in replacement text

Debugger entered--Lisp error: (error "Invalid use of ‘\\’ in replacement text")
  replace-match("<I>\\0</I>" nil nil "{C-c C-l ?}" nil)
  replace-regexp-in-string("{[^}]+}" "<I>\\0</I>" "Autonumbering: Full auto-numbering in Augment (1a2..." nil nil)
  hypb:replace-match-string("{[^}]+}" "Autonumbering: Full auto-numbering in Augment (1a2..." "<I>\\0</I>")
  #f(compiled-function (elt) #<bytecode 0x3d3b66784765229>)(("{[^}]+}" . "<I>\\0</I>"))
  mapc(#f(compiled-function (elt) #<bytecode 0x3d3b66784765229>) (("<" . "&lt;") (">" . "&gt;") ("{[^}]+}" . "<I>\\0</I>") ("<?\\(URL[:=]\\)?\\(\\([a-zA-Z][a-zA-Z]+\\)://?/?\\([^/:@..." . kexport:html-url) ("<?\\(URL:\\|[^/@]\\|\\`\\|\"\\)\\(\\(\\)\\(\\)\\(\\(www\\|ftp\\|te..." . kexport:html-url) ("\\([_a-zA-Z][-_a-zA-Z0-9.!@+%]*@[-_a-zA-Z0-9.!@+%]+..." . "<A HREF=\"mailto:\\1\"><I>\\1</I></A>\\2") ("&lt;\\s-*@\\s-*[0-9a-zA-Z][.0-9a-zA-Z]*=\\([.0-9a-zA-..." . "<A HREF=\"#k\\1\">\\0</A>") ("&lt;\\s-*@\\s-*\\(\\([0-9a-zA-Z][.0-9a-zA-Z]*\\)\\)[^=&>..." . "<A HREF=\"#k\\1\">\\0</A>") ("&lt;\\s-*\\([^ \11\n\15,<>]+\\)\\s-*,\\s-*[0-9a-zA-Z][.0-9a-..." . kexport:html-file-klink) ("&lt;\\s-*\\([^ \11\n\15,<>]+\\)\\s-*,\\s-*\\([0-9a-zA-Z][.0-9..." . kexport:html-file-klink)))
  kexport:html-markup("Autonumbering: Full auto-numbering in Augment (1a2...")
  #f(compiled-function (kview) #<bytecode -0x14b610fa7eb92e2d>)((kview plist (label-parent klabel:parent-alpha label-increment klabel:increment-alpha label-child klabel:child-alpha label-function klabel-type:alpha-label view-buffer #<buffer EXAMPLE.kotl> top-cell (knode contents nil plist (idstamp 0 creator "admin <at> protected.rcdrun.com" create-time "20201106:16:25:29" id-counter 77 file "/home/data1/protected/EXAMPLE.kotl")) label-type alpha label-min-width 3 label-separator ". " label-separator-length 2 level-indent 3 blank-lines t levels-to-show 0 lines-to-show 0)))
  kview:map-tree(#f(compiled-function (kview) #<bytecode -0x14b610fa7eb92e2d>) (kview plist (label-parent klabel:parent-alpha label-increment klabel:increment-alpha label-child klabel:child-alpha label-function klabel-type:alpha-label view-buffer #<buffer EXAMPLE.kotl> top-cell (knode contents nil plist (idstamp 0 creator "admin <at> protected.rcdrun.com" create-time "20201106:16:25:29" id-counter 77 file "/home/data1/protected/EXAMPLE.kotl")) label-type alpha label-min-width 3 label-separator ". " label-separator-length 2 level-indent 3 blank-lines t levels-to-show 0 lines-to-show 0)) t t)
  kexport:html("~/EXAMPLE.kotl" "~/new.html" nil)
  funcall-interactively(kexport:html "~/EXAMPLE.kotl" "~/new.html" nil)
  call-interactively(kexport:html nil nil)
  command-execute(kexport:html)


I use:  Editor:      GNU Emacs 28.0.50 (build 26, x86_64-pc-linux-gnu, X toolkit, cairo version 1.14.8, Xaw3d scroll bars)

        Hyperbole:   7.1.3
        Sys Type:    x86_64-pc-linux-gnu
        OS Type:     gnu/linux
        Window Sys:  x
        News Reader: Gnus v5.13

-- 
Thanks,
Jean Louis
⎔ λ 🄯 𝍄 𝌡 𝌚




Information forwarded to bug-hyperbole <at> gnu.org:
bug#44488; Package hyperbole. (Sat, 07 Nov 2020 01:30:02 GMT) Full text and rfc822 format available.

Message #8 received at 44488 <at> debbugs.gnu.org (full text, mbox):

From: Robert Weiner <rswgnu <at> gmail.com>
To: Jean Louis <bugs <at> gnu.support>
Cc: 44488 <at> debbugs.gnu.org
Subject: Re: bug#44488: Koutline: export to HTML, replace-regexp-in-string: Invalid use of ‘\’ in replacement text
Date: Fri, 6 Nov 2020 20:28:57 -0500
Thanks for reporting.  — Bob

> On Nov 6, 2020, at 1:55 PM, Jean Louis <bugs <at> gnu.support> wrote:
> 
> Before I could export, now I cannot with emacs -Q:
> 
> After asking me for the Koutline file, and export file name and title,
> after pressing RET I get:
> 
> replace-regexp-in-string: Invalid use of ‘\’ in replacement text
> 
> Debugger entered--Lisp error: (error "Invalid use of ‘\\’ in replacement text")
>  replace-match("<I>\\0</I>" nil nil "{C-c C-l ?}" nil)
>  replace-regexp-in-string("{[^}]+}" "<I>\\0</I>" "Autonumbering: Full auto-numbering in Augment (1a2..." nil nil)
>  hypb:replace-match-string("{[^}]+}" "Autonumbering: Full auto-numbering in Augment (1a2..." "<I>\\0</I>")
>  #f(compiled-function (elt) #<bytecode 0x3d3b66784765229>)(("{[^}]+}" . "<I>\\0</I>"))
>  mapc(#f(compiled-function (elt) #<bytecode 0x3d3b66784765229>) (("<" . "&lt;") (">" . "&gt;") ("{[^}]+}" . "<I>\\0</I>") ("<?\\(URL[:=]\\)?\\(\\([a-zA-Z][a-zA-Z]+\\)://?/?\\([^/:@..." . kexport:html-url) ("<?\\(URL:\\|[^/@]\\|\\`\\|\"\\)\\(\\(\\)\\(\\)\\(\\(www\\|ftp\\|te..." . kexport:html-url) ("\\([_a-zA-Z][-_a-zA-Z0-9.!@+%]*@[-_a-zA-Z0-9.!@+%]+..." . "<A HREF=\"mailto:\\1\"><I>\\1</I></A>\\2") ("&lt;\\s-*@\\s-*[0-9a-zA-Z][.0-9a-zA-Z]*=\\([.0-9a-zA-..." . "<A HREF=\"#k\\1\">\\0</A>") ("&lt;\\s-*@\\s-*\\(\\([0-9a-zA-Z][.0-9a-zA-Z]*\\)\\)[^=&>..." . "<A HREF=\"#k\\1\">\\0</A>") ("&lt;\\s-*\\([^ \11\n\15,<>]+\\)\\s-*,\\s-*[0-9a-zA-Z][.0-9a-..." . kexport:html-file-klink) ("&lt;\\s-*\\([^ \11\n\15,<>]+\\)\\s-*,\\s-*\\([0-9a-zA-Z][.0-9..." . kexport:html-file-klink)))
>  kexport:html-markup("Autonumbering: Full auto-numbering in Augment (1a2...")
>  #f(compiled-function (kview) #<bytecode -0x14b610fa7eb92e2d>)((kview plist (label-parent klabel:parent-alpha label-increment klabel:increment-alpha label-child klabel:child-alpha label-function klabel-type:alpha-label view-buffer #<buffer EXAMPLE.kotl> top-cell (knode contents nil plist (idstamp 0 creator "admin <at> protected.rcdrun.com" create-time "20201106:16:25:29" id-counter 77 file "/home/data1/protected/EXAMPLE.kotl")) label-type alpha label-min-width 3 label-separator ". " label-separator-length 2 level-indent 3 blank-lines t levels-to-show 0 lines-to-show 0)))
>  kview:map-tree(#f(compiled-function (kview) #<bytecode -0x14b610fa7eb92e2d>) (kview plist (label-parent klabel:parent-alpha label-increment klabel:increment-alpha label-child klabel:child-alpha label-function klabel-type:alpha-label view-buffer #<buffer EXAMPLE.kotl> top-cell (knode contents nil plist (idstamp 0 creator "admin <at> protected.rcdrun.com" create-time "20201106:16:25:29" id-counter 77 file "/home/data1/protected/EXAMPLE.kotl")) label-type alpha label-min-width 3 label-separator ". " label-separator-length 2 level-indent 3 blank-lines t levels-to-show 0 lines-to-show 0)) t t)
>  kexport:html("~/EXAMPLE.kotl" "~/new.html" nil)
>  funcall-interactively(kexport:html "~/EXAMPLE.kotl" "~/new.html" nil)
>  call-interactively(kexport:html nil nil)
>  command-execute(kexport:html)
> 
> 
> I use:  Editor:      GNU Emacs 28.0.50 (build 26, x86_64-pc-linux-gnu, X toolkit, cairo version 1.14.8, Xaw3d scroll bars)
> 
>        Hyperbole:   7.1.3
>        Sys Type:    x86_64-pc-linux-gnu
>        OS Type:     gnu/linux
>        Window Sys:  x
>        News Reader: Gnus v5.13
> 
> -- 
> Thanks,
> Jean Louis
> ⎔ λ 🄯 𝍄 𝌡 𝌚
> 
> 
> 
> _______________________________________________
> Bug-hyperbole mailing list
> Bug-hyperbole <at> gnu.org
> https://lists.gnu.org/mailman/listinfo/bug-hyperbole




Information forwarded to bug-hyperbole <at> gnu.org:
bug#44488; Package hyperbole. (Sun, 08 Nov 2020 15:52:02 GMT) Full text and rfc822 format available.

Message #11 received at 44488 <at> debbugs.gnu.org (full text, mbox):

From: Robert Weiner <rsw <at> gnu.org>
To: Jean Louis <bugs <at> gnu.support>
Cc: 44488 <at> debbugs.gnu.org
Subject: Re: bug#44488: Koutline: export to HTML, replace-regexp-in-string: Invalid use of ‘\’ in replacement text
Date: Sun, 8 Nov 2020 10:50:41 -0500
[Message part 1 (text/plain, inline)]
This has been fixed in the source version of Hyperbole (via commit
c0e48fb3d).

Bob


On Fri, Nov 6, 2020 at 1:55 PM Jean Louis <bugs <at> gnu.support> wrote:

> Before I could export, now I cannot with emacs -Q:
>
> After asking me for the Koutline file, and export file name and title,
> after pressing RET I get:
>
> replace-regexp-in-string: Invalid use of ‘\’ in replacement text
>
> Debugger entered--Lisp error: (error "Invalid use of ‘\\’ in replacement
> text")
>   replace-match("<I>\\0</I>" nil nil "{C-c C-l ?}" nil)
>   replace-regexp-in-string("{[^}]+}" "<I>\\0</I>" "Autonumbering: Full
> auto-numbering in Augment (1a2..." nil nil)
>   hypb:replace-match-string("{[^}]+}" "Autonumbering: Full auto-numbering
> in Augment (1a2..." "<I>\\0</I>")
>   #f(compiled-function (elt) #<bytecode 0x3d3b66784765229>)(("{[^}]+}" .
> "<I>\\0</I>"))
>   mapc(#f(compiled-function (elt) #<bytecode 0x3d3b66784765229>) (("<" .
> "&lt;") (">" . "&gt;") ("{[^}]+}" . "<I>\\0</I>")
> ("<?\\(URL[:=]\\)?\\(\\([a-zA-Z][a-zA-Z]+\\)://?/?\\([^/:@..." .
> kexport:html-url)
> ("<?\\(URL:\\|[^/@]\\|\\`\\|\"\\)\\(\\(\\)\\(\\)\\(\\(www\\|ftp\\|te..." .
> kexport:html-url) ("\\([_a-zA-Z][-_a-zA-Z0-9.!@+%]*@[-_a-zA-Z0-9.!@+%]+..."
> . "<A HREF=\"mailto:\\1\"><I>\\1</I></A>\\2")
> ("&lt;\\s-*@\\s-*[0-9a-zA-Z][.0-9a-zA-Z]*=\\([.0-9a-zA-..." . "<A
> HREF=\"#k\\1\">\\0</A>")
> ("&lt;\\s-*@\\s-*\\(\\([0-9a-zA-Z][.0-9a-zA-Z]*\\)\\)[^=&>..." . "<A
> HREF=\"#k\\1\">\\0</A>") ("&lt;\\s-*\\([^
> \11\n\15,<>]+\\)\\s-*,\\s-*[0-9a-zA-Z][.0-9a-..." .
> kexport:html-file-klink) ("&lt;\\s-*\\([^
> \11\n\15,<>]+\\)\\s-*,\\s-*\\([0-9a-zA-Z][.0-9..." .
> kexport:html-file-klink)))
>   kexport:html-markup("Autonumbering: Full auto-numbering in Augment
> (1a2...")
>   #f(compiled-function (kview) #<bytecode -0x14b610fa7eb92e2d>)((kview
> plist (label-parent klabel:parent-alpha label-increment
> klabel:increment-alpha label-child klabel:child-alpha label-function
> klabel-type:alpha-label view-buffer #<buffer EXAMPLE.kotl> top-cell (knode
> contents nil plist (idstamp 0 creator "admin <at> protected.rcdrun.com"
> create-time "20201106:16:25:29" id-counter 77 file
> "/home/data1/protected/EXAMPLE.kotl")) label-type alpha label-min-width 3
> label-separator ". " label-separator-length 2 level-indent 3 blank-lines t
> levels-to-show 0 lines-to-show 0)))
>   kview:map-tree(#f(compiled-function (kview) #<bytecode
> -0x14b610fa7eb92e2d>) (kview plist (label-parent klabel:parent-alpha
> label-increment klabel:increment-alpha label-child klabel:child-alpha
> label-function klabel-type:alpha-label view-buffer #<buffer EXAMPLE.kotl>
> top-cell (knode contents nil plist (idstamp 0 creator "
> admin <at> protected.rcdrun.com" create-time "20201106:16:25:29" id-counter 77
> file "/home/data1/protected/EXAMPLE.kotl")) label-type alpha
> label-min-width 3 label-separator ". " label-separator-length 2
> level-indent 3 blank-lines t levels-to-show 0 lines-to-show 0)) t t)
>   kexport:html("~/EXAMPLE.kotl" "~/new.html" nil)
>   funcall-interactively(kexport:html "~/EXAMPLE.kotl" "~/new.html" nil)
>   call-interactively(kexport:html nil nil)
>   command-execute(kexport:html)
>
>
> I use:  Editor:      GNU Emacs 28.0.50 (build 26, x86_64-pc-linux-gnu, X
> toolkit, cairo version 1.14.8, Xaw3d scroll bars)
>
>         Hyperbole:   7.1.3
>         Sys Type:    x86_64-pc-linux-gnu
>         OS Type:     gnu/linux
>         Window Sys:  x
>         News Reader: Gnus v5.13
>
> --
> Thanks,
> Jean Louis
> ⎔ λ 🄯 𝍄 𝌡 𝌚
>
>
>
> _______________________________________________
> Bug-hyperbole mailing list
> Bug-hyperbole <at> gnu.org
> https://lists.gnu.org/mailman/listinfo/bug-hyperbole
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-hyperbole <at> gnu.org:
bug#44488; Package hyperbole. (Sun, 08 Nov 2020 18:18:02 GMT) Full text and rfc822 format available.

Message #14 received at 44488 <at> debbugs.gnu.org (full text, mbox):

From: Jean Louis <bugs <at> gnu.support>
To: rswgnu <at> gmail.com
Cc: 44488 <at> debbugs.gnu.org
Subject: Re: bug#44488: Koutline: export to HTML, replace-regexp-in-string: Invalid use of ‘\’ in replacement text
Date: Sun, 8 Nov 2020 19:10:57 +0300
* Robert Weiner <rsw <at> gnu.org> [2020-11-08 18:51]:
> This has been fixed in the source version of Hyperbole (via commit
> c0e48fb3d).

Thank you.

Which git link I may use to clone?





bug closed, send any further explanations to 44488 <at> debbugs.gnu.org and Jean Louis <bugs <at> gnu.support> Request was from Mats Lidell <matsl <at> gnu.org> to control <at> debbugs.gnu.org. (Sun, 22 Nov 2020 15:52:01 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 21 Dec 2020 12:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 182 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.