unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Masatake YAMATO <yamato@redhat.com>
To: monnier@iro.umontreal.ca
Cc: emacs-devel@gnu.org
Subject: Re: syntax table in minibuffer
Date: Thu, 15 Sep 2011 23:18:11 +0900 (JST)	[thread overview]
Message-ID: <20110915.231811.1552679539416327707.yamato@redhat.com> (raw)
In-Reply-To: <jwvr53ij6s5.fsf-monnier+emacs@gnu.org>

>>>> 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.
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9511

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	other threads:[~2011-09-15 14:18 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-09 23:00 syntax table in minibuffer Masatake YAMATO
2011-09-10  1:44 ` Stefan Monnier
2011-09-12  7:47   ` Masatake YAMATO
2011-09-13 13:48     ` Stefan Monnier
2011-09-13 14:17       ` Masatake YAMATO
2011-09-13 18:22         ` Stefan Monnier
2011-09-15  8:56           ` Masatake YAMATO
2011-09-15 13:09             ` Stefan Monnier
2011-09-15 14:18               ` Masatake YAMATO [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110915.231811.1552679539416327707.yamato@redhat.com \
    --to=yamato@redhat.com \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).