emacs-devel
[Top][All Lists]
Advanced

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

Re: syntax table in minibuffer


From: Stefan Monnier
Subject: Re: syntax table in minibuffer
Date: Thu, 15 Sep 2011 09:09:58 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

>>> 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^".

> 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]