From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: syntax table in minibuffer Date: Thu, 15 Sep 2011 09:09:58 -0400 Message-ID: References: <20110913.231751.588133360773035431.yamato@redhat.com> <20110915.175649.18849677874018401.yamato@redhat.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1316092220 20890 80.91.229.12 (15 Sep 2011 13:10:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 15 Sep 2011 13:10:20 +0000 (UTC) Cc: emacs-devel@gnu.org To: Masatake YAMATO Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 15 15:10:15 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R4Bhn-00072G-Eo for ged-emacs-devel@m.gmane.org; Thu, 15 Sep 2011 15:10:15 +0200 Original-Received: from localhost ([::1]:36095 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R4Bhm-0007k8-0y for ged-emacs-devel@m.gmane.org; Thu, 15 Sep 2011 09:10:14 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:57618) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R4Bhf-0007h9-DF for emacs-devel@gnu.org; Thu, 15 Sep 2011 09:10:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R4Bhe-0002CR-5Z for emacs-devel@gnu.org; Thu, 15 Sep 2011 09:10:07 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183]:40454 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R4Bhd-0002Be-Uk for emacs-devel@gnu.org; Thu, 15 Sep 2011 09:10:06 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAMP4cU5FxK3+/2dsb2JhbABDp0x5gVMBAQQBViMFCws0EhQYDSSICrZhhnQEoEmERA X-IronPort-AV: E=Sophos;i="4.68,387,1312171200"; d="scan'208";a="136522764" Original-Received: from 69-196-173-254.dsl.teksavvy.com (HELO ceviche.home) ([69.196.173.254]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 15 Sep 2011 09:09:59 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 02AD266174; Thu, 15 Sep 2011 09:09:59 -0400 (EDT) In-Reply-To: <20110915.175649.18849677874018401.yamato@redhat.com> (Masatake YAMATO's message of "Thu, 15 Sep 2011 17:56:49 +0900 (JST)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.183 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:144058 Archived-At: >>> 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