[Top][All Lists]

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

Re: 23.0.60; kbd returns wrong value

From: David Kastrup
Subject: Re: 23.0.60; kbd returns wrong value
Date: Fri, 16 May 2008 11:32:17 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

"Drew Adams" <address@hidden> writes:

> This problem is more widespread than I thought. Menu items can of course 
> contain
> spaces: <My Foobar>, and when used in submenus the same problem arises as for
> <Brazilian Portuguese> in a <Describe> submenu.
> An there are other keys that have spaces and so could make 
> `edmacro-parse-keys'
> choke in the same way (e.g. if in a submenu). In my `global-map', for 
> instance,
> I see these keys that contain spaces:
> <RHP of Latin-1>
> <RHP of Latin-2>
> <RHP of Latin-3>
> <RHP of Latin-4>

> The bug is thus with `edmacro-parse-keys', not with the fact of having
> keys with spaces.

So how about using

>> After tracing edmacro-parse-keys, the problem seems to be here:
>> (while (and (< pos (length string))
>>   (string-match "[^ \t\n\f]+" string pos))
>>       (let ((word (substring string (match-beginning 0) 
>> (match-end 0)))

(string-match "[^ \t\n\f<]+\\|<[^>]+>" ...


David Kastrup

reply via email to

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