[ESS] elisp problems (was Re: feature request: look more places for R on windows [code]) [solved]
ross at biostat.ucsf.edu
Fri Apr 19 00:33:41 CEST 2013
On 4/18/2013 3:10 PM, Rodney Sparapani wrote:
> On 04/18/2013 04:48 PM, Ross Boylan wrote:
>> Bizarrely, neither [:space:] nor [:blank:] seems to match \t, e.g.,
>> (string-match "^.*REG_SZ[:blank:]*\\([^ ].*\\) *" tlong) does not match.
> Hi Ross:
> The emacs docs say otherwise...
> ‘[:blank:]’ This matches space and tab only.
> ‘[:space:]’ This matches any character that has whitespace syntax
Yes, that's what make it bizarre.
I was doing the evaluation in the scratch buffer. It seems likely its
syntax table is unlike other environments, though it's quite possible
it's the same environment as when processing the .emacs file. The docs
imply [:space:] relies on the syntax table. But they don't leave any
wiggle room for [:blank:].
I also tried the \s- syntax along the way.
Also, for benefit of those who follow, string-to-list is a function for
going from a string to a list of numbers; that's what allowed me to tell
the exact characters in the string.
> Maybe it is a bug.
More information about the ESS-help