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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 13644 in the body.
You can then email your comments to 13644 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-guile <at> gnu.org:
bug#13644; Package guile. (Thu, 07 Feb 2013 09:15:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to David Kastrup <dak <at> gnu.org>:
New bug report received and forwarded. Copy sent to bug-guile <at> gnu.org. (Thu, 07 Feb 2013 09:15:01 GMT) Full text and rfc822 format available.

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

From: David Kastrup <dak <at> gnu.org>
To: bug-guile <at> gnu.org
Subject: String read syntax should allow "\(" to mean "("
Date: Thu, 07 Feb 2013 10:12:36 +0100
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.

-- 
David Kastrup




Information forwarded to bug-guile <at> gnu.org:
bug#13644; Package guile. (Sat, 09 Mar 2013 08:56:01 GMT) Full text and rfc822 format available.

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

From: Andy Wingo <wingo <at> pobox.com>
To: David Kastrup <dak <at> gnu.org>
Cc: 13644 <at> debbugs.gnu.org
Subject: Re: bug#13644: String read syntax should allow "\(" to mean "("
Date: Sat, 09 Mar 2013 09:54:55 +0100
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.

Andy
-- 
http://wingolog.org/




Information forwarded to bug-guile <at> gnu.org:
bug#13644; Package guile. (Sat, 09 Mar 2013 10:13:02 GMT) Full text and rfc822 format available.

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

From: David Kastrup <dak <at> gnu.org>
To: Andy Wingo <wingo <at> pobox.com>
Cc: 13644 <at> debbugs.gnu.org
Subject: Re: 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




Severity set to 'wishlist' from 'normal' Request was from Mark H Weaver <mhw <at> netris.org> to control <at> debbugs.gnu.org. (Sun, 14 Apr 2013 19:10:02 GMT) Full text and rfc822 format available.

Reply sent to Mark H Weaver <mhw <at> netris.org>:
You have taken responsibility. (Thu, 02 Oct 2014 01:07:01 GMT) Full text and rfc822 format available.

Notification sent to David Kastrup <dak <at> gnu.org>:
bug acknowledged by developer. (Thu, 02 Oct 2014 01:07:02 GMT) Full text and rfc822 format available.

Message #18 received at 13644-done <at> debbugs.gnu.org (full text, mbox):

From: Mark H Weaver <mhw <at> netris.org>
To: David Kastrup <dak <at> gnu.org>
Cc: 13644-done <at> debbugs.gnu.org
Subject: Re: bug#13644: String read syntax should allow "\(" to mean "("
Date: Wed, 01 Oct 2014 21:05:53 -0400
I went ahead and pushed this to stable-2.0, commit
5af307de43e4b65eec7f235b48a8908f2a00f134.  It'll be in Guile 2.0.12.
I'm closing this ticket.

     Thanks,
       Mark




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 30 Oct 2014 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 9 years and 172 days ago.

Previous Next


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