From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: tyler Newsgroups: gmane.emacs.help Subject: tab completion barfs in inferior process Date: Tue, 21 Oct 2008 15:29:47 -0300 Message-ID: <87prltls2s.fsf@blackbart.sedgenet> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1224613871 956 80.91.229.12 (21 Oct 2008 18:31:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 21 Oct 2008 18:31:11 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 21 20:32:10 2008 connect(): Connection refused Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KsM0m-0002XE-2X for geh-help-gnu-emacs@m.gmane.org; Tue, 21 Oct 2008 20:31:20 +0200 Original-Received: from localhost ([127.0.0.1]:57176 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KsLzg-0004BL-DQ for geh-help-gnu-emacs@m.gmane.org; Tue, 21 Oct 2008 14:30:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KsLzK-00049H-Sx for help-gnu-emacs@gnu.org; Tue, 21 Oct 2008 14:29:50 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KsLzJ-00047D-V7 for help-gnu-emacs@gnu.org; Tue, 21 Oct 2008 14:29:50 -0400 Original-Received: from [199.232.76.173] (port=58709 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KsLzJ-00046r-QV for help-gnu-emacs@gnu.org; Tue, 21 Oct 2008 14:29:49 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:58089 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KsLzJ-0001yy-KF for help-gnu-emacs@gnu.org; Tue, 21 Oct 2008 14:29:50 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KsLzD-0000Jy-9m for help-gnu-emacs@gnu.org; Tue, 21 Oct 2008 18:29:43 +0000 Original-Received: from 140.184.131.32 ([140.184.131.32]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 21 Oct 2008 18:29:43 +0000 Original-Received: from tyler.smith by 140.184.131.32 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 21 Oct 2008 18:29:43 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 55 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 140.184.131.32 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:D4l6uR2KSw+kN/uZXk0pMdJvauw= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:58994 Archived-At: Hi, I am running R in an ESS buffer in Emacs 23.0.60.1. ESS provides tab completion for objects, but sometimes it barfs up multiple lines of elisp in the mini-buffer instead of actually doing any completing. I thought this was an ESS problem, until I realized that the same thing was happening in *shell*, so I figure it has something to do with comint mode (which ESS uses). The problem is not consistently reproducible, but this is what I see now in my *shell* buffer: tyler:r-> ls h* hubbell.R hubbell.R~ hump4com.csv hump4.csv hump4env.csv hump4pcnm.csv = hump4XY.csv If I type h at the prompt I see the following message in the minibuffer (recovered from the *Messages* buffer): Completing command name... comint-dynamic-simple-complete: Wrong number of arguments: (lambda (complet= ions) "List in help buffer sorted COMPLETIONS. Typing SPC flushes the help buffer." (let ((window (get-buffer-window "*Com= pletions*"))) (setq completions (sort completions (quote string-lessp))) (i= f (and (eq last-command this-command) window (window-live-p window) (window= -buffer window) (buffer-name (window-buffer window)) (equal completions (bu= ffer-local-value (quote comint-displayed-dynamic-completions) (window-buffe= r window)))) (with-current-buffer (window-buffer window) (if (pos-visible-i= n-window-p (point-max) window) (set-window-start window (point-min)) (save-= selected-window (select-window window) (scroll-up)))) (setq comint-dynamic-= list-completions-config (current-window-configuration)) (with-output-to-tem= p-buffer "*Completions*" (display-completion-list completions)) (message "T= ype space to flush; repeat completion command to scroll")) (let (key first)= (if (with-current-buffer (get-buffer "*Completions*") (set (make-local-var= iable (quote comint-displayed-dynamic-completions)) completions) (setq key = (read-key-sequence nil) first (aref key 0)) (and (consp first) (consp (even= t-start first)) (eq (window-buffer (posn-window (event-start first))) (get-= buffer "*Completions*")) (eq (key-binding key) (quote mouse-choose-completi= on)))) (progn (mouse-choose-completion first) (set-window-configuration com= int-dynamic-list-completions-config)) (unless (eq first 32) (setq unread-co= mmand-events (listify-key-sequence key))) (unless (eq first 9) (set-window-= configuration comint-dynamic-list-completions-config)))))), 2 Mark set If I open up a new instance of emacs, M-x shell, and go to the same directory, h gives me a completion buffer, although it only contains possible commands in my path, and none of the files in the directory that start with h. Any ideas what I've done wrong, or is this a bug of some sort? Thanks, Tyler --=20