GNU bug report logs - #12418
emacs 24.2; idlw-shell.el: filename completion in IDL shell is not working

Previous Next

Package: emacs;

Reported by: Jose Marino <marinoj <at> nso.edu>

Date: Tue, 11 Sep 2012 19:39:01 UTC

Severity: normal

Fixed in version 24.3

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 12418 in the body.
You can then email your comments to 12418 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#12418; Package emacs. (Tue, 11 Sep 2012 19:39:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jose Marino <marinoj <at> nso.edu>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 11 Sep 2012 19:39:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jose Marino <marinoj <at> nso.edu>
To: bug-gnu-emacs <at> gnu.org
Subject: emacs 24.2; idlw-shell.el: filename completion in IDL shell is not
	working
Date: Tue, 11 Sep 2012 13:44:17 -0500
I'm using idlwave mode with emacs 24.2 and filename completion in the 
shell is not working. Typing TAB produces nothing: no errors and no 
completions.

The problem seems to be fixed by this patch:
--- idlw-shell.el.orig	2012-09-11 13:35:35.549891109 -0500
+++ idlw-shell.el	2012-09-11 13:36:37.901886841 -0500
@@ -2187,7 +2187,7 @@
   ;; CWD might have changed, resync, to set default directory
   (idlwave-shell-resync-dirs)
   (let ((comint-file-name-chars idlwave-shell-file-name-chars))
-    (comint-filename-completion)))
+    (comint-dynamic-complete-filename)))

 (defun idlwave-shell-executive-command ()
   "Return the name of the current executive command, if any."


Thanks,
Jose




Reply sent to Glenn Morris <rgm <at> gnu.org>:
You have taken responsibility. (Wed, 12 Sep 2012 08:08:01 GMT) Full text and rfc822 format available.

Notification sent to Jose Marino <marinoj <at> nso.edu>:
bug acknowledged by developer. (Wed, 12 Sep 2012 08:08:02 GMT) Full text and rfc822 format available.

Message #10 received at 12418-done <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 12418-done <at> debbugs.gnu.org
Subject: Re: bug#12418: emacs 24.2;
	idlw-shell.el: filename completion in IDL shell is not working
Date: Wed, 12 Sep 2012 04:06:17 -0400
Version: 24.3

Jose Marino wrote:

> -    (comint-filename-completion)))
> +    (comint-dynamic-complete-filename)))

Thanks; applied to emacs-24 branch.


The obsolescence message for comint-dynamic-complete-as-filename seems
misleading to me:

   This function is obsolete since 24.1;
   use `comint-filename-completion' instead.

Surely it would be better to say `use comint-dynamic-complete-filename
instead', rather than just saying "See `comint-dynamic-complete-filename'"
in the doc.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12418; Package emacs. (Thu, 13 Sep 2012 12:37:02 GMT) Full text and rfc822 format available.

Message #13 received at 12418 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: 12418 <at> debbugs.gnu.org
Cc: rgm <at> gnu.org
Subject: Re: bug#12418: emacs 24.2;
	idlw-shell.el: filename completion in IDL shell is not working
Date: Thu, 13 Sep 2012 08:36:03 -0400
>> -    (comint-filename-completion)))
>> +    (comint-dynamic-complete-filename)))

> The obsolescence message for comint-dynamic-complete-as-filename seems
> misleading to me:

>    This function is obsolete since 24.1;
>    use `comint-filename-completion' instead.

> Surely it would be better to say `use comint-dynamic-complete-filename
> instead',

Actually, that depends on what comint-dynamic-complete-as-filename was
used for: if it was used as a *command*, then
comint-dynamic-complete-filename is a good replacement.  But if it was
used within something like comint-dynamic-complete-functions, then the
better replacement is comint-filename-completion.

IOW, in the case of idlw-shell.el, the better replacement is indeed
comint-filename-completion, tho it requires changes in
idlwave-shell-complete (basically making it an alias to
completion-at-point and turning its body into a list of functions to put
on completion-at-point-functions).


        Stefan




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12418; Package emacs. (Thu, 13 Sep 2012 18:26:02 GMT) Full text and rfc822 format available.

Message #16 received at 12418 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 12418 <at> debbugs.gnu.org
Subject: Re: bug#12418: emacs 24.2;
	idlw-shell.el: filename completion in IDL shell is not working
Date: Thu, 13 Sep 2012 14:24:58 -0400
Stefan Monnier wrote:

> Actually, that depends on what comint-dynamic-complete-as-filename was
> used for: if it was used as a *command*, then
> comint-dynamic-complete-filename is a good replacement.  But if it was
> used within something like comint-dynamic-complete-functions, then the
> better replacement is comint-filename-completion.

Could you make the obsolescence message less definitive-sounding then?

> IOW, in the case of idlw-shell.el, the better replacement is indeed
> comint-filename-completion, tho it requires changes in
> idlwave-shell-complete (basically making it an alias to
> completion-at-point and turning its body into a list of functions to put
> on completion-at-point-functions).

Hopefully you feel like doing that (or reopening this report).




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12418; Package emacs. (Fri, 14 Sep 2012 01:19:02 GMT) Full text and rfc822 format available.

Message #19 received at 12418 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 12418 <at> debbugs.gnu.org
Subject: Re: bug#12418: emacs 24.2;
	idlw-shell.el: filename completion in IDL shell is not working
Date: Thu, 13 Sep 2012 21:17:49 -0400
>> Actually, that depends on what comint-dynamic-complete-as-filename was
>> used for: if it was used as a *command*, then
>> comint-dynamic-complete-filename is a good replacement.  But if it was
>> used within something like comint-dynamic-complete-functions, then the
>> better replacement is comint-filename-completion.
> Could you make the obsolescence message less definitive-sounding then?

I don't think it's worth the trouble: the use of
comint-dynamic-complete-filename is very rare.

>> IOW, in the case of idlw-shell.el, the better replacement is indeed
>> comint-filename-completion, tho it requires changes in
>> idlwave-shell-complete (basically making it an alias to
>> completion-at-point and turning its body into a list of functions to put
>> on completion-at-point-functions).
> Hopefully you feel like doing that (or reopening this report).

I don't really feel like it, but I will probably be the first to get to
it, regardless of how slowly I do it :-(


        Stefan




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 12 Oct 2012 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 11 years and 210 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.