|
From: Juergen W. <wie...@fr...> - 2005-11-13 21:22:26
|
On Sunday 13 November 2005 22:01 Petr Mikulik wrote: > > As a side note: If the current behaviour is changed, patch [1289725] > > "handling double quotes in gnuplot-mode" will be outdated (and I > > wouldn't know how to fix it). > > There is no change to behaviour: > this works: X 'C:\tmp' > this not: X 'C:\' > where X is set title or cd or whatever else. I simply don't understand you (which may be the case because you haven't understood me, so: more probably my fault). What do you mean by "works"? Raw strings in python and single quoted strings in gnuplot are *very* special. In your second example, the first single quote starts the string, then there are two ordinary characters. Then there is an *odd* number of backslashes, meaning that the following character is to be taken literally *as are all of the backslashes*. The string is ended implicitly by the end of the line. So, there is no bug. Just a very silly syntax. I don't know who has invented this and why, but gnuplot is not the only program using it. The main problem seems to be that gnuplot silently ends a string at the end of a line without even giving a warning. And if you do change the latter example to work the way you expect, the named patch will be broken. Juergen |