all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Stephen Berman <stephen.berman@gmx.net>
Cc: 15419@debbugs.gnu.org
Subject: bug#15419: 24.3.50; file name as directory completion problem
Date: Wed, 07 May 2014 20:53:36 -0400	[thread overview]
Message-ID: <jwvha51f62c.fsf-monnier+emacsbugs@gnu.org> (raw)
In-Reply-To: <87r445mi4v.fsf@rosalinde.fritz.box> (Stephen Berman's message of "Wed, 07 May 2014 22:46:40 +0200")

> !       ;; If we're using the substring style for file name completion
> !       ;; and completing a directory name, this ends up tacking "/"
> !       ;; onto the name, resulting in "//" if the suffix begins with
> !       ;; "/".  So drop one "/" (bug#15419).
> !       (cons (replace-regexp-in-string "//" "/" (concat prefix merged suffix))

This will remove // from file names where they're valid such
a "http://blabla/" (using url-handler-mode).

The call to completion--merge-suffix is supposed to handle the
particular problem you're after, tho, so you might want to try and
figure out why it doesn't.


        Stefan





  reply	other threads:[~2014-05-08  0:53 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-19 15:21 bug#15419: 24.3.50; file name as directory completion problem Stephen Berman
     [not found] ` <handler.15419.B.137960413312666.ack@debbugs.gnu.org>
2014-05-07 20:46   ` Stephen Berman
2014-05-08  0:53     ` Stefan Monnier [this message]
2014-05-08 14:51       ` Stephen Berman
2014-05-10 21:24         ` Stephen Berman
     [not found]           ` <877g5r5tab.fsf@rosalinde.fritz.box>
     [not found]             ` <jwva9akwh03.fsf-monnier+emacsbugs@gnu.org>
     [not found]               ` <87a9akxheh.fsf@rosalinde.fritz.box>
2014-05-14 20:40                 ` Stefan Monnier

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=jwvha51f62c.fsf-monnier+emacsbugs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=15419@debbugs.gnu.org \
    --cc=stephen.berman@gmx.net \
    /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.