all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: 23646@debbugs.gnu.org
Subject: bug#23646: 25.0.94; file-name-completion does not handle completion-ignored-extensions properly
Date: Sun, 29 May 2016 11:19:47 +0200	[thread overview]
Message-ID: <87a8j9kyq4.fsf@gmx.de> (raw)
In-Reply-To: <877fedgrx3.fsf@gmx.de> (Michael Albinus's message of "Sun, 29 May 2016 11:00:24 +0200")

Michael Albinus <michael.albinus@gmx.de> writes:

> Try the following:
>
> (let ((completion-ignored-extensions ".ext"))
>   (write-region "foo" nil (expand-file-name "foo" "/tmp"))
>   (write-region "foo" nil (expand-file-name "foo.ext" "/tmp"))
>   (file-name-all-completions "fo" "/tmp") ; ("foo" "foo.ext"), OK
>   (file-name-completion "fo" "/tmp") ; "foo", OK
>   (file-name-completion "foo" "/tmp") ; "foo", NOK, should be t
>   (file-name-completion "foo." "/tmp") ; "foo.ext", OK
>   (file-name-completion "foo.ext" "/tmp")) ; t, OK

Silly me: the first line must be

(let ((completion-ignored-extensions '(".ext")))

Everything works as expected. Closing the bug.





      reply	other threads:[~2016-05-29  9:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-29  9:00 bug#23646: 25.0.94; file-name-completion does not handle completion-ignored-extensions properly Michael Albinus
2016-05-29  9:19 ` Michael Albinus [this message]

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=87a8j9kyq4.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=23646@debbugs.gnu.org \
    /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.