From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sam Steingold Newsgroups: gmane.emacs.devel Subject: completion-cycle-threshold=t in shell completion Date: Tue, 04 Sep 2012 14:28:01 -0400 Organization: disorganization Message-ID: <87ipbtabim.fsf@gnu.org> Reply-To: sds@gnu.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1346783302 14373 80.91.229.3 (4 Sep 2012 18:28:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 4 Sep 2012 18:28:22 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 04 20:28:24 2012 Return-path: Envelope-to: ged-emacs-devel@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 1T8xrK-0006QS-1P for ged-emacs-devel@m.gmane.org; Tue, 04 Sep 2012 20:28:22 +0200 Original-Received: from localhost ([::1]:60782 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T8xrH-00050Y-1d for ged-emacs-devel@m.gmane.org; Tue, 04 Sep 2012 14:28:19 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40542) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T8xrE-00050D-QW for emacs-devel@gnu.org; Tue, 04 Sep 2012 14:28:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T8xrD-0002Jl-Ck for emacs-devel@gnu.org; Tue, 04 Sep 2012 14:28:16 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:42530) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T8xrD-0002Ja-67 for emacs-devel@gnu.org; Tue, 04 Sep 2012 14:28:15 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1T8xrB-0006JT-UF for emacs-devel@gnu.org; Tue, 04 Sep 2012 20:28:13 +0200 Original-Received: from ool-43501bc4.dyn.optonline.net ([67.80.27.196]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 04 Sep 2012 20:28:13 +0200 Original-Received: from sds by ool-43501bc4.dyn.optonline.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 04 Sep 2012 20:28:13 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 34 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: ool-43501bc4.dyn.optonline.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) X-Attribution: Sam X-Disclaimer: You should not expect anyone to agree with me. Cancel-Lock: sha1:ACm43+cBzmEtgPcLkapGPFXEcbI= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:153008 Archived-At: When completion-cycle-threshold is nil, completion completes to the largest common prefix and the second TAB would bring up a *Completion* buffer. E.g., if I have two buffers "abc1" and "abc2", type C-x b ab TAB then I "ab" is completed to "abc" and further TAB will bring up *Completion* window with "abc1" and "abc2". Similarly, "shell completion" (TAB in a shell buffer and while typing compile command) would complete bash-style. This is good. When completion-cycle-threshold is t: in the situation above, TAB would complete to "abc1" and further TABs would cycle between "abc1" and "abc2". This is also fine. However, "shell completion" is now broken with completion-cycle-threshold = t: If I have two files abc1 and abc2 in the current directory and I type "ls ab TAB" in the shell buffer (or while entering a compile command for a buffer in that directory), I get "ls abc1 " and further tabs will try completing from "", not cycle the previous file name between "abc1" and "abc2". So, if I am unhappy with the TAB completion result, I have to manually delete the result with DEL and enter the right file. Is this a know bug? Is there a workaround? Thanks! -- Sam Steingold (http://sds.podval.org/) on Ubuntu 12.04 (precise) X 11.0.11103000 http://www.childpsy.net/ http://iris.org.il http://pmw.org.il http://americancensorship.org http://thereligionofpeace.com Whether pronounced "leenooks" or "line-uks", it's better than Windows.