GNU bug report logs - #13644
String read syntax should allow "\(" to mean "("

Previous Next

Package: guile;

Reported by: David Kastrup <dak <at> gnu.org>

Date: Thu, 7 Feb 2013 09:15:01 UTC

Severity: wishlist

Done: Mark H Weaver <mhw <at> netris.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: David Kastrup <dak <at> gnu.org>
To: Andy Wingo <wingo <at> pobox.com>
Cc: 13644 <at> debbugs.gnu.org
Subject: bug#13644: String read syntax should allow "\(" to mean "("
Date: Sat, 09 Mar 2013 11:12:00 +0100
Andy Wingo <wingo <at> pobox.com> writes:

> On Thu 07 Feb 2013 10:12, David Kastrup <dak <at> gnu.org> writes:
>
>> Rationale: GUILE already supports a number of escapes not defined in the
>> Scheme standard.  Emacs Lisp modes and derivative modes treat opening
>> parens in the first column of a file specially, resynchronizing function
>> boundaries.  The respective manual entry states:
>>
>> <URL:http://www.gnu.org/software/emacs/manual/html_node/emacs/Left-Margin-Paren.html>
>>
>> Being able to escape opening parens makes it possible to write
>> Emacs-friendly Guile code.
>
> It's not a bad idea.  I'm hesitant to add new string syntax, though, and
> would appreciate input from other people before going ahead with this.
>
> You can of course work around this with hex escapes, though that is not
> very readable.

A slightly better workaround is using \ at the end of the preceding line
and \n( on the afflicted line itself.  But it does not exactly win a
beauty competition either.

-- 
David Kastrup




This bug report was last modified 10 years and 239 days ago.

Previous Next


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