From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#14300: 24.3; comint-dynamic-complete-functions breaks Date: Sun, 05 May 2013 22:38:34 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1367807962 30310 80.91.229.3 (6 May 2013 02:39:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 6 May 2013 02:39:22 +0000 (UTC) Cc: 14300@debbugs.gnu.org To: Leo Liu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 06 04:39:16 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UZBKd-0007Xu-G7 for geb-bug-gnu-emacs@m.gmane.org; Mon, 06 May 2013 04:39:15 +0200 Original-Received: from localhost ([::1]:45578 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UZBKc-000092-NQ for geb-bug-gnu-emacs@m.gmane.org; Sun, 05 May 2013 22:39:14 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50167) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UZBKY-000080-9h for bug-gnu-emacs@gnu.org; Sun, 05 May 2013 22:39:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UZBKX-0002DB-FB for bug-gnu-emacs@gnu.org; Sun, 05 May 2013 22:39:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55143) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UZBKX-0002D7-BR for bug-gnu-emacs@gnu.org; Sun, 05 May 2013 22:39:09 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UZBLO-0004ht-Rr for bug-gnu-emacs@gnu.org; Sun, 05 May 2013 22:40:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 06 May 2013 02:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14300 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14300-submit@debbugs.gnu.org id=B14300.136780797217955 (code B ref 14300); Mon, 06 May 2013 02:40:02 +0000 Original-Received: (at 14300) by debbugs.gnu.org; 6 May 2013 02:39:32 +0000 Original-Received: from localhost ([127.0.0.1]:59252 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UZBKt-0004fY-Us for submit@debbugs.gnu.org; Sun, 05 May 2013 22:39:32 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:15401) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UZBKs-0004fM-7n for 14300@debbugs.gnu.org; Sun, 05 May 2013 22:39:30 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFFMCqRF/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJIgeBsEtkQoDpHqBXoMT X-IPAS-Result: Av4EABK/CFFMCqRF/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJIgeBsEtkQoDpHqBXoMT X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="11133004" Original-Received: from 76-10-164-69.dsl.teksavvy.com (HELO pastel.home) ([76.10.164.69]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 05 May 2013 22:38:30 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 6C5D067A30; Sun, 5 May 2013 22:38:34 -0400 (EDT) In-Reply-To: (Leo Liu's message of "Sun, 05 May 2013 15:02:49 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:74000 Archived-At: >> Good question. Can file names really occur at the same places as >> function names in Octave? > F("arg1", "arg2", ...) can be written as F arg1 arg2 ... in octave. For > example 'help sin' and 'cd /usr'. > So there is no clear way to detect whether a position is file-completion > or function-completion given the fact that user can define a function > that does do both in the same position. While there are cases where there is ambiguity, there are many where the ambiguity can be lifted: You could prevent function completion within a string, so file name completion still won't work after 'cd /u' but it will after 'cd "/u'. Similarly you might disable function completion if the "current function name" includes a / (assuming real functions don't include a slash in their name). In the worst case, you might want to use ":exclusive t", tho it means that function completion won't be able to benefit from fancier completion styles. Stefan