From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Liu Newsgroups: gmane.emacs.bugs Subject: bug#14300: 24.3; comint-dynamic-complete-functions breaks Date: Mon, 06 May 2013 11:40:35 +0800 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1367811677 25614 80.91.229.3 (6 May 2013 03:41:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 6 May 2013 03:41:17 +0000 (UTC) Cc: 14300@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 06 05:41:15 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 1UZCIb-0007Rg-Jx for geb-bug-gnu-emacs@m.gmane.org; Mon, 06 May 2013 05:41:13 +0200 Original-Received: from localhost ([::1]:57166 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UZCIb-0001p4-8w for geb-bug-gnu-emacs@m.gmane.org; Sun, 05 May 2013 23:41:13 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58446) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UZCIX-0001nv-4a for bug-gnu-emacs@gnu.org; Sun, 05 May 2013 23:41:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UZCIW-0002Ry-6i for bug-gnu-emacs@gnu.org; Sun, 05 May 2013 23:41:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55180) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UZCIW-0002Rr-2k for bug-gnu-emacs@gnu.org; Sun, 05 May 2013 23:41:08 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UZCJO-0000S9-Bv for bug-gnu-emacs@gnu.org; Sun, 05 May 2013 23:42:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Leo Liu Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 06 May 2013 03:42: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.13678117031649 (code B ref 14300); Mon, 06 May 2013 03:42:02 +0000 Original-Received: (at 14300) by debbugs.gnu.org; 6 May 2013 03:41:43 +0000 Original-Received: from localhost ([127.0.0.1]:59289 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UZCJ4-0000QV-An for submit@debbugs.gnu.org; Sun, 05 May 2013 23:41:43 -0400 Original-Received: from mail-pa0-f42.google.com ([209.85.220.42]:63677) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UZCJ1-0000Q3-DU for 14300@debbugs.gnu.org; Sun, 05 May 2013 23:41:40 -0400 Original-Received: by mail-pa0-f42.google.com with SMTP id bj3so1797004pad.29 for <14300@debbugs.gnu.org>; Sun, 05 May 2013 20:40:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:references:face:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=kYIljeZj5W1Bte4glQhgS4N1kTrEEwF0lqh1KK06p2U=; b=OP41OrzLn5p2LY/9XRizwsfTECyHQBAP0okZx2cbjoaTcrUaSXeuTuDF5LKwifWRQb Mwq9X0DZAgygBYgnrQHG/FCQR1KWUMnSSbaG/Ne/0KL8LcsbmJ7v6vVzm8Pg+IZCcsX/ LdYjdxSCXcPd6nn43NGOkL61b2/3OtPDkOP9UCIs4hlEHewXi9/Mj6wt3GTs+PPIXiA3 vZe/z83cznUnvwfVG6fsJMxGCkYDWbxyGnJnmucMPxG9QWeSUFu+srXnal1Zm9VEUNFE 74EqtCFdycRStpfKxHik+ssYdb4s15dgb3Pcx+QSaVntnM2uZCByhsOZLP5ILzXE/f4r tNUg== X-Received: by 10.68.221.200 with SMTP id qg8mr23862138pbc.58.1367811643797; Sun, 05 May 2013 20:40:43 -0700 (PDT) Original-Received: from Zeuss-MacBook.local (li511-224.members.linode.com. [66.175.216.224]) by mx.google.com with ESMTPSA id l4sm22029048pbo.6.2013.05.05.20.40.41 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 05 May 2013 20:40:43 -0700 (PDT) Face: iVBORw0KGgoAAAANSUhEUgAAACgAAAAoBAMAAAB+0KVeAAAAGFBMVEUzRVhbQj4eZqO6SjnT eWpxnMetm5b6/PmidmqrAAAAAWJLR0QAiAUdSAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1F B9cBBwMLBfKABCMAAAFoSURBVCjPtZI9a8MwEIaFoc7aYDdelQMna0Em3tsSr0XUeE2Q6a22a+v+ fk8fSSBkbDUI6dHpfe9OEvRgiD+ApqKPJgJeB6iUUXWESjUe/ig38AJrhqqvaU2nTIXbNvOQ40fe qdry4kyGoVWsfCQalXpHnJGM01wjWdYbMlXNFdsZDO69m9aqNqxEJqTEgbM5OF7wlEfIoll1Ked4 LbM5X2EdILLokEdmI8z7g5cKED0cuTC930TYhy7ZDekkXVGw/L60TguJePPxcJF48lpsSUWEA/Ju jGFNgJOXc4Hz7TmAdBeu5Ve4AEjOi2/2jfd3cAJZ+IbNrvdjgBZY01b+HTuG3cLws6BJZqVOj/pp T0OqVwx3rFq+QmJwx3loK5JSLEhDIt62+mtC2C+SrAUxEbV6C6v2BRbd6pILBKFpepKZJHgGgrKF sptSUUoczpwg2pQ7ZH1tgs0ou/917mzz6Cs2//C978cv5l07L02orIEAAAAASUVORK5CYII= In-Reply-To: (Stefan Monnier's message of "Sun, 05 May 2013 22:38:34 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (OS X 10.8.3) 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:74002 Archived-At: On 2013-05-06 10:38 +0800, Stefan Monnier wrote: > 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. It would be nice if there is a way I can provide completion-at-point with two tables and it will just try them one after another if the preceding table has no match. In most cases path starts with no leading / and function completion needs to work well in strings too due to its inline functions: f = inline("sin(x)^2 + 2"); Octave's syntax is eccentric. A 80% solution might be to special-case 'cd', 'rmdir', 'source', 'unlink' etc. Leo