emacs-devel
[Top][All Lists]
Advanced

[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: Tue, 13 Sep 2011 23:17:51 +0900 (JST)

On Tue, 13 Sep 2011 09:48:09 -0400, Stefan Monnier <address@hidden> wrote
>> Thank you. I've implemented base on your hit. 
>> New behaviors of \M-\C-f and \M-\C-b in \C-x\C-f are nice.
>> I'd like you to include this into the offcial Emacs source tree.
> 
> I'm not sure we want that by default.
> 
>> We are in feature-freeze stage. What shoud I do?
>> Should I submit this to bug tracking system?
> 
> Please do so, yes.

I'll do so.
 
>> +(defvar minibuffer-local-filename-syntax 
>> +  (let ((table (make-syntax-table)))
>> +    (mapc
>> +     (lambda (c)
>> +       (modify-syntax-entry c "_" table))
>> +     '(?~ ?` ?! ?@ ?# ?$ ?% ?^ ?& ?* ?( ?) ?- ?_ ?= ?+ 
>> +      ?{ ?} ?[ ?] ?| ?\; ?\" ?'
>> +      ?, ?< ?. ?> ??))
> 
> Why this particular list?  Please represent the list of chars in a way
> that makes it more clear why it's chosen that way.

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.

Masatake YAMATO
 
> 
>         Stefan



reply via email to

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