unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#13644: String read syntax should allow "\(" to mean "("
@ 2013-02-07  9:12 David Kastrup
  2013-03-09  8:54 ` Andy Wingo
  2014-10-02  1:05 ` Mark H Weaver
  0 siblings, 2 replies; 4+ messages in thread
From: David Kastrup @ 2013-02-07  9:12 UTC (permalink / raw)
  To: 13644


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





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#13644: String read syntax should allow "\(" to mean "("
  2013-02-07  9:12 bug#13644: String read syntax should allow "\(" to mean "(" David Kastrup
@ 2013-03-09  8:54 ` Andy Wingo
  2013-03-09 10:12   ` David Kastrup
  2014-10-02  1:05 ` Mark H Weaver
  1 sibling, 1 reply; 4+ messages in thread
From: Andy Wingo @ 2013-03-09  8:54 UTC (permalink / raw)
  To: David Kastrup; +Cc: 13644

On Thu 07 Feb 2013 10:12, David Kastrup <dak@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/





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#13644: String read syntax should allow "\(" to mean "("
  2013-03-09  8:54 ` Andy Wingo
@ 2013-03-09 10:12   ` David Kastrup
  0 siblings, 0 replies; 4+ messages in thread
From: David Kastrup @ 2013-03-09 10:12 UTC (permalink / raw)
  To: Andy Wingo; +Cc: 13644

Andy Wingo <wingo@pobox.com> writes:

> On Thu 07 Feb 2013 10:12, David Kastrup <dak@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





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#13644: String read syntax should allow "\(" to mean "("
  2013-02-07  9:12 bug#13644: String read syntax should allow "\(" to mean "(" David Kastrup
  2013-03-09  8:54 ` Andy Wingo
@ 2014-10-02  1:05 ` Mark H Weaver
  1 sibling, 0 replies; 4+ messages in thread
From: Mark H Weaver @ 2014-10-02  1:05 UTC (permalink / raw)
  To: David Kastrup; +Cc: 13644-done

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





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-10-02  1:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-07  9:12 bug#13644: String read syntax should allow "\(" to mean "(" David Kastrup
2013-03-09  8:54 ` Andy Wingo
2013-03-09 10:12   ` David Kastrup
2014-10-02  1:05 ` Mark H Weaver

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).