bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error in SQL parsing?


From: Stefan Monnier
Subject: Re: Error in SQL parsing?
Date: 04 Nov 2001 17:35:07 -0500
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1.50

>>>>> "Alex" == Alex Schroeder <address@hidden> writes:
>> Should sql-mode just have a config var and do
>> 
>> (defvar sql-escape-char nil)
>> 
>> ...
>> (if sql-escape-char
>> (modify-syntax-entry sql-escape-char "\\" st))
> This seems to be the wrong approach.

Compared to RMS' proposal and to the current situation it has the advantage
of making it easier for the user to choose (she doesn't need to
know about modify-syntax-entry.  We could even make it a defcustom).

> Consider this:
> escape \
> select '\&foo' from dual;
> escape $
> select '\$foo' from dual;
> escape off

Please, my head hurts,


        Stefan

PS: I don't have a preference between having \ by default or not.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]