unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Masatake YAMATO <yamato@redhat.com>
Cc: emacs-devel@gnu.org
Subject: Re: syntax table in minibuffer
Date: Thu, 15 Sep 2011 09:09:58 -0400	[thread overview]
Message-ID: <jwvr53ij6s5.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <20110915.175649.18849677874018401.yamato@redhat.com> (Masatake YAMATO's message of "Thu, 15 Sep 2011 17:56:49 +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^".

> 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 13:09 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 [this message]
2011-09-15 14:18               ` Masatake YAMATO

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=jwvr53ij6s5.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=yamato@redhat.com \
    /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).