From: tyler <tyler.smith@mail.mcgill.ca>
To: help-gnu-emacs@gnu.org
Subject: tab completion barfs in inferior process
Date: Tue, 21 Oct 2008 15:29:47 -0300 [thread overview]
Message-ID: <87prltls2s.fsf@blackbart.sedgenet> (raw)
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<tab> 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 (completions) "List in help buffer sorted COMPLETIONS.
Typing SPC flushes the help buffer." (let ((window (get-buffer-window "*Completions*"))) (setq completions (sort completions (quote string-lessp))) (if (and (eq last-command this-command) window (window-live-p window) (window-buffer window) (buffer-name (window-buffer window)) (equal completions (buffer-local-value (quote comint-displayed-dynamic-completions) (window-buffer window)))) (with-current-buffer (window-buffer window) (if (pos-visible-in-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-temp-buffer "*Completions*" (display-completion-list completions)) (message "Type space to flush; repeat completion command to scroll")) (let (key first) (if (with-current-buffer (get-buffer "*Completions*") (set (make-local-variable (quote comint-displayed-dynamic-completions)) completions) (setq key (read-key-sequence nil) first (aref key 0)) (and (consp first) (consp (event-start first)) (eq (window-buffer (posn-window (event-start first))) (get-buffer "*Completions*")) (eq (key-binding key) (quote mouse-choose-completion)))) (progn (mouse-choose-completion first) (set-window-configuration comint-dynamic-list-completions-config)) (unless (eq first 32) (setq unread-command-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<tab> 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
--
reply other threads:[~2008-10-21 18:29 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87prltls2s.fsf@blackbart.sedgenet \
--to=tyler.smith@mail.mcgill.ca \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).