GNU bug report logs - #15735
locate-file-completion-table should not accept incomplete input

Previous Next

Package: emacs;

Reported by: Drew Adams <drew.adams <at> oracle.com>

Date: Sun, 27 Oct 2013 17:38:01 UTC

Severity: minor

Found in version 24.3.50

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Drew Adams <drew.adams <at> oracle.com>
To: 15735 <at> debbugs.gnu.org
Subject: bug#15735: 24.3.50; `find-library' completion bug
Date: Sun, 27 Oct 2013 10:36:59 -0700 (PDT)
emacs -Q

I add directory`ess-5.3.10' to my `load-path'.  That dir has a
subdirectory `lisp', which contains libraries whose names begin with
`ess', such as `ess.el'.  (But subdir `lisp' is not in `load-path'.)

M-x find-library ess TAB

completes to `ess-5.3.10', which it should not.  There is no library in
my `load-path' that has that prefix.

`RET' with the completion `ess-5.3.10' raises an error (naturally):

Debugger entered--Lisp error: (error "Can't find library ess-5.3.10/")
  signal(error ("Can't find library ess-5.3.10/"))
  error("Can't find library %s" "ess-5.3.10/")
  find-library-name("ess-5.3.10/")
  (find-file-noselect (find-library-name library))
  (let ((buf (find-file-noselect (find-library-name library)))) (condition-case nil (switch-to-buffer buf) (error (pop-to-buffer buf))))
  find-library("ess-5.3.10/")
  call-interactively(find-library record-it)
...

In GNU Emacs 24.3.50.1 (i686-pc-mingw32)
 of 2013-10-19 on LEG570
Bzr revision: 114715 rgm <at> gnu.org-20131019023520-s8mwtib7xcx9e05w
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --enable-checking 'CFLAGS=-O0 -g3' CPPFLAGS=-DGLYPH_DEBUG=1'




This bug report was last modified 3 years and 107 days ago.

Previous Next


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