all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Brent Goodrick <bgoodr@gmail.com>, 2052@emacsbugs.donarmstrong.com
Subject: bug#2052: 23.0.60; byte-compiled Emacs Lisp files are not shown during find-file	completion
Date: Sun, 25 Jan 2009 20:51:41 +0200	[thread overview]
Message-ID: <utz7nrzgi.fsf@gnu.org> (raw)
In-Reply-To: <18812.43984.135635.375722@hungover.brentg.com>

> From: Brent Goodrick <bgoodr@gmail.com>
> Date: Sun, 25 Jan 2009 10:13:36 -0800
> Cc: 
> 
> Using Emacs built from top of trunk CVS today.  Validated this using
> emacs -q. Do the following:
> 
> 1. Open up the *scratch* (lisp-interaction-mode) buffer and evaluate
> the following form which simply compiles the .el file into a .elc
> file for demonstration purposes:
> 
> (let* ((elisp-file "/tmp/afile.el")
>        (byte-compiled-file (concat elisp-file "c")))
>   (find-file elisp-file)
>   (erase-buffer)
>   (insert (format "%S" '(message "just some message")))
>   (save-buffer)
>   (when (file-exists-p byte-compiled-file)
>     (message "Deleting byte-compiled file %S" byte-compiled-file)
>     (delete-file byte-compiled-file))
>   (byte-compile-file elisp-file)
>   (unless (file-exists-p byte-compiled-file)
>     (error "Assertion failed: .elc %S should exist. What happened?" byte-compiled-file))
>   (message "Created byte-compiled file %s" byte-compiled-file))
> 
> 2. Execute M-x find-file
> 
> 3. Type in "/tmp/afile.el" (without the double-quotes) and then hit
> the TAB key twice.  It reads "Sole completion" for only the .el file,
> which wrong because the .elc file does indeed exist.  The
> /tmp/afile.elc file exists as you can tell by examining the
> filesystem.

Does the value of completion-ignored-extensions give you a hint why
this is a feature?






  parent reply	other threads:[~2009-01-25 18:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-25 18:13 bug#2052: 23.0.60; byte-compiled Emacs Lisp files are not shown during find-file completion Brent Goodrick
2009-01-25 18:50 ` bug#2052: 23.0.60; byte-compiled Emacs Lisp files are not shown during find-filecompletion Drew Adams
2009-01-25 18:51 ` Eli Zaretskii [this message]
2009-01-25 18:59   ` bug#2052: 23.0.60; byte-compiled Emacs Lisp files are not shown during find-file completion Brent Goodrick

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=utz7nrzgi.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=2052@emacsbugs.donarmstrong.com \
    --cc=bgoodr@gmail.com \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.