Subject: bug#33940: closed (Re: 27.0.50; ?\^c syntax confuses scanning)

From: [email-masked] (GNU bug Tracking System)
Date: Tue, 01 Jan 2019 19:43:02 +0000

Your bug report

#33940: 27.0.50; ?\^c syntax confuses scanning

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
33940: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=33940
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: 27.0.50; ?\^c syntax confuses scanning
From: Paul Eggert <[email-masked]>
To: Michael Heerdegen <[email-masked]>
Cc: [email-masked]
Date: Tue, 1 Jan 2019 11:42:43 -0800
List-Id: <debbugs-submit.debbugs.gnu.org>

Michael Heerdegen wrote:
> Yes, with exactly that recipe, but with emacs built from the master
> branch, please.  Oh, and happy new year, if you not are still in the old
> one.

The same for you! Thanks for pointing me in the right direction; I installed the 
attached patch.
>From 504457673dabfa89cb2eac89f093f10736c52ca7 Mon Sep 17 00:00:00 2001
From: Paul Eggert <[email-masked]>
Date: Tue, 1 Jan 2019 11:35:17 -0800
Subject: [PATCH] Fix woman.el to not confuse scan-sexps

* lisp/woman.el (woman-unpadded-space-char):
Escape the close-bracket (Bug#33940).
---
 lisp/woman.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/woman.el b/lisp/woman.el
index 13aea5d91c..9548fdc6b3 100644
--- a/lisp/woman.el
+++ b/lisp/woman.el
@@ -2078,7 +2078,7 @@ woman-escaped-escape-string
   (char-to-string woman-escaped-escape-char)
   "Internal string representation of escaped escape characters.")
 
-(defconst woman-unpadded-space-char ?\^]
+(defconst woman-unpadded-space-char ?\^\]
   ;; An arbitrary unused control character
   "Internal character representation of unpadded space characters.")
 (defconst woman-unpadded-space-string
-- 
2.17.1

Subject: 27.0.50; ?\^c syntax confuses scanning
From: Michael Heerdegen <[email-masked]>
To: [email-masked]
Cc: Paul Eggert <[email-masked]>
Date: Tue, 01 Jan 2019 03:58:35 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Hello,

in 20b858ef13f8f71fae6cbce5cdac31c4dd130600 "Prefer \... to control
chars in .el literals" woman.el has been changed to contain reader
syntaxes like "?\^]" - which apparently confuses `scan-sexps', e.g.

(scan-sexps (point-min) (point-max))
|- (scan-error "Containing expression ends prematurely" 81997 81998)

Obviously `scan-sexps' doesn't handle this kind of syntax correctly.

This confuses paren highlighting, by-sexp and by-list movement, prevents
enabling paredit mode, and such unpleasant things.

(CC'ing the author of the commit, Paul Eggert)

Thanks and regards,

Michael.

In GNU Emacs 27.0.50 (build 22, x86_64-pc-linux-gnu, GTK+ Version 3.24.2)
 of 2018-12-31 built on drachen
Repository revision: 174d64d4cefb3c49e260a2eb3d9015b0f092f922
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12003000
System Description: Debian GNU/Linux buster/sid