[Top][All Lists]

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

Re: syntax table in minibuffer

From: Masatake YAMATO
Subject: Re: syntax table in minibuffer
Date: Thu, 15 Sep 2011 23:18:11 +0900 (JST)

>>>> I wanted to choose all chars which is defined as punctuation.
>>>> I wanted to convert them to symbol. So \M-\C-f and \M-\C-b can
>>>> ignore them. Is there any good way for choosing them?
>>>> If not, I have to write a function traversing a given syntax table.
>>> map-char-table should do the trick.
>> Thanks. I rewrote the patch using the function.
>>> BTW, another way to attack the problem is to leave the syntax-table
>>> alone, but set forward-sexp-function.
>> I have no idea which is better.
> Setting forward-sexp-function lets you change C-M-f in more subtle ways.
> E.g. it can still jump from "/usr/^hello world" (where ^ represents
> point) to "/usr/hello^ world" like it does now (and/or jump over parens)
> while at the same time being able to jump from "/usr^/hello world" to
> "/usr/hello world^".

It looks over engineering for me. 
To go to the whitespace M-f and M-b can be used.
Anyway I'd like people to try the patch.

Masatake YAMATO

>> However, it will be nice that minibuffer can has its own major
>> mode. e.g. minibuffer-filename-mode.
> We currently don't use major modes much in the minibuffer.  But maybe we
> could move in this direction.  If so, we'd probably want to create
> a minibuffer-completion-mode to use as parent.  Not sure how useful it
> would be, tho.
>         Stefan

reply via email to

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