Looks like https://github.com/szermatt/emacs-bash-completion/issues/5
-- You received this bug notification because you are a member of Desktop Packages, which is subscribed to emacs24 in Ubuntu. https://bugs.launchpad.net/bugs/1370449 Title: emacs bash tab-completion doesn't work for commands with complete scripts in /usr/share/bash-completion/completions/ Status in “emacs24” package in Ubuntu: Incomplete Bug description: 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) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/emacs24/+bug/1370449/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp