stumpwm-devel
[Top][All Lists]
Advanced

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

Re: [STUMP] [PATCH] Make select-from-menu completion case insensitive


From: Lionel
Subject: Re: [STUMP] [PATCH] Make select-from-menu completion case insensitive
Date: Fri, 29 Aug 2008 14:18:23 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix)

John Li <address@hidden> writes:

> On Thu, Aug 28, 2008 at 10:17:38PM +0200, Lionel Flandrin wrote:
>> -        (match-regex (ppcre:create-scanner *current-menu-input*)))
>> +        (match-regex (ppcre:create-scanner *current-menu-input* 
>> :case-insensitive-mode t)))
>
> This isn't quite what Shawn was talking about.
>
> Basically, (1) when the user does not go out of their way to specify
> case (i.e., they type in lowercase), the matching is case-insensitive.
> But, (2) when the user /does/ capitalize something, it almost
> certainly means they care about case, so make matching case-sensitive.
>
> This is the "smartcase" option in vim, and it appears to be the
> default in Emacs.
>
>
> Cheers,
> John

Ah, I see, it shouldn't be too dificult. I'll submit a new patch this
weekend.

-- 
Lionel




reply via email to

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