← Back to team overview

ubuntu-elisp team mailing list archive

[Bug 1370449] [NEW] emacs bash tab-completion doesn't work for commands with complete scripts in /usr/share/bash-completion/completions/

 

You have been subscribed to a public bug:

I'm using emacs with the following two lines in my ~/.emacsrc:

(require 'bash-completion)
(bash-completion-setup)

In an emacs shell window, I noticed that the git tab-complete wasn't
working; but the stg tab-complete was.  In a normal terminal window,
both worked just fine.

After doing some investigation, I discovered that there are two places
where completion scripts are kept: /usr/share/bash-
completion/completions/ and /etc/bash_completion.d/.

All commands with their completion scripts in /etc/bash_completion.d/
work with tab-complete in an emacs window; this includes stg, grub, &c.
All commands with their completion scripts in /usr/share/bash-
completion/completions/ don't work with tab-complete in emacs; this
includes git, gzip, &c.

Steps to reproduce:
* Add the above two lines to ~/.emacrc
* Start emacs
* Open a shell (M-x shell)
* Type "git check" and then hit tab.

Expected behavior: emacs completes it to "git checkout"

Actual behavior: emacs says "No completions".

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: emacs 45.0ubuntu1
ProcVersionSignature: Ubuntu 3.13.0-35.62-generic 3.13.11.6
Uname: Linux 3.13.0-35-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.14.1-0ubuntu3.3
Architecture: amd64
CurrentDesktop: Unity
Date: Wed Sep 17 11:32:34 2014
InstallationDate: Installed on 2012-03-26 (904 days ago)
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
PackageArchitecture: all
SourcePackage: emacs-defaults
UpgradeStatus: Upgraded to trusty on 2014-09-04 (12 days ago)

** Affects: emacs23 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug trusty
-- 
emacs bash tab-completion doesn't work for commands with complete scripts in /usr/share/bash-completion/completions/
https://bugs.launchpad.net/bugs/1370449
You received this bug notification because you are a member of Ubuntu Emacs Lisp, which is subscribed to emacs23 in Ubuntu.